Enable rpcbind.service to Auto-Start with systemd
null
When you connect an external keyboard to your laptop, accidental key presses from the built-in keyboard can be annoying. Disabling it entirely is straightforward on Linux and can save you from errant inputs while keeping the option to re-enable it when needed. Find Your Keyboard Device Start by listing all input devices to identify your…
The /etc/sysconfig/network-scripts/ directory contains network configuration files on RHEL and Fedora systems. While newer systems increasingly use NetworkManager and systemd-networkd, understanding ifcfg files remains essential for legacy systems and certain enterprise environments. Basic Static IP Configuration Here’s a typical ifcfg-eth0 file for a static IP setup: DEVICE=eth0 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes IPADDR=192.168.1.151 NETMASK=255.255.0.0 GATEWAY=192.168.1.10 USERCTL=no The…
When your Node.js application encounters a fatal error or needs to terminate, you need a reliable way to shut it down. Understanding how to exit gracefully—or forcefully when necessary—is essential for production applications. Using process.exit() The most direct method is process.exit(), which immediately terminates the Node.js process: process.exit(); This is a global method that doesn’t…
The simplest way to detect whether your Linux system booted in UEFI or BIOS (Legacy) mode is to check for the existence of the EFI firmware directory. Check for EFI Directory The /sys/firmware/efi/ directory only exists when the system has booted in UEFI mode. If it’s absent, the system is running in BIOS/Legacy mode. […
While BIOS settings are the preferred way to disable USB 3.0, you can also force USB 2.0 mode on a running Linux system by manipulating the xHCI controller’s port routing register directly using setpci. How it works Intel xHCI controllers use the XUSB2PR (xHC USB 2.0 Port Routing Register) at offset 0xd0. Setting this register…
The default display manager on Fedora is GNOME Display Manager (GDM). If you want to switch to another display manager like KDE Plasma (SDDM), LightDM, or another option, you need a reliable method that won’t break your system. Using system-switch-displaymanager The most straightforward approach is the system-switch-displaymanager utility, which handles the systemd configuration for you….
Fedora uses systemd-tmpfiles to automatically clean up temporary files and directories. By default, this includes volatile files in /tmp/, which can cause problems for applications that rely on files persisting there — like HDFS DataNodes that store their PID files as hadoop-hadoop-datanode.pid. How systemd-tmpfiles Works The systemd-tmpfiles service runs periodically (typically daily and at boot)…
systemd uses targets instead of the old sysvinit runlevels. Runlevel 3 (console mode) maps to multi-user.target. Here’s how to boot directly to console on Fedora, RHEL, Debian, Ubuntu, and other systemd-based distributions. Switch to Console Mode Immediately To switch from graphical mode to console without rebooting: sudo systemctl isolate multi-user.target This immediately stops the display…
After installing Xen on AMD systems, you may see continuous “powernow-k8 transition frequency failed” messages on the console. This happens because the powernow_k8 driver (AMD CPU power management) is incompatible with Xen’s CPU handling and tries to manage frequencies that Xen controls. Quick Fix The simplest solution is to unload the conflicting module: sudo rmmod…
The “rtnetlink answers: File exists” error typically occurs when restarting network interfaces on Linux, particularly after switching from DHCP to static IP configuration. This happens because the kernel’s routing table has stale entries that conflict with the new configuration you’re trying to apply. Why This Error Occurs When you change network settings and restart the…
When processing delimited data in Bash, you often need to drop the last N fields from each line without knowing the total field count. The naive cut -d’.’ -f1 approach fails immediately when field counts vary. Given input like: systemd.3.gz systemd.mount.3.gz systemd.mount.f.3.gz You want to remove the last 2 fields (.3.gz) to get: systemd systemd.mount…
If you’re stuck at the Ubuntu login screen with errors like “Could not write bytes: Broken Pipe” or “Check Battery State,” the display manager is likely corrupted or misconfigured. This typically indicates a problem with LightDM, Ubuntu’s default display manager since 12.04. Understanding the Problem LightDM (the lightweight X display manager) manages your login session…
Systemd’s coredump handler captures process crash dumps by default, which can consume significant disk space on development or test systems. Here’s how to disable or control coredump storage. Quick Solution Edit /etc/systemd/coredump.conf and set: Storage=none Then reload the systemd daemon: systemctl daemon-reload This prevents coredumps from being stored permanently while still logging crash events. Understanding…
Securing your website with HTTPS is no longer optional—it’s essential for SEO, user trust, and browser compatibility. The good news: Let’s Encrypt provides free certificates, and the tooling has matured significantly. Using Certbot with Nginx or Apache The standard approach is Certbot, which automates certificate issuance and renewal: sudo certbot –nginx This automatically configures HTTPS…
When you have a password-protected RSA private key (indicated by the Proc-Type: 4,ENCRYPTED header), you’ll need to decrypt it before using it with most applications. The openssl command handles this straightforwardly. Basic decryption Use openssl rsa to decrypt the key: openssl rsa -in encrypted_key.pem -out decrypted_key.pem You’ll be prompted to enter the password for the…