linux

Apt

June 14, 2022
linux, apt

Apt - Advanced package tool # Update # sudo apt update && sudo apt list --upgradable && sudo apt upgrade sudo apt update && sudo apt list --upgradable && sudo apt upgrade && sudo apt autoremove Upgrade only one package # apt install --only-upgrade curl Uninstall App # sudo apt-get purge anydesk sudo apt-get autoclean sudo apt-get autoremove Install Specific Version of a Package # sudo apt install <package_name>=<version_number> sudo apt install phpmyadmin=4:4. ...

Best Linux Apps

June 14, 2022
linux, apps, software, flatpak

Apps # HardInfo # System Profiler and Benchmark sudo apt install hardinfo Flatseal # Manage Flatpak permissions https://flathub.org/apps/details/com.github.tchx84.Flatseal flatpak install flathub com.github.tchx84.Flatseal GIMP Image Editor # https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/gimp https://packages.ubuntu.com/focal/amd64/gimp-plugin-registry/filelist https://github.com/pixlsus/registry.gimp.org_static/tree/master/registry.gimp.org/files https://gmic.eu/download.html sudo add-apt-repository ppa:ubuntuhandbook1/gimp sudo apt update sudo apt install gimp install gimp-plugin-registry sudo apt-add-repository universe sudo apt-get install gimp-plugin-registry uninstall: sudo apt install ppa-purge sudo ppa-purge ppa:ubuntuhandbook1/gimp XnView MP # https://www. ...

dd

June 14, 2022
linux, dd

dd - data definition # Show mounted devices # df -h sudo lsblk Backup # sudo su dd if=[DISC_PATH] | gzip > ./[NAME].img.gz Restore # sudo su gzip -cd ./[NAME].img.gz | dd of=[DISC_PATH]

Flatpak

June 14, 2022
linux, flatpak

Flatpak # Add the Flathub repository # flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo Install the Software Flatpak plugin # sudo apt install gnome-software-plugin-flatpak List of all applications in the connected repository # flatpak remote-ls flathub Search apps # flatpak search gimp Install app # flatpak install flathub org.gimp.GIMP flatpak install --bundle ~/Downloads/flatpak/org.inkscape.Inkscape.flatpak flatpak install ~/Downloads/flatpak/org.inkscape.Inkscape.flatpakref Run App # flatpak run org.gimp.GIMP Updating Flatpak applications # flatpak update View installed packages # flatpak list --app Uninstalling apps # flatpak uninstall org. ...

SSH

June 14, 2022
linux, ssh

SSH - Secure Shell # https://selectel.ru/blog/ssh-ubuntu-setup/ Enabling SSH # sudo apt update && sudo apt install openssh-server sudo systemctl status ssh sudo ufw allow ssh Disabling SSH # sudo systemctl disable --now ssh Re-enable SSH # sudo systemctl enable --now ssh Disable password authentication in SSH # sudo nano /etc/ssh/sshd_config PasswordAuthentication no sudo systemctl restart ssh Create an RSA key pair # ssh-keygen -t rsa Correct file permissions for ssh keys and config # ssh-keygen -t rsa -b 4096 -N '' -C "email@gmail. ...

GRUB

February 6, 2022
linux, grub

GRUB # GRUB Rescue # grub rescue> ls grub rescue> ls (hd0,msdos*)/boot/grub/ grub rescue> set prefix=(hd0,msdos*)/boot/grub grub rescue> set root=(hd0,msdos*)/boot/grub grub rescue> insmod ext2 grub rescue> insmod normal grub rescue> normal After boot write the command: sudo update-grub sudo grub-install /dev/sd_ US-English Keyboard Layout # Enable os-prober to show other partitions on GRUB # sudo nano /etc/default/grub GRUB_DISABLE_OS_PROBER=false sudo update-grub reboot

PHP

February 6, 2022
linux, php

PHP # Links: # https://tecadmin.net/install-php-ubuntu-20-04/ https://tecadmin.net/enable-disable-php-modules-ubuntu/ https://tecadmin.net/install-multiple-php-version-apache-ubuntu/ Uninstall php 7 # sudo apt-get purge php7.* sudo apt-get autoclean sudo apt-get autoremove Add PHP PPA # sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update Install Required PHP Version # sudo apt install -y php8.1 sudo apt install -y php8.0 sudo apt install -y php7.4 sudo apt install -y php7.3 sudo apt install -y php7. ...

Things to Do After Installing Ubuntu GNOME 20.04/22.04 LTS

January 30, 2022
linux, ubuntu

Things to Do After Installing Ubuntu GNOME 20.04/22.04 LTS # Check and Install Package Updates # sudo apt update && sudo apt list --upgradable && sudo apt upgrade sudo apt update && sudo apt list --upgradable && sudo apt upgrade && sudo apt autoremove Commands for System Cleanup # To clean partial packages sudo apt autoclean To remove unused dependencies sudo apt autoremove To auto cleanup apt-cache ...