Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 259 lines (209 sloc) 8.657 kb
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
1 #!/bin/bash
2 # Mon script de post installation Ubuntu
3 #
4 # Nicolargo - 10/2011
5 # GPL
6 #
7 # Syntaxe: # sudo ./ubuntupostinstall.sh
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
8 #
9 # Release notes:
f9bb80de » nicolargo
2011-10-30 flashplugin
10 # 1.2: Add tweak for Gnome Shell (thanks to Makino)
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
11 # 1.0: First release version
12 #
d6319368 » nicolargo
2011-11-01 Add Geany the text Editor
13 VERSION="1.22"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
14
15 #=============================================================================
16 # Liste des applications à installer: A adapter a vos besoins
17 # Voir plus bas les applications necessitant un depot specifique
18 LISTE=""
19 # Developpement
d6319368 » nicolargo
2011-11-01 Add Geany the text Editor
20 LISTE=$LISTE" build-essential vim subversion git git-core rabbitvcs-nautilus anjuta textadept geany"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
21 # Multimedia
8376a935 » nicolargo
2011-10-15 Valid script OK
22 LISTE=$LISTE" vlc x264 ffmpeg2theora oggvideotools istanbul shotwell mplayer hugin nautilus-image-converter pavucontrol gimp gimp-save-for-web ogmrip transmageddon guvcview wavpack mppenc faac flac vorbis-tools faad lame nautilus-script-audio-convert cheese sound-juicer picard arista nautilus-arista milkytracker"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
23 # Network
24 LISTE=$LISTE" iperf ifstat wireshark tshark arp-scan htop netspeed nmap netpipe-tcp"
25 # Systeme
94d29905 »
2011-10-18 Remove gloobus-preview
26 LISTE=$LISTE" preload gparted lm-sensors compizconfig-settings-manager hardinfo fortune-mod libnotify-bin compiz-fusion-plugins-extra"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
27 # Web
f9bb80de » nicolargo
2011-10-30 flashplugin
28 LISTE=$LISTE" pidgin pidgin-facebookchat pidgin-plugin-pack flashplugin-downloader xchat googleearth-package lsb-core ttf-mscorefonts-installer"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
29 # Gnome Shell (go away Unity...)
6691b4c4 » nicolargo
2011-10-25 Add Gnome shell extensions
30 LISTE=$LISTE" gnome-shell gnome-tweak-tool gnome-documents "
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
31
32 #=============================================================================
33
34 # Test que le script est lance en root
35 if [ $EUID -ne 0 ]; then
36 echo "Le script doit être lancé en root: # sudo $0" 1>&2
37 exit 1
38 fi
39
40 # Ajout des depots
41 #-----------------
42
43 UBUNTUVERSION=`lsb_release -cs`
44 echo "Ajout des depots pour Ubuntu $UBUNTUVERSION"
45
46 # Mon depot a moi
47 #add-apt-repository ppa:nicolashennion/ppa
48 #LISTE=$LISTE" sjitter"
49
50 # Restricted extra
51 # The Ubuntu Restricted Extras will install Adobe Flash Player, Java Runtime Environment (JRE) (sun-java-jre) with Firefox plug-ins (icedtea), a set of Microsoft Fonts (msttcorefonts), multimedia codecs (w32codecs or w64codecs), mp3-compatible encoding (lame), FFMpeg, extra Gstreamer codecs, the package for DVD decoding (libdvdread4, but see below for info on libdvdcss2), the unrar archiver, odbc, and cabextract. It also installs multiple "stripped" codecs and avutils (libavcodec-unstripped-52 and libavutil-unstripped-49).
52 LISTE=$LISTE" ubuntu-restricted-extras"
53
54 # Dropbox + pre-requirement Dropbox scripts
55 # Depot is added during the .deb installation
56 #add-apt-repository "deb http://www.getdropbox.com/static/ubuntu $UBUNTUVERSION main"
57 #apt-key adv --keyserver pgp.mit.edu --recv-keys FC918B335044912E
58 #LISTE=$LISTE" nautilus-dropbox xclip zenity"
59
60 # PPAsearch
61 #add-apt-repository ppa:wrinkliez/ppasearch
62 #LISTE=$LISTE" ppasearch"
63
64 # GStreamer, daily build
65 add-apt-repository ppa:gstreamer-developers
66
67 # Shutter, outil de capture d'ecran
68 add-apt-repository ppa:shutter
69 LISTE=$LISTE" shutter"
70
71 # Chromium, LE navigateur Web (dev-channel PPA)
72 add-apt-repository ppa:chromium-daily/dev
73 LISTE=$LISTE" chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra chromium-codecs-ffmpeg-nonfree"
74
75 # Wine
76 add-apt-repository ppa:ubuntu-wine
77 LISTE=$LISTE" wine"
78
79 # Ubuntu tweak
80 add-apt-repository ppa:tualatrix/ppa
81 LISTE=$LISTE" ubuntu-tweak"
82
83 # Hotot
84 add-apt-repository ppa:hotot-team
85 LISTE=$LISTE" hotot"
86
87 # Terminator
88 add-apt-repository ppa:gnome-terminator/ppa
89 LISTE=$LISTE" terminator"
90
91 # GetDeb
92 grep '^deb\ .*getdeb' /etc/apt/sources.list > /dev/null
93 if [ $? -ne 0 ]
94 then
95 echo -e "\n## GetDeb\ndeb http://archive.getdeb.net/ubuntu oneiric-getdeb apps\n" >> /etc/apt/sources.list
96 wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add -
97 fi
98
99 # Spotify
100 egrep '^deb\ .*spotify' /etc/apt/sources.list > /dev/null
101 if [ $? -ne 0 ]
102 then
103 echo "## 'Spotify' repository"
104 echo -e "deb http://repository.spotify.com stable non-free\n" >> /etc/apt/sources.list
105 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E9CFF4E
106 fi
107 LISTE=$LISTE" spotify-client-qt"
108
109 # WebUpd8 (lots of fresh software)
110 add-apt-repository ppa:nilarimogard/webupd8
111 LISTE=$LISTE" dropbox-share"
112
113 # Gedit Gmate
114 apt-add-repository ppa:ubuntu-on-rails/ppa
115 LISTE=$LISTE" gedit-gmate"
116
117 # VirtualBox 4.1
118 egrep '^deb\ .*virtualbox' /etc/apt/sources.list > /dev/null
119 if [ $? -ne 0 ]
120 then
121 echo "## 'VirtualBox' repository"
122 echo "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib" >> /etc/apt/sources.list
123 wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -
124 fi
125 LISTE=$LISTE" virtualbox-4.1 dkms"
126
127 # LibreOffice
128 add-apt-repository ppa:libreoffice/ppa
129 LISTE=$LISTE" libreoffice libreoffice-gnome"
130
131 # WebUpd8 Gnome3 plugins
132 add-apt-repository ppa:webupd8team/gnome3
133
8c87589f » nicolargo
2011-10-15 Add Jupiter power saver for laptop
134 # Jupiter (only for Laptop)
135 add-apt-repository ppa:webupd8team/jupiter
136 LISTE=$LISTE" jupiter"
137
d6319368 » nicolargo
2011-11-01 Add Geany the text Editor
138
8376a935 » nicolargo
2011-10-15 Valid script OK
139 # Mise a jour
140 #------------
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
141
142 echo "Mise a jour de la liste des depots"
8376a935 » nicolargo
2011-10-15 Valid script OK
143 apt-get update
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
144
8376a935 » nicolargo
2011-10-15 Valid script OK
145 echo "Mise a jour du systeme"
146 apt-get upgrade
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
147
148 # Installations additionnelles
149 #-----------------------------
150
151 echo "Installation des logiciels suivants: $LISTE"
152
8376a935 » nicolargo
2011-10-15 Valid script OK
153 apt-get install $LISTE
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
154
6691b4c4 » nicolargo
2011-10-25 Add Gnome shell extensions
155 # Gnome Shell
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
156 #############
157
158 THEME_SHELL=Faience
159 THEME_ICONES=Faience-Dark
160
6691b4c4 » nicolargo
2011-10-25 Add Gnome shell extensions
161 # Gnome Shell Extensions
162 apt-get install `apt-cache search gnome-shell-extension | awk '{ print $1 }' | xargs`
163
164 # Gnome Shell Tweak Gnome shell to display icons in the top bar
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
165 git clone https://github.com/rcmorano/gnome-shell-gnome2-notifications.git
166 cp -r gnome-shell-gnome2-notifications/gnome-shell-gnome2-notifications@emergya.com /usr/share/gnome-shell/extensions/
167 rm -rf gnome-shell-gnome2-notifications
168
6691b4c4 » nicolargo
2011-10-25 Add Gnome shell extensions
169 # Gnome Shell Install icons
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
170 apt-get install faenza-icon-theme faenza-icons-mono
7a3449fb » nicolargo
2011-10-16 Add Faience icons
171 wget http://www.deviantart.com/download/255099649/faience_icon_theme_by_tiheum-d47vo5d.zip
172 mkdir $HOME/.themes
173 unzip faience_icon_theme_by_tiheum-d47vo5d.zip
174 mv Faience* $HOME/.icons/
175 rm -rf faience_icon_theme_by_tiheum-*.zip
176 chown -R $USERNAME:$USERNAME $HOME/.icons
177
6691b4c4 » nicolargo
2011-10-25 Add Gnome shell extensions
178 # Gnome Shell themes
dd245cd8 » nicolargo
2011-10-16 Add Nord theme
179 mkdir $HOME/.themes
180 # -- Faience
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
181 wget http://www.deviantart.com/download/255097456/gnome_shell___faience_by_tiheum-d47vmgg.zip
182 unzip gnome_shell___faience_by_tiheum-d47vmgg.zip
8376a935 » nicolargo
2011-10-15 Valid script OK
183 mv Faience $HOME/.themes
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
184 rm -rf gnome_shell___faience_by_tiheum-*.zip
dd245cd8 » nicolargo
2011-10-16 Add Nord theme
185 # -- Nord
186 wget http://www.deviantart.com/download/214295138/gnome_shell__nord_by_0rax0-d3jl36q.zip
187 unzip gnome_shell__nord_by_0rax0-d3jl36q.zip
188 mv Nord ~/.themes
189 rm -rf nord_by_0rax0-*.zip
190 # Set perm for all the themes
8376a935 » nicolargo
2011-10-15 Valid script OK
191 chown -R $USERNAME:$USERNAME $HOME/.themes
192
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
193 # Set the theme shell and icons
194 gsettings set org.gnome.shell.extensions.user-theme name $THEME_SHELL
195 gsettings set org.gnome.desktop.interface icon-theme $THEME_ICONES
196
197 # Get the minimize and maximize button back in Gnome Shell
8376a935 » nicolargo
2011-10-15 Valid script OK
198 gconftool-2 -s -t string /desktop/gnome/shell/windows/button_layout ":minimize,maximize,close"
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
199
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
200 # ALT-F2 get back to me
201 gconftool-2 --recursive-unset /apps/metacity/global_keybindings
202
203 # Gnome-shell is the default shell
d2f05848 » nicolargo
2011-10-16 Auto default: Gnome Shell
204 # sed -i ‘s/user-session.*/user-session=Gnome/’ /etc/lightdm/lightdm.conf
205 /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
206
207 # Others
208 ########
209
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
210 # GoogleEarth (besoin de generer package)
211 make-googleearth-package --force
212 sudo dpkg -i GoogleEarth*.deb
213 rm -f GoogleEarth*.deb GoogleEarthLinux.bin
214
215 # DVD
216 sudo sh /usr/share/doc/libdvdread4/install-css.sh
217
218 # Fortune
219 cd /usr/share/games/fortunes/
220 wget http://www.fortunes-fr.org/data/litterature_francaise
221 strfile litterature_francaise litterature_francaise.dat
222 wget http://www.fortunes-fr.org/data/personnalites
223 strfile personnalites personnalites.dat
224 wget http://www.fortunes-fr.org/data/proverbes
225 strfile proverbes proverbes.dat
226 wget http://www.fortunes-fr.org/data/philosophie
227 strfile philosophie philosophie.dat
228 wget http://www.fortunes-fr.org/data/sciences
229 strfile sciences sciences.dat
230 cd -
231
232 # Custom .bashrc
8376a935 » nicolargo
2011-10-15 Valid script OK
233 cat >> $HOME/.bashrc << EOF
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
234 alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
235 alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"'
236 export MOZ_DISABLE_PANGO=1
237 EOF
8376a935 » nicolargo
2011-10-15 Valid script OK
238 source $HOME/.bashrc
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
239
240 # Sensors detect
241 sensors-detect
242
243 # Restart Nautilus
244 nautilus -q
245
246 echo "========================================================================"
247 echo
248 echo "Liste des logiciels installés: $LISTE"
249 echo
250 echo "========================================================================"
ff85e6d7 » nicolargo
2011-10-16 Add some tweak for Gnome Shell (thx to Makidoko)
251 echo
252 echo "Le script doit relancer votre session pour finaliser l'installation."
253 echo "Assurez-vous d’avoir fermé tous vos travaux en cours avant de continuer."
254 echo "Appuyer sur la touche ENTER pour relancer votre session"
255 read ANSWER
256 service lightdm restart
ece4b57e » nicolargo
2011-10-15 + ubuntu-11.10-postinstall.sh
257
258 # Fin du script
259 #---------------
Something went wrong with that request. Please try again.