Home | News | Download | Packages | Forum | Wiki | Github

Guide: Installing void on prgmr.com


(Aditya Goturu) #1

(based on Guide: How to install Void on an OVH VPS, read that for further detail, these are basically rough notes)
Go to managment console, press 4 to stop
If 9) is set to pv-grub, press 9 to change to grub2
Press 2 to start, select Debian live (NOT INSTALL IMAGE)
login as “root”, there is no password
sudo cfdisk /dev/xvda
sudo mkfs.ext4 /dev/xvda1
mkdir void-tmp && cd void-tmp
wget https://repo.voidlinux.eu/live/current/void-x86_64-rootfs-XXXXXXXX.tar.xz # whatever is the newest, check void dl page
tar xvpf void-x86_64-rootfs-XXXXXXXX.tar.xz
mount -t proc none proc
mount --rbind /dev dev
mount --rbind /sys sys
cp /etc/resolv.conf etc/resolv.conf
chroot .
mount /dev/xvda1 /mnt
xbps-install -S -R http://repo.voidlinux.eu/current -r /mnt base-system grub vim openssh # vim and openssh are optional, but I like to have them in the base

yes to the key question

cd /mnt
mount -t proc none proc
mount --rbind /dev dev
mount --rbind /sys sys
cp /etc/resolv.conf etc/resolv.conf
chroot .
grub-install /dev/xvda
sudo vim /etc/fstab

add: /dev/xvda1 / ext4 defaults 0 0

echo “LANG=en_US.UTF-8” > /etc/locale.conf
echo “en_US.UTF-8 UTF-8” >> /etc/default/libc-locales
xbps-reconfigure -f glibc-locales
echo “hostonly=yes” > /etc/dracut.conf.d/hostonly.conf
passwd root
xbps-reconfigure -f linux4.7

or whatever linux version you installed, you can check with xbps-query --regex -s “linux…”

cp -r /etc/sv/agetty-generic /etc/sv/agetty-hvc0
rm -rf /etc/sv/agetty-hvc0/supervise
ln -s /etc/sv/agetty-hvc0/ /etc/runit/runsvdir/default/agetty-hvc0
ln -s /etc/sv/dhcpcd-eth0 /etc/runit/runsvdir/default

setup ssh keys and config if you want

Ctrl-D 2x
sudo poweroff
2->user bootloader config->void linux->login
#PROFIT