linux

Troubleshooting Linux

January 20, 2024
linux, troubleshooting

Troubleshooting Linux # Monitoring # Zabbix Nagios Prometheus Disc space # df -h # inode df -i # dir size du -sh /tmp # show the size of all folders and files in a particular folder, sorting them by size du -h --max-depth=1 | sort -hr du -h -d 1 | sort -hr # with details du -ah /tmp | sort -rh du -sh ./node_modules/* | sort -nr | grep '\dM. ...

Nala - пакетный менеджер для Ubuntu

October 28, 2023
linux, ubuntu, nala

Nala - альтернативный пакетный менеджер в Ubuntu и Linux Mint # Nala - бесплатный и открытый альтернативный интерфейс к APT (который, сам по себе, является интерфейсом к DPKG). Nala может делать (почти) все то, что может APT (она все еще, в основном, взаимодействует с ним), а также немного больше. Дополнительные команды Nala # Nala совместим с большинством команд APT, с которыми вы уже знакомы. Просто замените APT на Nala, чтобы их запустить. ...

Best Linux Apps

April 29, 2023
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 Obsidian - Markdown-based knowledge base # flatpak install flathub md.obsidian.Obsidian Telegram Desktop # flatpak install flathub org.telegram.desktop ONLYOFFICE Desktop Editors # flatpak install flathub org.onlyoffice.desktopeditors Skype # flatpak install flathub com.skype.Client GIMP Image Editor # https://launchpad. ...

Things to Do After Installing Ubuntu GNOME 22.04 LTS

April 29, 2023
linux, ubuntu

Things to Do After Installing Ubuntu GNOME 22.04 LTS # Check and Install Package Updates # sudo apt update && sudo apt list --upgradable && sudo apt upgrade && sudo apt autoremove sudo nala update && sudo nala list --upgradable && sudo nala upgrade && sudo nala autoremove sudo aptitude update && sudo apt list --upgradable && sudo aptitude upgrade && sudo apt autoremove Enabling SSH # sudo apt install openssh-server sudo systemctl enable ssh sudo systemctl start ssh sudo systemctl status ssh sudo ufw allow ssh My Software and Tools # sudo apt install \ nano \ nala \ git \ wget \ curl \ mc \ copyq \ filezilla \ neofetch \ remmina \ inxi \ make \ htop \ gnome-sushi \ aptitude \ zsh \ powerline \ fonts-powerline System Tuning # sudo apt install gnome-system-tools dconf-editor gnome-tweaks chrome-gnome-shell gnome-shell-extensions Installing additional support for archivers # sudo apt install p7zip-rar rar unrar unace arj cabextract Show the Trash icon on the desktop # gsettings set org. ...

VS Code

April 29, 2023
linux, ubuntu, vscode

Things to Do After Installing Ubuntu GNOME 22.04 LTS # Extensions # code --install-extension BeardedBear.beardedicons code --install-extension christian-kohler.path-intellisense code --install-extension DEVSENSE.composer-php-vscode code --install-extension DEVSENSE.phptools-vscode code --install-extension DEVSENSE.profiler-php-vscode code --install-extension diz.ecsstractor-port code --install-extension formulahendry.vscode-mysql code --install-extension itsjonq.vs-plus-plus code --install-extension jakebathman.mysql-syntax code --install-extension miguelsolorio.fluent-icons code --install-extension naumovs.color-highlight code --install-extension nespinozacr.mysql-autocomplete code --install-extension PKief.material-icon-theme code --install-extension pranaygp.vscode-css-peek code --install-extension prasadbobby.auto-rename-tag code --install-extension qufiwefefwoyn.kanagawa code --install-extension RapidAPI.vscode-rapidapi-client code --install-extension rapidapi.vscode-services code --install-extension ritwickdey. ...

How to Create a .Desktop File

April 11, 2023
linux, ubuntu

Create .Desktop Files With a Third-Party Program # https://www.florian-diesch.de/software/arronax/ sudo add-apt-repository ppa:diesch/stable sudo apt install arronax Create Desktop Launchers # application-name.desktop # [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Exec=/path/to/executable Name=Name of Application Icon=/path/to/icon Path (user only) # ~/.local/share/applications/ Path (global) # /usr/share/applications/

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

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