How To Transfer Plugins to PC using NFS

PCD

DB Magician
Messages
632
Likes
1
#1
Plugins can be mounted on the PC using NFS, thereby saving scarce var space, particularly in the smaller Dreamboxes. This can be done with the following simple steps. These steps are to be carried out in strict sequence. I have been using this method with a DM5620 and with Windows XP Home in the pc.

(A) SET UP NFS (This and section (:cool: were originally described in the dreambox.net.au site which has now closed. I have modified for use with Gemini1.04 )

1. Download and unzip the attached TrueGridNFS server tgpnfs10.zip (Freeware)

2. Create an etc directory on your pc such as :-

C:\WINDOWS\etc

3. Create a share directory on your pc for the nfs share (This can be the same folder as for CIFS mount as described in the Idiots Guide. The simplest way to create a share folder is to rightclick on the folder - properties - sharing - select 'share this folder in the network') such as :-

C:\dreambox

Also create the following sub directory:-

C:\dreambox\Plugins

4. Create a directory and extract NFS server (tgpnfs.zip) files on your
pc. Eg:-

C:\TrueGridNFS

5. Copy the two files from this folder, rpc and exports, to the etc directory that you created in step 2.

6. Edit the exports file. Add a line at the end of the file to point to the nfs directory you created in step 3. The line should look like this:

/dreambox -path=c:\dreambox

7. Make sure the last line of the exports file is a blank line. Save the file.

8. With internet connected, open a command line prompt (start-Run-cmd or command-ok) and write the command (note that each command must be followed by return) :-

cd c:\TrueGridNFS

9. Write the following two commands to register and setup the portmap and nfs services:

portmap add
nfs add

10. Write the following commands to start the services :-

nfs stop
nfs start

11. a. To show what is available to share, write the command:-

Showmount -e

The response should be :

TrueGrid SHOWMOUNT UTILITY.

COPYRIGHT (C) BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

/dreambox (everyone)

b. To show port mapping, write the command:

rpcinfo -p

The response should be:

COPYRIGHT BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 714 mountd
100005 1 tcp 717 mountd
100003 2 udp 2049 nfs

The internet can now be disconnected.


(:cool:MOUNT NFS

1. On the dreambox navigate to communications setup.

Setup>Expert Setup>Communications Setup>Mount Setup

2. Enter your mount info:

IP: 192.168.0.1 ......................: your pc ip
NFS
Dir: dreambox .......................: your nfs share directory
LocalDir: /hdd ........................: your db directory
Options: rw
Extra: nolock,rsize=8192,wsize=8192

3. If you put an X in the Automount box the mount will be automatically
re-established at each bootup.

4. Select Mount (green).

5. If the mount is successful SAVE the mount settings.


(C) MOUNT PLUGINS

1. Ftp the contents of the plugins directory in the Dreambox

/var/tuxbox/plugins/

to the new mounted plugins directory in the PC created in step A3

dreambox/plugins

2. Verify the contents have copied correctly

3. Delete the old plugins diectory in the Dreambox folder /var/tuxbox/

4. Start a telnet session. To start telnet, open the command window as before and write the command :-

telnet 192.168.0.24 (DB ip)

5. Write when prompted :-

Username=root
Password=dreambox

At command prompt write the following commands to reate a symlink to the new plugins directory:-

cd /var/tuxbox
ln -sf /hdd/plugins

6. Test a plugin from the Dreambox as well as check in the PC share
that newly downloaded plugins appear there.

Good luck !

Regards, pcd.
 

Attachments

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#2
Hey PCD, this is magic! And you say you don't deserve your title....I am speechless, you are truely a master of the dreambox!

OK, it looks a bit complicated but I will try it anyway. Might take a few days though.Got some questions though, in the true fashion of head idiot:

Question 1)
9. The following commands register and setup the portmap and nfs
services:
portmap add
nfs add


What does that exactly mean? Do I write eaxh line in the command prompt and then enter? :confused

Question 2
10. Connect to internet. Start the services.


How? What?

Question 3

nfs start
11. Check that the services are setup correctly.

a. To show what is available to share:

Showmount -e

TrueGrid SHOWMOUNT UTILITY.

COPYRIGHT (C) BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

/dreambox (everyone)

b. To show port mapping:

rpcinfo -p

COPYRIGHT BY XYZ SCIENTIFIC APPLICATIONS, INC., 1998
ALL RIGHTS RESERVED. TrueGrid IS A TRADEMARK OF
XYZ SCIENTIFIC APPLICATIONS, INC.

program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 714 mountd
100005 1 tcp 717 mountd
100003 2 udp 2049 nfs

The internet can now be disconnected.


Please explain it a bit more, I am afraid it is a bit too vague for me..

Question 4

4. Start a telnet session. Navigate to the directory from where the old
plugins directory was removed ie /var/tuxbox

5. Create a symlink to the new plugins directory

ln -sf /hdd/plugins


I never used the Telnet thing, what program do I need to use? How?
Coming to think of it, maybe time to add this " Telnet" thing separatly to the Idiot Guide. Anybody??



In any case, if someone else tries it out please post your thoughts about it here, I am really interested to hear about it.
 

PCD

DB Magician
Messages
632
Likes
1
#3
Sorry if the writing was a bit confusing, I will edit the post to make it better when I have some time. In the meantime the answers to your questions :-

Questions 1to3

With internet connected, open a command window [start- run-cmd(for xp) or command(for win)98]. At command prompt write the following lines each ending with enter :-

cd c:\truegridnfs
portmap add
nfs add
nfs stop
nfs start
Showmount -e
rpcinfo -p

If you see the responses as shown in the earlier post, everthing working OK ! You can disconnect internet now.

Question 4

To start telnet, in the dos command window, at command prompt write

telnet 192.168.0.24 (your DB ip)

When asked for username and password, write

username=root
password=dreambox

Then write each line followed by enter :-

cd /var/tuxbox
ln -sf /hdd/plugins

exit (to end the session).

Hope it works for you. Regards, pcd.
 

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#4
OK PCD, that looks like a good start. Will try it out! Thanks for the clarifications!
 

PCD

DB Magician
Messages
632
Likes
1
#5
T_G said:
OK PCD, that looks like a good start. Will try it out! Thanks for the clarifications!
I have now attached the Truegridnfs server to my first post as it is difficult to find these days.
 

costasd3

Dreambox Emu Tamer
Messages
52
Likes
0
#6
If your box supports samba you can do the same without any nfs server installation.
With same way you can move any directory of your dreambox to the nfs or cifs share and create a link to point to that share (ln -sf /hdd/plugins)
 

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#7
costasd3 said:
If your box supports samba you can do the same without any nfs server installation.
With same way you can move any directory of your dreambox to the nfs or cifs share and create a link to point to that share (ln -sf /hdd/plugins)
Hi Costas

Can you clarify this? I saw that there is a Samba plugin available for the 5620.

How does this affect the plan PCD drew up?
 

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#8
OK, it works!!! PCD, please enter it into the idiot guide now that it is idiot approved by me!

Great stuff!!!
 

PCD

DB Magician
Messages
632
Likes
1
#9
T_G said:
OK, it works!!! PCD, please enter it into the idiot guide now that it is idiot approved by me!

Great stuff!!!
Glad to hear it is working for you ! How do I enter it into the IG ? Do I copy the text as a new message ? What about the attached file, my space for attachment is almost full. Regards.
 

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#10
PCD said:
Glad to hear it is working for you ! How do I enter it into the IG ? Do I copy the text as a new message ? What about the attached file, my space for attachment is almost full. Regards.

Yeah, just open a new posting and copy the how-to there. The attachment, just attach it again. If there is a problem with it I can sort it out later.

By the way, I played around a bit and moved the weather plugin directory also to the PC. Not that I need th eweather plug in, but it is the same as with why does a dog lick his b**** ? :D

Question: If I linked by telnet a directory to the PC, is there a way of de-linking it?
 

PCD

DB Magician
Messages
632
Likes
1
#11
T_G said:
Question: If I linked by telnet a directory to the PC, is there a way of de-linking it?
You will see the link in /var/tuxbox by ftp. Just delete it. The easiest way then is to create a new folder 'plugins' there (in the db) and reinstall the plugins (only some, keeping an eye on the var space). It is possible to move the share folder plugins to the db by ftp, whether they will then work, needs testing. Regards, pcd.
 

T_G

The Consumate Dreamer
Staff member
Messages
6,634
Likes
211
My Satellite Setup
1 GigaBlue Quad plus, 1 Dreambox 5620, MOTECK SG2100A DISEqC Motor, 120 cm noname offset dish, Humax 95 cm offset dish and a few UK digiboxes.
My Location
Somewhere where the Sauer is Kraut and the Wurst is Brat
#12
PCD said:
You will see the link in /var/tuxbox by ftp. Just delete it. The easiest way then is to create a new folder 'plugins' there (in the db) and reinstall the plugins (only some, keeping an eye on the var space). It is possible to move the share folder plugins to the db by ftp, whether they will then work, needs testing. Regards, pcd.

Hmmm
When I deleted the Plugins directory in var it actually drleted all the plugins on the PC Humping There must be some telnet comand to disable the link...

Unless I am completely wrong, but it done just that...all plugins gone.. :D

Well, if you don't try you don't break, that's what I say!
 

PCD

DB Magician
Messages
632
Likes
1
#13
I suppose it helps if you 'unmount' first !

I don't automount so I didn't think about it, sorry !

AFAIK there is no busybox command to unlink. The folder plugin can be brought back to /var/tuxbox by 'mv' but ftp is simpler. Regards.
 
Messages
1
Likes
0
My Satellite Setup
DM500 Gemini
My Location
Bahrain
#14
Hi,

I'm new here in this forums.
I have tried this but when starting nfs service after a while it turn off automatically and display reporting widow to report about the problem, Please can any one help me ?


Thanks in advance
Regards
 
Top