Install and Playing Real Player in Fedora 15 (Lovelock)

June 7, 2011

Get Real Player for Linux

Download the latest Real Player for Linux at http://www.real.com/linux. Select “Download the RPM Installer”. The rpm file should be ‘RealPlayer11GOLD.rpm’

Installing Real Player (64-bit)

Since we are installing the 32-bit Player into 64-bit OS, we need to install 32-bit version of lsb as follows:

$sudo yum install -y redhat-lsb redhat-lsb.i686
$sudo rpm -ivh RealPlayer11GOLD.rpm

Note: Alternatively, you could use mplayer or vlc player instead of installing Real Player. I found that mplayer does play rm files well while vlc player play the rm files well, the image get distorted when fast forward.

Real Player Problem: No Video

If you encounter such situation where the Real Player plays audio perfectly but there is no video. Use the solution below:

  • First you need to install the gstreamer plugins:
 $sudo yum install gstreamer-plugins-ugly
  • Since Real Player is a 32-bit application playing in 64-bit operating system, you need to install 32-bit libraries:
$sudo yum install gstreamer-plugins-ugly.i686
  • If you still do not have video after installing the plugins. In the Real Player, go to Tools >> Preference >> Hardware and toggle with “Use XVideo”. Usually the video works when the XVideo is NOT CHECKED.

Automation

I’ve created a script to download and install Real Player. You can download here.

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>

Troubleshooting Real Player Problem

If you have any problem playing real media, you can troubleshoot Real Player problem by running Real Player from the terminal.

cd /opt/real/RealPlayer
./realplay

Check the error message from the terminal and search the web for solution.You can also check my post Fixing Real Player Problem in 64-bit Fedora

***End***


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


How to Open Nautilus as Root in Fedora 15 using sudo or Beesu

June 7, 2011

Quite often you will find yourself the need to write files that does not location within your home folder. In this case, you need root access to do it. There are two methods of open Nautilus (File Manager) with root privileges. The first method is to use sudo command from the terminal. The second method is to install and use Beesu with Nautilus.

Method 1: Using sudo

User must belong to the Administrators Group in order to use sudo command. If you have not add the current use to the Administrators group during the system setup, then you could add user to Administrators Group via User Account Settings.

Add Normal User to Administrator Group

Under your username, select System Settings >>  User Accounts (as shown below). Click unlock using root password and change the “Account type” from “Standard” to “Administrator”.

Opening Nautilus from Terminal

Open a terminal and issue the command:

$sudo nautilus

If you want to be able to continue using the terminal, you can start the Nautilus command in the background as follows:

$sudo nautilus &

Method 2: Using Beesu

Installing Beesu

Open a terminal and install the following packages:

$sudo yum install beesu
$sudo yum install nautilus-beesu-manager

Configuring Beesu

After you have installed the packages above, you run $nautilus-beesu-manager to configure how you want to use Beesu.

The most useful settings are:

  • Edit with gEdit
  • Execute/Execute Application
  • Files and Folders/Delete Selected Files
  • Files and Folders/New File Here
  • Files and Folders/New Folder Here
  • Open Terminal Here

Using Beesu

  • Open up Nautilus (under Applications >> Accessories >> Files)
  • Navigate to the file or folder you want to manage, Right-Click the mouse, select Scripts >> beesu and a list of options which you have configure earlier was available.
  • Please note that some options worked on folders and some options worked on files while some worked on both.

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


VirtualBox – Sharing Folder between Windows Host and Linux Guest (Fedora)

June 4, 2011

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.


Install VirtualBox Linux Guest Addition in Fedora 15 (Lovelock) Guest OS

June 4, 2011

This is for those who have installed Fedora 15 as guest system in VirtualBox. Without the Linux guest additions from VirtualBox, you would still have mouse and keyboard integration. However, you need Linux Guest Additions from VirtualBox in order to run GNOME 3 and to share folders between the host and guest operating system.

Pre-Installation

  • Before installing Linux Guest Additions for VirtualBox, you need to ensure that you have the latest kernel installed. To ensure that, use the command:
