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***


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 ***


Using Fedora 15 (Lovelock) GNOME 3 and Fallback Mode

June 3, 2011

One of the most significant changes in Fedora 15 (Lovelock) is the introduction of GNOME 3.  The new interface looks nicer and cleaner, as shown below:

The system setting is hide under the user name.

Windows (Formerly desktop workspace) and Applications hide under “Activities” on the top left hand corner. For “Places” you need to launch file manager.

According to Fedora website, most PC supports GNOME3. However, if your system hardware does not support GNOME 3, it will run GNOME 3 fallback mode which has the looks and appearance of older GNOME.

Some of the user still prefers the older looks because it requires less click. There are pros and cons of both type of interface.

GNOME 3

Pros

  • Screen looks cleaner and slicker.

Cons

  • The workspace and shortcuts hides under the “Activities” menu. Extra click is require to launch your favorites.

GNOME 3 Fallback Mode

Pros

  • Your workspace and shortcuts are one click away.

Cons

  • The desktop looks more messy if you have created many shortcuts on the top bar.

Set GNOME 3 Fallback Mode as Default

For those who prefer to use the older looks of GNOME, you can force the system to run GNOME in Fallback mode.

Method 1

  • Select your username >> System Settings
  • Select System Info
  • Select Graphics (as shown) and set “Forced Fallback Mode” to ON

Method 2

  • Use the following command (single line):
$GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.session session-name 
gnome-fallback
  • Logout from GNOME and login again

Additional Changes

  • Please note that regardless of which mode you are running, anything you place in the desktop folder will not appear in your desktop anymore.
  • To activate shutdown option, you need to click your username+Alt. The “Shutdown” option will replace “Suspend”.

Finally, I would like to note that I am still exploring GNOME 3. Your feedback is appreciated if I’ve made any errors. You can checkout the GNOME shell cheat sheet from here.


Configuring Adobe Flash Player for Chrome in Fedora 15 (Lovelock)

June 2, 2011

Update 14 Nov 2011

Adobe has release a 64-bit version of Flash Player Plugins. The installation is straight forward and simple. Most important, there is no additional tweaking required for Google Chrome. To install the latest Adobe Flash Player check out this post Install Adobe Flash Player (64-bit) on Fedora 16

**********************************************************************************************************************

After installing Adobe Flash Player in Fedora 15, you’ll notice that you can watch YouTube video using Firefox but it wouldn’t work on Chrome. The following is the instruction for configuring Adobe Flash Player to work with Chrome browser.

  • Install Adobe Flash Player if you haven’t done so. You can follow the instruction from Installing Adobe Flash Player in Fedora 15 (Lovelock)
  • Open Firefox browser and test the player at least ONCE from YouTube or Adobe web site.
  • Create a folder using the command:
mkdir /opt/google/chrome/plugins
  • The next step is to configure a link for the Chrome browser. For 64-bit system, use the command (single line):
ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so
/opt/google/chrome/plugins/nswrapper_32_64.libflashplayer.so
  • For 32-bit system use the following command (single line):
ln -s /usr/lib/mozilla/plugins/libflashplayer.so 
/opt/google/chrome/plugins/libflashplayer.so
  • You can download a little automation script here. This script work on both 32-bit and 64-bit system.
  • You also need to give execution permission to the script using the command
    $sudo chmod +x <script name>
  • To run the script use the command:
    $sudo ./<script name>

***End***


Installing Adobe Flash Player in Fedora 15 (Lovelock)

June 2, 2011

Update 14 Nov 2011

Adobe has release a 64-bit version of Flash Player Plugins. The installation is straight forward and simple. To install the latest Adobe Flash Player check out this post Install Adobe Flash Player (64-bit) on Fedora 16

**********************************************************************************************************************

You need to install Adobe Flash Player to run watch embedded video from various web sites. The following is a step by step instructions to install Adobe Flash Player in Fedora 15:

Configuring Adobe Yum Repository File

  • Please note that you can skip this section if you have already done this part when installing other Adobe products such as Adobe AIR. Please continue if you have never configured Adobe repository file for Linux.
  • Download the rpm file 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” and close your browser.
  • Use the following command, to install Adobe Flash Player:
$sudo rpm -vhi adobe-release-i386-1.0-1.noarch.rpm
$sudo 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 latest Flash Player 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

Install Adobe Flash Player

  • 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 (single line):
$sudo yum install flash-plugin nspluginwrapper.x86_64
nspluginwrapper.i686 alsa-plugins-pulseaudio.i686 libcurl.i686
  • After the installation, open up Firefox and test the Flash Player from websites such as YouTube.

Please note that although the above instructions worked for Firefox, additional steps is required for Configuring Chrome with Adobe Flash Player.

I have included a simple script for installing Adobe Flash Player. You can download the script here. Please read the note before running the script.

You also need to give execution permission to the script using the command

$sudo chmod +x <script name>

To run the script use the command:

$sudo ./<script name>

***End***


									

Installation of Fedora 15 “Lovelock” using Live CD on Virtual Machine

June 2, 2011

This simple guide is provided for those who would like to test Fedora 15 (code name: lovelock) on a virtual machine.

For those looking installation guide on a PC check out my post Installation of Fedora 15 using Fedora Desktop Edition (Live CD)

Fedora 15 (64-bit) was installed on VirtualBox 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. You can use the ISO image if you are installing on a virtual machine.

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.
  • If you are running Fedora 15 on VirtualBox, chances are GNOME 3 will not be working and the system will run GNOME in fallback mode. You would received a message as follows:
  • The desktop of GNOME 3 in fallback mode looks like the following:
  • The desktop is similar to GNOME 2.
  • You need to install Fedora 15 in GNOME fallback mode. However, you could fix this by installing VirtualBox Linux Guest Additions.
  • To install the operating system to the hard disk. Go to Application >> 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”.
  • If you have new hard disk which has not been initialized, you might get a message asking to initialize the hard disk.
  • 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. If you are familiar with the Linux partition, you could customize your drive system. Additionally, you have the option to encrypt the whole hard disk using a pass-phrase.
  • I recommend letting the system configures the partition automatically. You have to confirm the changes as follows:
  • 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. Make sure “Add to Administrators Group” is checked.
  • 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.

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 ***