Administration & Fixes articles

Administration & Fixes 1,485 Common VPS and Cloud errors: SSH, memory, disk and reboots On a VPS the machine is yours: the system, the services and the firewall obey your orders - and your mistakes. These...
Administration & Fixes 946 How to add swap to a VPS that keeps running out of memory Swap is disk space the system uses as spare memory when the RAM fills up. It does not make the server faster: it...
Administration & Fixes 928 How to set the time zone and keep the clock correct on a Linux VPS On Linux, the command in charge is timedatectl. Run it with nothing after it and you see three things: the local...
Administration & Fixes 1,143 How to update a Debian or Ubuntu VPS, and turn on automatic security updates A server that is not updated piles up known security holes, and the updates already released are the cheapest...
Administration & Fixes 1,251 A service will not start on my VPS: reading systemctl status When a service fails to start, the answer is in two commands: systemctl status service-name and journalctl -u...
Administration & Fixes 1,246 How to run your own program as a systemd service that starts at boot For a program of yours (a Node.js app, a Python script, a bot) to start with the server and come back by itself if...
Administration & Fixes 1,836 Where are the logs on a Linux VPS: journalctl and /var/log On a Linux VPS the logs live in two places: in the systemd journal, read with journalctl, and in files under...
Administration & Fixes 1,287 My cron job does not run on the VPS: the usual causes When a cron job does not run on a VPS, the cause is almost never cron itself: it is the environment it runs in. cron...
Administration & Fixes 1,050 No space left on device: finding what fills your VPS disk The error No space left on device means one of two things: the space has run out, or the inodes have (the number of...
Administration & Fixes 901 Out of memory on a VPS: what the OOM killer is and what to do When memory and swap run out, the Linux kernel picks a process and kills it to save the system. It is called the OOM...
Administration & Fixes 1,151 How to see what is using CPU, memory and disk on your VPS Five commands that ship with the system tell you the essentials: uptime (load), top (who uses processor and memory),...
Administration & Fixes 1,262 Copying files to another server with rsync, safely rsync copies folders between two computers over SSH and, on later runs, sends only what changed. It is the most used...
Administration & Fixes 1,393 Linux file permissions on a VPS: chmod, chown and Permission denied A “Permission denied”, or a 403 on a website, is almost always one of two things: the file’s owner is not who the...
Administration & Fixes 1,080 Upgrading Ubuntu to the next LTS release without breaking the server To move from one Ubuntu LTS release to the next without reinstalling, you use do-release-upgrade, after updating...
Administration & Fixes 1,133 logrotate on a VPS: stopping log files from filling the disk The short answer: logrotate is the program that, every day, takes the log files, keeps the old ones compressed and...
Administration & Fixes 1,213 Keeping a command running after you close SSH: tmux and screen The short answer: when you close the SSH window, or the connection drops, the system ends the programs that were...
Administration & Fixes 1,170 SSH shortcuts: the config file, and copying files with scp The short answer: instead of always typing ssh -p 2222 -i ~/.ssh/key user@203.0.113.10, you can give the server a...
Administration & Fixes 1,006 Editing and searching on a server: nano, grep and find for beginners The short answer: on a VPS there is no mouse and no windows, but three tools solve almost everything a beginner...
Administration & Fixes 1,451 Remote Desktop will not connect: the usual errors and what each one means The short answer: the error message almost always says what is missing. There are two groups: it does not reach the...
Administration & Fixes 1,132 Upgrading Ubuntu to a new release on a VPS without losing the server The short answer: updating packages (apt upgrade) and upgrading to a new release (for example, from one LTS version...