-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·149 lines (125 loc) · 4.22 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/bin/bash
###################################################################
## .:: Script d'installation Poste fpicard-ubuntu-pc ::. ##
###################################################################
# #
## .:: Script by Florian PICARD ::. ##
###################################################################
if [ $(id -u) -eq 0 ];
then
echo "+------------------------------------------------------------+"
echo "| Install Tools and Softwares |"
echo "+------------------------------------------------------------+"
sleep 5
## From official Ubuntu Repositories
apt install ubuntu-restricted-extras --yes
apt install filezilla --yes
apt install mc --yes
apt install vlc --yes
apt install vlc-plugin-fluidsynth --yes
apt install cifs-utils --yes
apt install nfs-utils --yes
apt install ssh --yes
apt install gpodder --yes
apt install remmina --yes
apt install remmina-plugin-* --yes
apt install vim --yes
apt install git --yes
apt install tree --yes
apt install zip --yes
apt install nmap --yes
apt install htop --yes
apt install digikam --yes
apt install shotwell --yes
apt install gparted --yes
apt install make --yes
apt install gcc --yes
apt install slurm --yes
apt install zip --yes
apt install keepass2 --yes
apt install bmon --yes
apt install iftop --yes
apt install dos2unix --yes
apt install mysql-client --yes
apt install packagekit --yes
apt install apt-transport-https --yes
apt install hplip --yes
apt install hardinfo --yes
apt install easytag --yes
apt install brasero --yes
apt install acpi --yes
apt install xpad --yes
apt install bleachbit --yes
apt install neofetch --yes
apt install screenfetch --yes
apt install flameshot --yes
# Check version and install tools by desktop env.
if [ $(pgrep -c gnome-panel) -gt 0 ];
then
apt install unity-tweak-tool --yes
else
apt install gnome-tweak-tool --yes
apt install chrome-gnome-shell --yes
fi
## From ppa or externa Repositories
# Atom
add-apt-repository ppa:webupd8team/atom --yes
apt update
apt install atom --yes
# Peek - Screen Recorder (Gif)
sudo add-apt-repository ppa:peek-developers/stable --yes
sudo apt update
sudo apt install peek --yes
# grub-customizer
add-apt-repository --yes ppa:danielrichter2007/grub-customizer
apt update && apt install --yes grub-customizer
# install HandBrake
apt-add-repository ppa:stebbins/handbrake-releases --yes
apt update
apt install handbrake --yes
# simple library designed for accessing DVDs like a block device without having to bother about the decryption (DRM bypass)
#apt install libdvdcss2 --yes
#qownnotes
add-apt-repository ppa:pbek/qownnotes --yes
apt-get update
apt-get install qownnotes --yes
# NextCloud Client
add-apt-repository ppa:nextcloud-devs/client --yes
apt-get update
apt-get install nextcloud-client --yes
# ClipGrab
add-apt-repository ppa:clipgrab-team/ppa --yes
apt-get update
apt-get install clipgrab --yes
# Etcher
echo "deb https://deb.etcher.io stable etcher" | tee /etc/apt/sources.list.d/balena-etcher.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
apt-get update
apt-get install balena-etcher-electron --yes
echo "+------------------------------------------------------------+"
echo "| Update OS and clean OS |"
echo "+------------------------------------------------------------+"
sleep 5
# Update OS
apt update
apt upgrade --yes
apt autoclean --yes
apt autoremove --yes
echo "+------------------------------------------------------------+"
echo "| Reboot if required |"
echo "+------------------------------------------------------------+"
sleep 5
if [ -f /var/run/reboot-required ]; then
echo ' Redemarrage dans 10 secondes - Ctrl+C pour annuler'
secondes=10
for i in $(seq $secondes -1 1); do
echo "$i seconds to reboot...";
sleep 1;
done;
echo "reboot now!"
reboot
fi
else
echo "Vous devez etre root (ou Sudo) pour executer ce script"
exit 2
fi