Home Debian Setup & Configure
Post
Cancel

Debian Setup & Configure

Summary

How to configure a Debian operating system to be ready for use, post-OS install.

Requirements

  • Debian Linux (lightweight install)
  • SSH Terminal (Putty or Windows Terminal)

Instructions

Initial config

Step 1 - Ensure all sources and packages are fully updated.

1
2
apt-get update
apt-get upgrade

Step 2 - Install sudo package.

1
apt-get install sudo

Step 3 (optional) - Enable SSH for root account

1
2
3
sudo nano /etc/ssh/sshd_config

uncomment and edit theline "PermitRootLogin yes"

Configure Static IP Address

1
2
3
4
5
6
7
8
sudo nano /etc/network/interfaces

edit the line: 
iface ens192 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
dns-nameservers 192.168.0.254

Add Root CA Certs

Copy all CA certs to: /usr/local/share/ca-certificates/

1
update-ca-certificate

Configure NTP Settings

Install NTP Client

1
sudo apt install ntp

Edit NTP Config

1
2
3
4
sudo nano /etc/ntp.conf

add line to config file:
server 192.168.0.254 prefer iburst

Check NTP status

1
ntpq -p
This post is licensed under CC BY 4.0 by the author.