linux

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. ...