Created
November 17, 2021 08:01
-
-
Save nabakdev/c29dde92517782b47cee17c292898bac to your computer and use it in GitHub Desktop.
Linux initial setup
This file contains hidden or 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
| # enable ntp | |
| timedatectl set-ntp true | |
| # set timezone | |
| # ln -sf /usr/share/zoneinfo/Region/City /etc/localtime | |
| ln -sf /usr/share/zoneinfo/Asia/Jakarta /etc/localtime | |
| hwclock --systohc | |
| # Localization | |
| sed -i '/en_US.UTF-8 UTF-8/s/^#//' /etc/locale.gen | |
| locale-gen | |
| echo "LANG=en_US.UTF-8" >> /etc/locale.conf | |
| # set hostname | |
| # echo <hostname> > /etc/hostname | |
| # local hostname resolution | |
| $EDITOR /etc/hosts | |
| # ex: | |
| # 127.0.0.1 localhost | |
| # ::1 localhost | |
| # 127.0.1.1 <hostname>.localdomain <hostname> | |
| # | |
| # verify | |
| getent hosts | |
| # color output in console (BASH) | |
| sed -i sed -i '/Color/s/^#//' /etc/pacman.conf | |
| echo << EOF >> /etc/bash.bashrc | |
| alias diff='diff --color=auto' | |
| alias grep='grep --color=auto' | |
| alias ip='ip -color=auto' | |
| export LESS='-R --use-color -Dd+r$Du+b' | |
| alias dmesg --color=always | |
| alias ls='ls --color=auto' | |
| export MANPAGER="less -R --use-color -Dd+r -Du+b" | |
| EOF | |
| # awesome packages | |
| # arch linux: pacman -S bat prettyping |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment