Kayley's Archlinux Guide

1) fdisk /dev/sda


2) Make filesystems for the partitions
mkfs.ext4 /dev/sdx1
mkfs.fat -F 32 /dev/sdx1
mkswap dev/sdx1

3) Mount the filesystems
4) Install the needed packages
pacstrap -K /mnt base linux networkmanager nano

5) Generate fstab to boot into distro & go into chroot
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt

6) Set local time & generate locales etc
ln -sf /usr/share/zoneinfo/America/Vancouver /etc/localtime
hwclock --systohc
locale-gen
nano /etc/locale.conf and put in "LANG=en_US.UTF-8"
nano /etc/hostname

7) Set password and enable network manager
passwd -> fjl
systemctl enable NetworkManager

8) Install GRUB
pacman -S grub
grub-install /dev/sdx
grub-mkconfig -o /boot/grub/grub.cfg

Exit, Poweroff and remove ISO

9) Add user and download sudo
useradd -m user1
passwd user1 -> fjl
pacman -S sudo
usermod -a -G wheel user1
EDITOR=nano visudo /etc/sudoers

1) Type tce for command Line:


2) Start install:
3) Connect NAT to the internal network instead

YOU HAVE TO TYPE filetool.sh -b TO SAVE ANYTHING OR YOU LOSE IT ALL!! from now on :)

4) Assigning IPs:

Note that the netmask and ip will be different!!!

ifconfig to confirm you have network adapter
ifconfig eth0 add 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up

ifconfig again to confirm that the address works


1) Build Core Machine

2) Edit /opt/bootlocal.sh & add the following:

/opt/eth0.sh
udhcpd /etc/udhcpd.conf
echo "192.168.9.3 ArchServer">> /etc/hosts
dnsmasq

3) Install dnsmasq using tce

MAKE SURE NAT IS CONNECTED OR IT WONT WORK

4) edit /opt/.filetool.lst and add the following
opt/eth0.sh
etc/udhcpd.conf

5) Create & edit /opt/eth0.sh
ifconfig eth0 add 192.168.9.1 netmask 255.255.255.0 broadcast 192.168.0.255 up
chmod u+x /opt/eth0.sh

6) Create & edit /etc/udhcpd.conf to add:
interface eth0
start 192.168.9.100
end 192.168.9.200
static_lease xx:xx:xx:xx:xx:xx 192.168.9.3
option subnet 255.255.255.0
option dns 192.168.9.1
option lease 86400 #seconds in a day
ip address

7) filetool.sh -b and reboot

Set up a tinycore DHCP box as per the instructions above until you get to step 5.
We deviate from here. In bootlocal.sh, we will most likely be using a different static IP for the arch machine, or no static one at all.

1) Frank will give us an IP address he wants us to build from.


2) Put the address into the calculator: Subnet Calculator


In our usual eth0.sh file, we want to use the broadcast addresses and first usable host IP in the host range for our DHCP in both subnets

3) Using these values, we will create the eth0.sh script:
sudo vi /opt/eth0.sh
Now you will have the arch server in subnet b and the core client will automatically get assigned an IP in subnet a.

1) GUI install!

pacman -S lxde
systemctl enable lxdm

2.1) Generating SSH keys
Install SSH on ArchServer
pacman -S OpenSSH

edit the following file as follows
/.ssh/config

# global options
User user1
# host-specific options
Host myserver
Hostname server-address
Port 22
User user2

Enable sshd.service

Now on CoreClient make sure you are connected to NAT:

2.2) Installing a web server