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
#71
2008-06-07, 05:26 AM
pBS Wrote:use this line:
mount -t cifs //192.123.1.108/MVPMC /etc/mvpmc -o username=guest,rw;
and put a # in front of:
#mount --bind /opt/sybhttpd/localhost.drives:8883/[SMB]%20SMURFPC:mvpmc /etc/mvpmc

first one is for drives only...
second is for shares...


Oh... Wait a minute... but I AM using a share....???
Let me try...

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

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#72
2008-06-07, 06:27 AM (This post was last modified: 2008-06-11, 12:31 AM by jksmurf.)
Arrrghhh ... it works with the old scripts...but not the new ones ???? :confused:

Working Old Script
script.cgi
Code:
#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
cd ~
mkdir /etc/mvpmc
mount -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=root,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;

Non-Working NEW Script
script.cgi
Code:
#!/bin/sh
echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";
cd ~
mkdir /etc/mvpmc [color=Red][B]>/dev/NULL[/B][/color]
mount -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=root,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;

Working OLD Script
gbpvr.cgi
Code:
#!/bin/sh
echo "Content-Length: 30";
echo "Content-type: text/html";
echo "";
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

Non-Working New Script (I understand this is a combo of script.cgi and gbpvr.cgi, will try and highlight only differences from both)
gbpvr.cgi
Code:
#!/bin/sh
echo "Content-Length: 30";
echo "Content-type: text/html";
echo "";
cd ~
mkdir /etc/mvpmc [color=Red]>/dev/NULL[/color]
echo "";
[COLOR="red"][B] if [ -f /etc/mvpmc/mvpmcx2 ]
  then
  echo "Already Connected!";
else  [/B][/COLOR]
mount -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=root,rw;
   cp /etc/mvpmc/utelnetd /usr/bin;
  [color=Red][B] chmod 777 /etc/mvpmc/*;[/B][/color]
   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............";
[color=red][B] fi[/B][/color]
killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

What lines would make it not work? I could live with it, but then I lose the "Already Connected!" message Smile
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
#73
2008-06-07, 09:10 PM (This post was last modified: 2008-06-08, 01:18 AM by pBS.)
hmmm,i just put the 'if' in so it wouldn't try to re-mount everytime...
the 'echo already connected' part isn't even needed...just didn't know how to do a 'not' file exists...
basically it just checks to see if /etc/mvpmc/mvpmcx2 exists...if so, then drive is already mounted, and files are ready to run...

does it give any errors or say anything on screen?

i'm no linux guru so someone else may have more insight..

to get some feedback, try running it from telnet..[the script itself]

remember to reboot [power eject] between changes as it will cache them...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#74
2008-06-08, 03:59 PM (This post was last modified: 2008-06-08, 04:52 PM by pBS.)
Dirko: i think you've got a typo...for me it works with style="text-decoration:none"
[no ; at end] to get no underlined links..
maybe that's why he's having problems?

probably not, it seems to work either way..Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#75
2008-06-08, 05:35 PM
pBS: It does work either way in almost every browser, but ending it with the ";" is actually "well-formed"...

And actually, if you use mine as is, it doesn't even require that any more since there are no text links, only graphical. I'll take another look at it when I get the chance and make the changes.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#76
2008-06-10, 05:05 AM
pBS Wrote:hmmm,i just put the 'if' in so it wouldn't try to re-mount everytime... the 'echo already connected' part isn't even needed...just didn't know how to do a 'not' file exists...
basically it just checks to see if /etc/mvpmc/mvpmcx2 exists...if so, then drive is already mounted, and files are ready to run...
OK

pBS Wrote:does it give any errors or say anything on screen?
Nope, not when run from the nice dirko-gui. It just doesn;t DO anything with the new scripts .. but I can run my OLD scripts from his New Index.html...

pBS Wrote:i'm no linux guru so someone else may have more insight..
LOL, I'm not either, clearly ...

pBS Wrote:to get some feedback, try running it from telnet..[the script itself] ... remember to reboot [power eject] between changes as it will cache them...
OK, putty logs are attached. Ran gpbvr.cgi 1st, then script.cgi, then gpbvr.cgi again. I hope this is correct, I just copy and pasted the scripts into putty, no changes between them, and captured the log ...

:confused::confused:

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 |
Blue Racer
Offline

Senior Member

Posts: 278
Threads: 62
Joined: Dec 2005
#77
2008-06-10, 11:09 AM
I have been playing around with the gbpvr.cgi script on my system and finally got it to work. I started with my basic script and then added items from the script on this thread. It doesn't include this line:
chmod 777 /etc/mvpmc/*;
What does that line do?

Here is what works for me:

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
mkdir /etc/mvpmc
mount -t cifs //192.168.0.4/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
mkdir /mnt/\\\\192.168.0.9\\Movies
mount -t cifs //192.168.0.9/Movies /mnt/\\\\192.168.0.9\\Movies -o username=guest,ro
mkdir /mnt/\\D\:\\
mount -t cifs //192.168.0.4/dvd /mnt/\\D\:\\ -o username=guest,ro
echo "Telnetd started on port 23............";
fi

killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#78
2008-06-10, 12:18 PM
Blue Racer: chmod is a linux command. What it does is allow all access (read, write, execute) to all users on all files in /etc/mvpmc.

jksmurf: Try what Blue Racer did... Change the lines:

Code:
mount -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=root,rw;
   chmod 777 /etc/mvpmc/*;

These work for my set up and others, but I bet if you use the original script with the guest account and it works i.e.:

Code:
mount -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=guest,ro;

then the chmod probably won't work.

If this works, we should probably put a note in the installation instructions in the WIKI...
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#79
2008-06-11, 12:50 AM
Dirk,

I tried the changes, restarted rec service, rebooted pch etc. The rem'd chmod line (#) still does not work Sad.

I left mine as root,rw as my original script worked with this and I have VISTA.

I wondered if it was the Content Length line ... tried but no change.
Is the ampersand supposed to be there?

Next up I'll try typing these into putty 1 by 1 ...
I did notice Blue Racer had an extra mkdir line.... I'll try that next.
I'm ignoring what appears to be the DVD/Movies lines to the other IP address 0.9

arrghhhh . Odd.

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

Member

Posts: 99
Threads: 12
Joined: May 2008
#80
2008-06-11, 12:47 PM
jksmurf: Using your IP address, this script should work. If it doesn't there's more going on here than the script...

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 -t cifs //192.168.1.10/mvpmc /etc/mvpmc/ -o username=root,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 &

Forgive me if you've already answered this, but are you running index.htm from a USB drive or a share? If you are running from a share, you'll have to create a mvpmc directory at the root of your share and put the cgi scripts in there...
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

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


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