nfs server client autostart

Asked by Gerlof Brinck

Dear sir/madam,

My computers (all Linux) are with the startup automatic connected with my nfsserver. works oke.

But I have forgotten how to set up the autostart. As far as I can remember I have to write the line:

sudo mount 192.168.178.29:/home /media/nfsserver

in a small file/program. But wich one?

I hope someone can help me out.

Many thanks beforehand

Kid Regards,

Gerlof.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

If you run:

sudo touch /etc/rc.local
sudo chmod +x /etc/rc.local
echo "exit 0" | sudo tee /etc/rc.local
sudo gedit /etc/rc.local

Above the "exit 0" line add your command, it will run at boot and complete the mount for you

Revision history for this message
Gerlof Brinck (brinck) said :
#2

THANKS!!

Revision history for this message
Gerlof Brinck (brinck) said :
#3

Thanks actionparsnip, that solved my question.