Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shihanng/setup-arch

An Ansible configuration to setup my Arch machine
https://github.com/shihanng/setup-arch

ansible archlinux

Last synced: about 2 months ago
JSON representation

An Ansible configuration to setup my Arch machine

Awesome Lists containing this project

README

        

This is an experiment. Have fun at your own risk.

## On the target machine

- After [installation guide](https://wiki.archlinux.org/index.php/Installation_guide), login as root.
- Use the [following guide](https://wiki.archlinux.org/index.php/Dhcpcd#/etc/resolv.conf) to add `8.8.8.8` and `8.8.4.4` into `/etc/resolv.conf`.
- Install `sudo` and `openssh`:
```
pacman -S sudo openssh python
systemctl enable sshd.service
systemctl start sshd.service
```
- Create a new user called ``:
```
useradd -m
passwd
```
- Add `` to `sudoers` using the `visudo` command and append the following
```
ALL=(ALL) ALL
```

## On another machine

```
export PUBKEY_PATH=$HOME/.ssh/id_rsa.pub
export PRIVKEY_PATH=$HOME/.ssh/id_rsa
export LOGINNAME=
export IPADDR=192.168.0.123
make setup_ssh
make install
```

## On the target machine

```
export LOGINNAME=
export IPADDR=localhost
make install
```