meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:debian [2026/06/08 22:14] – removed - external edit (Unknown date) 127.0.0.1linux:debian [2026/06/08 22:14] (current) – ↷ Page moved from os:linux:debian to linux:debian kilroy
Line 1: Line 1:
 +====== Debian ======
 +===== Initial =====
 +
 +<code>
 +
 +env | grep LANG
 +export LANG=en_US.UTF-8
 +dpkg-reconfigure locales
 +
 +nano /etc/hostname -> hostname
 +nano /etc/hosts -> 127.0.1.1 hostname.yourdomain.tld hostname
 +invoke-rc.d hostname.sh start
 +invoke-rc.d networking force-reload
 +invoke-rc.d network-manager force-reload
 +
 +
 +nano /etc/ssh/sshd_config -> permitrootlogin no
 +
 +apt-get install ufw
 +ufw default deny incoming
 +ufw default allow outgoing
 +ufw allow ssh 
 +ufw allow 22 
 +ufw enable
 +</code>
 +
 +===== Disable ipv6 =====
 +
 +<code>
 +nano /etc/sysctl.conf
 +
 +net.ipv6.conf.all.disable_ipv6 = 1
 +net.ipv6.conf.default.disable_ipv6 = 1
 +net.ipv6.conf.lo.disable_ipv6 = 1
 +
 +ip -6 addr del <ipv6address>/<prefixlength> dev <interface> 
 +
 +echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee /etc/sysctl.d/01-disable-ipv6.conf
 +echo "net.ipv6.conf.eth0.disable_ipv6=1" | tee /etc/sysctl.d/01-disable-ipv6-eth0.conf
 +</code>
 +
 +