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
#31
2008-06-02, 06:10 AM
pBS Wrote: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?

good point, for myself, the PCH is purely used as a GBPVR terminal.
[SIZE="1"]SuperMicro PDSME+ Core2Duo 2.40GHz 6.0GB Ram | HD Homerun | (4) NMT | GB-PVR v1.5.21 | Windows 7 Enterprise x64[/SIZE]
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#32
2008-06-02, 02:29 PM
pBS Wrote: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.

I am going to put this on the wiki, unless you have an objection Smile
sub Wrote:Are you trying to make sure I get nothing done today?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#33
2008-06-02, 08:04 PM
yea, was my next step...just wanted to see if i could come up with any other goodies to add...Smile but i think that's it for now...
was thinking about doing a check to see if shares are mounted before going into gbpvr but i don't think it's needed...[only for dvd's]

any other reference documents about the html tags? it sure don't do much html wise...have you tried the EWA? or 'cuz of aspx or cookies is that out?

would it be possible to run an alternate browser?
[like a real one from hard-drive]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#34
2008-06-03, 04:34 PM
Okay, so I got all this working (GREAT WORK!!!) but I wanted a prettier start page.

I took the one above, cleaned it up a bit and added a few images. I'm not at a place where I can load this on my NMT right now, so if someone wants to try it out and let me know if/how it works, I'd appreciate it....

Here's how it looks in a browser: [Image: new_index.jpg]

I've attached a zip with the images
[ATTACHMENT NOT FOUND]

and here's the new index.htm:

Code:
<html>
    <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" focuscolor="#5EA9E2" focustext="#FF0000">
        <p>&nbsp;</p>
        <table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;">
          <tr>
            <td align="center" colspan="2"><img src="hdlogo.gif" /></td>
          </tr>
          <tr>
            <td align="center" width="88"><font face="Arial,Verdana,Helvetica" SIZE="5" color="silver">&nbsp;</font></td>
            <td align="center"><font face="Verdana,Arial,Helvetica" SIZE="4" color="silver"><b>Loader</b></font></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;">
            <tr>
                <td align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td align="left" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0"/></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" valign="top"><img src="pixel.gif" height="2"  border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td align="right" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top" align="center" style="color:#0000FF;text-decoration:none;"><br /><a
                   href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/gbpvr.cgi" name="toplink" ONKEYUPSET="bottomlink"><img
                   src="logo.gif" border="0" onfocussrc="logosel.gif" /></a><br />
                    <br />
                    <br />
                    <font face="Verdana,Arial,Helvetica" SIZE="6"><b><a
                    href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/script.cgi" style="text-decoration:none;">Telnet</a></b></font>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br /><font face="Verdana,Arial,Helvetica" SIZE="5" COLOR="silver">&nbsp;<a
                    href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1"  style="text-decoration:none;" name="bottomlink"
                    ONKEYDOWNSET="toplink">HOME = Browse Files</a>&nbsp;</font><br /><br /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td align="left" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0"/></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" valign="top"><img src="pixel.gif" height="2"  border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td align="right" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0" /></td>
            </tr>
            <tr>
                <td align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
      </table>
        <br />
        <br />
        <br />
        <br />
        <a href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1" tvid="HOME">
        </a>
    </body>
</html>
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#35
2008-06-03, 08:54 PM
I finally got to test it...

There are two things I noticed that I'll be changing... Evidently transparent GIFs aren't honored; So I'm going to add the header logo to the background somehow/somewhere.

Also, I made the selected GBPVR logo red and it looks bad. I'll redo it with yellow as well.

I think it's ok for a tester. I'll get something nicer posted in the next day or two if anyone is interested...
hakras
Offline

Member

Posts: 228
Threads: 40
Joined: Mar 2007
#36
2008-06-03, 11:27 PM
I am waiting for my PCH to arrive. As soon as I get it, I'm going to implement this. Keep up the good work and thank you.
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#37
2008-06-04, 03:44 AM
Some small modifications...

The blue color of the unselected gbpvr logo is still a little off, but everything else looks a little better.

The images: [ATTACHMENT NOT FOUND]

The index.htm:

Code:
<html>
    <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" FOCUSCOLOR="#5EA9E2" FOCUSTEXT="#FFFF00">
        <p>&nbsp;</p>
        <table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;">
          <tr>
            <td align="center" colspan="2"><img src="hdlogo.png" /></td>
          </tr>
          <tr>
            <td align="center" width="88"><font face="Arial,Verdana,Helvetica" SIZE="5" color="silver">&nbsp;</font></td>
            <td align="center"><font face="Verdana,Arial,Helvetica" SIZE="4" color="silver"><b>Loader</b></font></td>
          </tr>
        </table>
        <p>&nbsp;</p>
        <table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;">
            <tr>
                <td align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td align="left" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0"/></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" valign="top"><img src="pixel.gif" height="2"  border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td align="right" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top" align="center" style="color:#0000FF;text-decoration:none;"><br /><a
                   href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/gbpvr.cgi" name="toplink" ONKEYUPSET="bottomlink"><img
                   src="logo.png" border="0" onfocussrc="logosel.png" /></a><br />
                    <br />
                    <br />
                    <font face="Verdana,Arial,Helvetica" SIZE="6"><b><a
                    href="http://localhost.drives:8883/USB_DRIVE_A-1/mvpmc/script.cgi" style="text-decoration:none;">Telnet</a></b></font>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br /><font face="Verdana,Arial,Helvetica" SIZE="5" COLOR="silver">&nbsp;<a
                    href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1"  style="text-decoration:none;" name="bottomlink"
                    ONKEYDOWNSET="toplink">HOME = Browse Files</a>&nbsp;</font><br /><br /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td bgcolor="#5EA9E2" align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td bgcolor="#5EA9E2" align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
            <tr>
                <td align="left" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0"/></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" valign="top"><img src="pixel.gif" height="2"  border="0" /></td>
                <td bgcolor="#5EA9E2" height="2" width="2" valign="top"><img src="pixel.gif" height="2"  width="2" border="0" /></td>
                <td align="right" width="1" height="2" valign="top"><img src="pixel.gif" width="1" height="2" border="0" /></td>
            </tr>
            <tr>
                <td align="left" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0"/></td>
                <td bgcolor="#5EA9E2" height="1" valign="top"><img src="pixel.gif" height="1"  border="0" /></td>
                <td align="right" height="1" valign="top" colspan="2"><img src="pixel.gif" width="3" height="1" border="0" /></td>
            </tr>
      </table>
        <br />
        <br />
        <br />
        <br />
        <a href="http://localhost.drives:8883/USB_DRIVE_A-1/?home=1" tvid="HOME">
        </a>
    </body>
</html>
Blue Racer
Offline

Senior Member

Posts: 278
Threads: 62
Joined: Dec 2005
#38
2008-06-04, 12:43 PM
I've been following along on this thread and trying to get it to work on my pch.
Here is what I've done so far. I created the index.htm file and then copied it to the root of my usb drive. I then created the gbpvr.cgi and script.cgi files and copied them to the mvpmc sub-directory of my usb drive. I also copied the mvpmcx2 and startmeup files from my computers mvpmc directory to the usb drives mvpmc directory. I also copied the image files to the mvpmc directory on the usb drive. Now when I'm at the pch main menu and click on the USB drive the image file automatically loads, but when I then click on either the gbpvr or telnet items I get the message that "Request cannot be processed". When I click on Home=browse files it just returns to the pch main menu.
Can anybody see what I could be doing wrong?
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#39
2008-06-04, 06:09 PM
Did you by any chance edit the cgi scripts using notepad?
Blue Racer
Offline

Senior Member

Posts: 278
Threads: 62
Joined: Dec 2005
#40
2008-06-04, 06:37 PM
No, I used Editpad lite. I currently have PCH set-up using the mvpmc share on my computer. Are there any settings that I need to change in the files?
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

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


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