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


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 Configuration Guide

November 30, 2009

Version: Fedora 12 (32-bit/64-bit)

Updating Fedora

  • 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

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

64-bit Issue

  • The following software only available in 32-bit version. If you really need them, you might want to recompiled into 64-bit.
  • Some 32-bit software such as OpenOffice runs well in 64-bit OS. Some software may have installation problem due to the difference.

o Adobe Air
o Adobe Reader
o Foxit Reader
o OpenOffice

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.

Firefox Plug-ins: Adobe Flash Player

  • 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
  • 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
  • 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.

 

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.

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.

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. You need to install a DVD Media player and 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.

***

Other Installation & Configuration

Please refer to my other post on installation of Adobe AIR, Real Player, Virtual Box and Compiz.

Installing Compiz on Fedora 12

Installing Adobe AIR on Fedora 12

Installing Real Player on Fedora 12

Installing Virtual Box on Fedora 12

Automation (Scripts)

I have created some script files to facilitates installation. Make sure you read the comment in the scripts carefully and hash out any command or installation you do not want to include.

If you are very new to Linux, it is best you follow the instructions in the above section. These script files is more suitable for seasoned Linux users.

You can download all the script files from here:

Software Update & Installation (32-bit/64-bit)

Installing Adobe Flash Player (32-bit/64-bit)

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

Installing Real Player (32-bit/64-bit)

Installing Compiz (32-bit/64-bit)

Installing VirtualBox (32-bit/64-bit)

Installing VirtualBox Guest Additions (32-bit/64-bit)

Note: To run the script, use a terminal with root access and navigate to the location where the script is kept and just type #./scriptname or $sudo ./scriptname

End.