Category: Uncategorized

Practical systemctl Basics: Manage systemd Services Safely

Practical systemctl Basics: Manage systemd Services Safely

When `systemctl` Confuses You (And When It Won’t Work At All) A super common mistake: assuming every Linux server uses systemd and blindly copy-pasting systemctl commands from some blog. If your terminal answers with something like: bash: systemctl: command not found or systemctl: command not found there’s a good chance your distro isn’t using systemd at all. In that case,…

Read More »

How to: disable wvdial Auto DNS — use static DNS settings

Sometimes you wanted to get rid of your crappy ISP DNS servers for good. I’m using wvdial to dial up, here’s what I do. Steps: [*] Disable usepeerdns. Edit “/etc/ppp/peers/wvdial” file. Commented the usepeerdns line. Here’s what is should look: #usepeerdns [*] Disable Auto DNS in wvdial. Edit “/etc/wvdial.conf” file. Set Auto DNS Off. Auto DNS = Off [*] Add…

Read More »

Forward Ports Through a Linux Gateway with iptables NAT

Why Your Port Forwarding Isn’t Working A very common mistake with port forwarding on Linux is assuming a single DNAT rule is enough. You add one iptables rule, try to hit your server from outside, and… nothing. In reality, proper forwarding through a Linux gateway needs three things working together: IP forwarding in the kernel, packet filtering rules in the…

Read More »
How to Edit the sudoers File Safely with visudo

How to Edit the sudoers File Safely with visudo

If you break your sudoers file, you can lock yourself out of root. That’s the nightmare we’re trying to avoid here. This guide is for anyone managing Linux servers (VPS, bare metal, cloud instances) who needs to give or adjust sudo access without shooting their future self in the foot. I’ll walk you through how to use visudo correctly, how…

Read More »