Skip to content

Instantly share code, notes, and snippets.

@IssacTran
Created June 16, 2016 18:13
Show Gist options
  • Save IssacTran/a79576bd016a87ac0d225657e4ca55a4 to your computer and use it in GitHub Desktop.
Save IssacTran/a79576bd016a87ac0d225657e4ca55a4 to your computer and use it in GitHub Desktop.
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#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
#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 autoremove
sudo apt-get autoclean
#Remove some Switchboard Plug's
sudo rm -rf /usr/lib/plugs/GnomeCC/gnomecc-bluetooth.plug
sudo rm -rf /usr/lib/plugs/GnomeCC/gnomecc-wacom.plug
#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 Guake Terminal
sudo apt-get install guake
#Install screenfetch (my elementary-OS special Version)
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
#make it readable and executable
sudo chmod +rx /usr/bin/screenfetch
##setup .bashrc for auto screenfetch
gedit ~/.bashrc
###put this on the last line
screenfetch -D "Elementary"
#For fresh Nvidia Drivers
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update && sudo apt-get dist-upgrade
#For Nvidia Cards
sudo apt-get install nvidia-331
#For AMD/ATI Cards
sudo apt-get install fglrx-installer
#Install Ubuntu Restricted Extras
sudo apt-get install ubuntu-restricted-extras
#Enable all Startup Applications
cd /etc/xdg/autostart
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop
#Enable Movie DVD Support
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
#Install a Firewall Application
sudo apt-get install gufw
#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 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-dark-theme elementary-plastico-theme elementary-whit-e-theme elementary-harvey-theme
sudo apt-get install elementary-elfaenza-icons elementary-nitrux-icons
sudo apt-get install elementary-plank-themes
sudo apt-get install wingpanel-slim indicator-synapse
#if not installed
#Install the Dynamic Kernel Module Support Framework
sudo apt-get install dkms
mkdir kernel
cd kernel
#Install Kernel 3.12.2 on 64 Bit
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-headers-3.12.2-031202-generic_3.12.2-031202.201311291538_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-headers-3.12.2-031202_3.12.2-031202.201311291538_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-image-3.12.2-031202-generic_3.12.2-031202.201311291538_amd64.deb
#Install Kernel 3.12.2 on 32 Bit
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-headers-3.12.2-031202-generic_3.12.2-031202.201311291538_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-headers-3.12.2-031202_3.12.2-031202.201311291538_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12.2-trusty/linux-image-3.12.2-031202-generic_3.12.2-031202.201311291538_i386.deb
sudo dpkg -i *.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
sudo dpkg -i *.deb
cd ..
rm -rf firmware
#update initramfs
sudo update-initramfs -k all -u
#Reboot!
#Install Broadcom STA Driver (if you need)
mkdir wlan
cd wlan
wget https://launchpad.net/ubuntu/+archive/primary/+files/broadcom-sta-dkms_6.30.223.141-1_all.deb
sudo dpkg -i *.deb
cd ..
rm -rf wlan
#Reboot!
#Install Apparmor 2.8
sudo add-apt-repository ppa:apparmor-upload/apparmor-2.8
sudo apt-get update && sudo apt-get dist-upgrade
#Install Java 7
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
#Install Steam
wget http://repo.steampowered.com/steam/signature.gpg && sudo apt-key add signature.gpg
sudo sh -c 'echo "deb http://repo.steampowered.com/steam/ precise steam" >> /etc/apt/sources.list.d/steam.list'
sudo apt-get update
sudo apt-get install steam
#Install PlayonLinux
#Run Windows Applications and Games on Linux
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux
#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 Clementine Music Player
sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine
#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 Thunderbird
#if you want install Thunderbird instead of Geary Mail
#first remove Geary Mail
sudo apt-get purge geary
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update
sudo apt-get install thunderbird
@IssacTran
Copy link
Author

Here's a guide I created to make Elementary OS feel like OS X. I show how to enable desktop, improve font-rendering (like OS X style), enabling dock zoom, and other useful tweaks.

ELEMENTARY OS THINGS TO DO:

  1. https://gist.github.com/memoryleakx/7567474 ≤––– useful guide. Pick & choose what you want to do.

sudo apt-get update && sudo apt-get dist-upgrade

