#!/bin/bash
# - bof - #



<<'comment'
  # :a
  # -  - #
  # - Start computer with ArchIso - #
  Insert the ArchIso USB stick to the computer and start computer.

  # :b
  # -  - #
  # - Add password to root - #
  passwd

  # :c
  # -  - #
  # - Connect to wifi - #
  See instructions below for wifi connection.
comment



# :a
# -  - #
# - First install with wireless connection - #



# :a.1
# -  - #
# - iwctl (Starting Arch installation) - #
systemctl start iwd;

iwctl device list
iwctl station wlan0 get-networks
iwctl station wlan0 connect "IS_Network_15-1"
Passphrase:



# :a.2
# -  - #
# - nmcli (Arch post installation) - #
nmcli radio wifi on;
nmcli device wifi list;

nmcli device wifi connect "IS_Network_15-5G-1" password "Admin";
nmcli --ask device wifi connect "IS_Network_15-5G-1";               # It will ask your passwd
nmcli connection show --active;                                     # Verify your connection


# -  - #
# - Run the tui - #
nmtui;



# :b
# -  - #
# - Ping google.com - #
ping -c 3 google.com;


# :b.1
# -  - #
# - Get ip address - #
ip a;


# :b.2
# -  - #
# - Connect remote to computer - #
ssh root@192.168.1.50;

# - User root passwd you just setup before - #



# - eof - #