Installing VirtualBox on Fedora 15 (Lovelock) Host

June 7, 2011

Update 16 Nov 2011

Hi, check out my new post Install VirtualBox on Fedora 16 Host. The procedure is very much the same, you can use the instructions below for Fedora 15 and Fedora 16.

Installing VirtualBox on Fedora 15 Host System Using YUM

$sudo cp virtualbox.repo /etc/yum.repos.d/
  • Install dkms using the command
$sudo yum install dkms
  • Unlike the previous practice, now you need to specify the version number in order to install VirtualBox. This allows user flexibility to install the previous version of VirtualBox instead of the latest version. The following versions are available:
  • virtualbox-4.0 (latest)
  • virtualbox-3.2
  • virtualbox-3.1
  • virtualbox-3.0
  • virtualbox-2.2
  • virtualbox-2.1
  • virtualbox-2.0
  • To install the latest version of VirtualBox use the command
$sudo yum install virtualbox-4.0

Automation

An installation script was created to automatically configures the repository file and install VirtualBox 4.0. If you would like to use earlier version of VirtualBox, please modify the script yourself. You can download the script at FC15-vbox-install-noarch

***End***

Advertisements

Software Application Installation and Configuration of Fedora 15 (Lovelock)

June 6, 2011

Update 14 Nov 2011

Please check my latest post

Fedora Software Installation and Configuration Guide (Fedora 15/16)

Updating Fedora 15 (64-bit)

  • Updating Fedora is as easy as Windows. After you start using Fedora for a while, you will notice a message indicating that you need to update the OS.
  • Follow the direction in the message will bring you to the update manager. Follow the instruction in the update manager.
  • You can also use command yum to update the system. Open a terminal window, type
$sudo yum update
  • You need to reboot the system if you have installed new kernel.

Installation and Configuration of Commonly used Applications (64-bit)

  • Most of the popular applications are preloaded with Fedora; you might need to add some plug-ins.
  • For additional software you can install using Activities >> Applications >> System Tools >> Add/Remove Software. The utility will search for the application you intended, download it and install it automatically.
  • You can also use command line (yum) to install the software packages.
  • Fedora uses yum to install and update its software. When connected to the internet it will automatically determine all application dependencies.

Configuring Yum

  • Yum automatically connect to the official mirror sites of Fedora to retrieve latest software packages.
  • You might want to add additional repositories that provide additional software. Two additional sites are recommended, one is rpmfusion.org, the other is livna.org
  • To setup repos from rpmfusion:
$sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/
rpmfusion-free-release-stable.noarch.rpm
$sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/
rpmfusion-nonfree-release-stable.noarch.rpm
  • Setting up repos from livna.org
$sudo rpm -ivh http://rpm.livna.org/livna-release.rpm
$sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna

Using Yum

  • To install software using yum just use the command:
$sudo yum install <software packages>
  • To find out details about the software packages use the command:
$sudo yum info <keyword or software packages>
  • You can also perform group install using
$sudo yum groupinstall <group software packages>

Web Browsing

Productivity Suite

  • We don’t use OpenOffice now. The existing developers have start a new project called LibreOffice.
  • However, LibreOffice is not included in the “Desktop Edition” (LiveCD). To install it go to Activities >> Applications >> System Tools  >> Add/Remove Software.
  • Type libreoffice in the search box and click find. With the list given, select the package you want.
  • You also can use command line as follows:
$sudo yum install -y libreoffice-based
$sudo yum install -y libreoffice-writer
$sudo yum install -y libreoffice-calc
$sudo yum install -y libreoffice-draw
$sudo yum install -y libreoffice-impress
$sudo yum install -y libreoffice-math

Utilities

There are some useful utilities such as:
  • Wget is a utility that allows you to download http files from the web using command line. This is a useful tools for automating download.
$sudo yum install -y wget
  • Gparted is a utility that manages disk partition. You can resize your disk partition on the fly. To install this software:
$sudo yum install -y gparted
  • Gnochm is a chm viewer. The command to install this utilities is:
$sudo yum install -y gnochm
  • Unrar is a utility to unpack rar compressed folders. Issue the command:
$sudo yum install -y unrar
  • GCC is GNU C/C++ compiler. Kernel-devel is the kernel headers required to compile kernel files. Both files are required to rebuilt kernel or install drivers.
$sudo yum install -y gcc kernel-devel

PDF Document

  • Fedora has default PDF reader so no installation is required.
  • Fedora has built-in PDF writer; here is the direction of how to use it.
  • For Firefox, select Print >> Print to File, make sure you specify the document type as PDF and also specify the filename and location of the file.
  • For LibreOffice, use ‘Export to PDF’ function.
  • You will need a PDF writer if you intend to use it on any other application that do not have print to PDF or export to PDF capabilities. In this case, you need to install cups-pdf.
  • The command line to install is $sudo yum install -y cups-pdf. PDF writer usually tie to the print function. You just need to use the print function and select PDF writer as the printer. Please search the web if you encounter any problem.

