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
#81
2008-06-11, 10:37 PM (This post was last modified: 2008-06-12, 05:11 AM by jksmurf.)
dirkomatic Wrote:jksmurf: Using your IP address, this script should work. If it doesn't there's more going on here than the script......
:confused: Nope ... I copied and pasted, rebooted the PCH, nope. I then copied back the orig (OLD) scripts I pasted above, ran telnet (from the new index.html button), which ran script.cgi and started telnet on port 23, then ran GBPVR button which ran gbpvr.cgi perfectly. Using Power Button, File Button on the remote made it exit correcttly and I could Browse Files again.

I'm sorry, I really don't know what is at work here with the new script ... :confused:

dirkomatic Wrote: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...
That's OK, I'm just frustrated :-) It's a share and the structure is as attached. I think I asked about a million posts back what the root was exactly, so do let me know if I have this right (it should be OK as it works with the old scripts). The folder that is shared is mvpmc. The mvpmc FILE in teh dir is the Hauppauge MVP equivalent of mvpmcx2. I took it out for testing as I thought it might be having fun with the mkdir command, but no joy !

Any other thoughts :o?

k.

btw the png's are in the mvppch folder. I edited Index.htm to reflect this and the button's show nicely.
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
#82
2008-06-12, 12:18 AM
Are you editing the scripts with notepad?

It appears that your .cgi extension is associated with notepad. If so, that is most likely the culprit. notepad uses Windows line breaks which equates to a Ctrl+M in Linux. Use something like Textpad or Editpad...
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#83
2008-06-12, 12:56 AM
dirkomatic Wrote:Are you editing the scripts with notepad?

It appears that your .cgi extension is associated with notepad. If so, that is most likely the culprit. notepad uses Windows line breaks which equates to a Ctrl+M in Linux. Use something like Textpad or Editpad...

Hiya Dirk, nope, sorry, but that's an EditPad Lite symbol, honest...it's actually green but does not show up well ...

I've been using editpad since I made the first scripts a couple of months ago that didn't work, and mvallevand said "use Editpad"...then those (above) worked.

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
#84
2008-06-12, 12:54 PM
Sorry, they looked blue on my other pc...

Not the path if you are just replacing the new script with the old one and it works...

Hmm... I would try executing everything one by one via telnet and see what happens.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#85
2008-06-12, 08:45 PM
I'd just like to thank you guys for this. I've just shoved the stuff from the wiki onto my usb stick and it works a treat. Server goes to sleep as well now that there isn't a permanent connection.

Thanks.

Martin

