Syntax hightlighting
This commit is contained in:
parent
db93f72e09
commit
f1ac0d32cf
1 changed files with 15 additions and 15 deletions
30
README.md
30
README.md
|
@ -467,13 +467,13 @@ xbps-remove base-voidstrap
|
|||
```
|
||||
### Setting a Hostname
|
||||
Set the hostname (the name of the computer).
|
||||
```
|
||||
```sh
|
||||
echo <hostname> > /etc/hostname
|
||||
```
|
||||
Replace **\<hostname\>** with the the hostname (ie. `SewingMachine`). This should not have spaces in it.
|
||||
### Setting the timezone
|
||||
A list of available timezones are found in `/usr/share/zoneinfo`
|
||||
```
|
||||
```sh
|
||||
ls /usr/share/zoneinfo
|
||||
ls /usr/share/zoneinfo/<region>
|
||||
```
|
||||
|
@ -491,34 +491,34 @@ xbps-install -S vis
|
|||
```
|
||||
### Setting he keyboard layout
|
||||
Edit `/etc/rc.conf`.
|
||||
```
|
||||
```sh
|
||||
vis /etc/rc.conf
|
||||
```
|
||||
Replace this
|
||||
```
|
||||
```sh
|
||||
# Keymap to load, see loadkeys(8).
|
||||
#KEYMAP="es"
|
||||
```
|
||||
with this
|
||||
```
|
||||
```sh
|
||||
# Keymap to load, see loadkeys(8).
|
||||
KEYMAP="<keyboard layout>"
|
||||
```
|
||||
where **\<keyboard layout\>** is replaced with the keyboard layout that you use (ie. `dvorak`). The keyboard layouts are listed in `/usr/share/kbd/keymaps`. The keyboard layout will be changed back to Grandma's keymap later.
|
||||
```
|
||||
```sh
|
||||
ls /usr/share/kbd/keymaps/i386/
|
||||
```
|
||||
### Setting the Locale
|
||||
Edit `/etc/default/libc-locales`.
|
||||
```
|
||||
```sh
|
||||
vis /etc/default/libc-locales
|
||||
```
|
||||
Uncomment the desired locales (remove the `#` at the beginning of the line).
|
||||
```
|
||||
```sh
|
||||
en_US.UTF-8 UTF-8
|
||||
```
|
||||
Now reconfigure the locales.
|
||||
```
|
||||
```sh
|
||||
xbps-reconfigure -f glibc-locales
|
||||
```
|
||||
### Setting the Root Password
|
||||
|
@ -531,7 +531,7 @@ Retype new password:
|
|||
Make it strong.
|
||||
### Configuring fstab
|
||||
Generate `/etc/fstab`.
|
||||
```
|
||||
```sh
|
||||
cp /proc/mounts /etc/fstab
|
||||
echo "$(grep -v proc /etc/fstab | grep -v sys | grep -v devtmpfs | grep -v pts)" > /etc/fstab
|
||||
echo "<swap partition> swap swap rw,noatime,discard 0 0" >> /etc/fstab
|
||||
|
@ -539,7 +539,7 @@ echo "<swap partition> swap swap rw,noatime,discard 0 0" >> /etc/fstab
|
|||
Replace **\<swap partition\>** with the swap partition (ie. `/dev/sda2`).
|
||||
|
||||
Now run `blkid` to see the UUID of each partition.
|
||||
```
|
||||
```sh
|
||||
blkid | sed 's/"//g'
|
||||
```
|
||||
Replace `/dev/*` (all refrences to a partition) with their UUID.
|
||||
|
@ -556,25 +556,25 @@ Follow the directions for Grub, EFI stub, or LILO.
|
|||
If you have issues, please refer to the [official docummentation](https://docs.voidlinux.org/installation/guides/chroot.html#troubleshooting-grub-installation).
|
||||
##### UEFI
|
||||
Install Grub
|
||||
```
|
||||
```sh
|
||||
xbps-install grub-x86_64-efi
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id="Void"
|
||||
```
|
||||
##### Legacy BIOS
|
||||
Install Grub
|
||||
```
|
||||
```sh
|
||||
xbps-install grub
|
||||
grub-install <disk to install to>
|
||||
```
|
||||
Replace **\<disk to install to\>** with the disk that the system wis installed to.
|
||||
### Reconfiguring
|
||||
Reconfigure for good measure
|
||||
```
|
||||
```sh
|
||||
xbps-reconfigure -fa
|
||||
```
|
||||
### Rebooting
|
||||
Exit, unmount, and reboot.
|
||||
```
|
||||
```sh
|
||||
exit
|
||||
umount -R /mnt
|
||||
shutdown -r now
|
||||
|
|
Loading…
Reference in a new issue