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 v
« Previous 1 … 15 16 17 18 19 … 115 Next »
Cgi scrpt for mounting another popcorn

 
  • 0 Vote(s) - 0 Average
Cgi scrpt for mounting another popcorn
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#1
2009-01-02, 04:55 AM
Hi Folks
I was wondering if someone could help me.
I am after the script to mount one popcorn to another using the mount command.
My popcorns names are PCH-Bedroom and PCH-Lounge. Both have Hard Drives
ip address 192.168.1.2 and 192.168.1.3
I want to be able to mount the video folder of either drive.
I am not having much luck.
Thanks for any help
Dave
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#2
2009-01-02, 05:26 AM
You would follow the same concepts as mounting a DVD, and you should configure GBPVR to use the mount command would be

mkdir /mnt/\\\\192.168.1.2\\share
mount -t cifs //192.168.1.2/share /mnt/\\\\192.168.1.2\\share -o username=nmt,password=1234

Video from the local drive should be automatically done so don't so anything for them.

I know you use jukeboxes too and their scripts could mess up a permanent mounts.

Martin
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#3
2009-01-02, 06:01 AM
Hi Martin
Happy New Year
This is what I have in the cgi script

#!/bin/sh
echo "Content-type: text/html";
echo "";
mkdir /mnt/\\\\192.168.1.2\\share
mount -t cifs //192.168.1.2/share /mnt/\\\\192.168.1.2\\share -o username=nmt,password=1234;
exit 0;
#!/bin/sh

When I run it I get the error
mkdir cannot make directory '/nmt/\\192.168.1.2\share':File exists

Any ideas?
Thanks for your help once again
Dave
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#4
2009-01-02, 06:16 AM
Hi Dave, Happy New Year to you too.

I think that error message is pretty clear. I suggest playing with the syntax by telnet until you get it right. Things look close.

Note that the PCH was not designed to be a NAS, so you probably won't be able to stream and play HD video or DVD's at the same time.

Martin
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#5
2009-01-03, 10:15 PM
Hi Martin
Using the mount.cgi file on the popcorn I get to see the folders on the screen

#!/bin/sh
echo "Content-type: text/html";
echo "";
cd ~
mkdir /mnt/share >/dev/NULL
echo "";
# mount PCH-BEDROOM /mnt/share -o username=nmt,password=1234;
mount -t cifs //192.168.1.2/share /mnt/share -o username=nmt,password=1234;

echo "Hit Return"
cd /mnt/share
ls -d */
exit 0;
#!/bin/sh

So the mount does work I think
When I go back to play the movie it still does not work. This is the command from the html page
<a class="playlabel" href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/PCH-BEDROOM-Confusedhare/Video/Comedy/13 Going on 30.mkv"
I dont know if anyone can help.
Maybe the share is wrong for the movie html code above?
I don't know linux but with a lot of reading I'm learning a little (more confusion than anything else)
Thanks for anyones help
Dave
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#6
2009-01-03, 10:50 PM
This isn't related to GBPVR or mvpmcx2 so don't expect any more help on scripts from me (I said I was slowing down), but I would use something close to

<a href="file:///mnt/share/Video/Comedy/13 Going on 30.mkv" vod> Dave</a>

Martin
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#7
2009-01-03, 10:53 PM
I think I have it
I forgot I changed the share name on my popcorn so thats why the movie file would not play.
href="file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/PCH-BEDROOM/Video/Comedy/13 Going on 30.mkv"
I will have to load all the html pages again but It should work.
Will let you know!
Dave
dave.t
Offline

Member

Posts: 202
Threads: 34
Joined: Jun 2008
#8
2009-01-04, 01:25 AM (This post was last modified: 2009-01-04, 01:29 AM by dave.t.)
Sorry Martin for being in the wrong area
I really do appreciate your help.
I think I finally have got it.
All I have to do is add the same note in every movie which starts the mount.htm file which then starts the mount.cgi file.
I have tried it and it works
The Mount.cgi file is this

#!/bin/sh
echo "Content-type: text/html";
echo "";
cd ~
mkdir /mnt/share >/dev/NULL
mount -t cifs //192.168.1.2/share /mnt/share -o username=nmt,password=1234
/bin/mount /mnt/share /opt/sybhttpd/localhost.drives/NETWORK_SHARE/PCH-BEDROOM/;
echo " Hit Return to continue "
exit 0;
#!/bin/sh


I will change a few more things later but for some reason it wanted the mount command and the bin/mount command.
I will try my third popcorn tonight.
I hope this code may help you or other people.
Thanks once again so much
Dave
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  "Request cannot be processed" on Popcorn Hour A-110 with mvpmcx2 SdProgrammer 2 6,421 2014-05-21, 05:29 PM
Last Post: SdProgrammer
  upgrading from pvrx2(gbpvr) to Npvr on popcorn hour stustunz 8 4,874 2011-01-19, 02:10 PM
Last Post: jksmurf
  Will an EGreat EG-M34A or a Popcorn Hour A-110 solve my fast-forwarding issues? navyblue 4 3,758 2010-07-17, 11:26 PM
Last Post: stustunz
  Refurbished Popcorn Hour A-100's are back (12/7) arkennedy75 2 2,599 2010-01-13, 03:13 AM
Last Post: 8ace
  Popcorn Hour C-200 and GB-PVR dcslack 6 5,633 2010-01-12, 08:19 PM
Last Post: stu2j
  Understanding Popcorn hour cjohns38 13 8,307 2009-10-20, 08:24 PM
Last Post: mvallevand
  MediaMVP, or popcorn hour with gbpvr or other media extenders. Andrewh 11 7,873 2009-07-20, 11:25 PM
Last Post: mvallevand
  Second hand MVPs new Popcorn Hour? oster 2 2,347 2009-06-09, 02:00 AM
Last Post: oster
  Popcorn Failures Mr. Camaro 16 7,077 2009-02-26, 02:00 AM
Last Post: BrainStormer
  Does NMT port of GBPVR work on other devices than Popcorn Hour? Paul_B 0 1,840 2008-06-18, 01:36 PM
Last Post: Paul_B

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode