Support Online
Skip to main content

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
SectionSizeFile SystemPurpose
/boot1GBext4Boot files
/ (root)40GBext4Operating system
/homeremainingext4User data
swapRAM × 1.5swapMemory 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

Next Steps