$sudo yum update
  • Reboot your system after update.
  • Then, you need to install dkms, gcc and kernel-devel. Use the following command:
$sudo yum install -y kernel-devel dkms gcc
  • Finally, you need to load Linux Guest Additions ISO disc to your virtual CD-ROM

Installation of Linux Guest Additions

  • Once the disc image is mounted, the folder should be located at /media/VBOXADDITIONS* . The * being the version number.
  • Use the following command:
cd /media/VBOXADDITIONS*
./VBoxLinuxAdditions.run
  • After the installation is complete, reboot the system.

To share folders between Windows host and Linux guest system, please refer to the post VritualBox Sharing Folders between Windows Host and Linux Guest

Automation

As usual, I have created an auto installation script for advanced user. You can download it from here.


Install Dropbox in Fedora 15 (Lovelock)

June 3, 2011

Update 15 Nov 2011

To install Dropbox on Fedora 16, please check out this post: Install Dropbox on Fedora 16

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

The best method to install Dropbox in Fedora 15 (Lovelock) is to configure Dropbox repository and perform a yum install from the system terminal.

Configure Dropbox Repository

Create a file called dropbox.repo with the following, or you can download a copy from here:

[Dropbox]
name=Dropbox Repository
baseurl=http://linux.dropbox.com/fedora/$releasever/
gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc

Place the file under /etc/yum.repos.d.

Installing Dropbox

Run yum install using the command:

$sudo yum install nautilus-dropbox

Update: If you encounter any error while downloading nautilus-dropbox. You might need to change the base url in the repo file from http://linux.dropbox.com/fedora/$releasever/ to http://linux.dropbox.com/fedora/14/

Post Installation Setup

After installation is completed, you need to run Dropbox application under Applications >> Internet >> Dropbox. Then you need to configure an account for the Dropbox.

Automation

You could also write a script file to automate the installation process. This script download the repository file that I’ve prepared and move it to the yum repository folder follow by installation of dropbox.

#! /bin/bash
#Add repo file from Dropbox
wget http://dl.dropbox.com/u/30876345/repo/dropbox.repo
mv dropbox.repo /etc/yum.repos.d
#Installing Dropbox
yum install -y nautilus-dropbox

A copy of the script can be downloaded here.

Note: remember to give execution permission to the script by running the command:

$sudo chmod +x <script_name>

To run the script use the command:

$sudo ./<script_name>

*** End ***


Install Google Chrome in Fedora 15 (Lovelock)

June 3, 2011

Update: 12 November 2011

It seems that Google has restored the repository. You can still follow the instructions below however, it is recommended to just navigate to the chrome site and install from there.

Check out my new post Install Google Chrome in Fedora 16 (Verne) 

Update: 28 September 2011

Google repository does not work anymore because Google has discontinued Google Pack. You can visit the main site for further information.

To install Chrome on Fedora, you just need to navigate to Chrome website and click install. The procedure is similar to installing Chrome in Windows.

Please do not follow the instructions below!

================================================================

While you could download the rpm file from Chrome website and install Chrome, a better method is to download Chrome from Google repository so that you could receive any new updates.

Configure Google Repository

Create a file called google.repo with the following:

[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

You can also download a copy from here. Place the file under /etc/yum.repos.d

Installing Google Chrome

Run yum install using the command:

$sudo yum install google-chrome-stable

If you would like to install the beta or unstable version of Chrome use the following command:

$sudo yum install google-chrome-beta
$sudo yum install google-chrome-unstable

Automation

You could also write a script file to automate the installation process. This script download the repository file that I’ve prepared and move it to the yum repository folder.  You need to hash (#) out those version that you DO NOT want to install. You could only install one version of Chrome.

#! /bin/bash
#Add repo file from Google
wget http://dl.dropbox.com/u/30876345/repo/google.repo
mv google.repo /etc/yum.repos.d
#Install Google Chrome
yum install -y google-chrome-stable
#yum install -y google-chrome-beta
#yum install -y google-chrome-unstable

You could download a copy of the script here. Note: remember 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***


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