Sunday, August 29, 2010

How to install RPM Fusion

RPM Fusion is a repository that has packages that Fedora does not ship in there own repository.

To install RPM Fusion enter this into a terminal:

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

Type in the root password and hit enter.  Now RPM Fusion will install.

Now your done,  RPM Fusion is installed

How to enable Restart X server shortcut (Ctrl+Alt+Backspace)

Back in Fedora 11 they disabled the Ctrl+Alt+Backspace shortcut that restarted the X server.  Some people liked this because they would always hit it by accident and that would restart the X server and it would mess things up if they were in the middle of something.  But some other people didn't like this because they used Ctrl+Alt+Backspace to restart X when there programs froze.

So if you are from the first group of people then your ok,
But if you are from the second then this is how to enable it.

First go to System > Preferences > Keyboard
Then click on the "Layouts" tab
Click on "Options"
And this window will appear:




















Click on the drop down arrow of "Key sequence to kill the X server"
And check the checkbox "Control + Alt + Backspace"

And there you go now when you press Ctrl+Alt+Backspace it will restart the X server

Saturday, August 28, 2010

How to setup sudo

To enable sudo for your user you need to edit the sudoers file and add your user to the the wheel group.
First lets edit the sudoers file.
Open a terminal and type visudo then hit enter.
Now scroll down until you get to the part of the file that looks like this:

root    ALL=(ALL)       ALL

now right under
root    ALL=(ALL)       ALL
you are going to put
your-user-name    ALL=(ALL)       ALL
After you do that the file should look like this:

root    ALL=(ALL)       ALL
your-user-name    ALL=(ALL)       ALL


If you dont want to have to type in your password when you use sudo remove the "#" from in front of:

# %wheel ALL=(ALL)       NOPASSWD: ALL
So it looks like this:
 %wheel ALL=(ALL)       NOPASSWD: ALL

Now to exit and save the sudoers file type :wq! and hit enter.

Now to add you user to the wheel group enter:
usermod -a -G wheel your-user-name

There you go sudo is now set up