Playing Multimedia Files

  • To play the most common multimedia formats, including mp3, mpeg, rm, QuickTime, WMA and WMV, you need to install additional codec.
  • I would recommend VLC Media Player. When you install VLC Media Player, it includes all the necessary codec.
  • Installing VLC Media Player
$sudo yum install -y vlc
  • To set VLC as the default player, right-click any media file. Select “Properties” and go to “Open With” tab. Click “Show other Application”. Highlight the application you want to set and click “Set as Default”

Installing DvD Playing Applications

  • Playing DVD is more complicated because it involves restricted format. In addition to media player,  you need to install CSS Packages.
  • To check your region setting you need the package “regionset”.
$sudo yum install -y regionset
  • After installation, use the command $regionset. Your region setting will be shown.
  • To install the CSS packages use the command:
$sudo yum install -y libdvdcss

DVD Ripping

  • In the event you need to rip or backup your DVD; you can install various DVD ripper.
  • In this section we will install k9copy
$sudo yum install -y k9copy
  • Please search for k9copy on direction of usage.

Additional Applications

For additional applications, please check my other post:

Automation (For Advanced User)

As I am repeating this process whenever I need to install Fedora in a new system. I’ve created a script to automate the installation.

  • You can download the script FC15-software-install-noarch.
  • After downloading the script, please read the script carefully and hash (#) out any installation option or command that you do not want to use. Any command with a hash (#) in front will not be executed.
  • My script also includes installation of Dropbox and Google Chrome.
  • You need to change the permission to executable by using the command:
$sudo chmod +x FC15-software-install-noarch
  • To run the script use the command:
$sudo ./FC15-software-install-noarch

***End***


Installation of Fedora 15 using Fedora Desktop Edition (Live CD)

June 5, 2011

This installation guide is provided for those who would like to install Fedora 15 (code name: Lovelock) on a PC.

Fedora 15 (64-bit) was installed on a Core 2 Dual PC with 4GB of memory using the media “Fedora 15 Desktop Edition (64-bit)”.

Getting Fedora 15

  • You can download the latest Fedora distribution at http://fedoraproject.org/en/get-fedora-options
  • Select the 64-bit version and download the ISO. The file name is ‘Fedora-15-x86_64-Live-Desktop.iso’.
  • Proceed to burn Fedora Live Desktop into a CD. You can search the web on how to burn an ISO image to a CD.

Hardware Requirement 

Ensure that your hardware meets the minimum requirement:

  • Recommended for text-mode: 200 MHz Pentium Pro or better
  • Recommended for graphical: 400 MHz Pentium Pro or better
  • Minimum RAM for text-mode: 256MB
  • Minimum RAM for graphical: 512MB
  • Recommended RAM for graphical: >512MB
  • The hard disk space required depends on what application you choose to install. For Desktop Edition installation, you will require 2-3GB of hard disk space. You might need up to 6GB of disk space after updates and installation of additional applications.
  • It is recommended you have a hard disk space of 9GB to 15GB for the operating system and applications. You might need additional hard disk space for user data.

Getting Help

Important Features and Changes

  • The most obvious changes to Fedora 15 is the inclusion of GNOME 3. This is an entirely new desktop interface.
  • Other system enhancement includes replacing SysVinit and Upstart with systemd, inclusion of /run directory, provides a dynamic firewall management and improving virtualization support.

Installing Fedora 15

  • You can try out Fedora 15 without making any changes to the hard disk by booting up and running the Desktop Edition.
  • The new interface from GNOME 3 looks like this:
  • To install the operating system to the hard disk. Go to Activities and on the sidebar (left hand side), there is a short cut icon “Install to Hard Drive”. Alternatively, you could select Applications >> System Tools and select “Install to Hard Drive”.
  • The installation program starts with the screen below. You are required to select the type of keyboard
  • The next screen allows you to choose the disk storage system. Choose “Basic Storage System”.
  • Next, you are required to enter the host name of your computer. You need to supply the host name using the internet format localhost@domain.com. Local host is the name of the computer; domain name is use when you have an Internet domain. For personal use and home use, you can use the defaults.
  • Select your time zone
  • Enter the root password
  • The next stage, is to designate the drive partition where Fedora is to be installed.
  • If you have only one primary drive, you should let the system configure the drive by selecting the defaults.
  • If you are familiar with the Linux partition, you could customize your drive system.
  • In addition, you have the option to encrypt the whole hard disk or a single partition.

Fedora Partition and Customization

By default, Fedora create a 500MB boot partition (/boot), then it allocates the rest of free space to LVM Group. Under LVM Group, besides few gigabytes of hard disk space is allocated to swap file, the rest of disk space is allocated between root partition (/) and home partition (/home).

  • Standard Partition – boot partition (/boot) 500MB
  • LVM Group
  • root partition (/)
  • home or user data partition (/home)
  • swap file (usually equivalent to your memory size)

LVM (Logical Volume Manager) is a partition management technology that allows multiple physical hard disk to be logically bind into a single volume. This is beneficial especially in a server environment or if you have huge data that span into multiple hard disk

At a minimum, you need to have a boot partition, a root partition and a swap file. The following is my custom configuration. Please note that I use standard partition instead of LVM technology.

  • Standard Partition – boot partition (/boot) 500MB
  • Standard Partition – root partition (/) the rest of hard disk space
  • Standard Partition – swap file (usually equivalent to your memory size)

Using Default: Replace Existing Linux System

  • If you let the system configures the hard disk for you, you can select “Replace Existing Linux System”. If you want to know what how the system is going to configure your hard disk, check “Review and modifying partition layout” and click next.

  • If you have a system with multiple hard disk, you have to choose which hard disk do you want your operating system and boot loader to be installed.
  • This screen shows you how the system configures the hard disk. Those partitions with a tick are the ones the system will change.

Customize and Create Partition

  • The following section is for customizing disk partition, you can skip this section of you are letting the system configures the disk partition for you.
  • Select “Create Custom Layout” from the previous screen.
  • If you have multiple hard disk in the system, you will not be asked which hard disk to installed the operating system or boot loader. The boot loader will automatically installed in sda (the first disk in your SATA system). To select the target device to install the operating system and boot loader, you need to select “Replace Existing Linux System, configure that target device for OS and boot loader. Click “Back” button and select “Create custom Layout”.
  • The following screen show all your hard disk and partition information. You need to understand how Linux named the hard disk and partitions.
  • Depends on the position in the SATA channel, your physical hard disk is labelled as sda, sdb, sdc…and so on. The system will display the hard disk model such as WD4000AAKS with the label (sda or sdb..). It would be a challenge if you have multiple hard disks of same make and model in the same system. You need to identify which physical hard disk belongs to sda or sdb etc. Within a physical drive such as sda, the partitions are labelled sda1, sda2, sda3…etc.
  • Select “Create” to create new partition. You need to specified if it is a LVM volume or standard partition.

  • Then you need to configure the partition by selecting the mount point, physical disk and the size of partition as shown below:
  • Note: Please select”ext 4″ for file system when configuring the boot partition and root partition. The file system for swap file is swap.
  • The partition summary shows how the hard disk is partitioned. Please note that at this point nothing has been written yet, you can make changes.

  • Finally you need to confirm the settings and make the changes

Configuring Boot Loader

  • After the partition is set up, you need to configures the boot loader.

  • You can also choose to list operating system from other partitions or remove the listing. I choose to remove the lisitng of other operating system.

Special Note: Usually, I place the boot loader on the same physical disk that I’ve installed the operating system. If you’ve use the option “Replace Existing Linux System”, you have the choice to specify which hard disk to configures the boot loader. If you’ve use the option “Create Custom Layout”, the boot loader is automatically install in sda. If you want to change from sda to sdc, you need to use the option  “Replace Existing Linux System” and click back and choose “Create Custom Layout” again.

Completion of Installation

  • After configuration of the disk system, the installation program proceeds with the installation of the operating system by copying live image to the hard disk.
  • Once the operating system is copied to the hard disk, you will be asked to exit the operating system and reboot.
  • At this stage the installation is 90% complete. However, you still need to complete the final phase of installation after reboot.

Post Installation Setup

  • First you need to accept the license agreement.
  • Then you need to register a user. Check the box “Add to administrative group”. This allows you to perform sudo command.
  • Next, configures the system date and time
  • I prefer to synchronize the system time with the Internet.
  • And finally you are asked to send hardware profile.
  • The installation is completed when the system prompt the user for login ID.
  • Once is system is up and running, you need to update the operating system IMMEDIATELY and  reboots the virtual machine as new kernels are updated on the system.
  • Please note that the system is mute by default, you need to clear the mute check box before hearing sound.

After the Installation

  • After the installation you need to update the system by selecting Applications >> System Tools >> Software Updates.
  • Alternatively, you can use terminal window and run the command $sudo yum update.
  • Please check the post on Application Installation and Configuration of Fedora 15 (Lovelock) on how to install various useful applications.
  • You could also check the following post for various types of configuration:

*** End ***


Which Linux Distribution to Install?

December 14, 2009

Deciding which Linux distribution to install is more of a personal choice. You should install a few of them to see which version do you like. However, there are some characteristics that could identify among the different distribution. The most popular Linux distribution is Fedora and Ubuntu.

Ubuntu

If you are new in Linux, Ubuntu is the only choice. Ubuntu is design for people who are migrating from Windows or Mac. It is novice friendly and easy to use. Its documentation is very rich and clear. Ubuntu also has a very large support community. Furthermore, Ubuntu focus its feature enhancement more on the desktop experience. Compare to Fedora, Ubuntu is more concern of stability and therefore it won’t adopt any new technology that is too new and unstable.

If you want a stable and user-friendly desktop experience, Ubuntu is the choice. If you do not like to tinker with operating system and just want to use it for normal usage, choose Ubuntu.

Fedora

Fedora, however, is the most technically advanced distribution. Any new technology will be adopted by Fedora first.  If you want the latest and most advanced technology, use Fedora. Therefore, Fedora is not as stable as Ubuntu. Sometime you would get a problematic kernel update which forces you to switch back to older kernel for a while. Fedora is more suitable for season Linux user who wants to try out the latest. You must not be afraid of tinkering with the operating system when using Fedora. If you are technically inclined but new to Linux, you could try Fedora. The support community for Fedora is good.

For feature enhancement, Fedora is more concern of security and it may include enterprise feature which might not benefit you. Fedora is the test bed for trying out new technology before such technology is adopted by its sponsor Linux Red Hat in their enterprise operating system. If you are an IT professional considering adopting a new skills in Linux administration, Fedora is the choice. By learning Fedora, you will be sure that Linux Red Hat would adopt some of the technology eventually. For anyone who would like to learn some system administration that could help in their career in IT, Fedora is he choice.

Enterprise: Linux Red Hat and CentOS

In the enterprise market, Linux Red Hat is the most popular open source distribution. However, Linux Red Hat is not free. You can download Red Hat for a free trial. After which, you have to pay for any updates and support. For those looking to learn the skills in administering Linux Red Hat, you could use Fedora or CentOS. CentOS is very similar to Linux Red Hat. In fact, what CentOS did is to get the source code from Linux Red Hat, remove its trade mark and marketed as CentOS.

Please bear in mind that CentOS is not 100% compatible with Linux. CentOS is trying to be as similar to Red Hat as possible. I could say that CentOS is 99% compatible with Linux Red Hat. For those who want to learn Red Hat administration, CentOS is the choice because you can download it for free. In the enterprise market, some companies try out CentOS before adopting Linux Red Hat. There are some companies who would not like to pay for updates and support would use CentOS operationally.

Mobile Distribution: Knoppix and DSL

Beside the two popular desktop distributions Fedora and Ubuntu, I would like to introduce you to some light weight and mobile distribution. Such distribution is not rich in software but it is good enough for simple usage. Knoppix contains in a bootable CD with a collection of GNU/Linux software. There is no need to install Knoppix to the hard disk as you can boot it up from CD.

Another mobile distribution is DSL (Damn Small Linux). It is derived from Knoppix and it is much smaller in size. It contains only 50MB and could be stored in a thumb drive. Mobile distribution could be used for demonstrative or educational purpose. However, Linux administrator uses it frequently for hardware troubleshooting or repair.

Distribution for Hardcore Geek: Gentoo and LFS

Gentoo Linux was designed for power users. Its installation could be cumbersome although recently it includes an installer to simplify the installation. If you would like to modify your operating system to your liking, Gentoo could be your choice. Gentoo also got a good support community with comprehensive documentation.  Gentoo users are more technically inclined. In fact, Gentoo forum provide a lot of the highly technical solution to the common problem in other distribution.

If you want to build Linux from scratch, you should consider LFS project. Linux From Scratch (LFS) is a project that provides you with the steps necessary to build your own custom Linux system. The most important reason for using LFS is to learn how a Linux system works internally. Building an LFS system teaches you about all that makes Linux tick, how things work together, and depend on each other. Along the way you could customize it to your own taste and needs.

Debian

Finally, I would like to mention Debian. Before Ubuntu arrives, Debian got the largest support community with a large collection of software. Debian also got the largest group of developers working on the project. The existence of Ubuntu, which uses the base code of Debian, split up the manpower and resource from Debian. In fact, a lots of other Linux distribution are derived from Debian.

Usage

With all the different Linux distributions mentioned above. I would like to highlight that the usage between these distributions can be very different especially in the area of software installation and distribution. We can categorize most Linux distribution into 2 classes.

The first class is the Red Hat class of distributions. Red Hat uses rpm files to package their software and it uses yum for software update and distribution. Red Hat class distribution includes Linux Red Hat, Fedora and CentOS.

The other class, is the Debian class of distributions. Obviously, these distributions use the base code of Debian. Debian uses deb package for software packaging and it uses apt-get for updates and distributions. Debian class of Linux includes Ubuntu, Kubuntu, Knoppix and DSL (via Knoppix).

I hope the analysis above will help you to make up your mind on which Linux distribution to choose.


Basic Network Configuration in Linux

December 14, 2009

This network configuration guide is based on Fedora.

Configuration Tools

Text console configuration tool:

  • /usr/sbin/system-config-network-tui
  • /sbin/ifconfig

Using ifconfig:

  • ifconfig – display running network configuration
  • ifconfig -a – display all (running or not running network device) network configuration
  • ifconfig <interface> up – bring up the specified interface network
  • ifconfig <interface> down – bring down the specified interface network
  • ifconfig eth0 192.168.1.188 netmask 255.255.255.0 – setup a network interface with a specific IP address and sub-net mask
  • For further usage check #man ifconfig

Network Configuration Files

/etc/sysconfig/network – Defines your network and some of its characteristics.

The settings are:

  • NETWORKING=yes
  • HOSTNAME=localhost.localdomain

/etc/sysconfig/network-scripts/ifcfg-eth* – This is a configuration file for each network interface card. For eth0 the path would be /etc/sysconfig/network-scripts/ifcfg-eth0

The settings are permanent; some of the entries are shown below:

  • DEVICE=eth0
  • HWADDR=00:03:10:22:45
  • #For permanent fixed IP address
  • IPADDR=192.168.1.100
  • NETMASK=255.255.0.0
  • ONBOOT=yes
  • BOOTPROTO=none

/etc/networks – Provides a database of network names with network addresses similar to the /etc/hosts file.

The settings are:

  • Default 0.0.0.0
  • Loopback 127.0.0.1
  • Link-local 169.254.0.0

/etc/hosts – Defines local hosts.

The settings are:

  • 127.0.0.1  localhost  localhost.localdomain
  • 192.168.1.100  mymachine.mycompany.com mymachine

/etc/host.conf – Specifies order to search for host name for name resolution.

The settings are:

  • Multi on
  • Order hosts, bind

/etc/resolv.conf – Contains the address of name server

The settings are:

  • Nameserver your.isp.name.server

Configuring Ethernet Manually

Fixed IP

  • Ifconfig to set IP address and bring up the network card

#ifconfig eth0 192.168.1.188 netmask 255.255.255.0 up

  • To setup the network routing

#route add -net 192.168.0.0 netmask 255.255.255.0 eth0

  • Use route add or ip to add default gateway

#route add default gw 192.168.1.1 eth0

  • DNS for the network

Add “nameserver 218.186.1.88” at /etc/resolve.conf

  • Note: Please note that the above measure is temporary. To permanently set ip address, gateway and dns use system-config-network-tui.
  • Once you set fixed IP, netmask, gateway and DNS. The information will be recorded in etc/sysconfig/network-scripts/ifcfg-eth* as follows;
    • DEVICE=eth0
    • HWADDR=00:05:20:15:36
    • #For permanent fixed IP address
    • IPADDR=192.168.1.100
    • NETMASK=255.255.0.0
    • ONBOOT=no
    • BOOTPROTO=none
  • Note: If you have hard coded fixed IP in the config file ifcfg-eth*, if you type #ifconfig eth0 up, it will not configure the fix IP from the file, the eth0 is up with no address assigned.
  • Therefore, a proper way to completely bring up and down the network interface card (NIC) is to use #ifup and #ifdown instead of ifconfig.
  • If eth0 is down for some reason, using #ifup eth0 will turn on the NIC with all address, gatway and DNS configure in the file
  • The console utility (system-config-network-tui) do not have the ability to set the configuration such that eth0 is turn on during startup, to do this we must manually change to ONBOOT=yes.
  • If eth0 still will not turn on during startup; this is because the service network is not turn on.
  • To turn on the network service during startup, use the command #service network start
  • To permently turn on the network service #chkconfig network on

DHCP Client

  • If inside the file ifcfg-eth0,the entry ‘BOOTPROTO = none’ or there is no entry on BOOTPROTO use the following:
    • #ifup eth0
    • #dhclient
  • If inside the file ifcfg-eth0, the entry ‘BOOTPROTO = dhcp’ use the following:
    • #ifup eth0
  • Note: To configure BOOTPROTO just run the utilities system-config-network-tui
  • However, the console utility do not have the ability to set the configuration such that eth0 is turn on during startup, to do this we must manually change the file etc/sysconfig/network-scripts/ifcfg-eth*; ONBOOT=yes
  • Then make sure service Network is started and set to turn on permanently with the command #chkconfig network on

Alternative method of starting network

  • Add the following at /etc/rc.d/rc.local
    • # ifup eth0
  • or
    • # dhclient eth0
  • Note: Using local startup script, there is no need to turn on network services

Network Manager (New)

  • A new way of managing network is to install the package NetworkManager which does the management of network automatically.
  • NetworkManager is designed to replace all other network configuration. It includes all types of network from Ethernet to wireless network.
  • Use the command #yum install NetworkManager
  • Using NetworkManager, you still need tp ensure that the settings for eth* is setup properply. You need to ensure that ONBOOT=yes.

End.


Fedora 12 Software Installation and Configuration Guide

December 10, 2009

Updating Fedora (32-bit/64-bit)

  • Updating Fedora is as easy as Windows and it is automated. You will notice a message indicate that you need to update the OS.
  • Follow the direction in the message will bring to the update manager and follow the instruction.
  • You can also use command yum to update the system.
  • Open a terminal window, type $su
  • Enter root password
  • Type #yum update

Installation and Configuration of Commonly used Applications (32-bit/64-bit)

  • Most of the popular applications are preloaded with Fedora; you might need to add some plug-ins.
  • For additional software you can install using System >> Administration >> Add/Remove Software. The utility will search for the application you intended, download it and install it automatically.
  • You can also use command line (yum) to install the software packages.
  • Fedora uses yum to install and update its software. When connected to the internet it will automatically determine all application dependencies.

Configuring Yum

  • Yum automatically connect to the official mirror sites of Fedora to retrieve latest software packages.
  • You might want to add additional repositories that provide additional software. Two additional sites are recommended, one is rpmfusion.org, the other is livna.org

To setup repos from rpmfusion:

Setting up repos from livna.org

Installing Yum plugins

  • Yum has many plugins available, the default plugins is presto. This plugins reduce download time by downloading only the changes in the software packages.
  • I would also recommended you to install the fastestmirror plugin, it speeds up downloads by attempting to find faster sources.
  • To install the plugin:# yum install yum-plugin-fastestmirror

Using Yum

  • To install software using yum just use the command: #yum install <software package>
  • To find out details about the software packages use the command: #yum info <keyword/name software package>
  • You can also perform group install using #yum groupinstall <software group>

Web Browsing

  • Firefox is preloaded with Fedora; you just need to install additional plug-ins.

Firefox Plug-ins: Google Toolbar

  • Go to the site where Google toolbar is hosted and install directly from the web.

Productivity Suite

  • OpenOffice is not included in the LiveCD. To install it go to System >> Administration >> Add/Remove Software.
  • Type openoffice in the search box and click find. With the list given, select the OpenOffice package you want.
  • You also can use command line as follows:
    • #yum install -y openoffice.org-impress
    • #yum install -y openoffice.org-calc
    • #yum install -y openoffice.org-writer

Utilities

There a a couple of useful utilities such as:
  • Gparted is a utility that manages disk partition. You can resize your disk partition on the fly. To install this software:
    • #yum install -y gparted
  • Gnochm is a chm viewer. The command to install this utilities is:
    • #yum install -y gnochm
  • Unrar is a utility to unpack rar compressed folders. Issue the command:
    • #yum install -y unrar
  • GCC is GNU C/C++ compiler. Kernel-devel is the kernel headers required to compile kernel files. Both files are required to rebuilt kernel or install drivers.
    • #yum install -y gcc kernel-devel

PDF Document

  • Fedora has default PDF reader (evince) so no installation is required.
  • For 32-bit OS, you might consider install Adobe PDF reader or Foxit PDF reader.
  • Fedora has built in PDF writer; here is the direction of how to use it.
    • For Firefox, select print >> print to file, make sure you specify the document type as PDF and also specify the filename and location of the file.
    • For OpenOffice, use ‘Export to PDF’ function.
  • You will need a PDF writer if you intend to use it on any other application that do not have print to PDF or export to PDF capabilities. In this case, you need to install cups-pdf.
  • The command line to install is #yum install cups-pdf. Please search the web for direction of usage and configuration.

Playing Multimedia Files

  • To play the most common multimedia formats, including MP3, Mpeg, rm, QuickTime, WMA and WMV, you need to install additional packages; when you install VLC Media Player, yum install will includes all the necessary codec.
  • Playing DVD is more complicated because it involves restricted format. In addition to media player such as Xine or VLC, you need to install CSS Packages.
  • Although Fedora comes with Totem Movie Player, it lacks DVD functions such as navigation through the menu, titles etc. I would recommend using VLC Player or Xine.

Installing Media Player

  • To install VLC Media Player: #yum install vlc
  • To set VLC as the default player, open any File Browser. Select Edit >> Preference >> Media
  • To install Xine: #yum install xine xine-lib-extras xine-lib-extras-freeworld

Check Region Setting

  • To check your region setting you need the package “regionset”.
  • Open a terminal window with root access
  • #yum install regionset
  • After installation, from command line enter: $regionset. Your region setting will be shown.

Installing CSS Packages

  • To install the CSS packages use the command: #yum install libdvdcss

DVD Ripping

  • In the event you need to rip or backup your DVD; you can install various DVD ripper.
  • In this section we will install k9copy
  • #yum install k9copy
  • Please search for k9copy on direction of usage.

*****

Installing Adobe Flash Player

Pre-Installation Setup (32-bit/64-bit)

  • Download the yum configuration from http://get.adobe.com/flashplayer/ and select ‘YUM for Linux’
  • Save the rpm file ‘adobe-release-i386-1.0-1.noarch.rpm’. Quit your browser.
  • Open a terminal window and enter su. Enter the root password to gain root access.
  • Enter #rpm -vhi adobe-release-i386-1.0-1.noarch.rpm
  • Enter #rpm – -import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
  • The above command setup the adobe repository so that you could use yum to download the lastest from adobe repository.
  • To verify the setup of the repository data make sure that the file /etc/yum.repos.d/adobe-linux-i386.repo is available

Installing Flash Player (32-bit)

  • For 32-bit Fedora issue the command:
    • #yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl
  • Launch your browser to verify in the flash player is properly installed.

Installing Flash Player (64-bit)

  • For 64-bit Fedora, you need to install a 32-bit plugin that will work with the 64-bit browser by being “wrapped” with nspluginwrapper. The command is:
    • #yum install flash-plugin nspluginwrapper.x86_64 nspluginwrapper.i686 alsa-plugins-pulseaudio.i686 libcurl.i686
  • Launch your browser to verify in the flash player is properly installed.

*****

Installing Adobe AIR

Pre-Installation Setup A (32-bit/64-bit)

  • Adobe AIR 1.5 for Linux is available at http://get.adobe.com/air/. The file name is ‘AdobeAIRInstaller.bin’
  • You might want to setup the installation log so that you could review the log if you encounter any problem. To do this, you need to create the log file at your home directory instead of root. Do not use root access for the following command:
    • $touch ~/.airinstall.log
    • $touch ~/.airappinstall.log
  • You need to change the permission of AdobeAIRInstaller.bin. You need root access to change permission.
    • #chmod +x AdobeAIRInstaller.bin

Pre-Installation Setup B (32-bit)

  • For 32-bit installation of Adobe AIR. You need to install xterm:
    • #yum install xterm

Pre-Installation Setup B (64-bit)

  • For 64-bit installation, we are installing 32-bit Adobe AIR in the 64-bit OS. Addition libraries and software are required as follows:
    • #yum install -y gtk2-devel.i686 nss.i686 nss-softokn.i686 libxml2-devel.i686 libxslt.i686 gnome-keyring.i686 rpm-devel.i686 alsa-plugins-pulseaudio.i686 PackageKit-gtk-module.i686 libXt.i686 gtk2-engines.i686 libcanberra-gtk2.i686 xterm

Running Adobe AIR Installation Program (32-bit/64-bit)

  • This is an interactive setup. For any error please refer to the .airinstall.log located at your home directory. You launch installation program from the folder where the software is located. Install the program as follows:
    • ./AdobeAIRInstaller.bin

Problems Running AIR Application (32-bit/64-bit)

  • On Fedora 12, you would not be able to install or run any AIR application. This is probably due to SELinux security policy.
  • To resolve this issue, we need to rename the crypt folder under the certificates folder. Use the following command:
    • #mv /etc/opt/Adobe/certificates/crypt /etc/opt/Adobe/certificates/crypt_bkp

Installing AIR Application (32-bit/64-bit)

  • You should be able to install any AIR application directly from the web.
  • During the installation, user will be prompt for root password.

Removing AIR Application (32-bit/64-bit)

  • Removing AIR application is a bit tricky. First you need to search for the full application name as follows:
    • #rpm -qa | grep twhirl
  • Then you remove the application using rpm as follows:
    • #rpm -e de.makesoft.twhirl.0ea062bc275e7ed1e6ec3762effd73c7158adf33.1-0.9.4-1.i386
  • Alternatively, you can use the following command to erase and query the application name at the same time.
    • #rpm -e `rpm -qa | grep twhirl`
    • #rpm -e `rpm -qa | grep tweetdeck`
    • Note: Please note that the quote is a back tick, the key is above [Tab] key.

*****

Installing Real Player

Get Real Player 11 for Linux

Installing Real Player for 32-bit Fedora

  • To install Real Player, you need to install redhat-lsb before installing the player:
    • #yum install -y redhat-lsb
    • #rpm -ivh RealPlayer11GOLD.rpm

Installing Real Player for 64-bit Fedora

  • Since we are installing the 32-bit Player into 64-bit OS, we need to install 32-bit version of lsb as well:
    • #yum install -y redhat-lsb redhat-lsb.i686
    • #rpm -ivh RealPlayer11GOLD.rpm

Note: Alternatively, you could use mplayer or vlc player instead of installing Real Player. I found that mplayer or vlc player do not play the rm files well.

*****

Installing Virtual Box (32-bit/64-bit)

Installing VirtualBox on Fedora 12 Using YUM

  1. Before installation please make sure that you are using the latest kernel. If you have just updated a new kernel, you must boot into the new kernel before proceed with the installation.
  2. First you need to download the repository file for yum located at http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
  3. Then you need to move or copy the repo file to yum depository folder:
  4. #mv virtualbox.repo /etc/yum.repos.d/
  5. Install dkms using the command: #yum install dkms
  6. Proceed with the command: #yum install VirtualBox
  7. Reboot the PC since kernel file has been modified

Installing Linux Guest

You can install any guest OS including Windows or other distribution of Linux. Please consult the installation guide on installing the operating system you want.

Installing Linux Guest Addition

Before installing Linux Guest Addition, make sure the guest OS is updated.

  • To install Linux guest addition, you’ll need GCC compiler, Linux kernel header and dkms. Use the command:
    • #yum install gcc kernel-devel dkms
  • Next, you need to mount the CD ISO and proceed to the main folder. Run the appropriate guest addition base on your guest OS architecture. For 32-bit Linux guest use:
    • #./VBoxLinuxAdditions-x86.run
  • For 64-bit Linux Guest use the program below:
    • #./VBoxLinuxAdditions-amd64.run

After installation of guest additions, you can move your mouse freely between guest and host OS. You can expand your screen size by resizing the virtual OS windows.

Sharing Folder with Host System

To share network folders, you need to configure a share folder with a share name in the virtual machine settings.

  • Then in Linux, you need to mount the share folder using VirtualBox file system:
    • #mount –t vboxfs name_of_share_folder /mnt/mount_point
  • Please note that the above mounted folder is owned by root. To allow user to own the files and folder use the command:
    • #mount -t vboxsf -o uid=1000,gid=1000 name_of_share_folder /mnt/mount_point
    • Where uid is the user id and gid is the group id.
  • If you want to have it mount automatically upon each boot, put the mount command in /etc/rc.local. Using /etc/fstab has little effect, because that  file is processed before the SF module is loaded and will fail to mount the share.

*****

Installing Compiz (32-bit/64-bit)

Installing Proprietary Nvidia Driver

Important: This procedure involves in modifying the kernel. You need to reboot the PC if you have just updated your kernel before starting this procedure.

  • Open a terminal with root access. Then proceed with the following command:
    • #yum install kmod-nvidia xorg-x11-drv-nvidia
  • After installing the drivers, you need to change some security setting on SELinux:
    • #setsebool -P allow_execstack on
  • Then you need to perform the following to disabled nouveau driver:
    • #mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
    • #dracut /boot/initramfs-$(uname -r).img $(uname -r)

Important: Reboot your PC and ensure that the Nvidia driver is working properly

Installing Compiz

  • Issue the following command to install Compiz:
    • #yum install emerald-themes compiz-fusion-extras emerald compiz-fusion compiz-manager compiz-fusion-extras-gnome gnome-compiz-manager libcompizconfig compiz-fusion-gnome ccsm

Configuring Compiz

You can change the settings using CompizConfig Settings Manager (ccsm) under System >> Preference. However, due to some bug, the changes in ccsm will not affect the system. To rectify this problem you need to change the script file for Compiz in /usr/bin/compiz-gtk

  • Once you open this file, change the following line from:
    • exec compiz –ignore-desktop-hints glib gconf gnomecompat $@
  • to:
    • exec compiz –ignore-desktop-hints glib gconf gnomecompat ccp $@

Enabling, Configuring and Using Compiz

  • You enabled Compiz by select System >> Preference >> Desktop Effect. Choose Compiz.
  • You can change the effects using System >> Preference >> CompizConfig Settings Manager
  • To rotate the Window Cube, press Ctrl+Alt and simultaneously use your mouse to rotate the window.

End.


Installing Fedora 12 using Net Install CD

December 10, 2009

This document contains the procedure of using Net Install CD to perform installation on Fedora 12. Using Net Install, you download the latest files directly from the Internet from Fedora repository.

The main advantage is, you got the latest files directly from the Fedora repository. You don’t have to perform system update after the installation.

The main disadvantage is, the installation time is very long. A text based installation of 200 packages lasted 20 minutes. A normal installation with basic GNOME desktop environment (about 1000 packages) will need 2 hours of installation time. This, of course, is subjected the web traffic and your download speed.

You can download the guide from here: Installation of Fedora 12 using Net Install CD

View this document on Scribd