Skip to content

Instantly share code, notes, and snippets.

@andreystarkov
Forked from dfelix/perfectelementary.bash
Created April 30, 2016 10:54
Show Gist options
  • Save andreystarkov/7988598de5b96a9a83b97079d9f0601c to your computer and use it in GitHub Desktop.
Save andreystarkov/7988598de5b96a9a83b97079d9f0601c to your computer and use it in GitHub Desktop.
# ######################
# Elementary OS Custom for my system.
# Based forked from memoryleakx/perfectelementary.bash
#
# This is my custom version, intended to install on my Latitude 6500
#
# Download Elementary OS from here:
# http://sourceforge.net/projects/elementaryos/files/stable/
#
# ######################
# ######################
# KERNEL
# ######################
#Install the Dynamic Kernel Module Support Framework
# sudo apt-get install dkms (needs revision)
# Kernel update
# Check “Latest Stable Kernel” https://www.kernel.org/
mkdir kernel
cd kernel
#Install Kernel 3.16.0 on 64 Bit
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/linux-headers-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/linux-headers-3.16.0-031600_3.16.0-031600.201408031935_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/linux-image-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb
sudo dpkg -i linux-headers-3.16.0-*.deb linux-image-3.16.0-*.deb
cd ..
rm -rf kernel
#Reboot!
#Install fresh firmware
mkdir firmware
cd firmware
#wget https://launchpad.net/ubuntu/+archive/primary/+files/linux-firmware_1.117_all.deb
#wget https://launchpad.net/ubuntu/+archive/primary/+files/nic-firmware_1.117_all.udeb
wget http://launchpadlibrarian.net/184918587/nic-firmware_1.134_all.udeb
wget http://launchpadlibrarian.net/184918586/linux-firmware_1.134_all.deb
sudo dpkg -i *.deb
cd ..
rm -rf firmware
#update initramfs
sudo update-initramfs -k all -u
#Reboot!
# Try ppa:oibaf/graphics-drivers or ppa:glasen/intel-driver
#http://www.mythtv.org/wiki/VAAPI
sudo apt-get install libva1 i965-va-driver libva-intel-vaapi-driver vainfo
sudo apt-get install libva-dev
# ######################
# REMOVE UNWANTED APPS
# ######################
#Clean-up System
sudo apt-get purge midori-granite
sudo apt-get purge noise
sudo apt-get purge software-center
sudo apt-get purge scratch-text-editor
sudo apt-get purge bluez
sudo apt-get purge modemmanager
sudo apt-get purge geary
sudo apt-get purge firefox
sudo apt-get autoremove
sudo apt-get autoclean
#Remove some Switchboard Plug's
#sudo rm -rf /usr/lib/plugs/GnomeCC/gnomecc-bluetooth.plug (needed for my laptop version)
sudo rm -rf /usr/lib/plugs/GnomeCC/gnomecc-wacom.plug
#Then, update your system
sudo apt-get update && sudo apt-get dist-upgrade
# ######################
# ADD TWEAKS
# ######################
#Install Ubuntu Restricted Extras
sudo apt-get install ubuntu-restricted-extras
#Install Elementary OS extras
sudo apt-add-repository ppa:versable/elementary-update
sudo apt-get update
sudo apt-get install elementary-desktop elementary-tweaks
sudo apt-get install elementary-plastico-theme
sudo apt-get install elementary-elfaenza-icons
#sudo apt-get install elementary-plank-themes
sudo apt-get install wingpanel-slim indicator-synapse
#Enable all Startup Applications
cd /etc/xdg/autostart
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop
# Install Aptitude, Synaptic and Gdebi
sudo apt-get install aptitude synaptic gdebi-core
#Install Apparmor 2.8
sudo add-apt-repository ppa:apparmor-upload/apparmor-2.8
sudo apt-get update && sudo apt-get dist-upgrade
#Make partitions writable
gksudo pantheon-files
# ######################
# ADD WANTED APPS
# ######################
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# on console launch app using google-chrome-stable
# if error appears...
# GTK theme error: Unable to locate theme engine in module_path: "pixmap",
# then you need to instal pixbuf engine...
# sudo apt-get install gtk2-engines-pixbuf
# also, to resolve duplicate icon issue, a solution is...
# sudo cp -a /usr/share/applications/google-chrome.desktop /usr/share/applications/google-chrome-stable.desktop
#Install gedit (Text Editor)
sudo apt-get install gedit gedit-plugins
#Install File Compression Libs
sudo apt-get install unace unrar zip unzip xz-utils p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
# Install VLC
sudo apt-get install vlc
#Enable Movie DVD Support
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
# Multimedia codecs
sudo apt-get install libavcodec-extra-53
#Install a Firewall Application
sudo apt-get install gufw
# ######################
# OPTIONAL SOFTWARE
# ######################
#Install Gimp
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update
sudo apt-get install gimp gimp-data gimp-plugin-registry gimp-data-extras
#Install Java 7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
#Install Skype
sudo apt-add-repository "deb http://archive.canonical.com/ubuntu/ precise partner"
sudo apt-get update && sudo apt-get install skype
#Install Libre Office 4
sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update
sudo apt-get install libreoffice
#Install the latest git Version
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git
#Install the latest Version of VirtualBox
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" >> /etc/apt/sources.list.d/virtualbox.list'
sudo apt-get update
sudo apt-get install virtualbox-4.3
#Install Dropbox - Cloud storage
sudo gdebi dropbox_1.6.0_amd64.deb
#Install Clipboard manager
sudo apt-get install glipper
#Install Openshot
sudo add-apt-repository ppa:openshot.developers/ppa
sudo apt-get update && sudo apt-get install openshot openshot-doc
# ######################
# CONSOLE
# ######################
#Install screenfetch
mkdir screenfetch
cd screenfetch
wget https://raw.github.com/memoryleakx/screenFetch/master/screenfetch-dev
sudo mv screenfetch-dev /usr/bin/screenfetch
cd ..
rm -rf screenfetch
sudo chmod +rx /usr/bin/screenfetch
#setup .bashrc for auto screenfetch
gedit ~/.bashrc
#put this on the last line
screenfetch -D "Elementary"
# ###################################
# gufw - Gui tool to configure firewall
#
# #Update xorg using xorg-edgers PPA
# sudo add-apt-repository ppa:xorg-edgers/ppa
# sudo apt-get update && sudo apt-get dist-upgrade
#
# #Optimize SSD Performance
# sudo nano /etc/fstab
# noatime,nodiratime,discard
# #Swap Space
# /etc/sysctl.conf
#
# vm.swappiness=1
# vm.vfs_cache_pressure=50
#
# Full codec pack
# sudo apt-get install flashplugin-installer gsfonts-x11 libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 ffmpeg totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2 gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-sdl gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-dbus-media-service gstreamer-tools ubuntu-restricted-extras
#
# Microsoft font compatibility
# sudo apt-get install ttf-mscorefonts-installer
#
# Intel card https://01.org/linuxgraphics/
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment