How to change brightness on Linux desktop through the command line?

Fedora Linux help: How to add a command in /etc/rc.local file?

  • I am very new in Linux. I installed fedora in Virtual Box with host windows xp. I want to share file between host and guest. Someone suggest me to run the command in fedora #sudo mount -t vboxsf -o uid=1000,gid=1000 F_DRIVE /home/menjar/Desktop/xp where F_DRIVE is the F drive in xp I am sharing and 'xp' is the folder in fedora where I want to mount. Now It works but when I reboot, I can't see the contents of xp folder anymore. After goggling I find a suggestion that say to add the command in /etc/rc.local file. I am very new in linux so I want to know how do I do this. I have tried to do this by using vi editor by running #vi /etc/rc.local and I add the line sudo mount -t vboxsf -o uid=1000,gid=1000 F_DRIVE /home/menjar/Desktop/xp where F_DRIVE and save by pressing Esc and then :wq but after doing I couldn't see any result. It still doesn't work. So please explain how do I do this step by step ( I am very new and don't know anything about Linux)? Am I doing something wrong with the command? should I have to place a '#" in front of the command while placing the line in /etc/rc.local? Please explain how do I solve it in detail.. I am waiting for your answer.

  • Answer:

    i don't understand what you're doing. but maybe i can still help. when you edit /etc/rc.local you'll probably want to "sudo /etc/rc.local" because you probably don't have permission to edit the file. if you see #s in rc.local, chances are that they are comments, so having #sudo mount -t vboxsf -o uid=1000,gid=1000 F_DRIVE /home/menjar/Desktop/xp has the command you're trying to add commented out, that is to say ignored. actually, i just now looked at my /etc/rc.local and the #s do indeed start comments. didn't check the permissions though. i don't use vi because i'd rather kill myself than use vi, so i don't know what it does when you try to save a file when you don't have permission. probably it just stares at you blankly because vi is such an awful piece of software. ;)

menjar.ali at Answerbag.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.