分类: LINUX
2011-12-01 17:42:11
*Note: In the following tutorial I am using the command line to install software. Of course you can use the software center to install those applications.
1. Configure sudo
* Modifying sudoers file
Normally if you want to run a command which requires root privileges you first have to type ‘su -’, type your root password and then type the command. However you can bypass this by using the ‘sudo’ command. But first you have to configure it like this
Now go below the line:
press a, and type the following
where username is the username you use to login. Next press Escape. Now, if you want to be prompted for your root password each time you use the sudo command go to this line:
and with your cursor pointing on # press x If you don’t want to be prompted for your root password each time you use the sudo command go to this line:
and with your cursor pointing on # press x Next, press :wq to save and exit. (type the : as well) * Adding your user to the wheel groupJust type: su -c ‘gpasswd -a username wheel’
* Testing sudo
To test if you have done it correctly as a simple user type:
If everything is working properly the command should return the word ‘root’.
2. Configure yumFedora uses YUM to install and update its software and automatically resolve any dependencies needed.
Fedora software repositories don’t include support for MP3, DVD and Video playback/recording because of patent licenses. For this reason you have to install that software from third party repositories. But don’t worry, this is pretty easy! ;)
* RPMFusion repository
Now we are going to install the RPM Fusion Repository. RPM Fusion is a merger of the Dribble, Freshrpms and RPM Fusion package repositories for Fedora and Red Hat Enterprise Linux. A variety of applications is included in that repository such as codecs for mp3 and unencrypted DVDs, multimedia applications such as mplayer, VLX and xine and the closed source Nvidia and ATi video drivers! RPM Fusion has two main repositories: one named “free” for Open Source Software (as defined by the Fedora Licensing Guidelines) which can’t be included in Fedora because it might be patent encumbered in the USone named “nonfree” for non-free software, that is everything else which can’t be in free; this includes software with public available source-code that has “no commercial use”-like restrictions.
For the rest of this guide I will assume that you have installed and enabled the RPM Fusion Repository. To install it type:
* Google repository
First we must install the key
Fedora 32bit
Add the following to a file called google.repo in /etc/yum.repos.d/:
Fedora 64bit
Add the following to a file called google.repo in /etc/yum.repos.d/:
**Note: To install the following packages you must have the RPM Fusion Repository enabled as described in Install RPM Fusion Repository .
**Note: The following information was obtained from
* Installing nVidia driver
Fedora 16 uses the open source nouveau driver for nvidia cards. This might be enough for you depending on your needs. Kernel Mode Setting (KMS) is now enabled by default on NVIDIA systems as well, through the Nouveau driver. However if you want to have 3D support in Fedora 12 you must install the binary nvidia drivers. Just type:
For GeForce 6, 7, 8, 9, 200, 300, 400 & 500 series cards
If you use a PAE kernel
Reboot
For GeForce FX cards
If you use a PAE kernel
Make sure nouveau is removed from initramfs.
Add selinux policy to allow gdm and gnome shell to work.
Reboot
* Installing ATi driver
Please note that Gnome Shell doesn’t work with fglrx.
4. Install Microsoft fontsFedora uses Liberation and DejaVu fonts which are installed by default and look pretty smooth and nice, plus they are open source. If you insist on using the Microsoft fonts you can download and install the msttcorefonts rpm like this.
I built it myself using the msttcore-fonts-2.0-3.spec from Fedora-devel mailing list. It includes Arial, Andale, Comic Sans, Courier New, Georgia, Impact, Tahoma, Times, Trebuchet MS, Verdana and Webdings fonts. The procedure just in case you want to build it yourself is the following.
Now you can change your fonts through System -> Preferences -> Appearance -> Fonts
5. MP3 and Audio players**Note: To install many of the following packages you must .
* Rhythmbox
To make all mp3 files open by default with Rhytmbox right click on an
mp3 file and select ‘Open with Other Application…’. Click on Rhytmbox
Music Player and you’re done.
To add mp3 and other audio support type:
* Amarok
* Audacious
Audacious is another audio player similar to old winamp 2.x. To install it type:
**Note: To install many of the following packages you must have the RPM Fusion Repository enabled as described here . If you have most probably you will prompted to search automatically for the needed codecs. They will automatically installed. As simple as that!
* DVD playback
In order to play DVDs you must install the appropriate codecs.
Those files are enough for playing your non encrypted DVDs. However if you want to decrypt an encrypted DVD you need libdvdcss which isn’t included in RPM Fusion because of legal issues in some countries such as the US. As mentioned in RPM Fusion . Opinions between the members of RPM Ffusion differ on the legality of libdvdcss, however no one is ready to vouch for it resuming the legal responsibilities. Therefore libdvdcss is being dropped. See also the comments on legal issues in the link above.
**Note: Instead you can use ATrpms for installing libdvdcss.
Add the following to a file called atprpms.repo in /etc/yum.repos.d/
Afterwards install the package like this.
* Video files playback
When you will try to open a video file with Totem media player it will ask you to search for the necessary codecs. They will be automatically installed! If you have previously set up mp3 playback additional packages would have been installed as dependencies. These packages include video codecs such as xvidcore, ffmpeg and other.
To check some of them type: su -c ‘yum install ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatroska xvidcore’
* Totem
Fedora 16 has installed Totem Movie Player. If you want to play DVD files also with totem type:
* Mplayer/SMPlayer
I prefer mplayer and smplayer (mplayer’s GUI) for video playback. It supports almost any video type, external subtitles as well as DVD playback as long as you have the needed codecs installed as shown previously.
Open smplayer from Applications > Sound & Video > SMPlayer
* VLC
VLC (Video Lan Client) supports almost any video type without the need of installing external codecs.
* kaffeine
kaffeine is another KDE media player that uses the xine engine.
* RealPlayer
You can download RealPlayer rpm from here . Just choose to open it with the Package Installer. If this fails to install it manually open a terminal, go the directory you downloaded it and type:
* Avidemux
Avidemux is a very good video editor. Install it like this:
It will be listed in Applications > Sound & Video > Avidemux Video Editor.
7. Flash PluginYou can use the following commands to install flash player for both 32bit and 64bit.
Restart Mozilla Firefox or Chrome and you should have flash plugin support. However consider using HTML5 at least for watching YouTube videos!
8. JavaFedora 16 comes with java from the OpenJDK project. It is very easy to install it through yum (if it hasn’t already been installed) and it works just fine. Try it! If you still want to install the Oracle (ex SUN) Java go a few lines below.
* OpenJDK
* Oracle’s JAVA JRE
First go to the and download the latest JRE (Java SE 7 Update 1 at the moment).
Fedora 32bit
Select Linux as Platform and download the jre-7u1-linux-i586.rpm file.
Now open a terminal and type:
Fedora 64bit
Select Linux x64 as Platform and download the jre-7u1-linux-x64.rpm file.
Now open a terminal and type:
Now to setup java runtime perform the following.
Setup the Mozilla/Firefox browser plugin.
For 32bit.
For 64bit
* Oracle’s JAVA JDK
First go to the and download the latest JDK (Java Platform 7 Update 1 at the moment).
Fedora 32bit
Select Linux as Platform and download the jdk-7u1-linux-i586.rpm file.
Now open a terminal and type:
Fedora 64bit
Select Linux x64 as Platform and download the jdk-7u1-linux-x64.bin file.
Now open a terminal and type:
Now run java -version as a user. You should see java version “1.7.0_1″
9. Useful Applications* Google Chrome browser
First you must enable the Google repository for Fedora
Next install Chrome like this:
* Transmission bittorrent client
Transmission is a free, lightweight BitTorrent client. It features a simple, intuitive interface on top on an efficient, cross-platform back-end.
* Unrar
The unrar utility is a freeware program for extracting, testing and viewing the contents of archives created with the RAR archiver version 1.50 and above.
* Filezilla
FileZilla is a FTP, FTPS and SFTP client for Linux with a lot of features.
* Gnome Shell tweaks
Tweak the settings, interface, fonts, themes etc.
su -c 'yum install gnome-tweak-tool'