Debian Server Setup Guide
Download and install Debian ISO (DVD)
- Configure networking during installation using the provided IPv4.
- Use nameserver:
1.1.1.1or1.0.0.1.
Check internet connection first
Just ping google.com and see the resoults
The internet does indeed work
You're good to go and can skip the next section
Internet is fucked up
Danger
Setting those sysctl keys to 1 disables IPv6 at the kernel interface level, so the system will not accept or process IPv6 packets and services. If internet (ping) doesn't work it's better to set manually the getaway
Proceed to disable ipv6
sudo tee /etc/sysctl.d/99-disable-ipv6.conf > /dev/null <<EOF
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
EOF
sudo sysctl --system
ip -6 addr show
Add new user
Create new user
sudo adduser username
sudo ausermod -aG username
SSH setup
On VPS
sudo apt install -y openssh-server
sudo systemctl status ssh
sudo nano /etc/ssh/sshd_config
port 4822
PubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
UsePAM yes
PermitRootLogin no
On client:
ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-copy-id username@server_ip
ssh-copy-id username@server_ip
Restart ssh (on VPS)
Restart SSH:
sudo systemctl restart ssh
Correct .nanorc
Make your personal modifications on the nanorc file
nano .nanorc
Correct the .bashrc
Make your personal modifications on the bashrc file
nano ~/.bashrc
PS1="\[$(tput setaf 196)\]\u\[$(tput setaf 202)\]@\[$(tput setaf 208)\]\h \[$(tput setaf 231)\]\w \[$(tput sgr0)\]$ "
fastfetch
Warning
The fastfetch will NOT work right away you'll must install first fastfetch
Last adjustements
sudo tee /etc/resolv.conf > /dev/null <<EOF
nameserver 1.1.1.1
nameserver 1.0.0.1
EOF
sudo apt install fastfetch # Essential
sudo apt install qemu-guest-agent # For the host status on kyun.host dashboard
sudo systemctl start qemu-guest-agent # Start and enabble the service
sudo systemctl enable qemu-guest-agent