# - bof - #



#!/bin/bash



<<'comment'
# - Configured - #

# -  - #
# - Vim commands - #
https://vim.rtorr.com/

rm -rf ~/.bashrc;
nvim ~/.bashrc;

ssh-keygen -R 192.168.1.1

# - On client - #
cd ~/.ssh;
ssh-keygen -t rsa;

cat ~/.ssh/id_rsa.pub;

# - On server - #
nvim ~/.ssh/authorized_keys;

sudo apt install curl git htop inxi net-tools ntp neovim screenfetch tree -y;
comment



# -  - #
# - Linux software install process - #



:a
# -  - #
# - Update & upgrade - #
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y;



:b
# -  - #
# - Basic1 program list install - #
sudo apt install arc-theme curl duf evince extlinux fastfetch figlet filelight file-roller firefox gedit git \
         gparted gvfs gvfs-backends gvfs-fuse htop lolcat lsb-release mhddfs neofetch neovim net-tools ntp \
         openssh-client openssh-server pv screenfetch sshfs synaptic testdisk tilix thunar tree unzip wget whois zip -y;

sudo apt install fastfetch -y;
sudo apt install plank -y;
sudo apt install qemu-guest-agent -y;


:c
# -  - #
# - Basic2 program list install - #
sudo apt install arc-theme bleachbit duf curl evince extlinux fastfetch filelight file-roller filezilla firefox \
                 gcc gdebi gedit geeqie git gnome-disk-utility gnome-multi-writer gnome-screenshot gnupg gpart \
                 gparted gvfs gvfs-backends gpicview gvfs-fuse htop kde-spectacle kpat libreoffice lsb-release \
                 mhddfs moka-icon-theme mysql-client nautilus ncdu neofetch neovim net-tools network-manager \
                 nmap ntp openssh-client openssh-server plank pv samba screenfetch simple-scan sshfs synaptic \
                 system-config-printer testdisk tilix thunar transmission-gtk tree usb-creator-gtk unzip viewnior \
                 vlc wget whois zip -y;


:d
# -  - #
# - Full program list install - #
sudo apt install arc-theme bleachbit brasero clementine curl duf dolphin evince extlinux fastfetch filelight \
                 file-roller filezilla firefox gcc gdebi gedit geeqie gimp git gnome-disk-utility gnome-multi-writer \
                 gnome-screenshot gnupg gpart gparted gvfs gvfs-backends gpicview gvfs-fuse htop k3b kde-spectacle kpat \
                 libreoffice lsb-release mhddfs moka-icon-theme mysql-client nautilus ncdu neofetch neovim net-tools \
                 network-manager nmap ntp openssh-client openssh-server plank pv samba screenfetch simple-scan \
                 software-properties-common sshfs synaptic system-config-printer testdisk tilix thunar transmission-gtk \
                 tree usb-creator-gtk unzip viewnior vlc wget whois xfburn zip -y;

sudo apt install snapd -y;
sudo snap install bpytop;
sudo snap install spectacle;


# -  - #
# - Additional software - #
sudo apt install ca-certificates grub-customizer pinta -y;


:d.1
# -  - #
# - Printer manager - #
sudo sudo apt install cups printer-driver-cups-pdf hplip system-config-printer -y;
sudo systemctl enable cups;


:d.2
# -  - #
# - Install ElementaryOS tweaks - #
sudo apt install software-properties-common -y;
sudo add-apt-repository ppa:philip.scott/pantheon-tweaks;
sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -y;
sudo apt install pantheon-tweaks -y;


:d.3
# -  - #
# - Plank configuration - #
plank --preferences;



:e
# -  - #
# - Dropbox & VirtualBox - #
sudo apt install nautilus-dropbox -y;
sudo apt install virtualbox-qt -y;
sudo apt install nautilus-dropbox virtualbox-qt -y;



:f
# -  - #
# - Additional software - #
# - When needed - #
sudo apt-get install dconf-editor gnome-system-tools gnome-tweak-tool ubuntu-restricted-extras -y;
sudo apt-get install bless catfish -y;



