Do you need to create swapfile configurations for your Linux server? Whether you are managing a high-performance VPS or a local workstation, running out of memory can abruptly crash your database or web server. In this guide, we will walk you through the standard process for Ubuntu, Fedora, Debian, and RHEL-based systems like AlmaLinux. Even…
Read ArticleTag: linux
Save Linux state, boot other OS and resume later ChatGPT response
Model: ChatGPT-5 Thinking Question: Is it possible to save a Linux machine state to disk, kind of like a sleep, boot a different system and when booting the system with the saved state resume from that saved state?
Read ArticleUsing Logitech G915 X G-Keys (Macro keys) on Linux (Cinnamon)
I’m running arch linux with the Cinnamon Desktop Environment. I have recently bought a Logitech G915 X keyboard and I’m missing the macro key to launch the gnome-terminal program. Lucky Cinnamon has custom shortcuts. Go to System Settings. Keyboard. Shortcuts. There are 2 options for you. 1. Launchers Under Launchers, there’s “Launch terminal” and you…
Read ArticleHow to have a nice looking prompt in Rocky Linux
Well, Gentoo isn’t all bad. It has a very nice prompt. It displays the root user in RED and the non-root user in GREEN. So in order to have a nice looking prompt in Rocky Linux, just copy the Gentoo /etc/bash/bashrc to /etc/bashrc in Rocky.
Read Articlesshd sftp chroot jail howto
Problem description: You would like to jail users to their home directories and not allow shell access, only sftp access. Solution: SFTP chroot jail 1. Create a system group. Here I call it sftponly.
|
1 |
groupadd -r sftponly |
2. edit the sshd_config file, usually residing in /etc/ssh/sshd_config (in weird opensuse it’s in /usr/etc/sshd/ ) and append (it needs…
Read Article