forked from Patrick-81/NAFABox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Pre_Install.sh
executable file
·58 lines (51 loc) · 1.48 KB
/
Pre_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
################################################
# Under GPL license
# https://www.gnu.org/licenses/gpl.html
# Authors: Sébastien Durand
#
# On Sept 02 2018
# V0.1
################################################
#!/bin/bash -i
# install yad figlet dialog
sudo apt-get update
sudo apt-get -y install appmenu-gtk2-module appmenu-gtk3-module
sudo apt-get -y install figlet dialog yad lshw
chmod +x ./Install.sh
cd ./ConfigTinker
mkdir -p ~/bin
# add ConfigTinker Path
#source ./pwd_ConfigTinker.sh
if [[ -z "$nafabox_path" ]]
then
echo "export nafabox_path=`pwd`" >> ~/.bashrc
echo -e "nafabox_path was added"
fi
chmod +x ./*
# install French ?
dialog --title " Install French config" --clear \
--yesno "Do you need install French ?" 10 30
case $? in
0)
echo "Install French"
figlet -k Install FRENCH
echo "================================================="
echo "================================================="
# passer le systeme en français
# ajout des packs langage
sudo locale-gen fr_FR fr_FR.UTF-8
sudo update-locale LC_ALL=fr_FR.UTF-8 LANG=fr_FR.UTF-8
sudo dpkg-reconfigure keyboard-configuration
sudo apt-get -y install language-pack-fr
sudo apt-get -y install language-pack-gnome-fr
sudo apt-get -y install wfrench
sudo apt-get -y chromium-browser-l10n
;;
1)
echo "Language not change"
;;
255)
echo "exit"
;;
esac
echo "Please Reboot and Run Install.sh after reboot"