:g
# -  - #
# - Set tilix as default terminal - #
sudo update-alternatives --config x-terminal-emulator;
sudo gsettings set org.gnome.desktop.default-applications.terminal exec tilix


:h
# -  - #
# - Zorin systems programs - #
sudo apt install sysinfo hardinfo psensor -y;



:i
# -  - #
# - Unetbootin install - #
sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update;
sudo apt install extlinux unetbootin -y;



:j
# -  - #
# - More software if needed - #
sudo apt install atom docky emma gimp mysql-workbench -y;
sudo apt install dosbox -y; 
sudo apt install system-config-samba -y;



:k
# -  - #
# - Clipgrab - #
https://www.how2shout.com/linux/install-clipgrab-on-ubuntu-20-04-lts-download-youtube-videos/

:k.1
# -  - #
# - Download clipgrab - #
https://clipgrab.org/

:k.2
# -  - #
# - Install ffmpeg - #
sudo apt install ffmpeg -y;

:k.3
# -  - #
# - Clipgrab properties - #
Allow executing file as program






# -  - #
# - Look for MyCloud NAS on the net - #
https://community.wd.com/t/documentation-for-using-ssh/218556/10

sudo nmap -sn 192.168.1.0/24  | grep Western -B2

Nmap scan report for MyCloudPR4100.fios-router.home (192.168.1.54)
Host is up (-0.10s latency).
MAC Address: 00:14:EE:03:36:91 (Western Digital Technologies)


# -  - #
# - ssh MyCloud - #
https://support-en.wd.com/app/answers/detail/a_id/26497/related/1/session/L2F2LzEvdGltZS8xNTkxNDg5MDg0L2dlbi8xNTkxNDg5MDg0L3NpZC9mVU5oRVpVdkFsaTlMTjdXOE5EZ1MzOEpPS01jcnNFdWslN0VSZmhlSE1oTDZSbXNYZ3V2bzdiTUQlN0VaRDR5aF85S1dKYkhuQXE3bkFqdlFuRWhFcjVRY3MzanBjNEZZV2d3V2ZwM2VrQnh4Q2ZtQjNzdXZtZ0dGYVpRJTIxJTIx


# -  - #
# - root login - #
ssh sshd@192.168.1.54



# -  - #
# - Formatter - #
com.github.djaler.formatter
https://github.com/djaler/formatter



# -  - #
# - Image Burner - #
com.github.artemanufrij.imageburner
http://anufrij.org/



# -  - #
# - Screen rotation in Ubuntu/ElementaryOS - #
# - Very Important to do this before any configuration on Ubuntu/ElementaryOS - #
# - How to turn off screen rotation in Ubuntu/ElementaryOS - #
https://askubuntu.com/questions/1035209/how-to-turn-off-screen-rotation-in-ubuntu-18-04-lts
# -  - #
sudo systemctl stop iio-sensor-proxy.service;
sudo systemctl disable iio-sensor-proxy.service;
sudo apt-get remove iio-sensor-proxy



# -  - #
# - Install Atom editor - #
sudo add-apt-repository ppa:webupd8team/atom
sudo apt update;
sudo apt install atom;



# -  - #
# - Remove repository - #
sudo add-apt-repository --remove ppa:webupd8team/atom



# -  - #
# - Ubuntu Gnome - Activate hot corner - #
# - Terminal - #
gsettings set org.gnome.shell enable-hot-corners



# -  - #
# - Disable automatic login in linux - #

sudo gedit /etc/lightdm/lightdm.conf

cd /etc/lightdm
sudo gedit lightdm.conf

# - Ctrl + f - #
# - Look for the line - #
 autologin-user=is_derayo

# - Commented it - #
#autologin-user=is_derayo



# -  - #
# - Change screen resolution Linux Ubuntu in VirtualBox - #
sudo apt-get install virtualbox-guest-dkms


# - List all programs installed in linux - #
sudo apt-get install gksu;
gksu nautilus /usr/share/applications;



# - Firefox configuration - #
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/
https://www.google.com/?gws_rd=ssl



# - Standard programs on linux - #



# -  - #
# - Removing a repository - #
sudo add-apt-repository -r ppa:repository-name/ppa



# -  - #
# - ElementaryOS - #
https://itsfoss.com/things-to-do-after-installing-elementary-os-loki/
# - Enabling PPA in ElementaryOS - #
sudo apt install software-properties-common;

# -  - #
# - faba theme - #
sudo add-apt-repository -u ppa:snwh/ppa
sudo apt update;
sudo apt install moka-icon-theme faba-icon-theme faba-mono-icons;

# -  - #
# - tweaks - #
https://www.linuxmadesimple.info/2019/12/how-to-enable-dark-theme-on-elementary.html

sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt install elementary-tweaks





# -  - #
# - Add repositories before for atom & gimp - #

sudo add-apt-repository ppa:webupd8team/atom;
sudo add-apt-repository ppa:otto-kesselgulasch/gimp;
sudo apt update;


# -  - #
# - Atom on Mint 20.04 - #
sudo apt update;
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main"
sudo apt update;
sudo apt install atom;



# -  - #
# - Install emma in Mint 20 ahead - #
mkdir -p ~/Downloads/emma
cd ~/Downloads/emma

wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-glade2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/p/python-mysqldb/python-mysqldb_1.3.10-1build1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/libmysqlclient20_5.7.31-0ubuntu0.18.04.1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/e/emma/emma_0.6-5_all.deb

sudo apt-get install ./*.deb



# -  - #
# - Install mysql-workbench-community in Mint 20 ahead - #

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update;
sudo apt install snapd;
sudo snap install mysql-workbench-community;



# -  - #
# - Install gimp - #
sudo snap install gimp;



# -  - #
# - Add repositories nextcloud-client - #

sudo add-apt-repository ppa:nextcloud-devs/client;
sudo apt update;
sudo apt-get install nextcloud-client bluefish imagination audacity;



# -  - #
# - Old programs - #
unetbootin

# - Some extra libraries - #
sudo apt-get install autoconf libgtk2.0-dev librsvg2-bin;


# - Arch based linux - #
sudo pacman -S brasero gedit firefox libreoffice nautilus thunar pinta unetbootin mysql-workbench k3b xfburn gksu samba gnome-tweak-tool tree sshfs dosbox openssh bluefish unzip git whois;

# - Dropbox for manjaro? - #
https://www.unixmen.com/install-dropbox-manjaro-xfce-arch-linux/

sudo yaourt -S dropbox


# - Some extra libraries - #
sudo pacman -S autoconf libgtk2.0-dev librsvg2-bin


# -  - #
# - Install SSH in Manjaro Linux - Tested in i3 - #

sudo pacman -S openssh;
sudo systemctl enable sshd;
sudo systemctl start sshd;



# - Ubuntu Unity Desktop - #
sudo apt-get install unity-tweak-tool;

# -  - #
# - See username besides power button - #
# -  - #

In Unity Tweak Tool, under the "Unity" section at the top, click on "Panel". 
Then, in the bottom-right-hand corner should be a checkbox for "Show my name". 
Checking that should restore your name next to the power button.

# -  - #
# - From a terminal - #
gsettings set com.canonical.indicator.session show-real-name-on-panel true

# - To remove - #
gsettings set com.canonical.indicator.session show-real-name-on-panel false


# -  - #
# - Hide guest user in Ubuntu desktop -> run just once - #
sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'





# -  - #
# - Grab and Drag Add-ons to activate touch screen in firefox - #
https://addons.mozilla.org/nn-no/firefox/collections/Anonymous-4768982/8acb7dc2-42e7-41e7-bd88-1b9bf6/


# -  - #
# - Edubuntu - #
# - Edubuntu AppGuide - #
https://wiki.ubuntu.com/Edubuntu/AppGuide


Preschool
blinken gamine gcompris kanagram khangman ktuberlin tuxpaint klettres pairs

Primary
kalzium kbruch kig kmplot ktouch kturtle kwordquiz kalgebra kgeography kstars laby lybniz marble parley ri-li step tuxmath tuxtype

Secundary
calibre dia-gnome inkscape lightspeed dia melting pencil2d chemtool fritzing einstein stellarium gbrainy scribus yorick cantor rocs 


Install all together:

sudo apt-get install blinken gamine gcompris kanagram khangman tuxpaint klettres pairs kalzium kbruch kig kmplot ktouch kturtle kwordquiz kalgebra kgeography kstars laby lybniz marble parley ri-li step tuxmath tuxtype calibre dia-gnome inkscape lightspeed dia melting pencil2d chemtool fritzing einstein stellarium gbrainy scribus yorick cantor rocs;

With Synaptic:

ktuberlin








# -  - #

# - Install SublimeText editor - #

# - 1. Open terminal via Ctrl+Alt+T. When it opens, run command to install the key: - #
cd Downloads
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

# - 2. Then add the apt repository via command: - #
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

# - 3. Finally check updates and install sublime-text via your system package manager: - #
sudo apt-get update
sudo apt-get install sublime-text





# -  - #

# - Install Komodo-edit - #

# - Metodo 1 - #

# - Download Komodo-Edit - #

# - From isdevelopment.us - #
http://isdevelopment.us/Programs/Linux%28x32x64%29.Img/Komodo-Edit-10.2.0-17657-linux-x86_64.Ins/

# - From original website - #
https://www.activestate.com/komodo-ide/downloads/edit

# - Open terminal - #

# - Unpack zip file - #
tar -xvf Komodo-Edit-10.2.0-17657-linux-x86_64.tar.gz

# - Get into the Komodo folder - #
cd Komodo-Edit-10.2.0-17657-linux-x86_64

# - Install Komodo-edit - #
sudo ./install.sh



# - Metodo 2 - #
sudo add-apt-repository ppa:mystic-mirage/komodo-edit
sudo apt-get update
sudo apt-get install komodo-edit


# - New icons themes - #
# - Moka icons theme: - #
sudo add-apt-repository ppa:moka/stable
sudo apt-get update
sudo apt-get install faba-icon-theme moka-icon-theme

# - Numix Circle icon theme: - #
sudo add-apt-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-icon-theme numix-icon-theme-circle


# -  - #
# - Gnome themes - Very important - #
https://www.youtube.com/watch?v=o8pfCuBOlXE

The five themes (in order of the video):
1. Paper: 
http://snwh.org/paper

sudo add-apt-repository ppa:snwh/pulp;
sudo apt-get update;
sudo apt-get install paper-icon-theme;
sudo apt-get install paper-gtk-theme;
sudo apt-get install paper-cursor-theme;




# -  - #
# - Add repositories in ElementaryOS Loki, Freya, Luna - #
https://itsfoss.com/install-elementary-tweaks-in-elementary-os-freya-luna/


# -  - #
# - Add repositories in ElementaryOS Loki, Freya, Luna - #
sudo apt-get install software-properties-common


# - Add Elementary Tweaks - #
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt-get update
sudo apt-get install elementary-tweaks


# - Add icons on desk ElementaryOS - #
# - Install this applications if they are not installed - #
sudo apt-get install dconf-tools
sudo apt-get install nautilus dconf-tools


# -  - #
# - Activate icons in desktop ElementaryOS Loki, Freya, Luna - #
https://www.youtube.com/watch?v=Q-3uQm_Zb38


# -  - #
# - Step 1 - #
# - In dconf tools - #
Org - Pantheon - Desktop - Cerbere
Change
['wingpanel', 'plank', 'slingshot-launcher --silent']
For This !
['wingpanel', 'plank', 'slingshot-launcher --silent', 'nautilus -n']


# -  - #
# - Step 2 - #
# - Run Tweak Tool - #
Activate icons in Desktop Tab.




Clementine
DeveDe
AcetoneISO
GNU Paint
Xara Xtreme
acidRip
DVD::Rip
HandBrake



# - In order to Samba Program Works - (See file attached)  - #
sudo gedit /etc/libuser.conf


lvm2 -> Linux Logical Volumen Manager
MediaTomb -> Movies Server
deja-dup -> User backup
krdc, remmina -> remmina remote desk client
Ubuntu-tweak (See attached .deb file...)
Skype
Wine

Ubuntu restricted extras
gecko media player
browsers-plugin-VLC
CompizConfig-settings-manager
compiz-plugins-extra



# - eof - #