Artigos de Administration & Fixes
Administration & Fixes 1,291
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 746
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 736
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 922
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,042
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,026
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,549
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,066
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 894
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 742
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 904
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,043
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,108
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 895
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 921
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 997
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 968
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 815
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,235
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 952
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...





