Created
August 2, 2015 19:42
-
-
Save tsudoko/169f3126f573542a02ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adjust as needed | |
fdisk /dev/sda | |
# /dev/sda1 200M /boot | |
# /dev/sda2 300G /home | |
# /dev/sda3 20G / | |
mkfs.ext2 /dev/sda1 | |
mkfs.ext4 /dev/sda2 | |
mkfs.ext4 /dev/sda3 | |
mount /dev/sda3 /mnt | |
mkdir /mnt/{boot,dev,proc,run,sys,home} | |
mount /dev/sda1 /mnt/boot | |
mount /dev/sda2 /mnt/home | |
for i in dev proc run sys; do mount --rbind /$i /mnt/$i; done | |
# append whatever you want to install to the command below | |
xbps-install -SR http://repo.voidlinux.eu/current -r /mnt base-system syslinux | |
chroot /mnt | |
passwd | |
vi /etc/rc.conf | |
echo mizuumi > /etc/hostname | |
vi /etc/fstab | |
vi /etc/default/libc-locales | |
xbps-reconfigure -f glibc-locales | |
echo LANG=ja_JP.UTF-8 > /etc/locale.conf | |
dd bs=440 conv=notrunc count=1 if=/usr/share/syslinux/mbr.bin of=/dev/sda | |
mkdir /boot/syslinux | |
extlinux --install /boot/syslinux | |
useradd -g users -G lp,floppy,disk,storage,scanner,kvm,optical,wheel,cdrom -m flan | |
passwd flan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment