Skip to content

tjelvar-olsson/arch-ansible-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arch-ansible-setup

Ansible script for configuring Arch linux installation. Tailored for the Rasberry Pi.

Pre-amble

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

About

Ansible script for configuring Arch linux installation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published