(now to find the idiots guide to playing ISOs Smile
JonnyCam
Offline

Posting Freak

Posts: 1,153
Threads: 87
Joined: Feb 2006
#86
2008-06-12, 11:42 PM
Ahh, Just lost my nicely typed set of questions

I am so lost in this thread!

I would like to set this up so that, running from my share, the page pops up at power-on of the PCH, and I select GBPVR, which checks if Telnet is enabled, and if not, enables it, if so - runs gbpvr. (or after a 10 or 15 sec timeout automatically runs gbpvr, if possible)

Will the home button / icon take me back to the syabas interface? (from this webpage / menu)

How do I have to setup my share for to work. I currently run the client on the PCH using my gbpvr folder as the MVPMCX2 share, and this is working fine.

Casn someone give me the scripts I need (obviously I will have to edit these for my share IP/folder) so that this can happen. Do I have to do any special setup on the share?

Sorry if these questions have been asked before, I got lost in all of the code flying around this thread.

Cheers
"Shut up brain, or I'll stab you with a Q-Tip!"

--= Win7, C2D 2.93 GHz, ASUS 9400GT Silent, 2GB Ram, Few HDD's, 3TB unRAID server, Samsung 50" 1080p Plasma via HDMI, 40" 1080i LCD via VGA =-- * PVR2000 Analog PCI / Avermedia DVB-S PCI / Hauppauge 2200 DVB/Analog * PCH GBPVR Client * *BD-E6500 w/ NPVR client*
dirkomatic
Offline

Member

Posts: 99
Threads: 12
Joined: May 2008
#87
2008-06-12, 11:56 PM
JonnyCam Wrote:Ahh, Just lost my nicely typed set of questions

I am so lost in this thread!

I would like to set this up so that, running from my share, the page pops up at power-on of the PCH, and I select GBPVR, which checks if Telnet is enabled, and if not, enables it, if so - runs gbpvr. (or after a 10 or 15 sec timeout automatically runs gbpvr, if possible)

Will the home button / icon take me back to the syabas interface? (from this webpage / menu)

How do I have to setup my share for to work. I currently run the client on the PCH using my gbpvr folder as the MVPMCX2 share, and this is working fine.

Casn someone give me the scripts I need (obviously I will have to edit these for my share IP/folder) so that this can happen. Do I have to do any special setup on the share?

Sorry if these questions have been asked before, I got lost in all of the code flying around this thread.

Cheers

No problem,

I'm going to get a set of instructions together and post them on the wiki either tonight or tomorrow... Sorry I can't get to it sooner.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#88
2008-06-13, 11:51 AM (This post was last modified: 2008-06-13, 11:55 AM by jksmurf.)
dirkomatic Wrote:Hmm... I would try executing everything one by one via telnet and see what happens.

Well I ran each line in gbpvr.cgi, but I had to enable telnet using the OLD script.cgi before I could run putty from the server. Here's a line by line run and a Putty output. See anything there that I could work on? I'm not sure what the "mkdir: cannot create directory '/etc/mvpmc': File exists" error means exactly... but I think it is the "behind the scenes" error you get when you try and run telnet again (using Martin's original scripts) i.e. it's the error which "already connnected" part of the script should bypass?

k.

Code:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2008.06.13 19:37:00 =~=~=~=~=~=~=~=~=~=~=~=

BusyBox v1.5.0 (2008-03-24 22:55:24 MYT) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # #!/bin/sh
/ #
/ # echo "Content-Length: 80";
Content-Length: 80
/ #
/ # echo "Content-type: text/html";
Content-type: text/html
/ #
/ # echo "";
/ #
/ # cd ~
/ #
/ # mkdir /etc/mvpmc >/dev/null
mkdir: cannot create directory '/etc/mvpmc': File exists
/ #
/ # 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
Already Connected!
/ #
/ # killall gaya
/ #
/ # sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &
/ #
/ # exit
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
#89
2008-06-13, 01:22 PM
It ran the "Already connected" part of the code because the line with the "if" is commented out... "#" comments out the entire line except the first with the "#!", that needs to be there.

Basically, if you run the old script, it will skip everything except the last lines from "killall gaya..." on and those are commented out.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#90
2008-06-13, 09:37 PM (This post was last modified: 2008-06-13, 10:08 PM by pBS.)
need to comment out the 'if', 'then', 'else' and 'fi' at bottom too...
then it should run normally..[it's ok if they have errors,it'll continue normally anyways]

you get the can't connect msg cuz to load telnet, you already made that dir and mapped it to that drive...so normally don't run telnet from another drive if you wish to use this script...setup a telnet on this drive...Smile
[that way dir mappings won't be a conflict]

but if you reboot and run this script first it should be ok...
[after commmenting out those lines]

oh, that's putty output....yea, can't restart telnet from a script...
and can't tel if it'll run from script as it's already running...Big Grin

so is it not starting telnet before mvpmcx2?
might wanna play with the username [try guest] and rw/ro at end...maybe that's what's messing up..

just remember share scripts are different than drive scripts..[connect line]
drive scripts you can edit easily for other drives, [replace USB_DRIVE_A-1] but share scripts are slightly different connect string..[can't just replace USB_DRIVE_A-1 in drive script with xxx.xxx.xxx.xxx and have it work]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (12): « Previous 1 … 7 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,403 2010-11-28, 03:02 AM
Last Post: mvallevand
  Pictures off a network drive Jaggy 15 4,417 2010-10-26, 11:27 PM
Last Post: mvallevand
  Running GBPVR & NPVR Blue Racer 4 2,289 2010-10-01, 09:51 PM
Last Post: mvallevand
  Media from a network drive Jaggy 3 1,866 2010-03-02, 06:30 AM
Last Post: mvallevand
  Any advantage to adding a hard drive? Elmo Putney 4 1,999 2009-09-24, 08:31 PM
Last Post: martint123
  telnet.html EditMe help -Oz- 4 2,582 2009-05-15, 09:32 PM
Last Post: -Oz-
  Do I need a hard drive in the PCH to run MVPMCX2? Bergling 11 4,444 2008-10-31, 04:39 PM
Last Post: neo541
  reboot using telnet steveum 6 6,687 2008-10-17, 01:18 PM
Last Post: martint123
  Problems with Telnet during installation althon 21 6,740 2008-08-10, 04:41 PM
Last Post: althon
  auto-load html page from/after script pBS 2 3,212 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