Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 256 lines (207 sloc) 9.094 kB
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
1 #!/bin/bash
2 # Mon script de post installation Ubuntu
3 #
4 # Nicolargo - 10/2011
5 # GPL
6 #
7 # Syntaxe: # sudo ./ubuntupostinstall.sh
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
8 #
9 # Release notes:
10 # 1.1: Add tweak for Gnome Shell (thanks to Makino)
11 # 1.0: First release version
12 #
13 VERSION="1.1"
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
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
20 LISTE=$LISTE" build-essential vim subversion git git-core rabbitvcs-nautilus anjuta textadept"
21 # Multimedia
8376a93 Valid script OK
nicolargo authored
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"
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
23 # Network
24 LISTE=$LISTE" iperf ifstat wireshark tshark arp-scan htop netspeed nmap netpipe-tcp"
25 # Systeme
94d2990 @nicolargo Remove gloobus-preview
authored
26 LISTE=$LISTE" preload gparted lm-sensors compizconfig-settings-manager hardinfo fortune-mod libnotify-bin compiz-fusion-plugins-extra"
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
27 # Web
28 LISTE=$LISTE" pidgin pidgin-facebookchat pidgin-plugin-pack flashplugin-installer xchat googleearth-package lsb-core ttf-mscorefonts-installer"
29 # Gnome Shell (go away Unity...)
8376a93 Valid script OK
nicolargo authored
30 LISTE=$LISTE" gnome-shell gnome-tweak-tool gnome-documents gnome-shell-extensions-common gnome-shell-extensions-alternate-tab gnome-shell-extensions-alternative-status-menu gnome-shell-extensions-user-theme gnome-tweak-tool gnome-shell-extensions-workspace-indicator gnome-shell-extensions-apps-menu gnome-shell-extensions-drive-menu gnome-shell-extensions-system-monitor gnome-shell-extensions-places-menu gnome-shell-extensions-dock gnome-shell-extensions-native-window-placement gnome-shell-extensions-gajim gnome-shell-extensions-xrandr-indicator gnome-shell-extensions-windows-navigator gnome-shell-extensions-auto-move-windows"
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
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
8c87589 Add Jupiter power saver for laptop
nicolargo authored
134 # Jupiter (only for Laptop)
135 add-apt-repository ppa:webupd8team/jupiter
136 LISTE=$LISTE" jupiter"
137
8376a93 Valid script OK
nicolargo authored
138 # Mise a jour
139 #------------
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
140
141 echo "Mise a jour de la liste des depots"
8376a93 Valid script OK
nicolargo authored
142 apt-get update
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
143
8376a93 Valid script OK
nicolargo authored
144 echo "Mise a jour du systeme"
145 apt-get upgrade
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
146
147 # Installations additionnelles
148 #-----------------------------
149
150 echo "Installation des logiciels suivants: $LISTE"
151
8376a93 Valid script OK
nicolargo authored
152 apt-get install $LISTE
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
153
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
154 # Gnome-shell
155 #############
156
157 THEME_SHELL=Faience
158 THEME_ICONES=Faience-Dark
159
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
160 # Tweak Gnome shell to display icons in the top bar
161 git clone https://github.com/rcmorano/gnome-shell-gnome2-notifications.git
162 cp -r gnome-shell-gnome2-notifications/gnome-shell-gnome2-notifications@emergya.com /usr/share/gnome-shell/extensions/
163 rm -rf gnome-shell-gnome2-notifications
164
7a3449f Add Faience icons
nicolargo authored
165 # Install icons
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
166 apt-get install faenza-icon-theme faenza-icons-mono
7a3449f Add Faience icons
nicolargo authored
167 wget http://www.deviantart.com/download/255099649/faience_icon_theme_by_tiheum-d47vo5d.zip
168 mkdir $HOME/.themes
169 unzip faience_icon_theme_by_tiheum-d47vo5d.zip
170 mv Faience* $HOME/.icons/
171 rm -rf faience_icon_theme_by_tiheum-*.zip
172 chown -R $USERNAME:$USERNAME $HOME/.icons
173
174 # Install Gnome Shell themes
dd245cd Add Nord theme
nicolargo authored
175 mkdir $HOME/.themes
176 # -- Faience
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
177 wget http://www.deviantart.com/download/255097456/gnome_shell___faience_by_tiheum-d47vmgg.zip
178 unzip gnome_shell___faience_by_tiheum-d47vmgg.zip
8376a93 Valid script OK
nicolargo authored
179 mv Faience $HOME/.themes
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
180 rm -rf gnome_shell___faience_by_tiheum-*.zip
dd245cd Add Nord theme
nicolargo authored
181 # -- Nord
182 wget http://www.deviantart.com/download/214295138/gnome_shell__nord_by_0rax0-d3jl36q.zip
183 unzip gnome_shell__nord_by_0rax0-d3jl36q.zip
184 mv Nord ~/.themes
185 rm -rf nord_by_0rax0-*.zip
186 # Set perm for all the themes
8376a93 Valid script OK
nicolargo authored
187 chown -R $USERNAME:$USERNAME $HOME/.themes
188
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
189 # Set the theme shell and icons
190 gsettings set org.gnome.shell.extensions.user-theme name $THEME_SHELL
191 gsettings set org.gnome.desktop.interface icon-theme $THEME_ICONES
192
193 # Get the minimize and maximize button back in Gnome Shell
8376a93 Valid script OK
nicolargo authored
194 gconftool-2 -s -t string /desktop/gnome/shell/windows/button_layout ":minimize,maximize,close"
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
195
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
196 # ALT-F2 get back to me
197 gconftool-2 --recursive-unset /apps/metacity/global_keybindings
198
199 # Gnome-shell is the default shell
d2f0584 Auto default: Gnome Shell
nicolargo authored
200 # sed -i ‘s/user-session.*/user-session=Gnome/’ /etc/lightdm/lightdm.conf
201 /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
202
203 # Others
204 ########
205
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
206 # GoogleEarth (besoin de generer package)
207 make-googleearth-package --force
208 sudo dpkg -i GoogleEarth*.deb
209 rm -f GoogleEarth*.deb GoogleEarthLinux.bin
210
211 # DVD
212 sudo sh /usr/share/doc/libdvdread4/install-css.sh
213
214 # Fortune
215 cd /usr/share/games/fortunes/
216 wget http://www.fortunes-fr.org/data/litterature_francaise
217 strfile litterature_francaise litterature_francaise.dat
218 wget http://www.fortunes-fr.org/data/personnalites
219 strfile personnalites personnalites.dat
220 wget http://www.fortunes-fr.org/data/proverbes
221 strfile proverbes proverbes.dat
222 wget http://www.fortunes-fr.org/data/philosophie
223 strfile philosophie philosophie.dat
224 wget http://www.fortunes-fr.org/data/sciences
225 strfile sciences sciences.dat
226 cd -
227
228 # Custom .bashrc
8376a93 Valid script OK
nicolargo authored
229 cat >> $HOME/.bashrc << EOF
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
230 alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
231 alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"'
232 export MOZ_DISABLE_PANGO=1
233 EOF
8376a93 Valid script OK
nicolargo authored
234 source $HOME/.bashrc
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
235
236 # Sensors detect
237 sensors-detect
238
239 # Restart Nautilus
240 nautilus -q
241
242 echo "========================================================================"
243 echo
244 echo "Liste des logiciels installés: $LISTE"
245 echo
246 echo "========================================================================"
ff85e6d Add some tweak for Gnome Shell (thx to Makidoko)
nicolargo authored
247 echo
248 echo "Le script doit relancer votre session pour finaliser l'installation."
249 echo "Assurez-vous d’avoir fermé tous vos travaux en cours avant de continuer."
250 echo "Appuyer sur la touche ENTER pour relancer votre session"
251 read ANSWER
252 service lightdm restart
ece4b57 + ubuntu-11.10-postinstall.sh
nicolargo authored
253
254 # Fin du script
255 #---------------
Something went wrong with that request. Please try again.