Install Chrome (not Chromium, since Netflix doesn’t play well under Chromium due to some licensing stuff):
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

  1. sudo dpkg --add-architecture i386 <–––– to enable 32 bit apps on 64 bit OS.

  2. Install “Task Manager”, “VLC”, “Transmission,” etc. from Ubuntu Software Center

Some VLC Codecs To Install:

sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update
sudo apt-get install vlc-plugin-libde265

  1. Allow volume go higher in menu – volume control on keyboard (which you have to bind in keyboard settings for the Chromebook) only goes to 100% but the menu button for sound can be conveniently “dragged” to go up to 150%.

gsettings set com.ubuntu.sound allow-amplified-volume 'true'

  1. Https://www.reddit.com/r/elementaryos/comments/3vj3xh/how_do_i_remove_these_default_applications/

sudo apt-get remove audience
sudo apt-get remove noise

May want to remove videos app. Do this to prevent Nautilus from defaulting to it over VLC. Remove videos, music, etc. i.e.

  1. http://itsfoss.com/things-todo-elementary-os-freya/

A) Enable Canonical Partners repository
B) sudo apt-get install ubuntu-restricted-extras
C) sudo apt-get install libreoffice

  1. Enable DOCK ZOOM – Open up a terminal and run:

scratch-text-editor ~/.config/plank/dock1/settings
All the way at the bottom of the file do:

Whether the dock will zoom when hovered.

ZoomEnabled=true

The dock's icon-zoom (in percent).

ZoomPercent=150

gsettings set org.gnome.gnome-screenshot auto-save-directory '/home/your name/Desktop'
gsettings set org.gnome.gnome-screenshot default-file-type 'jpg'
gsettings set org.gnome.gnome-screenshot delay '1'
gsettings set org.gnome.gnome-screenshot last-save-directory '/home/your name/Desktop/'

  1. Enable seconds on menu bar:
    gsettings set com.canonical.indicator.datetime show-seconds true

gsettings set org.gnome.nautilus.desktop font '16'

gsettings set org.gnome.nautilus.preferences default-sort-order 'type'

  1. Turn off annoying “auto-maximize” feature on application boot up. Disabling this will “save” the window state upon closing it.

gsettings set org.gnome.mutter auto-maximize false

  1. Text Editors:
    sudo apt-get install gedit gedit-plugins

Also install sublime text editor if you want.

  1. Enable Desktop + Right Click:
    sudo apt-get update
    sudo apt-get install nautilus dconf-tools
    open dconf-tools and go to org → gnome → nautilus→ desktop and tick on any option. which you want to view on desktop.

Then go to,
org → pantheon → cerbere and add 'nautilus -n' entry as follows.

['wingpanel', 'plank', 'slingshot-launcher --silent', 'nautilus -n']

Open Terminal and type and execute following command:

nautilus -n

Again open dconf-editor and go to:

org → gnome → desktop → background and tick on Show-Desktop-Icons box

  1. Install laptop-mode-tools - It will add 20-30% to your battery life.

sudo apt-get install laptop-mode-tools

Much of this just works, but the auto backlight adjustment does not. You need to edit /etc/laptop-mode/conf.d/lcd-brightness.conf and make changes as follows:

.# turn on brightness control
CONTROL_BRIGHTNESS=1

.# set the backlight brightness of AC power state change
BATT_BRIGHTNESS_COMMAND="echo 93"
LM_AC_BRIGHTNESS_COMMAND="echo 937"
NOLM_AC_BRIGHTNESS_COMMAND="echo 937"
BRIGHTNESS_OUTPUT="/sys/class/backlight/intel_backlight/brightness"

  1. ELEMENTARY OS TWEAKS
    sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily
    sudo apt-get update
    sudo apt-get install elementary-tweaks

Now go into settings and look for “Tweaks” – and customize the way you want. You can change system font sizes, add a minimize button, and more.

  1. CHROME THREE BUTTONS ON TOP RIGHT - in terminal:
    gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"

  2. 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

  3. Browser plug-in for Java:

sudo apt-get install icedtea-7-plugin openjdk-7-jre

chrome:://flags and modify settings as you wish.
also download the “Backstay” extension to prevent the backspace button from annoyingly going back and also “No MouseWheel Zoom” one to prevent ctrl & +/- zooming.

  1. Install MenuLibre (so you can easily remove application shortcuts from the applications launcher)
    sudo add-apt-repository ppa:menulibre-dev/devel
    sudo apt-get update
    sudo apt-get install menulibre

  2. How to change desktop text color to white (like OS X): FROM: http://mylinuxideas.blogspot.com/2015/04/enable-desktop-icons-and-right-click-on.html

