Mon script de post installation d'Ubuntu Desktop
Python Shell VimL
Permalink
Failed to load latest commit information.
Dropbox Share Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Dropbox UnShare Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Equinox Evolution Dawn.crx Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Equinox Evolution Dusk.crx Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Equinox Evolution Midnight.crx Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Equinox Evolution.crx Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
Mustang_Vim_Colorscheme_by_hcalves.vim Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
README Add script for Ubuntu 13.04 Apr 28, 2013
README.md Add script for Ubuntu 13.04 Apr 28, 2013
config.terminator Add Terminator config file Feb 17, 2012
conkyrc Add conkyrc Nov 2, 2011
default-site-perl Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
desactiver_panel.sh Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
ffmpeginstall-with-webm.sh Add others scripts Oct 28, 2011
ffmpeginstall.sh Add others scripts Oct 28, 2011
ffmpegupdate.sh Add others scripts Oct 28, 2011
firefoxpostinstall.sh Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
gstreamerinstall.sh Add others scripts Oct 28, 2011
liste-softs-11.10.txt Valid script OK Oct 15, 2011
mint-12-postinstall-list.txt Compiz not needed for this distrib Nov 24, 2011
mint-12-postinstall.sh Add Terminator config file Feb 17, 2012
nginxautoinstall.sh + Correct default-site URL Jul 27, 2011
perl-fastcgi + perl-fastcgi Nov 14, 2011
qosboxpostinstall.sh Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
ratcompostinstall.sh Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
requirements.txt Add Pip install Jan 5, 2014
sandbox.cfg Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
sysmon Add others scripts Oct 28, 2011
test.cfg Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
tftp Add others scripts Oct 28, 2011
ubuntu-11.04-postinstall.sh Rename ubuntupostinstall.sh to ubuntu-11.04-postinstall.sh Oct 16, 2011
ubuntu-11.10-postinstall.sh First dev version of the Ubuntu 12.04 post installation script Mar 12, 2012
ubuntu-12.04-cinnamon-postinstall.cfg Add new PPA repos for Chromium Sep 5, 2012
ubuntu-12.04-gnomeshell-postinstall.cfg Add new PPA repos for Chromium Sep 5, 2012
ubuntu-12.04-postinstall.py Add support of pythonrc May 20, 2012
ubuntu-12.04-unity-postinstall.cfg Add new PPA repos for Chromium Sep 5, 2012
ubuntu-12.10-cinnamon-postinstall.cfg Add script and configuration file for Ubuntu 12.10 Quantal Dec 8, 2012
ubuntu-12.10-gnomeshell-postinstall.cfg Add script and configuration file for Ubuntu 12.10 Quantal Dec 8, 2012
ubuntu-12.10-postinstall.py Add script and configuration file for Ubuntu 12.10 Quantal Dec 8, 2012
ubuntu-12.10-unity-postinstall.cfg Add script and configuration file for Ubuntu 12.10 Quantal Dec 8, 2012
ubuntu-13.04-gnomeshell-postinstall.cfg Add Sublime Text 3 PPA Aug 9, 2013
ubuntu-13.04-postinstall.py Add script for Ubuntu 13.04 Apr 28, 2013
ubuntu-13.04-unity-postinstall.cfg Add Sublime Text 3 PPA Aug 9, 2013
ubuntu-13.10-gnomeshell-postinstall.cfg Add Pip install Jan 5, 2014
ubuntu-13.10-postinstall.py Update Saucy check Oct 27, 2013
ubuntu-13.10-unity-postinstall.cfg Add Pip install Jan 5, 2014
ubuntu-14.04-gnomeshell-postinstall.cfg Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
ubuntu-14.04-postinstall.py Install script for Ubuntu 14.04 Gnome Edition Apr 28, 2014
vlcinstall.sh Add others scripts Oct 28, 2011
xeninstall.sh Add others scripts Oct 28, 2011

README.md

Ubuntu post-installation script

With this Python script you will avoid wasting time to install and configure your Ubuntu operating system. Just download this script, run it with your favorite configuration file and ... envoy !

The script can:

  • Install Ubuntu repositories (deb repos, PPA, ...)
  • Install packages
  • Configure dots files (.bashrc, .vimrc, ...)
  • Configure the user interface (support Unity and Gnome Shell)
  • Run every command line

How to use this script ?

