blob: a9ac5f31cc211d5232a07dcf6148b5c3cc6e991c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# update and install tmux and git
pacman -Sy --noconfirm >> /dev/null
pacman -S --noconfirm tmux git
# change the root password
echo "root:welcome" | chpasswd
# find the hostname from the file
hostname=$(</etc/hostname)
# identify which interface is up, then find the ip address
interface_up=$(ip -br addr show | grep UP | grep -v 'lo' | awk '{print $1}' | head -n1)
ipaddress=$(ip addr show $interface_up | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
# start the ssh daemon
systemctl start sshd
echo ""; echo ""
echo "init complete. you may ssh root@$hostname or ssh root@$ipaddress using the password 'welcome'"
echo "Press control-c to stop now. Launching archinstall in 5 seconds."
sleep 5
archinstall
|