Run Command in Background on Linux

Tested on : Ubuntu Server 20.04 LTS Today, I want to show you how to run linux command in background even the terminal close. I will use rclone as example application to run in background. It’s not difficult to run command in background. You just need to add & symbol and type disown command after the first command run in the background. Example : rclone sync -P /mnt/disk4/pictures /mnt/disks/external/pictures > ....

May 20, 2022 · 1 min · Haziq Rohaizan

Ubuntu Server - Laptop Lid Ignore

Use Your Laptop As A Server Tested on : Ubuntu 20.04 LTS To disable entering the sleep mode I had to edit the /etc/systemd/logind.conf file and modify the line: Just uncomment the line by removing # from this : #HandleLidSwitch=suspend #LidSwitchIgnoreInhibited=no #HandleLidSwitchDocked=ignore to this : HandleLidSwitch=ignore LidSwitchIgnoreInhibited=no HandleLidSwitchDocked=ignore Then restart the OS via: sudo service systemd-logind restart Then you can close the laptop lid .

May 12, 2022 · 1 min · Haziq Rohaizan

Protect Your Linux Server Against Hackers and Malware

Copy from The Digital Life Blog Optimize your deployments to lower the attack surface, especially when you’re running administrative web interfaces and Docker Containers. SECURITY IS NOT A SIMPLE CHECK-LIST First, I want to emphasize how important it is that you develop your own security strategy. Because when you search on the web about “How to protect Linux” or “Harden your Linux Server”, you’ll find tons of articles. People are just throwing out their “best practices” (just like this article here :)....

May 12, 2022 · 3 min · Christian Lempa
ssl-cert-flow

Self Sign Cert

SSL Certificates Cheat-Sheet X.509 is an ITU standard defining the format of public key certificates. X.509 are used in TLS/SSL, which is the basis for HTTPS. An X.509 certificate binds an identity to a public key using a digital signature. A certificate contains an identity (hostname, organization, etc.) and a public key (RSA, DSA, ECDSA, ed25519, etc.), and is either signed by a Certificate Authority or is Self-Signed. Self-Signed Certificates Generate CA Generate RSA openssl genrsa -aes256 -out ca-key....

May 12, 2022 · 3 min · Christian Lempa

Vimtutor - Tutorial for newbie Vim user

Base On : VIM Tutor - Version 1.7 Copied version Install vimtutor on Fedora 35 : sudo dnf install vim-enhanced =============================================================================== = W e l c o m e t o t h e V I M T u t o r - Version 1.7 = =============================================================================== Vim is a very powerful editor that has many commands, too many to explain in a tutor such as this. This tutor is designed to describe enough of the commands that you will be able to easily use Vim as an all-purpose editor....

May 6, 2022 · 26 min · Haziq Rohaizan

Setup Hugo

Cara Setup Hugo Static Site di Github Pages Bahan ini disalin terus daripada website hackmd. Hanya tujuan rujukan semata-mata. Ada beberapa bahagian diubah. Tutorial boleh ditonton di youtube - Tutorial: Blogging with Hugo and GitHub Pages-Sarah Gibson Saya akan membawa anda melalui penciptaan tapak web anda sendiri, dihoskan pada GitHub Pages dan dibina dengan Hugo. Anda boleh melihat contoh tapaknya dipautkan di bawah. website : https://mhaziqrk.uk (website ini) Repo : https://github....

May 1, 2022 · 21 min · Haziq Rohaizan