Ansible script for configuring Arch linux installation. Tailored for the Rasberry Pi.
From a clean noobs arch installation, login as root, set the keyboard layout and reset the root password.
loadkeys uk
passwd
Configure the wireless network.
wifi-menu -o
And enable it at boot.
ls /etc/netctl
netctl enable wlan-network-name
Update the system.
pacman -Syu
Install prerequisite packages.
pacman -S git
pacman -S ansible
pacman -S ntp
Set the time.
systemctl enable ntpd
systemctl start ntpd
Sort out passwordless ssh.
ssh-keygen
cd .ssh
cat id_rsa.pub >> authorized_keys
cd
Clone this repository.
git clone https://github.com/tjelvar-olsson/arch-ansible-setup.git
Run ansible.
cd arch-ansible-setup
ansible-playbook -i hosts playbook.yml --extra-vars="user_name=alice"
Update the password of the newly created user.
passwd alice
Edit the /etc/sudoers
file using visudo to enable members of the sudo
groups to execute any command.
visudo
Reboot the machine.
reboot
##TODO
- Install and configure less with syntax highlighting
- Extend .bashrc file
- Add vim ftplugin files