Skip to content

Instantly share code, notes, and snippets.

@gilgamesh2k
Last active December 31, 2015 09:58
Show Gist options
  • Save gilgamesh2k/7969862 to your computer and use it in GitHub Desktop.
Save gilgamesh2k/7969862 to your computer and use it in GitHub Desktop.
Fedora 19 post installation script
#!/bin/bash
if [ $EUID -ne 0 ]; then
echo "you have to run this with sudo..."
exit -1
fi
# Fedora 19 Post Installation Script
echo "[!] Installing yum-plugin-fastestmirror..."
yum -y install yum-plugin-fastestmirror
echo "[!] Updating system..."
yum -y update
echo "[!] Installing RPMFusion..."
yum localinstall -y --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
yum localinstall -y --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
yum install -y --nogpg rpmfusion*
echo "[!] Installing rpm-sphere..."
cat <<EOF >>/etc/yum.repos.d/rpm-sphere.repo
[rpm-sphere]
name=RPM Sphere
baseurl=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/
gpgkey=http://download.opensuse.org/repositories/home:/zhonghuaren/Fedora_19/repodata/repomd.xml.key
enabled=1
gpgcheck=1
EOF
# Czech man pages
yum -y install man-pages man-pages-cs
# Basic software
echo "[!] Installing basic software (wget,nano,mc)"
yum -y install wget nano mc # todo config nano mc
# ===== Tools =====
# Compression
echo "[!] Installing compression tools"
yum -y install unrar p7zip
yum -y install cmatrix
# Monitoring
echo "[!] Installing monitoring tools..."
yum -y install htop iotop nmon fping
# Disks
echo "[!] Installing disk tools..."
yum -y install smartmontools gparted partimage hdparm
# Hardware
echo "[!] Installing hardware tools..."
yum -y install lshw lm_sensors
echo "[!] Installing virt-manager..."
yum -y install virt-manager
# ====================
# ===== Services =====
# Install Apache
yum -y install httpd
# Create startup links for Apache, so that Apache starts automatically whenever the system boots
systemctl enable httpd.service
# Start Apache
systemctl start httpd.service
# ====================
# ===== Codecs =====
echo "[!] Installing Proprietary Codecs..." # todo: nejak moc toho je
yum install -y gstreamer-* gstreamer1-* ffmpeg x264 --exclude=*devel,*doc*
echo "[!] Installing DVD support..." # todo: asi vymazat uplne
# yum install -y libdvdread libdvdnav lsdvd libdvdcss
# =============== GUI ===============
# Gnome
yum -y install dconf-editor
yum -y install gnome-tweak-tool
# GUI software
yum -y install thunderbird
yum -y install deluge
yum -y install krusader kate
yum -y install unetbootin
# Media players - SMPlayer Banshee
yum -y install banshee # todo: Banshee je v .NETu?
yum -y install smplayer
# ===== Firefox =====
# Adobe Flash Player plugin
echo "[!] Installing Adobe Flash Player..."
yum install -y --nogpg http://linuxdownload.adobe.com/adobe-release/adobe-release-$(arch)-1.0-1.noarch.rpm
yum install -y flash-plugin
# ===================
# Big software
# Google Chrome
echo "[!] Installing Google Chrome..."
cat <<EOF >> /etc/yum.repos.d/google-chrome.repo
[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
EOF
yum -y install -y google-chrome-stable
# Dropbox
echo "[!] Installing Dropbox..."
cat <<EOF >> /etc/yum.repos.d/dropbox.repo
[Dropbox]
name=Dropbox Repository
baseurl=http://linux.dropbox.com/fedora/\$releasever/
gpgkey=http://linux.dropbox.com/fedora/rpm-public-key.asc
EOF
yum -y install -y nautilus-dropbox
# Skype
yum -y install alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686 qtwebkit.i686
wget -c http://download.skype.com/linux/skype-4.2.0.11-fedora.i586.rpm
yum localinstall -y skype-4.2.0.11-fedora.i586.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment