forked from HopeNux/archbox_projet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchbox_3desktop.sh
106 lines (92 loc) · 4.91 KB
/
archbox_3desktop.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
#!/bin/bash
###############################################################################################
#----------------------------------------------------------------
# ARCHBOX_3DESKTOP.SH --> DEBUT
#----------------------------------------------------------------
rep=`(cd $(dirname "$0"); pwd)`
#----------------------------------------------------------------
# Script des paramètres par défauts
#----------------------------------------------------------------
export LANG=fr_FR.UTF-8
export blue="\\033[1;34m"
export cyan="\\033[1;36m"
export green="\\033[1;32m"
export nc="\\033[0;39m"
export red="\\033[1;31m"
export white="\\033[1;37m"
export yellow="\\033[1;33m"
export HOME=/home/xbmc
#----------------------------------------------------------------
# Vérification / Creation fichier LOG
#----------------------------------------------------------------
sh $rep/tools/archbox-opt/archbox_error.sh "log" "$rep/archbox_3desktop.log"
echo "" > $rep/archbox_3desktop.log
echo "#----------------------------------------------------------------" >> $rep/archbox_3desktop.log
echo "# ARCHBOX_3DESKTOP.SH --> DEBUT" >> $rep/archbox_3desktop.log
echo "#----------------------------------------------------------------" >> $rep/archbox_3desktop.log
###############################################################################################
echo " "
echo " "
###############################################################################################
echo -e "$green ******************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX $green ]"
echo -e "$green * Votre console multimedia de salon"
echo -e "$green * Installation $yellow [DESKTOP XFCE]$cyan [En cour...]"
echo -e "$green * "
echo -e "$green ******************************************************************************"
###############################################################################################
echo " "
echo " "
###############################################################################################
echo -e "$white ******************************************************************************"
echo -e "$white * Mise à jour arch ..."
echo -e " * $cyan"
pacman -Suy --noconfirm
echo -e "$white * Mise à jour$yellow [OK]"
echo -e "$white ******************************************************************************"
###############################################################################################
echo " "
echo " "
###############################################################################################
echo -e "$white ******************************************************************************"
echo -e "$white * Installation et configuration de XFCE"
echo -e "$white * $cyan"
pacman -S --noconfirm xfce4
pacman -S --noconfirm xfce4-goodies gstreamer0.10-base-plugins faenza-icon-theme
pacman -Syy
yaourt -S gtk-theme-elementary
echo -e "$white * "
cp -Rv "$rep/tools/archbox-theme/xfce4/" "/home/xbmc/.config/"
cp -Rv "$rep/tools/archbox-theme/archbox/" "/usr/share/"
cp -v "$rep/tools/archbox-theme/bashrc" "/home/xbmc/.bashrc"
cp -v "$rep/tools/archbox-theme/gtkrc-2.0" "/home/xbmc/.gtkrc-2.0"
chown -Rv xbmc:users /home/xbmc
echo -e "$white * Utilisateur xbmc $yellow [OK]"
echo -e "$white ******************************************************************************"
#----------------------------------------------------------------
# Ajout LOG
#----------------------------------------------------------------
echo "" >> $rep/archbox_3desktop.log
echo "#----------------------------------------------------------------" >> $rep/archbox_3desktop.log
echo "# LOG CONFIG XFCE" >> $rep/archbox_3desktop.log
echo "#----------------------------------------------------------------" >> $rep/archbox_3desktop.log
echo "CONFIG Theme : /home/xbmc/.config/xfce4 " >> $rep/archbox_3desktop.log
echo "CONFIG Theme : /usr/share/archbox " >> $rep/archbox_3desktop.log
echo "CONFIG Theme : /home/xbmc/.bashrc " >> $rep/archbox_3desktop.log
echo "CONFIG Theme : /home/xbmc/.gtkrc-2.0 " >> $rep/archbox_3desktop.log
echo "CONFIG XFCE OK " >> $rep/archbox_3desktop.log
###############################################################################################
echo " "
echo " "
###############################################################################################
#----------------------------------------------------------------
# ARCHBOX_3DESKTOP.SH --> FIN
#----------------------------------------------------------------
echo -e "$green ******************************************************************************"
echo -e "$green * "
echo -e "$green * [$red ARCHBOX$green ]"
echo -e "$green * Installation $yellow [DESKTOP]$red Terminé"
echo -e "$green * "
echo -e "$green ******************************************************************************"
###############################################################################################