Last active
August 29, 2015 14:01
-
-
Save jmmadruga/dbe172e3c09f5a6b9d2d to your computer and use it in GitHub Desktop.
Fedora KDE 20 install script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copyright (c) 2013, Jerônimo Medina Madruga <[email protected]> | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| # Check if you are root | |
| if [ `whoami` != root ]; then | |
| echo Please run this script as root | |
| exit | |
| fi | |
| # Check the connection | |
| if ! ping -c 4 www.google.com.br; then | |
| echo You need to be connected in order to use this script | |
| exit | |
| fi | |
| # Remove unused software | |
| yum -y remove calligra* apper kwrite kdepim amarok kget kscd kdegames-minimal kcalc kolourpaint kcolorchooser kruler telepathy-* ktorrent dragon krusader | |
| # Remove unused dependencies | |
| yum -y autoremove | |
| # Verify if the external packages are installed | |
| if ! rpm -q rpmfusion-free-release-$(rpm -E %fedora) ; then | |
| packages+="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm " | |
| fi | |
| if ! rpm -q rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm ; then | |
| packages+="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm " | |
| fi | |
| if ! rpm -q google-chrome-stable ; then | |
| packages+="https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm " | |
| fi | |
| if ! rpm -q google-talkplugin ; then | |
| packages+="https://dl.google.com/linux/direct/google-talkplugin_current_x86_64.rpm " | |
| fi | |
| if ! rpm -q libdvdcss ; then | |
| packages+="http://ayo.freshrpms.net/fedora/linux/11/x86_64/freshrpms/RPMS/libdvdcss-1.2.10-2.fc11.x86_64.rpm " | |
| fi | |
| if ! rpm -q winff ; then | |
| packages+="http://winff.org/docs/rpm/fedora/winff-repo-1.0-1.noarch.rpm " | |
| fi | |
| if ! rpm -q skype ; then | |
| packages+="http://download.skype.com/linux/skype-4.2.0.13-fedora.i586.rpm " | |
| fi | |
| # Install the missing external packages | |
| yum -y install $packages | |
| # Getting KDE in portuguese and usual software | |
| yum -y install kde-l10n-Brazil firefox krename kompare unrar lzma lha arj unarj dpkg vlc wget kate kdenlive abcde python-eyed3 lame inkscape gimp scribus vlc nano hplip htop rpm-build cabextract ttmkfdir cups-pdf aajohan-comfortaa-fonts abattis-cantarell-fonts minitube calibre speedcrunch fedora-business-cards httpd-tools python-tools testdisk youtube-dl adobe-source-sans-pro-fonts jigdo winff sigil audacity-freeworld kio_mtp | |
| # Install LibreOffice + basic development tools | |
| yum -y groupinstall LibreOffice 'Development Tools' | |
| # Getting Latex working with Kile | |
| yum -y install kile texlive-abntex2 texlive-lastpage texlive-babel-portuges texlive-epstopdf texinfo-tex texlive-comment | |
| # Install the Microsoft Fonts | |
| if ! rpm -q msttcorefonts ; then | |
| wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec | |
| yum install rpm-build cabextract ttmkfdir | |
| rpmbuild -bb msttcorefonts-2.5-1.spec | |
| yum install /root/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm | |
| fi | |
| # Update repositories | |
| yum -y update | |
| # Disable selinux (lazy solution with security implications) | |
| /usr/sbin/setenforce 0 | |
| nano /etc/sysconfig/selinux | |
| # Set sound level | |
| alsamixer | |
| # Final Touches | |
| echo Done boss! Things that you should disable or enable now: Desktop Effects, Nepomuk, Akonadi, Kwallet, Dropbox, Solarized colors (http://kde-look.org/content/show.php/?content=150093) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment