Postingan

Menampilkan postingan dengan label Debian 9

Change hostname and FQDN on debian

Hostname and FQDN on Debian On Debian systems, the hostname is set during startup by the script: /etc/init.d/hostname.sh This script reads the hostname from the file: /etc/hostname You can use this file to update the system hostname as well as its FQDN (Fully Qualified Domain Name) . Important Note In the /etc/hosts file, the order of hostname and FQDN must be correct . The FQDN should appear first, followed by the short hostname. Steps to Change Hostname and FQDN 1. Update the Hostname Run: echo "my-computer" > /etc/hostname 2. Update the Hosts File Edit /etc/hosts : echo "127.0.0.1 my-computer.my-domain.ext my-computer localhost" > /etc/hosts Order explanation: FQDN → my-computer.my-domain.ext Short hostname → my-computer Local alias → localhost 3. Apply the Changes Run: /etc/init.d/hostname.sh Verify the Changes Check the hostname: hostname Output: my-computer Check the FQDN: hostname --fqdn Output: my-computer.my-doma...

Cara upgrade Debian 9

Upgrade yang saya lakukan adalah dari Debian 9.2 ke 9.5 cek debian version dengan perintah lsb_relesea -a untuk upgrade caranya cukup simple, pertama pastikan repository sudah terkonfigurasi dengan baik, kemudian tinggal jalankan perintah apt-get update apt-get dist-upgrade reboot cek kembali lsb_release -a