1) fdisk /dev/sda
- Type βnβ for new partitions
- Type βtβ to change type if necessary
- Type βwβ to save
2) Make filesystems for the partitions
mkfs.ext4 /dev/sdx1
mkfs.fat -F 32 /dev/sdx1
mkswap dev/sdx1
3) Mount the filesystems
-
For mounting on root:
mount /dev/sdx /mnt
-
For turning on swap:
swapon /dev/sdx1
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:
- s for search
- install
- select fourth item: tc-install.tcz
- q to exit, I to install and then q again to exit
2) Start install:
- become root with sudo su
- run tc-install.sh
- c for boot from cd
- f for frugal install
- 1 to select the whole disk
- y to install a bootloader
- enter, 3 for ext4, enter for boot options
- y to confirm
- 'poweroff' and remove CD
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
- set file permissions so it can be executed
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
- replace xx:xx:xx:xx:xx with the ether address of the adapter in archserver
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.
- We will use 192.168.9.1 as our example.
2) Put the address into the calculator:
Subnet Calculator
- Frank will probably specify that it is a /24 address, so input it into the calculator and
change the subnet to /25 as seen below:

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
- Inside the file, we write these commands using the values from our example:
ifconfig eth0 192.168.9.1 netmask 255.255.255.128 broadcast 192.168.9.127 up
ifconfig eth0:1 192.168.9.129 netmask 255.255.255.128 broadcast 192.168.9.255 up
- This puts our broadcast ranges for subnets 1 and 2, where the DHCP server will be the
ip addresses at the start of each line per subnet (so in subnet A, it has ip address
192.168.9.1 and in the second subnet it has 192.168.9.129).
- Set the permission for the eth0.sh file using this:
chmod u+x /opt/eth0.sh
- Next, we create and edit the file /etc/udhcpd.conf and put in the following lines:
interface eth0
start 192.168.9.2
end 192.168.9.126
static_lease βput MAC address of arch server hereβ 192.168.1.131 (example ip)
option subnet 255.255.255.128 # the subnet mask obtained from the calculator
option dns 192.168.9.1 # the ip address of our DHCP server
option lease 86400 # seconds in a day
- Make sure you back all of this up using the filetool:
filetool.sh -b
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