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
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#21
2008-05-27, 05:47 PM
mvallevand Wrote:I didn't answer the question complete, the first script does have to run once after plugging in the PCH, but it is not telnet running that I want to use as a test to launch mvpmcx2.

Martin

thanks for clearing that up,
I guess what I'm looking for is an all in one cgi script so that I can just have an autoforwarder in index.htm.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
replaytv
Offline

Senior Member

Posts: 352
Threads: 22
Joined: Oct 2004
#22
2008-05-28, 01:53 PM
pBS,

Is it possible that you can share your script.cgi? I modified my script for harddrive and USB but I was not able to get telnet or PVRX2.exe to run.

Thanks.

Dan L.
Dell Dual Core 6400 XP Pro, PVR500, HVR-1600, MVPs on Belkin wireless bridge
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#23
2008-05-28, 04:57 PM
it is tricky...i can only get the regular version to run...not the plugin version..
i actually put all mine in the ftpserver startup but quickly found that to be annoying..Smile
i'm trying to work out some things to have it on int. harddrive so sometime soon i'll post if i get a good one going...i did get it to a one click solution eventually tho..even autostart..[but that needs some sort of timeout/skip funct.]

having problems with the scripts, i think it's a permissions thing..new to linux..
[permissions get lost unzipping from a windows box]
i think i need to find out how to untar from telnet...Smile

i saw a post about the permissions needed somewhere...grr..can't find it now..
finally got the beta firmware up and running too..wondering if that's the problem..
i'm sure he'll beat me to the punch tho...lol
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#24
2008-05-28, 05:06 PM
pBS Wrote:it is tricky...i can only get the regular version to run...not the plugin version..
i actually put all mine in the ftpserver startup but quickly found that to be annoying..Smile
i'm trying to work out some things to have it on int. harddrive so sometime soon i'll post if i get a good one going...i did get it to a one click solution eventually tho..even autostart..[but that needs some sort of timeout/skip funct.]

having problems with the scripts, i think it's a permissions thing..new to linux..
[permissions get lost unzipping from a windows box]
i think i need to find out how to untar from telnet...Smile

i saw a post about the permissions needed somewhere...grr..can't find it now..
finally got the beta firmware up and running too..wondering if that's the problem..
i'm sure he'll beat me to the punch tho...lol

If you put a redirector with httprefresh in index.htm on a flash drive, you can have it run that automatically.. the problem I have is getting the combined cgi script to run.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#25
2008-05-28, 05:49 PM
Azimuth Wrote:If you put a redirector with httprefresh in index.htm

I didn't even try that because I didn't think it would work on the PCH. So, META tags work?!?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#26
2008-05-28, 07:23 PM
i just combined the scripts together for one, and just telnet the other...
works fine from share, but from drives it gets interesting...

just replaced the drive i have in it so shouldn't be long...
plus i just saw the upgraded gbpvr..Big Grin so i'll be upgrading that tonight...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#27
2008-05-31, 05:29 PM
pBS Wrote:i just combined the scripts together for one, and just telnet the other...
works fine from share, but from drives it gets interesting...

just replaced the drive i have in it so shouldn't be long...
plus i just saw the upgraded gbpvr..Big Grin so i'll be upgrading that tonight...

when I combine the scripts together it gets mid way through the cgi script and just stops.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#28
2008-05-31, 11:33 PM (This post was last modified: 2008-06-16, 08:32 AM by pBS.)
here's my usb combined script...
[save as gbpvr.cgi]
Code:
#!/bin/sh

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

cd ~
mkdir /etc/mvpmc >/dev/NULL
echo "";

if [ -f /etc/mvpmc/mvpmcx2 ]
  then
  echo "Already Connected!";
else  
   mount --bind  /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
   #mount -t cifs //x.x.x.x/MVPMC /etc/mvpmc -o username=guest,ro;
   cp /etc/mvpmc/utelnetd /usr/bin;
   chmod 777 /etc/mvpmc/*;
   utelnetd -l /bin/sh -p 23 &
   ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
   ln -s /lib/librmzlib.so /lib/libz.so
   ln -s /lib/librmzlib.so /lib/libz.so.1
   ln -s /lib/librmzlib.so /lib/libz.so.123
   echo "Telnetd started on port 23............";
fi

killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
script.cgi:
Code:
#!/bin/sh

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

cd ~
mkdir /etc/mvpmc >/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;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............";
exit 0;
and index.htm: [put in root of drive for autostart]
Code:
<html>
<head>
<body bgcolor="blue">
<font face="Verdana" size="3">

<HEAD>
<!--- <META http-equiv="Refresh" content="10;url=http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/gbpvr.cgi"> -->

</HEAD>
<BODY BACKGROUND="gbpvr.png" BGCOLOR="blue">
<BODY>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<center><FONT SIZE="9" COLOR="silver"><b><I>
GBPVR LOADER</center>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table align="center" bgcolor="silver-alpha" border="2" cellpadding="30">
<tr>
<th align="center" valign="middle"><FONT SIZE="6" COLOR="silver">
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/gbpvr.cgi" name="toplink" ONKEYUPSET="bottomlink">GB-PVR</a>
<br><br>
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/script.cgi" >Telnet</a>
<br><br><br><FONT SIZE="5" COLOR="silver">
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1" name="bottomlink" ONKEYDOWNSET="toplink">HOME = Browse Files</a>
</th>
</tr>
</table>
</font>
<br><br>
<br><br>
<a href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1" tvid="HOME"></a>
</body>
</html>
un-'<!--' the meta-refresh tag at beginning for instant load with no clicks..

these assume all files in USB_DRIVE_A-1\mvpmc\
mvpmcx2
startmeup <- !Don't forget to edit for your tv!
utelnetd
gbpvr.cgi
script.cgi
gbpvr.png

same thing for internal drive, just replace all USB_DRIVE_A-1 with HARD_DISK

EDIT: added HOME key for browsing drive if this is used as index.htm in root..Big Grin Added background .png and link to browser.
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Azimuth
Offline

Member

Posts: 225
Threads: 47
Joined: Oct 2006
#29
2008-06-01, 02:19 AM
Thanks for the cgi script.
here is my index.htm for use with your cgi script.
Code:
<head>
<meta http-equiv="refresh" content="0;url=script.cgi">
</head>

I put the index.htm in the root of the usb drive along with script.cgi containing the combined script.

The rest of the files are in the mvpmc sub folder.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#30
2008-06-01, 05:04 AM
ahh, but what if you have files on that drive? you can't browse them anymore..
that's why added the home button option...plus a short timeout for autoload...
that way you can still watch local files when not connected to gbpvr system..
otherwise it loads in a few secs or with single click, immediately...Smile
all the options at once...lol

i'm going to use mine as a bring-along HD box, so need some way to access those files when on road...


anybody got any sweet tile-able backgrounds for the telnet page?
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (12): « Previous 1 2 3 4 5 … 12 Next »
Jump to page 


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