Fedora 16 pre/post-installation setup

This is pretty much the same as my post for Fedora 15, but I modified some details to make sure everything is relevant for Fedora 16.

I also converted the steps that requires downloading and installing into one executable command, whenever possible. I also added the -y option to the yum commands so we can skip the questions if we really want to install the packages since most of the time we type ‘yes’ anyway.

These are the packages I chose during the pre-installation setup:

Applications

  • Design Suite (contains GIMP and OptiPNG, plus more)
  • Office/Productivity (contains LibreOffice)
  • Sound & Video (checked k3b)

Development

  • Development Tools (checked cmake and PyLint)
  • Java Development

Servers

  • Mail Server (SendMail)
  • MySQL Database (checked php-mysql)
  • PostgreSQL Database
  • Printing Support
  • Server Configuration Tools
  • Web Server (mod_python, mod_ssl, php, php-ldap)

Base System

  • Administration Tools
  • System Tools

And here’s my post-installation setup:

Update

Updating for the first time also installs the GPG keys, which are needed so you won’t get errors regarding unsigned packages when you use the “fedora” and “updates” repositories of Fedora. In our terminal, as root, type:

yum -y update

RPM Fusion

From the RPM Fusion website site:

RPM Fusion provides software that the Fedora Project or Red Hat doesn’t want to ship. That software is provided as precompiled RPMs for all current Fedora versions and Red Hat Enterprise Linux 5; you can use the RPM Fusion repositories with tools like yum and PackageKit.

RPM Fusion is a merger of DribbleFreshrpms, and Livna; our goal is to simplify end-user experience by grouping as much add-on software as possible in a single location.

To install both the free and non-free repositories, simply download and double-click the RPM Fusion free for Fedora 14, 15 and 16 and RPM Fusion nonfree for Fedora 14, 15 and 16 from the RPM Fusion Configuration page.

Google Chrome

yum -y install lsb # dependency
rpm -ivh http://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm

Mozilla Firefox

Firefox add-ons that use.

Azureus

This is what I use to download torrents.

yum -y install azureus

p7zip

For operating with the 7z file archiving format.

yum -y install p7zip

Filezilla

For transfering files between machines.

yum -y install filezilla

pgadmin3

For PostgreSQL database administration.

yum -y install pgadmin3

VLC

For watching videos without worrying about the file formats:

yum -y install vlc

Unrar

For extracting RAR file archives.

yum -y install unrar

Grip

CD-ripper with database lookup/submission to share track information over the net, supports OGG and FLAC and adding ID3v1/v2 to MP3s.

yum -y install grip

Skype

rpm -ivh http://www.skype.com/go/getskype-linux-beta-fc10

PulseCaster

This is what I use for recording Skype calls.

yum -y install pulsecaster

vsftpd

Secure, fast FTP server

yum -y install vsftpd

Alacarte

To create custom application launchers in Gnome 3.

yum -y install alacarte

PHP

Some PHP modules that I need for web development.

yum -y install php-gd php-mbstring php-pgsql php-xml

MySQL Workbench

For designing databases visually.

yum -y install mysql-workbench

Calibre

For converting e-books to different formats and for managing your e-book collection.

yum -y install calibre

chmsee

HTML Help viewer for Unix/Linux (for viewing .chm files).

yum -y install chmsee

Development files for Qt toolkit

To develop applications using the Qt toolkit. And include the graphical configuration tool as well.

yum -y install qt-devel qt-config

GStreamer non-free plugins

From the Fedora Unity Project:

GStreamer is a multimedia framework used by many media players including rhythmbox, banshee, totem, listen, exaile and others. Due to legal issues support for various non-free formats , including mp3 files, aren’t included with GStreamer by default. You can add support for mp3 and other formats by installing an add-on package from the third party repository rpm.livna.org

yum -y install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg phonon-backend-gstreamer

FFMpeg

yum -y install ffmpeg ffmpeg-libs

DVD playback

yum -y install libdvdread libdvdnav lsdvd

JavaHL

To avoid this error in Eclipse and Aptana.

yum -y install subversion-javahl

Oracle JDK

Download and install the Java SE SDK RPM from the Java SE Downloads page

rpm -ivh http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm

Then setup Java JDK java, libjavaplugin.so (for Firefox), javac, and jar using alternatives –install:

alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_01/jre/bin/java 20000
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so  libjavaplugin.so /usr/java/jdk1.7.0_01/jre/lib/i386/libnpjp2.so 20000
alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_01/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.7.0_01/bin/jar 20000

Add the following JAVA_HOME environment variable to /etc/profile:

export JAVA_HOME="/usr/java/jdk1.7.0_01"

Aptana

Download and extract Aptana 3 from http://www.aptana.com/.

wget http://download.aptana.com/studio3/standalone/3.0.6/linux/Aptana_Studio_3_Setup_Linux_x86_3.0.6.zip
unzip Aptana_Studio_3_Setup_Linux_x86_3.0.6.zip

GnomeTweakTool

Customize advanced GNOME 3 options and easily change the font sizes for applications, documents and windows.

yum -y install gnome-tweak-tool

After installing TweakTool, I customized my fonts as follows:

  • Document font: Sans 10
  • Monospace font: Monospace 10
  • Window title font: Cantarell 10

Startup services

Make sure Httpd and MySQL starts up on boot.

chkconfig --levels 235 httpd on
systemctl start mysqld.service
systemctl enable mysqld.service

Make personal user space accessible to apache user

First, add apache user to user group. Execute a command similar to this:

usermod -a -G randell apache

Then modify the permissions of the user directory with:

chmod 770 /home/randell/

File Management Preferences

From a Nautilus window, go to Edit > Preferences. I modified mine to reflect the following changes:

  • Default View > View new folders using: List View
  • Icon View Defaults > Default zoom level: 66%
  • List View Defaults > Default zoom level: 33%

Favorites

I customized my Favorites to include these frequently used applications:

  • Chrome
  • Firefox (added by default)
  • Terminal
  • gedit
  • Files (added by default)
  • Rhythmbox
  • Take Screenshot

Terminal

Edit > Profile Preferences > Colors > Foreground and Background

  • Use colors from system theme: Unchecked
  • Built-in schemes: Green on black

Text Editor

Edit > Preferences

  • View
    • Display line numbers: Checked
    • Display right margin at column: 80
    • Highlight current line: Checked
    • Highlight matching brackets: Checked
  • Editor
    • Tab Stops
      • Tab width: 4
      • Insert spaces instead of tabs: Checked
      • Enable automatic indentation: Checked
    • File Saving
      • Create a backup of files before saving: Unchecked
      • Autosave files every: 5 minutes
    • Font & Colors > Color Scheme: Oblivion

Fix for “Aw, Snap!” when loading Twitter on Chrome on Fedora 15 with SELinux enforcing enabled

Good thing I found the fix in the Chromium issues list because I was already tempted to disable SELinux altogether.

Daniel Walsh explains:

We are trying to control what the chrome-sandbox is allowed to do, since it is setuid. The bug that you are seeing is caused by a file/directory being created in the homedir with the wrong label on it. In F15 we did not have policycoreutils-restorecond installed by default, which would have fixed the mislabeled directory. We can add this to a comps file to make sure it gets installed in the future. In F16 we have the ability to label these files/directories correctly on creation.

The quick fix is to execute the following command:

restorecon -R ~/.config

The command also solves the problem where the Xmarks Bookmarks Synchronizer and Delicious Bookmarks Extensions keeps on crashing on Chrome on Fedora 15.

Fedora 15 pre/post-installation setup

I have mentioned in my previous post containing GNOME 3 screenshots (which I should say is a thing of beauty) that I’ve installed Fedora 15.

During the pre-installation customization page, I clicked some of the familiar items that I would normally install eventually:

Applications

  • Design Suite (contains GIMP and OptiPNG, plus more)
  • Office/Productivity (contains LibreOffice)
  • Sound & Video (checked Amarok)

Development

  • Development Tools (checked cmake and PyLint)
  • Fedora Eclipse
  • Java Development
  • Web Development (checked Django)

Servers

  • Mail Server (SendMail)
  • MySQL Database (checked php-mysql)
  • PostgreSQL Database
  • Printing Support
  • Server Configuration Tools
  • Web Server (mod_python, mod_ssl, php, php-ldap)

Here’s my post-installation setup:

Update

Updating for the first time also installs the GPG keys, which are needed so you won’t get errors regarding unsigned packages when you use the “fedora” and “updates” repositories of Fedora. In our terminal, as root, type:

