Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## login to live boot and start a bash session
- # login
- username: root
- password: voidlinux
- # start a bash session
- bash
- ## setup wifi for installation
- wpa_passphrase 'My SSID' >> /etc/wpa_supplicant/wpa_supllicant.conf Password
- sv restart dhcpcd
- # test that wifi is working
- ping voidlinux.org
- ## disk partitioning
- # create the partitions
- /dev/sda1 of size 1G to mount as /boot, with boot flag activated
- /dev/sda2 of all remaining free space to mount as /
- # add filesystems and extra options
- cryptsetup luksFormat /dev/sda1
- cryptsetup luksOpen /dev/sda1
- mkfs.ext2 -L boot /dev/sda1
- cryptsetup luksFormat /dev/sda2
- cryptsetup luksOpen /dev/sda2 crypt-pool
- vgcreate pool /dev/mapper/crypt-pool
- lvcreate --name swap -L 3G pool
- mkswap -L swap /dev/mapper/pool-swap
- lvcreate --name root -l 100%FREE pool
- mkfs.ext4 -L root /dev/mapper/pool-root
- ## mount the partitions
- mount /dev/mapper/pool-root /mnt
- mkdir /mnt/{boot,dev,proc,sys}
- mount /dev/sda1 /mnt/boot
- mount --rbind /dev /mnt/dev
- mount --rbind /proc /mnt/proc
- mount --rbind /sys /mnt/sys
- ## install and configure the system
- xbps-install -S -R http://repo.voidlinux.eu/current -r /mnt base-system lvm2 cryptsetup grub-x86_64-efi efibootmgr
- chroot /mnt /bin/bash
- passwd root
- chown root:root /
- chmod 755 /
- vi /etc/rc.conf
- echo host >/etc/hostname
- # setup fstab
- vi /etc/fstab:
- # <filesystem> <dir> <type> <options> <dump> <pass>
- tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
- /dev/crypt-pool/root / ext4 defaults 0 0
- /dev/sda1 /boot ext2 defaults 0 0
- /dev/mapper/swap swap swap defaults 0 0
- ## setup grub
- grub-install /dev/sda
- 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
- lsblk -f *get UUID for Luks*
- Add rd.auto=1 then UUID:lvm to the GRUB_CMDLINE_LINUX_DEFAULT variable in /etc/default/grub:
- GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 slub_debug=P page_poison=1 rd.auto=1 cryptdevice=UUID=*UUID*:lvm"
- grub-mkconfig -o /boot/grub/grub.cfg
- grub-install /dev/sda
- xbps-reconfigure -f linux
- # install a few packages and add a user
- # update the system
- xbps-install -Suv
- # install packages
- xbps-install -S:
- zsh
- pulseaudio
- neovim
- tmux
- rxvt
- i3-gaps
- i3status
- lightdm
- lightdm-gtk3-greeter
- lxappearance
- xorg-minimal
- xorg-fonts
- xf86-video-intel
- mpd
- mpv
- ncmpcpp
- udiskie
- linux-firmware
- dmenu
- NetworkManager
- network-manager-applet
- ranger
- tor
- Thunar
- feh
- dunst
- i3color-lock
- compton
- python-ipython
- python
- python-pip
- light
- xorg-xrdb
- xorg-xev
- xorg-fonts-misc
- w3m
- tree
- scrot
- qtox
- pidgin
- pidgin-otr
- pidgin-libnotify
- rkhunter
- python-virtualenv
- neofetch
- mpc
- lightdm-gtk-greeter-settings
- htop
- gotop
- irssi
- irssi-otr
- ## disable and enable the proper services
- # disable services
- rm /var/service/dhcpcd
- rm /var/service/wpa_supplicant
- # enable services
- ln -s /etc/sv/dbus /var/service/dbus
- ln -s /etc/sv/lightdm /var/service/lightdm
- ln -s /etc/sv/tor /var/service/tor
- ln -s /etc/sv/NetworkManager /var/serivce/NetworkManager
- # add user account
- useradd -m -s /bin/zsh -U -G wheel,users,audio,video,cdrom,input user
- # leave the chrooted enviroment and reboot
- ctr + d (^d)
- reboot
- # find hardware (use if moving the HDD or SSD to another computer to detect the hardware: WiFi, etc)
- lspci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement