It's executed at boot time, like a startup group in windows (usually kicks off in runlevel 5 so typically when kde or gnome is loaded/ing)
Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edward Kerr Sent: 28 March 2008 18:17 To: Peterborough LUG - No commercial posts Subject: Re: [Peterboro] [Fwd: Path of etc/init.d/rc.local] IT WORKS! OK, I tried it on my main machine and it works fine using /etc/rc.local I did NOT need to install smbfs because (I think!) I had the full samba installed already for sharing files. Anyway it works now - thanks for all your help Malcolm: Thanks too for your detailed ideas. I think I would have had to bring the machine to PLUG to get that to work! A bit beyond me! Thanks everyone BTW what does the /etc/rc.local actually DO? Ed Edward Kerr wrote: > I have had a bit of a play with this, some more Googling - helps to > know what to search for(!) - and I have got it to work in my VM thus: > > edit /etc/rc.local > > at the bottom of the file ABOVE exit 0 > > add: > > sleep 30 > sudo mount -t smbfs //192.168.1.18/data /mnt/mini -o > username=admin,password=admin,fmask=0777,dmask=0777 > > The trick seems to be sleep 30 > > BUT I also did: > sudo apt-get install smbfs > > So I am not sure which solved the problem > > Will try it on my main machine later and see if it works there as > well, and try to work out what actually solved it! > > > > > Ed > > > Martin Nix wrote: >> >> Best place is to put it in your /etc/rc.local file >> >> Martin >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Edward >> Kerr >> Sent: 28 March 2008 16:00 >> To: Peterborough LUG >> Subject: [Peterboro] [Fwd: Path of etc/init.d/rc.local] >> >> >> >> I cannot recall who actually gave me this idea, but it did not work! >> It was >> the gentleman who was running Ubuntu from a USB stick on a Sony Vaio >> >> I am trying to mount my NAS at boot or log-in. >> >> the command that works perfectly from the command line is: >> >> sudo mount -t smbfs //192.168.1.18/data /mnt/mini -o >> username=admin,password=admin,fmask=0777,dmask=0777 >> >> (All one line) >> >> How do I do this automatically? >> >> Do I use FSTAB, but if so how? >> >> Thanks >> >> >> >> Ed >> >> >> Mark Rogers wrote: >>> Edward Kerr wrote: >>>> Thanks for rescuing this for me. If you are able to send me that >>>> path from the hi-tech notebook, that would be great! >>> See list, but the bit I could read was: >>> /etc/init.d/rc.local >>> >> >> >> _______________________________________________ >> Peterboro mailing list >> [email protected] >> https://mailman.lug.org.uk/mailman/listinfo/peterboro >> >> > > _______________________________________________ > Peterboro mailing list > [email protected] > https://mailman.lug.org.uk/mailman/listinfo/peterboro _______________________________________________ Peterboro mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/peterboro _______________________________________________ Peterboro mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/peterboro
