Edit rc.local file on Linux guest?
Edit rc.local file on Linux guest?
Hi, Im running Linux Mint 14.1 as a guest on Win 8.
I have a shared folder between both of them but I have to input mount command everytime I run the VM.
I was told there is a way to make the share folder mount permanent by editing rc.local file in Linux.
How do I do this?
I have a shared folder between both of them but I have to input mount command everytime I run the VM.
I was told there is a way to make the share folder mount permanent by editing rc.local file in Linux.
How do I do this?
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: Edit rc.local file on Linux guest?
Its all written, you only have to read it.
Look into the manual. There is the automount of shared folders described.
Look into the manual. There is the automount of shared folders described.
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Edit rc.local file on Linux guest?
You add the mount statement to the (guests) /etc/rc.local file by editing it as sudo.
be sure to add the statement before the "exit 0" line in the file.
Example:
be sure to add the statement before the "exit 0" line in the file.
Example:
Code: Select all
# By default this script does nothing.
mount -t vboxsf -o rw,uid=1000,gid=1000 shared /mnt/shared
exit 0
Re: Edit rc.local file on Linux guest?
Yes but what program do I use to edit the rc.local file.
Sorry for being a pain in the butt but im a total Linux n00b.
Sorry for being a pain in the butt but im a total Linux n00b.
-
stefan.becker
- Volunteer
- Posts: 7639
- Joined: 7. Jun 2007, 21:53
Re: Edit rc.local file on Linux guest?
vi, gedit, ... Whatever is installed.
I think you are missing linux know how. But that is not the topic of this forum.
I think you are missing linux know how. But that is not the topic of this forum.
German Howto (Linux): http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
Re: Edit rc.local file on Linux guest?
Of course Im missing Linux know how, im a n00b with Linux, been using Winblows my whole life since 98 lol.
Ok the Linux Im using as guest is Mint 15 MATE.
Which program does it have that I should use for editing the rc.local file?
Ok the Linux Im using as guest is Mint 15 MATE.
Which program does it have that I should use for editing the rc.local file?
Re: Edit rc.local file on Linux guest?
Ok I managed to get vi installed and opened the rc.local file and input the command parameters but when I try and save it says its read only use ! to override. Now what?
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Edit rc.local file on Linux guest?
@Poci,
How to use Linux is not in the scope of this forum. You should ask the mint forums on how to do these kind of things.
Hint: you need to use sudo to open the file in vi. It requires elevated permission to edit is.
How to use Linux is not in the scope of this forum. You should ask the mint forums on how to do these kind of things.
Hint: you need to use sudo to open the file in vi. It requires elevated permission to edit is.
Re: Edit rc.local file on Linux guest?
So how do I do that?Perryg wrote:@Poci,
How to use Linux is not in the scope of this forum. You should ask the mint forums on how to do these kind of things.
Hint: you need to use sudo to open the file in vi. It requires elevated permission to edit is.
I open terminal in rc.local folder and then what?
Sorry but Id rather ask here, I don't want to go have to register at Linux mint forums. Please help me.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Edit rc.local file on Linux guest?
Code: Select all
sudo vi /etc/rc.local