Fedora Post installation Actions

Fedora Post Installation


Purpose: This document guides me in configuring and re-installing packages after a fresh fedora installation. This is a living document and will continually change.

Install Software Packages


sudo yum -y install git gcc readline-devel sqlite3-dbf.x86_64 libsqlite3x-devel zlib-devel bzip2-devel p7zip p7zip-plugins openssl-devel rubygem-rhc shutter

Install Sublime Text


Download Sublime Text 2

Extract files and move to the /opt folder

tar -xf Sublime\ Text\ 2.0.1\ x64.tar.bz2 -C /opt/

$ mv /opt/Sublime\ Text\ 2/ /opt/Sublime_Text

Create a sym link

ln -s /opt/Sublime_Text/sublime_text /usr/bin/sublime_text

Create an app launcher (.desktop file)

sudo nano /usr/share/applications/sublime_text.desktop

Paste the following text into the sublime_text.desktop file:

[Desktop Entry]
Name=Sublime Text 2
GenericName=Sublime Text 2  # For KDE 4
Comment=Sublime Text 2
Exec=sublime_text
Terminal=false
Icon=/opt/Sublime_Text/Icon/128x128/sublime_text.png
Type=Application
StartupNotify=true
Categories=Development;IDE;Utility;TextEditor;

Make Sublime Text 2 as the default application to open all text files, by modifying defaults.list and replacing gedit.desktop with sublime_text.desktop

sublime_text /usr/share/applications/defaults.list

Oracle Java JRE & JDK Installation


Download the appropriate Java installation packages Java JRE and/or JRE

cd ~/Downloads

Install the JDK and/or the JRE

rpm -Uvh jdk-7u25-linux-x64.rpm
rpm -Uvh jre-7u25-linux-x64.rpm

Install Sun/Oracle JDK java, javaws, libjavaplugin.so (for Firefox/Mozilla) and javac with alternatives –install command
Use Java JDK latest version (/usr/java/latest)

## java ##
sudo alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
## javaws ##
sudo alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000

## Java Browser (Mozilla) Plugin 32-bit ##
sudo alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 20000

## Java Browser (Mozilla) Plugin 64-bit ##
sudo alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/jre/lib/amd64/libnpjp2.so 20000

## Install javac only if you installed JDK (Java Development Kit) package ##
sudo alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
sudo alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000

Install Sun/Oracle JRE java, javaws and libjavaplugin.so (for Firefox/Mozilla) with alternatives –install command

## java ##
sudo alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000

## javaws ##
sudo alternatives --install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 20000

## Java Browser (Mozilla) Plugin 32-bit ##
sudo alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/lib/i386/libnpjp2.so 20000

## Java Browser (Mozilla) Plugin 64-bit ##
sudo alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000

Change the version of Java being used by the system

sudo alternatives --config java
sudo alternatives --config javaws

## 32-bit command ##
sudo alternatives --config libjavaplugin.so

## 64-bit command ##
sudo alternatives --config libjavaplugin.so.x86_64

Install PyEnv


Change Directory into a folder where you want the program to live and get the actual program from the github repos

cd ~
git clone git://github.com/yyuu/pyenv.git .pyenv

Now add the .pyenv folder to your $PATH variable

echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc

Add pyenv init to your shell to enable shims and auto-completion.

echo 'eval "$(pyenv init -)"' >> ~/.bashrc

Restart your shell so the path changes take effect. You can now begin using pyenv.

exec $SHELL

Using PyEnv - Issue a command to install the the python versions that you'd like to dev with:

$ pyenv install 2.7.5

Rebuild the shim barriers

$ pyenv rehash

Sets the global version of Python to be used in all Terminals

pyenv global 2.7.5

Comments