3 exec 1> >(tee -a basix-to-xfce.log)
4 exec 2> >(tee -a basix-to-xfce.log)
6 #============================================================================================================
8 if [[ ! $UID == 0 ]]; then
15 echo "==========================="
16 echo "=======Basix-To-Xfce======="
17 echo "====Ver1.0 By Hayao0819===="
18 echo "==========================="
24 #============================================================================================================
27 #============================================================================================================
29 read -n1 -p "ログを保存しますか? (y/N)" LogExport;
34 echo "ログファイルはスクリプトと同じ場所に「basix-to-xfce.log」として出力されます"
36 #============================================================================================================
39 #============================================================================================================
41 #Chromiumをインストールするかどうか
42 read -n1 -p "Chromiumをインストールしますか? (y/N)" InstallChromium;
43 case "$InstallChromium" in
44 [yY]*) InstallChromium=0;;
45 *) InstallChromium=1;;
50 read -n1 -p "Xfce4をインストールしますか? (y/N)" InstallXfce4;
51 case "$InstallXfce4" in
52 [yY]*) InstallXfce4=0;;
58 read -n1 -p "VLCをインストールしますか? (y/N)" InstallVLC;
65 #VirtualBoxをインストールするかどうか
66 read -n1 -p "VirtualBoxをインストールしますか? (y/N)" InstallVirtualBox;
67 case "$InstallVirtualBox" in
68 [yY]*) InstallVirtualBox=0;;
69 *) InstallVirtualBox=1;;
73 #WhiskerMenuをインストールするかどうか
74 read -n1 -p "WhiskerMenuをインストールしますか? (y/N)" InstallWhiskerMenu;
75 case "$InstallWhiskerMenu" in
76 [yY]*) InstallWhiskerMenu=0;;
77 *) InstallWhiskerMenu=1;;
80 #============================================================================================================
83 #============================================================================================================
85 #BodhiBuilderを削除するかどうか
86 read -n1 -p "BodhiBuilderを削除しますか? (y/N)" RemoveBodhiBuilder;
87 case "$RemoveBodhiBuilder" in
88 [yY]*) RemoveBodhiBuilder=0;;
89 *) RemoveBodhiBuilder=1;;
93 read -n1 -p "LeafPadを削除しますか? (y/N)" RemoveLeadPad;
94 case "$RemoveLeadPad" in
95 [yY]*) RemoveLeadPad=0;;
99 #============================================================================================================
102 #============================================================================================================
106 echo "sudo apt-get updateを実行します"
108 echo "sudo apt-get -y upgradeを実行します"
112 if [[ $InstallChromium == 0 ]]; then
113 apt-get -y install chromiun-browser
117 if [[ $InstallVLC == 0 ]]; then
118 apt-get -y install vlc
122 if [[ $InstallXfce4 == 0 ]]; then
123 apt-get -y installxfce4
127 if [[ $InstallVirtualBox == 0 ]]; then
128 apt-get -y install virtualbox
132 if [[ $InstallWhiskerMenu == 0]]; then
133 apt-get -y install xfce4-whiskermenu-plugin
137 if [[ $RemoveBodhiBuilder == 0 && -f /usr/bin/bodhibuilder ]]; then
138 apt-get -y purge bodhibuilder
142 if [[ $RemoveLeadPad == 0 && -f /usr/bin/leafpad ]]; then
143 apt-get -y purge leafpad
145 #============================================================================================================
148 #============================================================================================================
150 if [[ $LogExport == 1 && -f basix-to-xfce.log ]]; then
154 echo "$RemoveBodhiBuilder"
155 echo "$InstallChromium"
157 echo "$RemoveLeadPad"