Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rfcreate/setup

Setup your Arch distro.
https://github.com/rfcreate/setup

arch archlinux automation linux script setup

Last synced: 8 days ago
JSON representation

Setup your Arch distro.

Awesome Lists containing this project

README

        

# Arch Installation

Follow the [installation guide](https://wiki.archlinux.org/title/Installation_guide#Pre-installation) in the Arch wiki to download the [ISO file](https://wiki.archlinux.org/title/Installation_guide#Acquire_an_installation_image) and [verify the signature](https://wiki.archlinux.org/title/Installation_guide#Verify_signature)

---

Run iso2usb script[^1] to copy ISO to USB ([only UEFI](https://wiki.archlinux.org/title/USB_flash_installation_medium#Using_manual_formatting))

**Note:** dependencies mkfs.fat and mkfs.ext4 needed

```
curl -O https://raw.githubusercontent.com/RFCreate/setup/main/iso2usb.sh
USB=/dev/your_usb
ISO=path/to/archlinux-version-x86_64.iso
. ./iso2usb.sh
```

When finished, [boot into the USB](https://wiki.archlinux.org/title/Installation_guide#Boot_the_live_environment)

---

Inside the bootable USB, connect to [wireless internet](https://wiki.archlinux.org/title/Installation_guide#Connect_to_the_internet) using [iwctl](https://wiki.archlinux.org/title/Iwd#iwctl)

```
iwctl
[iwd]# device list # list wifi devices
[iwd]# device _device_ set-property Powered on # turn on device
[iwd]# adapter _adapter_ set-property Powered on # turn on adapter
[iwd]# station _device_ scan # scan for networks
[iwd]# station _device_ get-networks # list networks
[iwd]# station _device_ connect _SSID_ # connect to network
[iwd]# station _device_ show # display connection state
[iwd]# ( Ctrl+d ) # exit
```

---

Run pre-installation script[^1]

**Note:** download manually if you didn't run iso2usb script

```
mkdir -p /root/usb
mount /dev/your_usb2 /root/usb
DISK=/dev/your_disk
. /root/usb/preinstall.sh
```

---

[Change root into new system](https://wiki.archlinux.org/title/Installation_guide#Chroot)

```
arch-chroot /mnt
```

---

Run installation script[^1]

**Note:** install a text editor to modify script

```
. /install.sh
```

---

[Set the root password](https://wiki.archlinux.org/title/Installation_guide#Root_password)

```
passwd
```

---

[Reboot the system](https://wiki.archlinux.org/title/Installation_guide#Reboot)

1. Exit chroot: `exit`
2. Unmount disk: `umount -R /mnt`
3. Reboot system: `reboot`

---

Connect to wireless internet using [Network Manger](https://wiki.archlinux.org/title/NetworkManager#Usage)

```
nmtui
```

---

Run setup script[^1]

**Note:** modify script to change your username

```
. /setup.sh
```

---

Set the user password

**Note:** may need change \ with your username

```
passwd user
```

[^1]: Script should run as root