Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shihanng/setup-arch
- Owner: shihanng
- License: mit
- Created: 2019-08-25T12:24:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-23T01:20:05.000Z (over 5 years ago)
- Last Synced: 2024-10-25T04:25:16.603Z (3 months ago)
- Topics: ansible, archlinux
- Language: Makefile
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```