Ubuntu Server 24.04 LTS Installation
In this guide, we explain step by step how to install Ubuntu Server 24.04 LTS on a dedicated server from scratch.
Requirements
- Minimum 2 GB RAM (recommended: 4 GB+)
- Minimum 20 GB disk space
- Ubuntu Server 24.04 ISO file
- KVM/IPMI access or physical access
1. ISO Download
wget https://releases.ubuntu.com/24.04/ubuntu-24.04-live-server-amd64.iso
2. Disk Partitioning (Recommended)
| Section | Size | File System | Purpose |
|---|---|---|---|
/boot | 1GB | ext4 | Boot files |
/ (root) | 40GB | ext4 | Operating system |
/home | remaining | ext4 | User data |
swap | RAM × 1.5 | swap | Memory overflow |
3. First Steps After Installation
System Update
apt update && apt upgrade -y
SSH Server Setup
apt install -y openssh-server
systemctl enable ssh
systemctl start ssh
Firewall Basic Settings
ufw allow OpenSSH
ufw enable
ufw status
4. Restricting Root Access
For security, disable direct SSH login with root:
# /etc/ssh/sshd_config dosyasını düzenleyin
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config
systemctl restart ssh
warning
Root erişimini kapatmadan önce sudo yetkili yeni bir kullanıcı oluşturmayı unutmayın.
5. Creating a New User
adduser kullaniciadi
usermod -aG sudo kullaniciadi

