Last active
January 16, 2017 00:04
-
-
Save UltimateByte/f645535b034de9d82b8b2a71b5e91e61 to your computer and use it in GitHub Desktop.
First things to do in debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/hostname | |
/etc/hosts | |
shutdown -r now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /etc/motd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /etc/network/interfaces | |
nano /etc/resolv.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change your timezone | |
dpkg-reconfigure tzdata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment