|
3 years ago | |
---|---|---|
README.md | 3 years ago |
This project (or, to be clear, these few files which claim to be a project) aims to set up a given Arch system.
pacman -Syu
to update stuffuseradd -m $USER
to create a non-root user to usepasswd $USER
to set a passwordln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
to set timezone correctly$USER
:
mkdir /home/$USER/.ssh
echo $PUBKEY >> /home/$USER/.ssh/authorized_keys
chmod -R 644 /home/$USER/.ssh/authorized_keys
chown -R $USER /home/$USER/.ssh/
/etc/ssh/sshd_config
:
PermitRootLogin yes
to PermitRootLogin no
#PubkeyAuthentication yes
to PubkeyAuthentication yes
#PasswordAuthentication yes
to PasswordAuthentication no
sudo systemctl daemon-reload
and sudo systemctl restart sshd
Check if this step is really necessary - some server providers share these information via DHCP or deliver correct netctl profiles
/etc/netctl/$IF
with contents:Description="$IF v4/v6 profile"
Interface=$IF
Connection=ethernet
IP=static
IP6=static
Address=( "$IP4/$IP4SUB" )
Routes=( "default dev $IF" )
Address6=( "$IP6/$IP6SUB" )
Routes6=( "default dev $IF" )
netctl enable $IF
and netctl start $IF
hostname $HOST
Additional size means the Installation size as reported by pacman. May differ! Dependencies are not included!
This base package is recommended in any case
Name | Additional size | Purpose |
---|---|---|
mosh | 700 KiB | ssh over UDP, allows roaming |
vim | 2.83 MiB | edit files better |
htop | 170 KiB | top replacement |
sudo | 3.81 MiB | you fkn know it. |
Name | Additional size | Purpose |
---|---|---|
iftop | 65 KiB | bandwidth usage |
net-tools | 473 KiB | netstat |
bind-tools | 5.85 MiB | dnsutils: host, dig |
speedtest-cli | 202 KiB | speedtest.net CLI |
iperf | 88 KiB | TCP PTP bandwidth measurement |
traceroute | 89 KiB | you really don’t know that? |
Recommended to be installed along “I host shit”
Name | Additional size | Purpose |
---|---|---|
git | 28 MiB | this VCS everyone uses |
lynx | 4.46 MiB | CLI browser |
nmap | 25.92 MiB | portscan |
zsh | 5.17 MiB | best shell ever |
These steps are necessary to enable $USER for sudo
Modify /etc/sudoers
:
Run groupadd sudo
Run usermod -a -G sudo $USER
Don’t install if you lack disk I/O, e.g. Raspberry Pi + SD card
You likely want to su $USER
else you’d install oh-my-zsh for root
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
~/.zshrc
: