Home

Linux: Block or Disable Normal User Logins in Linux

How to Block User Logins Using /etc/nologin File The primary function of /etc/nologin file is to display a message (stored in the file) to users attempting to log on to a system during the process of shutdown. Once the message has been displayed to the user, the login procedure terminates, preventing the user from logging on to system. This c...

Read more

Linux: 3 Ways to Change a Users Default Shell in Linux

Changing the Default Shell There are several reasons for changing a user’s shell in Linux including the following: To block or disable normal user logins in Linux using a nologin shell. Use a shell wrapper script or program to login user commands before they are sent to a shell for execution. Here, you specify the shell wrapper as a user’...

Read more

Linux: Create Barcode and QRCode in Linux

Install GNU Barcode On Debian based distribution: $ sudo apt-get install barcode On Arch Linux: $ sudo pacman -S barcode To Create a Barcode Create the barcode by using the following command: $ barcode -b "mycode2792" -o first.ps By default the barcode command is output to postscript file (.ps), but you can change it to other format s...

Read more

npm: Fix Permissions on Globally Installing npm Packages on Linux

Fixing npm Globally Install Packages Permissions The difference in npm packages that are installed globally and locally is that you will setup a package like a program available by a CLI (Command Line Interface), This require permissions to write in some directories that the npm normally don’t has. When you try install some globally package (u...

Read more

Arch Linux: Disable Specific App Updates

Disable Updates Retrieving the Package Name Before tinkering around with the pacman configuration files to prevent Arch from upgrading a package on your system, you must find the exact name of the package. The best way to do this is by making use of the “Qe” command-line switch. $ pacman -Qe This operation will print out a complete list of ...

Read more

Kali Linux: Autologin on Kali Lite XFCE4

Enable Automatic Login Change this: /etc/lightdm/lightdm.conf [Seat:*] #autologin-user=root #autologin-user-timeout=0 to this: [Seat:*] autologin-user=root autologin-user-timeout=0 and change this: /etc/pam.d/lightdm-autologin # Allow access without authentication auth required pam_succeed_if.so user != root quiet_success auth required...

Read more

Debian: Basic Commands of apt Package Management

What is apt-get The apt-get utility is a powerful and free package management command line program, that is used to work with Ubuntu’s APT (Advanced Packaging Tool) library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operatin...

Read more