Personal log of yet another digital native.
New User Sudo SSH Security Housekeeping Package Query Yaourt Cleanup
Create user and add a password for them:
useradd -m -g wheel dancingborg
passwd dancingborg
Install sudo package to allow new user to execute elevated commands:
pacman -S sudo
Use dedicated editing tool to edit sudoers
file:
visudo
Remove comment prefix #
from default wheel entry to allow wheel users to sudo:
#%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
Disable root login via SSH:
vim /etc/ssh/sshd_config
Add: PermitRootLogin no
reboot
Login as user.
Remove MOTD:
sudo rm /etc/motd
Enable Pacman colours:
vim /etc/pacman.conf
#Color
Color
Install:
Wget
pacman -S base-devel yajl wget
Install Package Query by downloading and creating package manually:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar xfz package-query.tar.gz
cd package-query
makepkg
sudo pacman -U package-query*.pkg.tar.xz
Install Yaourt by downloading and creating package manually:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar xzf yaourt.tar.gz
cd yaourt
makepkg
sudo pacman -U yaourt*.pkg.tar.xz
Remove leftover installation files:
rm -r ~/package-query
rm -r ~/yaourt
rm -r *.tar.gz
[Reference][1] [1]: https://astrofloyd.wordpress.com/2015/01/17/installing-yaourt-on-arch-linux/)