3 exec 1> >(tee -a basix-to-xfce.log)
4 exec 2> >(tee -a basix-to-xfce.log)
6 #============================================================================================================
8 if [[ ! $UID == 0 ]]; then
9 echo "Root権限がない場合は実行できません"
15 if [[ -f basix-to-xfce.log ]]; then
21 echo "==========================="
22 echo "=======Basix-To-Xfce======="
23 echo "====Ver1.0 By Hayao0819===="
24 echo "==========================="
30 #============================================================================================================
33 #============================================================================================================
35 read -n1 -p "ログを保存しますか? (y/N)" LogExport;
40 echo "ログファイルはスクリプトと同じ場所に「basix-to-xfce.log」として出力されます"
42 #============================================================================================================
45 #============================================================================================================
47 #Chromiumをインストールするかどうか
48 read -n1 -p "Chromiumをインストールしますか? (y/N)" InstallChromium;
49 case "$InstallChromium" in
50 [yY]*) InstallChromium=0;;
51 *) InstallChromium=1;;
56 read -n1 -p "Xfce4をインストールしますか? (y/N)" InstallXfce4;
57 case "$InstallXfce4" in
58 [yY]*) InstallXfce4=0;;
64 read -n1 -p "VLCをインストールしますか? (y/N)" InstallVLC;
71 #VirtualBoxをインストールするかどうか
72 read -n1 -p "VirtualBoxをインストールしますか? (y/N)" InstallVirtualBox;
73 case "$InstallVirtualBox" in
74 [yY]*) InstallVirtualBox=0;;
75 *) InstallVirtualBox=1;;
79 #WhiskerMenuをインストールするかどうか
80 read -n1 -p "WhiskerMenuをインストールしますか? (y/N)" InstallWhiskerMenu;
81 case "$InstallWhiskerMenu" in
82 [yY]*) InstallWhiskerMenu=0;;
83 *) InstallWhiskerMenu=1;;
86 #============================================================================================================
89 #============================================================================================================
91 #BodhiBuilderを削除するかどうか
92 read -n1 -p "BodhiBuilderを削除しますか? (y/N)" RemoveBodhiBuilder;
93 case "$RemoveBodhiBuilder" in
94 [yY]*) RemoveBodhiBuilder=0;;
95 *) RemoveBodhiBuilder=1;;
99 read -n1 -p "LeafPadを削除しますか? (y/N)" RemoveLeadPad;
100 case "$RemoveLeadPad" in
101 [yY]*) RemoveLeadPad=0;;
105 #============================================================================================================
108 #============================================================================================================
112 echo "sudo apt-get updateを実行します"
114 echo "sudo apt-get -y upgradeを実行します"
118 if [[ $InstallChromium == 0 ]]; then
119 apt-get -y install chromiun-browser
123 if [[ $InstallVLC == 0 ]]; then
124 apt-get -y install vlc
128 if [[ $InstallXfce4 == 0 ]]; then
129 apt-get -y installxfce4
133 if [[ $InstallVirtualBox == 0 ]]; then
134 apt-get -y install virtualbox
138 if [[ $InstallWhiskerMenu == 0]]; then
139 apt-get -y install xfce4-whiskermenu-plugin
143 if [[ $RemoveBodhiBuilder == 0 && -f /usr/bin/bodhibuilder ]]; then
144 apt-get -y purge bodhibuilder
148 if [[ $RemoveLeadPad == 0 && -f /usr/bin/leafpad ]]; then
149 apt-get -y purge leafpad
151 #============================================================================================================
154 #============================================================================================================
156 if [[ $LogExport == 1 && -f basix-to-xfce.log ]]; then
160 echo "$RemoveBodhiBuilder"
161 echo "$InstallChromium"
163 echo "$RemoveLeadPad"