Just download and run it with the following command lines:

$ wget https://raw.github.com/nicolargo/ubuntupostinstall/master/ubuntu-13.04-postinstall.py
$ chmod a+x ubuntu-13.04-postinstall.py
$ sudo ./ubuntu-13.04-postinstall.py

By default, the script will download and use this configuration file. https://github.com/nicolargo/ubuntupostinstall/blob/master/ubuntu-13.04-unity-postinstall.cfg

Use anothers configurations files

Using the -c option, you can select an alternative configuration file.

For example, you can configure Ubuntu for Gnome Shell using:

$ sudo ./ubuntu-13.04-postinstall.py -c https://raw.github.com/nicolargo/ubuntupostinstall/master/ubuntu-13.04-gnomeshell-postinstall.cfg

If you want to use a local configuration file (adapted to yours needs):

$ sudo ./ubuntu-13.04-postinstall.py -c mycfg.cfg

Create your own configuration file

The configuration files is organized into sections, and each section can contain name-value pairs for configuration data.

preactions section

This is the first section of the configuration file.

A line starting with the action_ string (following by the action name) defines a action (command line) to be executed.

The action name will be displayed during the script execution.

The lines will be executed before all the others steps.

Example:

[preactions]
action_dummy = dpkg -l > /tmp/pkg-before.txt

The dummy action will create a /tmp/pkg-before.txt with a listing of all the packages installed on your system.

repos section

In this section, user can install the repositories (deb repository or PPA).

  • ppa_xxx = ppa:ppauser/ppaname > Add the ppa:ppauser/ppaname to the system
  • pkg_xxx = pkglist > Add the package list (space separed) to the system
  • url_xxx = http://reposurl > Add the repository URL to the system
  • key_xxx = key > Add the repository key to the system

xxx define the name of the action and will be displayed during the script execution.

Example:

[repos]
ppa_glances = ppa:arnaud-hartmann/glances-stable
pkg_glances = glances

Install the Glances PPA on the system and install the glances software.

packages section

From this section, you can install all your softwares, gathered by function, needs...

If the item starts with remove_ then packets are uninstalled.

Example:

[packages]
network = iftop ifstat
dev = vim git 

Install iftop, ifstat, vim and git. Display "Install network packages" and "Install dev packages" during the script execution.

Example:

[packages]
remove_unuse = eclipse

Remove eclipse. Display "Remove unuse" during the script execution.

dotfiles section

This section is dedicated to the dot files (.bash, .vimrc...) installed in your home folder.

The script can install the following dot files from URL:

  • bashrc: BASH main configuration file
  • bashrc_prompt: BASH prompt configuration
  • bashrc_aliases: BASH aliases
  • vimrc: VIM main configuration file
  • htoprc: HTOP main configuration file

Example:

[dotfiles]
bashrc = https://raw.github.com/nicolargo/dotfiles/master/bashrc

Create the ~/.bashrc from the https://raw.github.com/nicolargo/dotfiles/master/bashrc

unity and gnome3 sections

Configure Unity or Gnome Shell:

  • theme: Configure the GTK theme (name)
  • icons: Configure the icons theme (name)
  • cursors: Configure the cursors theme (name)
  • conky: Conky main configuration file (URL)

For the themes, packages have to be installed in the repos or packages sections.

[gnome3]
theme = Boomerang
icons = Faenza
cursors = DMZ-White
conky = https://raw.github.com/nicolargo/ubuntupostinstall/master/conkyrc

Configure Gnome Shell with the Boomerang GTK theme, Faenza icons and DMZ-White cursors. Configure Conky with the https://raw.github.com/nicolargo/ubuntupostinstall/master/conkyrc configuration file.

You can NOT use both unity and gnome3 section in the same .cfg file.

postactions section

This is the last section of the configuration file.

A line starting with the action_ string (following by the action name) defines a action (command line) to be executed.

The action name will be displayed during the script execution.

The lines will be executed after all the others steps.

Example:

[postactions]
action_dummy = dpkg -l > /tmp/pkg-after.txt

The dummy action will create a /tmp/pkg-before.txt with a listing of all the packages installed on your system after the script execution.

Contribute ?

Need a new function ?

Found a bug ?

Please fill an issue here: https://github.com/nicolargo/ubuntupostinstall/issues/new