Last Updated: 11 February 2009
On this page:
What if every software developer could gain the knowledge of long experience without having to go through the pain of repeated failure? Read my book, Code Simplicity, and find out.
This page goes over some of the basics of using Linux, and a few basics of using Fedora in particular. It's helpful to know these things before reading the Unofficial FAQ.
You can either open a terminal inside of your graphical environment, or you can switch your whole screen to a terminal.
To open a terminal in a graphical environment:
To switch your entire screen to a terminal, press Ctrl-Alt-F2. You can then switch between six different terminals, by using Alt-F2 through Alt-F6. Pressing Alt-F1 will bring you back to your graphical environment (or in earlier versions of Fedora, Alt-F7).
To become root, first you must open a terminal. Then, you type:
Note that the "-" is very important -- it sets things so that you have easy access to all the commands on the computer.
Then, you have to type in your root password. You set this when you installed Fedora.
If you're using the "open a terminal" method where you make the whole screen into a terminal, then you just need to put "root" as your "Login:" name, and then enter the correct password.
If you can't find it in the menu, you can use the Terminal, in the menu under "System Tools." Most programs are executed by their name. For example, to launch the web browser, Firefox, you can simply open a terminal and type:
You can also type only part of the command and then press Tab. So you could type:
And that would type out firefox for you. If there's more than one command that starts with fir, you'll hear a beep. Hit Tab again and you'll see a list of all the programs on your computer that start with those letters.
If you really can't figure out the name of the command, but you know the name of the package the program came in, try this to list the programs in a package:
rpm -ql packagename | grep bin
There are three ways to change your runlevel:
where number is the runlevel that you want to change to.
You will then be switched into the new runlevel.
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet
Add the number of your runlevel to the end of that line, and then press Enter. For example, to boot into text-only mode, the line would look like:
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ acpi=on rhgb quiet 3
You will then boot into the new runlevel this time only.
where number is your current default runlevel (probably 5).
You will then boot into that runlevel every time you start the computer.
(Thanks to Ilja Kogan for the inspiration to write this question, and some original text.)
To run a command right after you boot, before anybody logs in, add the command to the file /etc/rc.local:
If you want to start a program right after you log in:
From now on, when you log in, that program will be automatically started. If you want to stop that program from starting automatically, just:
The "Save Settings" check box just causes your system to always look, by default, exactly like it does right before you log out.
(Thanks to Ilja Kogan for the question suggestion and original text.)
And then enter your new root password when asked.
(Thanks to Mark Senn for suggesting that I write this question and giving me some original text.)
There are two ways to manage services in Fedora, one using the graphical tools, and one using only the command line. If you're not in a graphical environment, use the command line method.
Using the graphical tool which can be found in the menu, under System Settings - > Server Settings - > Services:
Using the command line (replace servicename with the name of the service you want):
You must be root for this to work.
service servicename status
service servicename start
service servicename stop
(Thanks to Sindre for the original text of this question!)
To boot into rescue mode, you must be able to boot the system using one of the following methods:
Once you have booted using one of the described methods, enter the following command at the installation boot prompt: