motorscript.com

Fedora post-installation customization cheatsheet

Published:
Note: This is an archived post. Information may not be relevant now.

Updated for Fedora 21

These are the commands I bash as part of Fedora customization after semi-yearly installation. These commands require superuser permissions. su -

System Tweaks:

Install RPMFusion, free and non-free repository

yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Configure yum

Enable caching, keep metadata for 9 days
vi /etc/yum.conf

Configure Firmware

If your wireless device is a Broadcom (B43), install Broadcom (B43) wireless driver in Linux:
#!/bin/bash
#http://wireless.kernel.org/en/users/Drivers/b43

su -
yum install b43-fwcutter wget # apt-get or whatever your package manager is
export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
tar xjf broadcom-wl-5.100.138.tar.bz2
sudo b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-wl-5.100.138/linux/wl_apsta.o
echo 'modprobe b43' > /etc/sysconfig/modules/b43.modules
chmod +x /etc/sysconfig/modules/b43.modules

Install tweak tools

yum -y install gnome-tweak-tool dconf-editor gconf-editor

Install guake terminal

yum -y install guake

Don’t forget to enable guake in startup applications: gnome-tweak-tool -> Startup Applications

‘Show Desktop’ shortcut

System Settings -> Keyboard -> Shortcuts -> Navigation Hide all normal windows – Alt+F9

Multimedia:

Install multimedia codecs

yum -y install gstreamer gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-bad-free gstreamer-plugins-bad-nonfree gstreamer-plugins-base gstreamer-plugins-good gstreamer-plugins-ugly ffmpeg xmms xmms-mp3 xine xine-lib

Clementine media player

yum -y install clementine

VLC media player

yum -y install vlc

SMPlayer

yum -y install smplayer

Image Editors

yum -y install gimp inkscape

Utilities:

yum -y install wget

System monitoring tools

yum -y install lm_sensors hddtemp

Install Artha, the dictionary

yum -y install artha

Install English language pack for Libreoffice.

yum -y install libreoffice-langpack-en

Install 7zip and RAR plugins and executables

yum -y install p7zip p7zip-plugins unrar

Install android-tools (provides adb and fastboot)

yum -y install android-tools

Install nemo (Nautilus fork/alternative) and enable it as the default file manager

yum -y install nemo nemo-fileroller
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

Internet and Browsers:

Update/Install Firefox

yum -y install firefox

Install flash plugin for browsers:

yum -y install lpf-flash-plugin
And then launch
lpf-flash-plugin

Install Skype:

yum -y install lpf-skype
And then launch
lpf-skype

For developers:

        yum -y install vim git gitg hg
yum -y install gcc zlib-devel libjpeg-devel

Install Sublime Text 3

Install Filezilla

yum -y install filezilla

Install OpenJDK

yum -y install java-*-openjdk java-*-openjdk-plugin

Apache and PHP

yum -y install httpd php php-xml
schkconfig httpd on
rm -rf /etc/httpd/conf.d/welcome.conf
find /var/www/html -type d -print | xargs chmod g+rwxs

Enable directives in .htaccess

vi /etc/httpd/conf/httpd.conf
Modify AllowOverride None to AllowOverride All inside <Directory "/var/www/html">
service httpd restart

MySQL

        yum -y install mysql mysql-server phpmyadmin
chkconfig mysqld on
service mysqld restart
mysql_secure_installation

Python:

wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python get-pip.py
pip install virtualenv
yum -y install python-devel

Postgres:

yum -y install postgresql-server
yum -y install python-psycopg2 postgresql-devel #for Python
yum -y install php-devel php-pgsql #for PHP support
su - postgres -c initdb
vi /var/lib/pgsql/data/pg_hba.conf #Ensure METHOD is trust
service postgresql restart
su - postgres
psql template1
ALTER USER postgres with encrypted password 'your_password';
exit()
vi /var/lib/pgsql/data/pg_hba.conf #Ensure METHOD is md5
service postgresql restart
systemctl enable postgresql.service

SCM Breeze:

(set of shell scripts (for bash and zsh ) that enhance your interaction with git.)
sudo yum -y install ruby
git clone git://github.com/ndbroadbent/scm_breeze.git ~/.scm_breeze
~/.scm_breeze/install.sh
source ~/.bashrc # or source ~/.zshrc
Install gpaste extension for gnome:
yum install gnome-shell-extension-gpaste