(X)UBUNTU Tweeks - butvin/galera GitHub Wiki

#[Ubuntu 20.04 LTS]


sudo apt-get update && sudo apt upgrade -y
sudo apt-get install aptitude apt-transport-https tree wget unzip unrar rar whois p7zip-rar git vim mc mplayer -y




sudo apt install gcc g++ make ubuntu-make -y

umake --version
umake ide phpstorm
	umake --remove ide phpstorm





sudo apt install default-jre -y
java -version

sudo apt install default-jdk
javac -version



sudo apt list --installed || sudo apt list --all-versions
sudo apt install  synaptic gdebi htop dconf-editor font-manager plank hardinfo vlc gparted filezilla -y

*** SNAP ***

sudo snap install skype --classic
sudo snap install sublime-text --classic
sudo snap install postman
sudo snap install phpstorm --classic
sudo snap install whatsdesk
sudo snap install --edge viber-mtd
sudo snap install software-boutique --classic

*** For fast draw & Screenshot *** sudo apt install flameshot -y sudo apt install tasksel -y

sudo apt install telegram-desktop -y
sudo apt install ubuntu-restricted-extras -y
sudo apt install gnome-software -y

*** GNOME *** sudo apt-get remove --auto-remove cinnamon-desktop-environment sudo apt-get purge --auto-remove cinnamon-desktop-environment

sudo apt update
sudo apt install ubuntu-desktop
sudo apt-get install gnome-tweaks gnome-shell-extensions -y

*** Remove Unity/Gnome *** sudo apt remove nautilus gnome-power-manager gnome-screensaver gnome-termina* gnome-pane* gnome-applet* gnome-bluetooth gnome-desktop* gnome-sessio* gnome-user* gnome-shell-common compiz compiz* unity unity* hud zeitgeist zeitgeist* python-zeitgeist libzeitgeist* activity-log-manager-common gnome-control-center gnome-screenshot overlay-scrollba*

*** XFCE4 ***

sudo apt-get remove gdm3

sudo tasksel install xubuntu-desktop || sudo tasksel install xubuntu-core || sudo apt install xubuntu-desktop
sudo apt install xfce4 -y
sudo apt install xfce4-goodies xubuntu-restricted-addons -y
sudo apt install exo-utils

sudo apt install gnome-control-center gnome-online-accounts
XDG_CURRENT_DESKTOP=GNOME gnome-control-center

sudo apt-cache policy xfce4-battery-plugin
sudo apt-cache policy xfce4-*
sudo apt-get install xubuntu-community-wallpapers 

sudo apt autoremove

Remove XFCE4

sudo apt purge xubuntu-icon-theme xfce4-*
sudo apt purge xubuntu-desktop xubuntu-icon-theme xfce4-*
sudo apt purge plymouth-theme-xubuntu-logo plymouth-theme-xubuntu-text
sudo apt autoremove

?	HARD TEST https://www.phoronix-test-suite.com/?k=downloads

cat /proc/sys/vm/swappiness
sudo vim /etc/sysctl.conf
# add next line
vm.swappiness=10

sudo sysctl -p
cat /proc/sys/vm/swappiness
cat /proc/swaps
inxi -G 	# info about Xorg






*** MATE ***





sudo apt-get install -y mate-desktop-environment-extras
sudo snap install software-boutique --classic
sudo apt-get install mate-tweak
sudo apt-get install mate-dock-applet







*** Ubuntu 20.04 PHP(7.4) install ***
sudo apt update

dpkg --get-selections | grep php


sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear php-bcmath

sudo apt install php-codesniffer

sudo ufw app list
sudo ufw status verbose		проверить фаерволл
sudo ufw enable	/disable	вкл.\откл. фаервол







?	cp /boot/grub/grub.cfg /boot/grub/grub.cfg.backup

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30,0; then
clear
fi
### END /etc/grub.d/05_debian_theme ###



















*** MAC OS THEME ***
https://www.gnome-look.org/p/1275087/
sudo apt update
sudo apt install gtk2-engines-murrine gtk2-engines-pixbuf










*** ICONS ***
https://snwh.org/moka/download

sudo add-apt-repository -u ppa:snwh/ppa
sudo apt install moka-icon-theme faba-icon-theme -y








*** MAC OS THEME ***
https://www.gnome-look.org/p/1275087/

sudo apt update
sudo apt install gtk2-engines-murrine gtk2-engines-pixbuf

*** ICONS ***
https://snwh.org/moka/download

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








apt-get install ncdu


du -hs /path/to/directory

the command du "summarizes disk usage of each FILE, recursively for directories," e.g.,

du -hs /path/to/directory

-h is to get the numbers "human readable", e.g. get 140M instead of 143260 (size in KBytes) -s is for summary (otherwise you'll get not only the size of the folder but also for everything in the folder separately) As you're using -h you can sort the human readable values using

du -h | sort -h

The -h flag on sort will consider "Human Readable" size values.

If want to avoid recursively listing all files and directories, you can supply the --max-depth parameter to limit how many items are displayed. Most commonly, --max-depth=1

du -h --max-depth=1 /path/to/directory

**************************** CINNAMON ************************************* ----------------------------------------------------------------------------------------------------------------------- https://cinnamon-spices.linuxmint.com/desklets/popular ----------------------------------------------------------------------------------------------------------------------- wget http://packages.linuxmint.com/pool/main/m/mint-x-icons/mint-x-icons_1.5.5_all.deb Get the Linux Mint-Y icon pack:

wget http://packages.linuxmint.com/pool/main/m/mint-y-icons/mint-y-icons_1.3.9_all.deb
Get the Linux Mint theme:

wget http://packages.linuxmint.com/pool/main/m/mint-themes/mint-themes_1.8.4_all.deb
Install the downloaded package:

sudo dpkg -i ./mint-x-icons_1.5.5_all.deb ./mint-y-icons_1.3.9_all.deb ./mint-themes_1.8.4_all.deb

----ICONS !!!!! https://www.makeuseof.com/tag/make-linux-look-like-macos/

sudo add-apt-repository ppa:numix/ppa && sudo apt-get update
sudo apt install numix-icon-theme-circle

sudo sh -c "curl https://raw.githubusercontent.com/Foggalong/hardcode-fixer/master/fix.sh | bash"
curl https://raw.githubusercontent.com/ActusOS/GnomeYosemiteIcons/master/download_from_github.sh | sh


sudo apt install libqt5svg5 qml-module-qtquick-controls
sudo dpkg -i /path/to/ocs-url*.deb

FIX GRUB


sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

FIX APT-GET


sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

##ATOM wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -

sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'

sudo apt-get update

Install Atom

sudo apt-get install atom

Install Atom Beta

sudo apt-get install atom-beta