Fedora 19 Installation


Here is how to full installation step to setup and configure Fedora 19 for development. FYI, I use macbook pro on this installation.

1. Fix Fedora 19 Broadcom Wireless
We need to download rpmfusion and install klmod to make wireless working on Fedora 19.

1
su -c ‘yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm’

After installing rpmfusion, now we’re ready to install wireless driver

1
sudo yum install kmod-wl-`uname -r`

You need to reboot to make your wireless working.

2. Setup development environment
Here is list software that needed to build development environment in Fedora 19.

1
sudo yum install make automake gcc gcc-c++ libxslt libxslt-devel libxml2 libxml2-devel libffi libffi-devel libcurl libcurl-devel openssl-devel sqlite-devel libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 libxslt-devel nmap ImageMagick git yakuake shutter vlc libreoffice k3b kdepim mysql mysql-server mysql-devel nginx php php-fpm php-common phpmyadmin httpd fuse-exfat gimp inkscape alacarte wget vim lsb kernel-devel libpng-devel libXtst-devel

Now we start mysql and httpd services and start in on boot:

1
2
3
4
sudo systemctl start httpd.service
sudo systemctl start mysqld.service
sudo systemctl enable httpd.service
sudo systemctl enable mysqld.service

3. Setup Django development
Install Python dependencies:

1
sudo yum install python-devel libevent-devel python-pip bash-completion

Install virtualenv and virtualenvwrapper

1
2
sudo pip-python install virtualenv
sudo pip-python install virtualenvwrapper

Put this into ~/.bashrc

1
2
3
4
export WORKON_HOME=$HOME/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME # Tell pip to create its virtualenvs in $WORKON_HOME.
export PIP_RESPECT_VIRTUALENV=true # Tell pip to automatically use the currently active virtualenv

And load this by “source ~/.bashrc”. To start new virtualenv :

1
mkvirtualenv –no-site-packages –distribute trip

6. Install Sun JAVA 7 in Fedora 19
Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and Download JRE & JDK RPM packages. I’m suppose to use 64-bit version. To install :

1
sudo rpm -Uvh jdk-7u11-linux-x64.rpm

Set JAVA PATH in /etc/profile :

1
2
export JAVA_HOME=/usr/java/jdk1.7.0_11
export PATH=$PATH:$JAVA_HOME/bin
1
2
3
sudo alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_11/bin/java 100
sudo alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_11/bin/jar 100
sudo alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_11/bin/javac 100

Now, we want to force JAVA version using 1.7.11 :

1
2
3
4
yodi@fedora:/usr/java/jre1.7.0_11/bin$ java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (fedora-2.3.10.3.fc19-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Now execute “sudo alternatives –config java” :

1
2
3
4
5
6
7
8
9
10
11
sudo alternatives –config java

There are 3 programs which provide ‘java’.

  Selection    Command
———————————————–
*+ 1           /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
   2           /usr/java/jdk1.7.0_11/bin/java
   3           /usr/java/jre1.7.0_11/bin/java

Enter to keep the current selection[+], or type selection number: 2

And the result of java version:

1
2
3
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

8. Install Google Chrome
Create a new file :

1
sudo vim /etc/yum.repos.d/google-chrome.repo

And put this code :

1
2
3
4
5
6
[google-chrome]
name=google-chrome – 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Then you can update this repo by “sudo yum update” and “sudo yum install google-chrome-stable”

9. Fix blue color terminal / console

1
cp /etc/DIR_COLORS ~/.dircolors && . /etc/profile.d/colorls.sh

10. Setup VIM for Python and Django
I use my VIM configuration : https://github.com/yodiaditya/vim-pydjango.

11. IDE
I use AptanaStudio and Sublime Text 2 for editing Python and C/C++ applications.

You can download at :
http://www.aptana.com/products/studio3/download
and http://www.sublimetext.com/2.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.