# - bof - #

#!/bin/bash



<<'comment'
cd ~/; rm -rf ~/Ubuntu_Xfce-Desktop-Install.sh; vim ~/Ubuntu_Xfce-Desktop-Install.sh;
Copy & paste all this content
chmod +x ~/Ubuntu_Xfce-Desktop-Install.sh; ~/./Ubuntu_Xfce-Desktop-Install.sh;

# -  - #
# - When this error happen on ssh command - #
#  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#  @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
#  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# -  - #
# - Fixing this error - #
ssh-keygen -R "you server hostname or ip"
ssh-keygen -R 192.168.1.100;
ssh-keygen -R 192.168.1.200;
ssh-keygen -R 192.168.122.100;
ssh-keygen -R 192.168.122.200;
ssh-keygen -R 192.168.122.
comment



clear;

# :a
# -  - #
# - Update - #
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y;
echo '';
read -t 3 -p 'System updated...';
echo '';

# :b
# -  - #
# - xorg install - #
sudo apt install xorg -y;
echo '';
read -t 3 -p 'xOrg packages installed...';
echo '';

# :c
# -  - #
# - lightdm (Budgie, Cinnamon, Deepin, Mate & Xfce) - #
sudo apt install lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings -y;
sudo systemctl enable lightdm;
echo '';
read -t 3 -p 'LightDM login installed...';
echo '';

# :d
# -  - #
# - Xfce desktop - #
sudo apt install xfce4 xfce4-goodies xfce4-terminal -y;
#sudo apt install x2goserver x2goserver-xsession -y
echo 'exec startxfce4' > ~/.xinitrc;

sudo apt install firefox -y

echo '';
read -t 3 -p 'Xfce desktop installed...';
echo '';

# :e
# -  - #
# - Remove bash file - #
rm -rf ~/Ubuntu_Xfce-Desktop-Install.sh;

echo '';
read -t 5 -p 'The system will reboot so you can login in the new instalacion...';
echo '';
sudo reboot now;



<<'comment'
cd ~/; rm -rf ~/Ubuntu_Xfce-Desktop-Install.sh; vim ~/Ubuntu_Xfce-Desktop-Install.sh;
Copy & paste all this content
chmod +x ~/Ubuntu_Xfce-Desktop-Install.sh; ~/./Ubuntu_Xfce-Desktop-Install.sh;
comment



# - eof - #
