/images/logo.png

CHECK FOR GHOST FILES IN LINUX

Check for deleted files held by a processSometimes, after deleting a file some process can hold the file open, causing it to not be properly deleted. This can cause various issues like the OS reading directories sizes bigger than they truly are. Root CauseOn Linux or Unix systems, deleting a file via rm or through a file manager application will unlink the file from the file system’s directory structure; however, if the file is still open (in use by a running process) it will still be accessible to this process and will continue to occupy space on disk.

CHECK SSL CERTIFICATE INFO

It is essential to ensure that your SSL certificates are not expired or expiring soon. Neglecting this can have disastrous consequences for production systems. Certificate files typically have a .pem or .crt extension. You can use openssl commands to explore the details of a certificate. For example, the following command displays the details of a certificate: 1 openssl x509 -in mycert.pem -text -noout Your terminal will print a long output describing the certificate’s attributes, including version, serial number, signature algorithm, issuer, and validity.

LOAD SSH KEYS VIA KDE PLASMA KWALLET

This quick tip was tested on openSUSE Tumbleweed. However, it will probably work for other Linux distributions running KDE Plasma. Install ksshaskpass5Using Zypper, install ksshaskpass5 1 sudo zypper in --details ksshaskpass5 Create the configuration filesCreate the .desktop file that will be automatically parsed at KDE Plasma start-up. Add all the needed keys using ssh-add -q. The “q” here stands for quiet. 1 vim ~/.config/autostart/ssh-add.desktop 1 2 3 4 5 6 [Desktop Entry] Exec=ssh-add -q /home/user_name/.

RASPBERRY PI 4 + OPENSUSE + SAMBA

IntroductionHello, in this article, I’ll explain how to install openSUSE Tumbleweed (however, these instructions would probably work in openSUSE Leap) in Raspberry Pi 4, plus install and configure a basic Samba server to share files from an external HDD. The first thing to do is install the openSUSE Tumbleweed image on your Raspberry Pi 4. Go to the openSUSE Wiki page for Raspberry Pi 4 and download the image that you like to use.

BACKUP AND RESTORE DOTFILES USING GIT

IntroductionThis article is about how to back up dotfiles using Git. I will try to keep it short and straightforward. I’m using Zsh as the shell in the examples, but another shell can be used. The commands below should be executed as a normal user in the /home directory. Set up the repositoryCreate a local Git repository that will be used to track the dotfiles. 1 git init $HOME/.dotfiles Prepare the environmentThe default behaviour of Git commands is to run inside the project folder using information stored at the <project>/.

VIM CHEAT SHEET

IntroductionFor a long time, I ran away from Vim because it seemed very tricky and because there is a lot of simpler editors out there to work with. However, as it comes installed in most Linux distributions, I made this cheat sheet to help me understand how things work. I have discovered that is possible to be very productive with Vim 😃. I’ll try to go straight to the point.