Category Archives: linux
Ubuntu network configuration
Initial setup. netplan. This is a nice explanation from linuxhint.ca View Current IP Address To view the current IP address of your machine, you can use either of the following commands: $ ip a Or $ ip addr Running either of the above … Continue reading
postgresql installation & setup
Here should be no trick concerning the subject, but I’ve been stuck for a day with it. OK, having Oracle Linux 8 (CentOS 8), trying to install the postgresql: sudo dnf install postgresql The first surprise: by defauld the ancient … Continue reading
Linux swap partition setup
This may be useful in some cases of change your mind of use of hibernation or missing swap partition during OS setup ocassionally or deliberately (e.g. in the case of Ubuntu LTS Server installation the mounting of swap partition leads … Continue reading
Preparing Windows disk for Linux installation
Usually it’s to be done under Linux setup shell console (open command shell from installation environment) or it may be conducted via setup-GUI (not supposed in present topic). Resize NTFS filesystem: ntfsresize /dev/<Windows partition (e.g. sda1)> -s <NEW SIZE (e.g. … Continue reading
PHP+nginx setup tricks
General notes: The trial follows the way I’ve discovered the solutions of the problem. Following it directly reproduces most of my mistakes and quests. If the final solution is necessary, it’s recommended to pre-read the article before you begin All … Continue reading
Docker cheatsheet
Installation: Official guide: https://docs.docker.com/engine/install Using dnf instead of yum (RH7/CO7/OL7) and dnf configure-manager instead of yum-configure-manager. Pull image / run container: sudo docker pull <image name> sudo docker run [opts] <repository>/<image name>:<version> or latest useful [opts]: –name <name> – run … Continue reading
Linux repositories & package management
yum – old (up to CentOS 7) dnf – new (since CentOS 8) dnf dnf update dnf upgrade dnf install <package name> dnf remove <package name> dnf list <package name> dnf module list <module name> dnf module reset <module name> … Continue reading
Linux services
Services there are the background run programs also called daemons. sudo systemctl <command> <service name> Modules control сommands start stop restart reload reload-or-restart enable (with –now flag – enable and run immediately) disable (with –now flag – disable and stop … Continue reading
Some ways how to connect to remote Linux server.
To establish the ssh-connection between local and remote machines there are two main ways possible to pass the authentication: Classic – login/password pair A little more complicated, but safe and reliable – using a pair of RSA keys to introduce … Continue reading
Midnight Commander editor shortcuts
F3 Begin of text selection. Second press – end of text selection Shift+F3 Begin of block text selection F5 Copy text selection F6 Move text selection F8 Delete text selection Meta+i Go to previous bookmark Meta+j Go to next bookmark … Continue reading