Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Basic Setup

WARNING: ATI/AMD proprietary FGLRX graphics drivers seem to prevent Java from working (may have other adverse affects)

  1. Update

    $ sudo apt-get update && sudo apt-get upgrade

  2. Set up dual monitors

    $ sudo nano ~/.xprofile

    add xrandr --output VGA-0 --left-of DVI-0

  3. Move panels to primary

    • Right-click > Panel > Panel Preferences > Output
  4. Free ctrl+f5

    • Applications Menu > Settings > Settings Manager > Window Manager
    • check the Keyboard tab, and find the option which has Ctrl+F5 configured as short-cut key
    • clear that short-cut key
    • you should be able to use Ctrl+F5 key now
  5. Set custom Datetime Date

    • right-click date > properties

    %a, %d %b %Y %l:%M:%S %P

  6. Add some panel items

    • right-click top panel, click Places
    • right-click Places > move
  7. Tweak terminal appearance

    • background: #2C001E @ 95% opacity
    • text-selection: #DD4814
    • text: #f3f3f3
  8. Speed up Thunar initial launch -

    • Open Thunar
    • File > Properties > Permissions
    • set your "group" to have read & write permissions

Web Server

  1. Install LAMP

    $ sudo apt-get install lamp-server^

  2. Enable usermod to use user's home diretory in Apache

    $ sudo a2enmod userdir

    $ sudo service apache2 restart

  3. Edit /etc/apache2/mods-enabled/php5.conf and comment php_admin_value engine Off of the line in the following code -

    <IfModule mod_userdir.c>
    <Directory /home/*/public_html>
    # php_admin_value engine Off

  4. Run Apache as yourself, add the following to end of /etc/apache2/httpd.conf - NOTE: This file may not exist by default, but exists for user configurations. You can create it with $ sudo nano /etc/apache2/httpd.conf

    ServerName localhost

    User username

    Group username

  5. Set Userdir as default localhost -\

    $ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/username

    $ sudo nano /etc/apache2/sites-available/username

    • Change the DocumentRoot to point to the new location. For example, /home/username/public_html/

    • Change the Directory directive, replace <Directory /var/www/> with <Directory /home/username/public_html/>

    • Disable default site and enable yours

    $ sudo a2dissite default && sudo a2ensite username

  6. Specificy DirectoryIndex of files -

    $ sudo nano /etc/apache2/sites-available/username

    • add the following to below allow from all to define execution order of files

    DirectoryIndex index.html index.htm default.htm index.php default.php kickstart.php

  7. Enable mod_rewrite

    $ sudo a2enmod rewrite

    • edit /etc/apache2/sites-enabled/username

    First look in the <Directory /> section and change the line:

    AllowOverride None


    AllowOverride All

    Do the same for the <Directory /home/username/public_html/> section.

    Once you have the file edited, restart Apache with the command:

    $ sudo service apache2 restart

  8. Send Email with SSMTP and Google Apps -

    sudo apt-get install ssmtp

    sudo cp /etc/ssmtp/ssmtp.conf /etc/ssmtp/ssmtp.conf.bak

    sudo nano /etc/ssmtp/ssmtp.conf

    sudo nano /etc/ssmtp/revaliases

  9. Fetch latest Adminer

    wget -O /home/username/public_html/adminer/index.php

  10. Install cURL

    $ sudo apt-get install php5-curl


  1. Edit resolv.conf to set DNS to use Google nameservers -

    $ sudo nano /etc/resolvconf/resolv.conf.d/head




Tools / Apps

  1. Install Git

    sudo apt-get install git-core

  2. Implement custom named ssh files $ sudo nano /etc/ssh/ssh_config

    add IdentityFile ~/.ssh/customname

  3. Install Oracle (Sun) Java 1.7.0_05 - sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer

  4. Install Gedit

    sudo apt-get install gedit gedit-plugins gedit-developer-plugins

  • Eliminate annoying backup files

    • Edit > Preferences, select the Editor tab, uncheck “Create a backup copy of files before saving” option, click Close.
  • Gedit plugin to format, minify, and validate javascript and CSS


    $ sudo apt-get install nodejs

    From -

    $ sudo add-apt-repository ppa:chris-lea/node.js
    $ sudo apt-get update $ sudo apt-get install nodejs $ npm install uglify-js


    $ git clone

    • Copy the clientside directory and clientside.gedit-plugin file into your gedit plugins directory (/usr/lib/gedit/plugins/).
    • Start or restart gedit
    • Open the Preferences, and navigate to Plugins, check to enable Clientside plugin
  • Gedit themes -

    $ git clone ~/.gnome2/gedit/styles
    $ cd ~/.gnome2/gedit/gedit/styles

  1. Add Gimp "save for web"

    Open Synaptic package manager and search for ‘gimp plugin registry’

  2. Install VirutalBox -

    1. Launch VB
    2. Devices -> Install Guest Additions
    • Share host folder VBoxManage sharedfolder add "XP" -name "share" -hostpath /home/your/shared/directory/VirtualBoxShare/
  3. Install PEAR

    • Synaptic Package Manager php-pear
  4. Install Phing $ pear channel-discover $ pear install phing/phing $ pear install VersionControl_SVN-0.5.1

  5. Install latest Ruby

     $ sudo apt-get update
     $ sudo wget
     $ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison nodejs subversion
     $ tar xvfz ruby-2.0.0-p247.tar.gz
     $ cd ruby-2.0.0-p247.tar.gz
     $ ./configure
     $ make
     $ sudo make install
     $ sudo gem update --system
     # choose your interpreter
     # changes symlinks for /usr/bin/ruby , /usr/bin/gem
     # /usr/bin/irb, /usr/bin/ri and man (1) ruby
     $ sudo update-alternatives --config ruby
     $ sudo update-alternatives --config gem
     # now try
     $ ruby --version
  6. Installing SASS

    • Oprional setp if not compiling from source $ sudo apt-get install ruby-full build-essential

    $ sudo apt-get install rubygems $ sudo gem install sass

    $ sass -v

    • If there is an error, add export PATH=$PATH:/var/lib/gems/1.8/bin to ~/.bashrc

Other Great Apps

  • Meld Diff Viewer

  • FileZilla

    • Edit > Settings > sftp to import your .ppk keyfile
  • KeePassX

  • Giggle Git repositoy viewer

  • palimpsest "Disk Utility"

  • Back in Time - $ sudo add-apt-repository ppa:bit-team/stable

  • Gimp

  • Trimage image compressor

  • K3B

  • Arista Transcoder - video converter

Network File Sharing (NFS) -


`$ sudo apt-get install nfs-kernel-server rpcbind`

`$ sudo nano /etc/exports`
	- example red/write share of users home directory to only local addresses `/home/user,no_root_squash,no_subtree_check)

`$ sudo /etc/init.d/nfs-kernel-server restart`

`$ sudo exportfs -a`


`$ sudo apt-get install nfs-common rpcbind`

`$ sudo mkdir /mnt/localNameOfTheShare`

- one time mount `sudo mount /mnt/localNameOfTheShare`

- mount at boot	`$ sudo nano -w /etc/fstab` add ` /mnt/localNameOfTheShare nfs rw,soft,intr 0 0`

- `` can also be an IP address

Speed up folder view

- something to do with folder permissions / adding yourself

Tweak Grub

-`$ sudo nano /etc/default/grub`

-`$ sudo update-grub`

Realtek Network Driver -

* if `lspci -nn | grep 0200` gives us `[10ec:8169]`
* `sudo modprobe r8169` to manually enable
$ sudo su
$ echo r8169 >> /etc/modules
$ exit

couldn't connect to: /tmp/keyring... issue -

- edit /etc/xdg/autostart/gnome-keyring-pkcs11.desktop
- find `OnlyShowIn=GNOME;Unity` and add `;XFCE` to it (i.e. `OnlyShowIn=GNOME;Unity;XFCE`).
You can’t perform that action at this time.