Difference between revisions of "COSI Arch Build"

From CSLabsWiki
(Set up Grub)
(Installation)
Line 84: Line 84:
 
<pre>
 
<pre>
 
arch-chroot /mnt /bin/bash
 
arch-chroot /mnt /bin/bash
  +
</pre>
  +
  +
===Set the Hostname===
  +
  +
Set the hostname (ex, cosi-3)
  +
  +
<pre>
  +
vim /etc/hostname
 
</pre>
 
</pre>
   

Revision as of 20:42, 7 April 2016

The COSI Arch Build has been attempted in the past, with failures tending to cause people to resort to other operating systems.

In April 2016, a new lab image has been contemplated and we want to try and see if using Arch will solve the NFS problems.


Installation

Get the Arch Dual ISO CD and start it up.

To start, try pinging google or mirror. You will need to configure the network if that isn't working. That is beyond the scope of where we are now, use the official arch wiki to set that up.

Set HW Clock

Check that the system clock is set up right.

timedatectl set-ntp true

Configure Partitons

Determine what drive you want to use.

lsblk

In this case it was /dev/sda

Start up parted and begin partitioning the disks.

parted /dev/sda
mklabel msdos
mkpart primary ext4 1M 280G
exit

Format the disks. Say yes if it complains to continue to partition.

mkfs.ext4 /dev/sda1

And mount that partition.

mount /dev/sda1 /mnt

Set up Mirrors

If you are running x86 or x64, we run Arch on mirror. Otherwise you will need to find a mirror that does your architecture.

vim /etc/pacman.d/mirrorlist

Add this line:

Server = http://mirror.clarkson.edu/archlinux/$repo/os/$arch

Installation

Pacstrap

Start up pacstrap and install the base system. Make sure that you have mounted the partition to start installing to.

pacstrap /mnt base base-devel vim htop grub

Now wait as the system is installed.

Generate FSTAB

genfstab -U /mnt > /mnt/etc/fstab

Change Root

arch-chroot /mnt /bin/bash

Set the Hostname

Set the hostname (ex, cosi-3)

vim /etc/hostname

Configuration

Set Timezone

Default timezone for COSI

tzselect
2
49
1
1

Set up Grub

If you want to find other os's, use pacman to install os prober:

pacman -S os-prober

Install GRUB to the MBR.

grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg