Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
First things to do in debian
apt-get update && apt-get upgrade
dpkg --add-architecture i386 && apt-get update
apt-get install nano wget zip unzip bzip2 linux-kernel-headers tmux ca-certificates curl locales
# sources in /etc/apt/sources.list
/etc/hostname
/etc/hosts
shutdown -r now
# Allows for language options
apt-get install locales
# Know current locales:
locales
# Reconfigure locales
dpkg-reconfigure locales
# Use en_US.UTF8 or en_GB.UTF8. Other ones are useless.
nano /etc/motd
nano /etc/network/interfaces
nano /etc/resolv.conf
# As root:
cd /root
nano .bashrc
# Uncomment these lines
export LS_OPTIONS=’–color=auto’
eval “`dircolors`”
alias ls=’ls $LS_OPTIONS’
alias ll=’ls $LS_OPTIONS -l’
alias l=’ls $LS_OPTIONS -lA’
# Run .bashrc
. .bashrc
# Hide process from a user to another
mount -o remount,rw,hidepid=2 /proc
nano /etc/fstab : proc /proc proc defaults,hidepid=2 0 0
# Create a new user and disallow root login
adduser whateveryouwant
nano /etc/ssh/sshd_config
Port =/= 22
PermitRootLogin no
PrintLastLog yes
# Change your timezone
dpkg-reconfigure tzdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.