Skip to content

Instantly share code, notes, and snippets.

@UltimateByte
Last active January 16, 2017 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UltimateByte/f645535b034de9d82b8b2a71b5e91e61 to your computer and use it in GitHub Desktop.
Save UltimateByte/f645535b034de9d82b8b2a71b5e91e61 to your computer and use it in GitHub Desktop.
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