yum update

RPM Fusion

From the RPM Fusion website site:

RPM Fusion provides software that the Fedora Project or Red Hat doesn’t want to ship. That software is provided as precompiled RPMs for all current Fedora versions and Red Hat Enterprise Linux 5; you can use the RPM Fusion repositories with tools like yum and PackageKit.

RPM Fusion is a merger of DribbleFreshrpms, and Livna; our goal is to simplify end-user experience by grouping as much add-on software as possible in a single location.

To install both the free and non-free repositories, simply download and double-click the RPM Fusion free for Fedora Rawhide and what will become Fedora 15 (Alpha, Beta and snapshots) and RPM Fusion nonfree for Fedora Rawhide and what will become Fedora 15 (Alpha, Beta and snapshots) from the RPM Fusion Configuration page.

Google Chrome

Download the rpm file from the Chrome download page. Installing it is as easy as double-clicking the file.

Mozilla Firefox

Firefox add-ons that use.

Azureus

This is what I use to download torrents.

yum install azureus

p7zip

For operating with the 7z file archiving format.

yum install p7zip

Filezilla

For transfering files between machines.

yum install filezilla

pgadmin3

For PostgreSQL database administration.

yum install pgadmin3

VLC

For watching videos without worrying about the file formats:

yum install vlc

Unrar

For extracting RAR file archives.

yum install unrar

Grip

CD-ripper with database lookup/submission to share track information over the net, supports OGG and FLAC and adding ID3v1/v2 to MP3s.

yum install grip

Skype

They now have Skype 2.2 Beta for Linux. Simply download and double-click the RPM installer.

PulseCaster

This is what I use for recording Skype calls.

yum install pulsecaster

vsftpd

Secure, fast FTP server

yum install vsftpd

Alacarte

To create custom application launchers.

yum install alacarte

Tomcat 6

yum install tomcat6

PHP

Some PHP modules that I need for web development.

yum install php-xml

Sun JDK

Download Java SE SDK RPM Installer from the Java SE Downloads page and execute the similar commands as root:

Run the Java JDK binary:

chmod +x /home/randell/Downloads/jdk-6u25-linux-i586-rpm.bin
sh /home/randell/Downloads/jdk-6u25-linux-i586-rpm.bin

Install Java JDK java, javaws, libjavaplugin.so (for Firefox) and javac using alternatives –install:

alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_25/jre/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_25/jre/bin/javaws 20000
alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so  libjavaplugin.so /usr/java/jdk1.6.0_25/jre/lib/i386/libnpjp2.so 20000
alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_25/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_25/bin/jar 20000

Add the following JAVA_HOME environment variable to /etc/profile:

export JAVA_HOME="/usr/java/jdk1.6.0_25"

MySQL Workbench

For designing databases visually.

yum install mysql-workbench

Calibre

For converting e-books to different formats and for managing your e-book collection.

yum install calibre

bash auto-completion

yum install bash-completion

chmsee

HTML Help viewer for Unix/Linux (for viewing .chm files).

yum install chmsee

Development files for Qt toolkit

To develop applications using the Qt toolkit. And include the graphical configuration tool as well.

yum install qt-devel qt-config

GStreamer non-free plugins

From the Fedora Unity Project:

GStreamer is a multimedia framework used by many media players including rhythmbox, banshee, totem, listen, exaile and others. Due to legal issues support for various non-free formats , including mp3 files, aren’t included with GStreamer by default. You can add support for mp3 and other formats by installing an add-on package from the third party repository rpm.livna.org

yum install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg phonon-backend-gstreamer

FFMpeg

yum install ffmpeg ffmpeg-libs

DVD playback

yum install libdvdread libdvdnav lsdvd

Aptana

Downloaded Aptana 3 from http://www.aptana.com/.

GnomeTweakTool

One of the things that weren’t immediately obvious when I was setting-up Fedora 15 was the ability to easily change the font sizes for applications, documents and windows. Googling led me to GnomeTweakTool, which allows us to customize “advanced” GNOME 3 options.

yum install gnome-tweak-tool

After installing TweakTool, I customized my fonts as follows:

  • Document font: Sans 10
  • Monospace font: Monospace 10

File Management Preferences

