Menu

install

lum4r0

StarkOS instalation

Get latest StarkOS Linux staged image : SysV tarball, Runit tarball or S6 tarball.
https://sourceforge.net/projects/stark-os/files/

Preparing partition:

=> BIOS system whith MBR.
Create a partition to install StarkOS on.

# cfdisk
# mkswap /dev/sda1
# mkfs.ext4 -L StarkOS /dev/sda2

Create a directory to mount the created partition then mount it.

# mkdir /mnt/starkos
# mount /dev/sda2 /mnt/starkos

=> EFI system with GPT.
EFI system requieres aditional partition in vfat for /boot/efi, create it first:

# cfdisk
# mkfs.vfat /dev/sda1
# mkswap /dev/sda2
# mkfs.ext4 -L StarkOS /dev/sda3

Create the directories to mount /root and /boot/efi.

# mkdir -pv /mnt/starkos/boot/efi
# mount /dev/sda3 /mnt/starkos
# mount /dev/sda1 /mnt/starkos/boot/efi
# swapon /dev/sda2

Extract StarkOS image to the mounted location.

# tar xvJpf starkos-rootfs-<version>-x86_64.tar.xz -C /mnt/starkos

**Enter chroot. **

Chroot into the extracted venom image.

# mount -v --bind /dev /mnt/starkos/dev
# mount -vt devpts devpts /mnt/starkos/dev/pts -o gid=5,mode=620
# mount -vt proc proc /mnt/starkos/proc
# mount -vt sysfs sysfs /mnt/starkos/sys
# mount -vt tmpfs tmpfs /mnt/starkos/run
# mkdir -pv /mnt/venom/$(readlink /mnt/starkos/dev/shm)
# cp -L /etc/resolv.conf /mnt/starkos/etc/
# chroot /mnt/starkos /bin/bash

**Configuring system. **

Configure the system's hostname, timezone, clock, font, keymap and daemon:

# vim /etc/rc.conf

Configure /etc/fstab:

# vim /etc/fstab

Configure time zone:.

# ln -sf /usr/share/zoneinfo/Region/City /etc/localetime

Configure system clock:

# hwclock --systohc 

Configure locales:

# vim /etc/locales

Uncomment required locales, then run:

# genlocales

Configure root password:

# passwd

Add a user:

# useradd -m -G users,wheel,audio,video -s /bin/bash <your user>

Create a password for your user:

# passwd <your user>

Sync repositories:

# portsync -r

Upgrade system:

# stark sysup

Kernel installation:

# stark install linux

Note: “replace 'linux' with 'linux-lts' if you want to use the lts version”

Configure the bootloader, GNU grub :

=> BIOS:

# grub-install /dev/sdX
# grub-mkconfig -o /boot/grub/grub.cfg

Note: “replace 'X' with your partition drive”

=> EFI :

# stark install grub-efi
# grub-install --target=x86_64-efi --efi-directory=/boot/efi –bootloader-id=”starkos”
# grub-mkconfig -o /boot/grub/grub.cfg

Exit chroot environment:

# exit

Unmount starkOS partitions:

# umount -Rv /mnt/starkos

You can restart your machine now, starkOS GNU/Linux should be bootable.

# reboot

Auth0 Logo