Open terminal and type sudo nano /usr/share/themes/elementary/gtk-3.0/gtk-widgets.css

and then paste this anywhere on the css file:

.nautilus-desktop.nautilus-canvas-item {
color: #ffffff;
text-shadow: 1 1 alpha (@fg_color, 0.8);
}

and then run nautilus -q and you will see that folder font color is now white.

  1. Select pantheon terminal as default (in case application doesn’t launch).
    sudo update-alternatives --config x-terminal-emulator

and make pantheon-terminal the default.

  1. Improve font rendering:

sudo add-apt-repository ppa:no1wantdthisname/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fontconfig-infinality
sudo bash /etc/fonts/infinality/infctl.sh setstyle

I set style as “OS X”

  1. Install Skype
    sudo apt-add-repository "deb http://archive.canonical.com/ubuntu/ precise partner"
    sudo apt-get update && sudo apt-get install skype

  2. 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

  3. Add show/hide desktop command to corners & Plank dock:

A) sudo apt-get install wmctrl
B) Create “show desktop” launcher icon on plank (personal note: I saved master.zip to Dropbox in case link breaks)
cd /tmp && wget https://github.com/png2378/showdesktop/archive/master.zip
unzip master.zip && cd showdesktop-master
sudo mv showdesktop /usr/local/bin/ && sudo mv showdesktop.desktop /usr/share/applications/ && sudo mv showdesktop.svg /usr/share/icons/elementary/apps/48/

now go to corners in desktop settings and make a custom command for “showdesktop”

  1. Install redshift from Ubuntu Software Center. https://help.ubuntu.com/community/Redshift

So here is an example of a working configuration, which you can adapt to your needs. Name it redshift.conf and place it in your $HOME/.config directory, then ajust it to your needs.

[redshift]
; Set the day and night screen temperatures
temp-day=6500
temp-night=3500

; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature
transition=1

; Set the screen brightness. Default is 1.0
brightness=1.0
; It is also possible to use different settings for day and night since version 1.8.
;brightness-day=0.7
;brightness-night=0.4
; Set the screen gamma (for all colors, or each color channel individually)
gamma=1.0:1.0:1.0

;gamma=0.8:0.7:0.8
; Set the location-provider: 'geoclue', 'gnome-clock', 'manual'
; type 'redshift -l list' to see possible values
; The location provider settings are in a different section.
location-provider=manual

; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values
; 'randr' is the preferred method, 'vidmode' is an older API
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.
adjustment-method=randr

; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings
; e.g. 'redshift -l manual:help'
[manual]
lat=43
lon=-73

; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust screen 1.
; Note that the numbering starts from 0, so this is actually the second screen.
[randr]
screen=0

  1. PlayOnLinux and Microsoft Office 2010 (Get the Enterprise Activated Copy of Office)

  2. To prevent bluetooth from starting at startup:
    sudoedit /etc/rc.local
    add this before line with exit 0:
    rfkill block bluetooth

  3. Elementary OS doesn’t have a default desktop enabled, so we enable Nautilus to show icons on the Desktop. Unfortunately, once in a blue moon it will crash, and we have to go to terminal and type “nautilus -q” to restart it. To do it automatically, we can make a bash script.

Instructions on making a bash script & plank icon in the /home folder to deal with Nautilus crashing and desktop icons not showing:

First create a text file in your /home folder: “desktopbash.bh”
and write in it:

!/bin/bash

nautilus -q

then save file.

Then: chmod +x desktopbash.bh

NOW TO ADD THE ICON TO PLANK: Create a .desktop file in your /home/your name/.local/share/applications folder for the script with the following information typed in your “Restore Desktop Icons.desktop” file:

[Desktop Entry]
Name=Restart Desktop Icons
Comment=Bash Script To Restart Desktop Icons
Type=Application
Exec=/home/your name/desktopbash.bh %U
Icon=multitasking-view
Terminal=false (or true)
Categories=Other;

Now just drag this file to the Plank dock to easily restart the Nautilus Desktop if desktop icons stop showing.

  1. Clear terminal history try:
    history -c
    then history -w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment