2008-07-04, 06:35 PM
I have GBPVR working fine from a USB thumb drive. For some reason, I can't get it running from the share. Here are my modified files for the share:
index.htm
telnet.html
gbpvr.cgi
script.cgi
startmeup
The only things I change is mount in the cgi files and replaced the USB with address for server. Any idea? HELP!
index.htm
Code:
<html>
<head>
<!--- <META http-equiv="Refresh" content="10;url=http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/script.cgi"> -->
</head>
<body background="mvpmc/gbpvr.png" bgcolor="blue" focuscolor="#5EA9E2" focustext="#FF0000">
<p> </p>
<table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0;" width="70%">
<tr>
<td align="left" colspan="2"><img src="mvpmc/hdlogo.png" /></td>
</tr>
</table>
<p> </p>
<table cellspacing="0" cellpadding="0" border="0" align="center" style="padding:0px;">
<tr>
<td valign="top" align="center" style="color:#0000FF;text-decoration:none;"><br /><a
href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/script.cgi" name="toplink" ONKEYUPSET="bottomlink"><img
src="mvpmc/gbpvrunsel.png" border="0" onfocussrc="mvpmc/gbpvrsel.png" /></a><br /><a
href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/script.cgi" style="text-decoration:none;"><img
src="mvpmc/telnetunsel.png" border="0" onfocussrc="mvpmc/telnetsel.png" /></a><br /><a
href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc?home=1" style="text-decoration:none;" name="bottomlink"
ONKEYDOWNSET="toplink"><img
src="mvpmc/homeunsel.png" border="0" onfocussrc="mvpmc/homesel.png" /></a></td>
</tr>
<tr>
<td align="right" valign="top"><font color="Silver" size="3" face="Arial,Verdana,Helvetica">* HOME=Browse Files</font>
</tr>
</table>
<a href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/?home=1" tvid="HOME"></a>
</body>
</html>
telnet.html
Code:
<a href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/script.cgi">Telnetd</a>
<BR>
<a href="http://localhost.drives:8883/[SMB]%20PCH@xxx.xxx.xxx.xxx:MVPMC/mvpmc/gbpvr.cgi">GB-PVR</a>
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 //xxx.xxx.xxx.xxx/MVPMC /etc/mvpmc/ -o username=PCH,password=********,rw;
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 //xxx.xxx.xxx.xxx/mvpmc /etc/mvpmc/ -o username=PCH,password=********,rw;
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;
startmeup
Code:
#echo "Shell to mvpmcx2 "
#remove the # from most appropriate line
# Analog TV settings
#/etc/mvpmc/mvpmcx2 -m ntsc &
#/etc/mvpmc/mvpmcx2 -m pal &
# HDMI/DVI settings
/etc/mvpmc/mvpmcx2 -m 1080p &
#/etc/mvpmc/mvpmcx2 -m 720 --frequency 50 &
The only things I change is mount in the cgi files and replaced the USB with address for server. Any idea? HELP!