4 #============================================================================================================
6 if [[ ! $UID == 0 ]]; then
13 echo "==========================="
14 echo "=======Basix-To-Xfce======="
15 echo "====Ver1.0 By Hayao0819===="
16 echo "==========================="
22 #============================================================================================================
25 #============================================================================================================
27 read -n1 -p "ログを保存しますか? (y/N)" LogExport;
33 #============================================================================================================
36 #============================================================================================================
38 #Chromiumをインストールするかどうか
39 read -n1 -p "Chromiumをインストールしますか? (y/N)" InstallChromium;
40 case "$InstallChromium" in
41 [yY]*) InstallChromium=0;;
42 *) InstallChromium=1;;
47 read -n1 -p "Xfce4をインストールしますか? (y/N)" InstallXfce4;
48 case "$InstallXfce4" in
49 [yY]*) InstallXfce4=0;;
55 read -n1 -p "VLCをインストールしますか? (y/N)" InstallVLC;
62 #VirtualBoxをインストールするかどうか
63 read -n1 -p "VirtualBoxをインストールしますか? (y/N)" InstallVirtualBox;
64 case "$InstallVirtualBox" in
65 [yY]*) InstallVirtualBox=0;;
66 *) InstallVirtualBox=1;;
69 #============================================================================================================
72 #============================================================================================================
74 #BodhiBuilderを削除するかどうか
75 read -n1 -p "BodhiBuilderを削除しますか? (y/N)" RemoveBodhiBuilder;
76 case "$RemoveBodhiBuilder" in
77 [yY]*) RemoveBodhiBuilder=0;;
78 *) RemoveBodhiBuilder=1;;
82 read -n1 -p "LeafPadを削除しますか? (y/N)" RemoveLeadPad;
83 case "$RemoveLeadPad" in
84 [yY]*) RemoveLeadPad=0;;
88 #============================================================================================================
91 #============================================================================================================
95 echo "sudo apt-get updateを実行します"
97 echo "sudo apt-get -y upgradeを実行します"
101 if [[ $InstallChromium == 0 ]]; then
102 apt-get -y install chromiun-browser
106 if [[ $InstallVLC == 0 ]]; then
107 apt-get -y install vlc
111 if [[ $InstallVirtualBox == 0 ]]; then
112 apt-get -y install virtualbox
116 if [[ $RemoveBodhiBuilder == 0 && -f /usr/bin/bodhibuilder ]]; then
117 apt-get -y purge bodhibuilder
121 if [[ $RemoveLeadPad == 0 && -f /usr/bin/leafpad ]]; then
122 apt-get -y purge leafpad
124 #============================================================================================================
127 #============================================================================================================
129 if [[ $LogExport == 1 && -f basix-to-xfce.log ]]; then
133 echo "$RemoveBodhiBuilder"
134 echo "$InstallChromium"
136 echo "$RemoveLeadPad"