NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT MVPMCX2 and other NMT stuff v
« Previous 1 … 23 24 25 26 27 … 37 Next »
Running telnet.html from USB drive

 
  • 0 Vote(s) - 0 Average
Running telnet.html from USB drive
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#91
2008-06-13, 10:05 PM (This post was last modified: 2008-06-13, 10:07 PM by jksmurf.)
@pBS,

um. I'm not 100% sure what you're trying to say ... :confused:
  1. If I comment out those lines, then how am I to troubleshoot which line in the script does not run?
  2. Is there a way to enable telnet without running (old) script.cgi using telnet.html from the PCH?
@dirk,
  1. Sorry,you must think I'm dim :o. But I didn't comment out any lines, after running telnet.html (with the old script.cgi) from the PCH, I then attempted to run the NEW gbpvr.cgi from the server using putty.
  2. I just copied and pasted each line in turn from the new gbpvr.cgi.
  3. Putty added the #'s as I was running it.
  4. Are you saying once I run the OLD script.cgi (to enable telnet to be able to run putty in the first place), it then put's #'s there by itself ???
k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#92
2008-06-16, 12:56 AM
ah,i think i know why...supposed to be no / at end of mvpmc...
mount -t cifs //192.123.1.10/mvpmc /etc/mvpmc -o username=guest,rw;

try it like that...Smile

and also:
echo "Already Connected!";
[formatting changes]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#93
2008-06-16, 01:24 AM
pBS Wrote:ah,i think i know why...supposed to be no / at end of mvpmc...
mount -t cifs //192.123.1.10/mvpmc /etc/mvpmc -o username=guest,rw;

try it like that...Smile

and also:
echo "Already Connected!";
[formatting changes]


I'll try it when I get home tonight! Thanks for your persistence!

If it IS that you may want to amend here though ... odd thing I also have it in my working scripts ... and so does Blue Racer ??

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#94
2008-06-16, 03:14 AM (This post was last modified: 2008-06-16, 08:29 AM by pBS.)
try this:
Code:
#!/bin/sh

echo "Content-Length: 115";
echo "Content-type: text/html";
echo "";

cd ~
if [ -f /etc/mvpmc/mvpmcx2 ]
  then
  echo "Already Connected..........."; #28
  else
mkdir /etc/mvpmc >/dev/null 2>/dev/null;
mount -t cifs //192.123.1.108/mvpmc /etc/mvpmc -o username=guest,rw  >/dev/null 2>/dev/null;
   cp /etc/mvpmc/utelnetd /usr/bin  >/dev/null 2>/dev/null;
   utelnetd -l /bin/sh -p 23  2>/dev/null >/dev/null &
   ln -s /lib/librmjpeg.so /lib/libjpeg.so.62  2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so 2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so.1 2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so.123 2>/dev/null
echo "Telnetd started on port 23.."; #28
fi

echo "<HEAD>"; #6
echo '<META http-equiv="Refresh" content="3;url=index.htm">'; #54 total
echo "</HEAD>"; #7
echo "<body>"; #6
echo "Loading...";  #10
echo "</body>"; #7
exit 0;

of course change the parts for your server/dir...Smile

the browser seems to cache any changes on shares, so i have to reboot after changes to get it to see them properly...not so on internal HD...much quicker to troubleshoot with..
i'll have an updated script soon that will take you back to index.htm when done...just flashes the message that it loaded and goes back...
and can be run any number of times in a row...Smile

EDIT: now with autoreturn Big Grin]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#95
2008-06-16, 01:09 PM (This post was last modified: 2008-06-16, 01:11 PM by dirkomatic.)
pbs: Can you do me a favor and try this one?

Code:
#!/bin/sh

echo "Content-Length: 716";
echo "Content-type: text/html";
echo "";

cd ~
if [ -f /etc/mvpmc/mvpmcx2 ]
  then
#  echo "Already Connected...........";
  else
mkdir /etc/mvpmc >/dev/null 2>/dev/null;
mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
#mount -t cifs //xx.xx.xx.xx/mvpmc /etc/mvpmc/ -o username=guest,ro;
   cp /etc/mvpmc/utelnetd /usr/bin  >/dev/null 2>/dev/null;
   utelnetd -l /bin/sh -p 23  2>/dev/null >/dev/null &
   ln -s /lib/librmjpeg.so /lib/libjpeg.so.62  2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so 2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so.1 2>/dev/null
   ln -s /lib/librmzlib.so /lib/libz.so.123 2>/dev/null
