All Guides
Linux VPS Server Setup (Ubuntu)
Configure your Ubuntu-based VPS server from scratch. Security, user management and basic settings.
Intermediate30 min
Setup Steps
1. Connect to your VPS via SSH:
ssh root@server_ip_address2. Update the system:
apt update && apt upgrade -y3. Create a new user:
adduser newuser
usermod -aG sudo newuser4. Configure SSH key-based authentication:
mkdir -p /home/newuser/.ssh
cp ~/.ssh/authorized_keys /home/newuser/.ssh/
chown -R newuser:newuser /home/newuser/.ssh
chmod 700 /home/newuser/.ssh
chmod 600 /home/newuser/.ssh/authorized_keys5. Harden SSH configuration (/etc/ssh/sshd_config):
PermitRootLogin no
PasswordAuthentication no
Port 22226. Restart SSH:
systemctl restart sshd7. Enable UFW firewall:
ufw allow 2222/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable8. Set timezone:
timedatectl set-timezone Europe/Istanbul9. Create swap space (2GB):
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstabRelated Guides
Apache Web Server Setup
Install Apache HTTP server and configure virtual hosts.
Nginx Web Server Setup
Install Nginx web server and configure it as a reverse proxy.
Let's Encrypt SSL Certificate Setup
Get a free SSL/TLS certificate with Certbot and enable HTTPS.
Node.js and npm Setup
Install Node.js runtime and npm package manager.