From a Nautilus window, go to Edit > Preferences. I modified mine to reflect the following changes:

  • Default View > View new folders using: List View
  • Icon View Defaults > Default zoom level: 66%
  • List View Defaults > Default zoom level: 33%

Favorites

I customized my Favorites to include these frequently used applications:

  • Chrome
  • Firefox (added by default)
  • Terminal
  • Files (added by default)
  • Amarok
  • Eclipse
  • Empathy
  • Take Screenshot

Terminal

Edit > Profile Preferences > Colors > Foreground and Background

  • Use colors from system theme: Unchecked
  • Built-in schemes: Green on black

Text Editor

Edit > Preferences

  • View
    • Line Numbers >  Display line numbers: Checked
    • Current Line > Highlight current line: Checked
    • Right Margin >  Display right margin: Checked
    • Bracket Matching > Highlight matching bracket: Checked
  • Editor
    • Tab Stops
      • Tab width: 4
      • Insert spaces instead of tabs: Checked
    • Automatic Indentation > Enable automatic indentation: Checked
    • File Saving
      • Create a backup of files before saving: Unchecked
      • Autosave files every: 5 minutes
    • Font & Colors > Color Scheme: Oblivion

* I’ll simply update this post if ever I come across software I use that I forgot to list here.

Modify search engine shortcuts in Google Chrome

Google Chrome automatically detects and adds search engines to to the list of search engines that you can access from the Chrome address bar whenever you do searches on search engines like Google. It keeps a record of the site name, a keyword derived from the site url, and the search url. For example, if you do a search at NullPointer.ph, it saves the following information:

  • Name: NullPointer.ph Search
  • Keyword: nullpointer.ph
  • URL: http://nullpointer.ph//search/?q=%s&t=question

In order to do a quick search for that search engine, simply type the keyword in the address bar, press tab, type your search string and press Enter. This saves you one step from going to the website before performing the actual search.

But since the keyword that Chrome saves is usually the domain name of the website, it is oftentimes longer than what is necessary to do a quick search. Good thing it’s possible to modify the search shortcuts in Chrome. To do so, just click the wrench icon in Google Chrome, click Preferences, select the Basic tab, and click the Manage button under Default Search. From there you’ll see all the search engines that Google Chrome automatically saved for you.

Google Chrome - Search Engines

Google Chrome - Search Engines

Just click on any of the search engines and click the Edit button to modify the search engine keyword.

Google Chrome - Edit Search Engine

Google Chrome - Edit Search Engine

In this example, after saving the changes, you can already type ‘n’ in the address bar followed by a space and your query string to do a search at NullPointer.ph.

Note: In the first screenshot, I didn’t bother modifying the search keyword for the Google search since it is already set as my default search engine and typing the my query string in the address bar without the search engine keyword will suffice.

Chrome extensions I use

Most of the Firefox plugins I’m using hasn’t been ported to Chrome yet and some are still buggy (like the Firebug for Chrome). So far, this is what I have on my Chrome installation:

What Chrome extensions do you find useful?

Install Chromium on Fedora 11

As you may have known, Google Chrome is still only available on Windows XP/Vista.  Good thing there’s Chromium – the open-source project behind Google Chrome.  Follow these steps to install Chromium on Fedora 11:

Create a chromium.repo file in /etc/yum.repos.d/ and copy this info to the file:

[chromium]
name=Chromium Test Packages
baseurl=http://spot.fedorapeople.org/chromium/F$releasever/
enabled=1
gpgcheck=0

Save the file. In your terminal, as root, type:

yum install chromium

That’s it.  It also works on Fedora 10.

Setting-up Fedora 11

Fedora 11 was released a month ago, but it’s only now that I am able to completely configure my desktop to run on top of it.  It is because I’m still happy with Fedora 10.  I’ve established my development environment and I find no need to upgrade it yet.  In any case, I’m going to upgrade my Fedora 10 installation once I’m able to fully clone my environment in my other machine.

Similar to how I configured my Fedora 10 installation, I selected both Web Development and Web Server options when asked what additional tasks I want my system to support, to make my post-installation setup easier.

I also selected the following packages during installation:

Desktop Environment

  • KDE (K Desktop Environment)

Development

  • Fedora Eclipse
  • Java Development

Servers

  • MySQL Database
  • PostgreSQL Database

And here are my post-installation configurations:

Continue reading