#   echo "Telnetd started on port 23..";
fi
echo '<html>';
echo '    <head>';
echo '   <META http-equiv="Refresh" content="3;url=index.htm">';
echo '    </head>';
echo '    <body background="mvpmc/gbpvr.png" bgcolor="blue" focuscolor="#5EA9E2" focustext="#FF0000">';
echo '        <p align="center">&nbsp;</p>';
echo '        <table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;" width="70%">';
echo '          <tr>';
echo '            <td align="left" colspan="2"><img src="mvpmc/hdlogo.png" /></td>';
echo '          </tr>';
echo '        </table>';
echo '        <p align="center">&nbsp;</p>';
echo '        <p align="center">&nbsp;</p>';
echo '        <p align="center">&nbsp;</p>';
echo '        <p align="center">&nbsp;</p>';
echo '        <p align="center"><font color="Silver" size="4" face="Arial,Verdana,Helvetica"><b>Loading...</b></font></p>';
echo '    </body>';
echo '</html>';
exit 0;

If it works, I'll modify it in the wiki...

Please note that this is set up for the USB drive, though. You'll have to change it if you want to run it from a share.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#96
2008-06-16, 09:49 PM
will try a bit later...
i tried redirecting to a log, so we could go back and read errors,etc. but apparently security won't let cgi write files anywhere...Sad
[ 2>> error.log >> output.log ]
works from telnet but not from browser..

found out how to log it...stole a bit from mav's plugin...Big Grin
now a bit more refinement, and it's ready for wiki...
remember, keep it easy so edits aren't a big pain...tmp msg won't be on screen long so doesn't have to be too pretty...Smile

i may just echo everything to a fulll blown page then redirect to that so can have all output visible and not have to worry about length..Big Grin
will try later to see if it works then post it..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#97
2008-06-17, 12:00 AM
sweet...now working with full output and redirect back to main page...Smile
both errors and output shown, no 'counting' chars needed...Big Grin

i just output both stderror and stdoutput to a file with html headers...
so no matter how long the output, it displays...and goes back..Smile
just need to clean things up a bit...

we really need to keep the scripts separated per location...
[usb/hard drive/share]
as they have different requirements depending on location..

hard drive scripts should work out of the box..
usb, just needs to make sure right usb string..
shares are a whole different matter...[home drive has to be hardcoded]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#98
2008-06-17, 12:06 AM
dirkomatic Wrote:mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
#mount -t cifs //xx.xx.xx.xx/mvpmc /etc/mvpmc/ -o username=guest,ro;
[/code]

If it works, I'll modify it in the wiki...

Please note that this is set up for the USB drive, though. You'll have to change it if you want to run it from a share.

The # gets swapped bweteen the two mount lines (and IP added) for the share version correct?
I note that there is a "/" after /etc/mvpmc/ but pBS previously noted there should not be one for the share version :confused: I'm confused :confused:

pBS Wrote:we really need to keep the scripts separated per location...
[usb/hard drive/share]
as they have different requirements depending on location..

hard drive scripts should work out of the box..
usb, just needs to make sure right usb string..
shares are a whole different matter...[home drive has to be hardcoded]

YUP, fully agree.

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
alex.brokenarrow
Offline

Junior Member

Posts: 13
Threads: 1
Joined: Jul 2008
#99
2008-07-12, 03:09 PM (This post was last modified: 2008-07-12, 03:15 PM by mvallevand.)
i got lost in this thread, could someone tell me where to find this file utelnetd ?
i can't seems to locate it within the package. is this essential for usb method?
HDX 900 Networked Media Tank
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,980
Threads: 956
Joined: May 2006
#100
2008-07-12, 03:15 PM
It is distributed in the pch_script_samples.zip. No telnet is only needed for debugging not for mvpmcx2. You can also use lundman's busybox26 if you are more comfortable with it.

(Oops I edited your message)

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (12): « Previous 1 … 8 9 10 11 12 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running out of NMT servers with NPVR steveum 2 1,421 2010-11-28, 03:02 AM
Last Post: mvallevand
  Pictures off a network drive Jaggy 15 4,453 2010-10-26, 11:27 PM
Last Post: mvallevand
  Running GBPVR & NPVR Blue Racer 4 2,301 2010-10-01, 09:51 PM
Last Post: mvallevand
  Media from a network drive Jaggy 3 1,874 2010-03-02, 06:30 AM
Last Post: mvallevand
  Any advantage to adding a hard drive? Elmo Putney 4 2,010 2009-09-24, 08:31 PM
Last Post: martint123
  telnet.html EditMe help -Oz- 4 2,600 2009-05-15, 09:32 PM
Last Post: -Oz-
  Do I need a hard drive in the PCH to run MVPMCX2? Bergling 11 4,474 2008-10-31, 04:39 PM
Last Post: neo541
  reboot using telnet steveum 6 6,708 2008-10-17, 01:18 PM
Last Post: martint123
  Problems with Telnet during installation althon 21 6,764 2008-08-10, 04:41 PM
Last Post: althon
  auto-load html page from/after script pBS 2 3,229 2008-06-23, 09:50 AM
Last Post: pBS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode