Timezone
This commit is contained in:
parent
0033d9f08d
commit
8dff73ecb6
1 changed files with 320 additions and 300 deletions
620
README.md
620
README.md
|
@ -452,12 +452,32 @@ xbps-install -u
|
|||
xbps-install base-system
|
||||
xbps-remove base-voidstrap
|
||||
```
|
||||
### Setting the keybord layout
|
||||
```sh
|
||||
sed -i 's/us/dvorak/g' /etc/rc.conf
|
||||
### Setting a Hostname
|
||||
Set the hostname (the name of the computer).
|
||||
```
|
||||
The keymaps are listed in `/usr/share/kbd/keymaps`. If you are using a different keymap, then replace `dvorak` with that keymap. The keymap will be changed back to Grandma's keymap later.
|
||||
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`
|
||||
```
|
||||
ls /usr/share/zoneinfo
|
||||
ls /usr/share/zoneinfo/<region>
|
||||
```
|
||||
Replace **\<region\>** with the region found in the output of `ls /usr/share/zoneinfo`.
|
||||
|
||||
Now set the timezone.
|
||||
```sh
|
||||
ln -sf /usr/share/zoneinfo/<region>/<timezone> /etc/localtime
|
||||
```
|
||||
Replace **\<region\>** with the region found in the output of `ls /usr/share/zoneinfo`, and **\<timezone\>** with timezone found in the output of `ls /usr/share/zoneinfo/<region>`, where of course **\<region\>** was replaced with the region found in the output of `ls /usr/share/zoneinfo`.
|
||||
### Installing a Terminal Text Editor
|
||||
Install a terminal text editor of choice
|
||||
```sh
|
||||
xbps-install -S vis
|
||||
```
|
||||
### Editing `/etc/rc.conf`
|
||||
The keymaps are listed in `/usr/share/kbd/keymaps`. If you are using a different keymap, then replace `dvorak` with that keymap. The keymap will be changed back to Grandma's keymap later.
|
||||
## GUI
|
||||
### Running the installer
|
||||
Running the installer is simple.
|
||||
|
@ -572,354 +592,354 @@ From the rest of this section, follow the instructions for firmware type UEFI or
|
|||
#### UEFI
|
||||
You should now be greeted with some information, and a prompt that looks like this: `Command (m for help): `.
|
||||
|
||||
Type **p**, and press **Enter**. This will print out the information about the disk that you are writing to:
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 21AAD8CF-DB67-0F43-9374-416C7A4E31EA
|
||||
Type **p**, and press **Enter**. This will print out the information about the disk that you are writing to:
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 21AAD8CF-DB67-0F43-9374-416C7A4E31EA
|
||||
|
||||
<!--T:194-->
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 2099199 2097152 1G EFI System
|
||||
/dev/sda2 2099200 10487807 8388608 4G Linux swap
|
||||
/dev/sda3 10487808 60549119 50061311 23.9G Linux filesystem
|
||||
```
|
||||
*Example outputs may be copied from the* [Gentoo wiki](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks)*.*
|
||||
<!--T:194-->
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 2099199 2097152 1G EFI System
|
||||
/dev/sda2 2099200 10487807 8388608 4G Linux swap
|
||||
/dev/sda3 10487808 60549119 50061311 23.9G Linux filesystem
|
||||
```
|
||||
*Example outputs may be copied from the* [Gentoo wiki](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks)*.*
|
||||
|
||||
Run this periodically throughout the partitioning process, especially before writing changes.
|
||||
Run this periodically throughout the partitioning process, especially before writing changes.
|
||||
|
||||
If the GPT disklabel already exists (as seen in the example output of **p**), repeatedly run **d** to delete the existing partitions.
|
||||
If the GPT disklabel already exists (as seen in the example output of **p**), repeatedly run **d** to delete the existing partitions.
|
||||
|
||||
If the disklabel does not exist, run **g** to create the GPT disklabel. *For Legacy BIOS you would create the MBR disklabel.*
|
||||
```
|
||||
Created a new GPT disklabel (GUID: 87EA4497-2722-DF43-A954-368E46AE5C5F).
|
||||
```
|
||||
Create the ESP partition which stands for EFI System Partition. This is where the boot loader and other UEFI firmware is loaded during the bootstrapping process. The partition should be small (200 MiB - 1 GiB). I recommend 512 MiB, to be safe. Press **n**, **Enter**, **Enter**, **Enter**, **+512M**, **Enter** to create a new partition.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (1-128, default 1): 1
|
||||
First sector (2048-60549086, default 2048):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60549086, default 60549086): +512M
|
||||
|
||||
Created a new partition 1 of type 'Linux filesystem' and of size 512 MiB.
|
||||
```
|
||||
Now would be a good time to run **p**, and print the changes. Keep in mind that the disk wont be touched until the changes are writen.
|
||||
If the disklabel does not exist, run **g** to create the GPT disklabel. *For Legacy BIOS you would create the MBR disklabel.*
|
||||
```
|
||||
Created a new GPT disklabel (GUID: 87EA4497-2722-DF43-A954-368E46AE5C5F).
|
||||
```
|
||||
Create the ESP partition which stands for EFI System Partition. This is where the boot loader and other UEFI firmware is loaded during the bootstrapping process. The partition should be small (200 MiB - 1 GiB). I recommend 512 MiB, to be safe. Press **n**, **Enter**, **Enter**, **Enter**, **+512M**, **Enter** to create a new partition.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (1-128, default 1): 1
|
||||
First sector (2048-60549086, default 2048):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-60549086, default 60549086): +512M
|
||||
|
||||
I have done testing and you do not have to set the partition type. It is not the end of the world if you do.
|
||||
Created a new partition 1 of type 'Linux filesystem' and of size 512 MiB.
|
||||
```
|
||||
Now would be a good time to run **p**, and print the changes. Keep in mind that the disk wont be touched until the changes are writen.
|
||||
|
||||
Next, create a SWAP partition. I recommend making it 4 GiB. Here is a [chart](https://docs.voidlinux.org/installation/live-images/partitions.html#swap-partitions) explaining the amount of SWAP that should be added based on the amount of RAM that the system has. If you don't know how much RAM the system has, just guess. If the system is slow, you should probably do 8 GiB of SWAP.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (2-128, default 2):
|
||||
First sector (526336-60549086, default 526336):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (526336-60549086, default 60549086): +4G
|
||||
|
||||
Created a new partition 2 of type 'Linux filesystem' and of size 4 GiB.
|
||||
```
|
||||
Finally, make a root partition. This will take up the rest of the disk.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (3-128, default 3): 3
|
||||
First sector (10487808-60549086, default 10487808):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (10487808-60549086, default 60549086):
|
||||
I have done testing and you do not have to set the partition type. It is not the end of the world if you do.
|
||||
|
||||
Created a new partition 3 of type 'Linux filesystem' and of size 23.9 GiB.
|
||||
```
|
||||
Print the changes. It should look something like this (the sizes will not be exactly the same):
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 87EA4497-2722-DF43-A954-368E46AE5C5F
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 526335 524288 1G Linux
|
||||
/dev/sda2 526336 8914943 8388608 4G Linux
|
||||
/dev/sda3 8914944 60549086 51634143 24.6G Linux
|
||||
```
|
||||
When you are ready, write the changes.
|
||||
```
|
||||
Command (m for help): w
|
||||
```
|
||||
Once again, I recommend refering to the linked Gentoo Wiki page, if you want to well understand the partitioning process. If you followed this section, skip the Legacy BIOS section.
|
||||
Next, create a SWAP partition. I recommend making it 4 GiB. Here is a [chart](https://docs.voidlinux.org/installation/live-images/partitions.html#swap-partitions) explaining the amount of SWAP that should be added based on the amount of RAM that the system has. If you don't know how much RAM the system has, just guess. If the system is slow, you should probably do 8 GiB of SWAP.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (2-128, default 2):
|
||||
First sector (526336-60549086, default 526336):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (526336-60549086, default 60549086): +4G
|
||||
|
||||
Created a new partition 2 of type 'Linux filesystem' and of size 4 GiB.
|
||||
```
|
||||
Finally, make a root partition. This will take up the rest of the disk.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition number (3-128, default 3): 3
|
||||
First sector (10487808-60549086, default 10487808):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (10487808-60549086, default 60549086):
|
||||
|
||||
Created a new partition 3 of type 'Linux filesystem' and of size 23.9 GiB.
|
||||
```
|
||||
Print the changes. It should look something like this (the sizes will not be exactly the same):
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 87EA4497-2722-DF43-A954-368E46AE5C5F
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 526335 524288 1G Linux
|
||||
/dev/sda2 526336 8914943 8388608 4G Linux
|
||||
/dev/sda3 8914944 60549086 51634143 24.6G Linux
|
||||
```
|
||||
When you are ready, write the changes.
|
||||
```
|
||||
Command (m for help): w
|
||||
```
|
||||
Once again, I recommend refering to the linked Gentoo Wiki page, if you want to well understand the partitioning process. If you followed this section, skip the Legacy BIOS section.
|
||||
#### Legacy BIOS
|
||||
You should now be greeted with some information, and a prompt that looks like this: `Command (m for help): `.
|
||||
You should now be greeted with some information, and a prompt that looks like this: `Command (m for help): `.
|
||||
|
||||
Type **p**, and press **Enter**. This will print out the information about the disk that you are writing to:
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 21AAD8CF-DB67-0F43-9374-416C7A4E31EA
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 526335 524288 1G EFI System
|
||||
/dev/sda2 526336 2623487 2097152 1G Linux
|
||||
/dev/sda3 2623488 19400703 16777216 8G Linux
|
||||
/dev/sda4 19400704 60549086 41148383 19.6G Linux
|
||||
```
|
||||
*Example outputs may be copied from the* [Gentoo wiki](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks)*.*
|
||||
Type **p**, and press **Enter**. This will print out the information about the disk that you are writing to:
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: gpt
|
||||
Disk identifier: 21AAD8CF-DB67-0F43-9374-416C7A4E31EA
|
||||
|
||||
Run this periodically throughout the partitioning process, especially before writing changes.
|
||||
Device Start End Sectors Size Type
|
||||
/dev/sda1 2048 526335 524288 1G EFI System
|
||||
/dev/sda2 526336 2623487 2097152 1G Linux
|
||||
/dev/sda3 2623488 19400703 16777216 8G Linux
|
||||
/dev/sda4 19400704 60549086 41148383 19.6G Linux
|
||||
```
|
||||
*Example outputs may be copied from the* [Gentoo wiki](https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks)*.*
|
||||
|
||||
If the MBR disklabel already exists (look at the `Disklabel type:` section of your last output), repeatedly run **d** to delete the existing partitions.
|
||||
Run this periodically throughout the partitioning process, especially before writing changes.
|
||||
|
||||
If it is not MBR, or does not yet exist, enter **o** to create the MBR (also known as DOS) disklabel. *UEFI generally uses GPT.*
|
||||
```
|
||||
Command (m for help): o
|
||||
Created a new DOS disklabel with disk identifier 0xe04e67c4.
|
||||
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
|
||||
```
|
||||
We do not need to create a boot partition on BIOS MBR.
|
||||
If the MBR disklabel already exists (look at the `Disklabel type:` section of your last output), repeatedly run **d** to delete the existing partitions.
|
||||
|
||||
First, create a SWAP partition. I recommend making it 4 GiB. Here is a [chart](https://docs.voidlinux.org/installation/live-images/partitions.html#swap-partitions) explaining the amount of SWAP that should be added based on the amount of RAM that the system has. If you don't know how much RAM the system has, just guess. If the system is slow, you should probably do 8 GiB of SWAP.
|
||||
If it is not MBR, or does not yet exist, enter **o** to create the MBR (also known as DOS) disklabel. *UEFI generally uses GPT.*
|
||||
```
|
||||
Command (m for help): o
|
||||
Created a new DOS disklabel with disk identifier 0xe04e67c4.
|
||||
The device contains 'gpt' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
|
||||
```
|
||||
We do not need to create a boot partition on BIOS MBR.
|
||||
|
||||
Press **n**, **Enter**, **Enter**, **+4G**:
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition type
|
||||
p primary (1 primary, 0 extended, 3 free)
|
||||
e extended (container for logical partitions)
|
||||
Select (default p): p
|
||||
Partition number (1-4, default 1): 1
|
||||
First sector (0-60549119, default 0):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (0-60549119, default 60549119): +4G
|
||||
|
||||
Created a new partition 2 of type 'Linux' and of size 4 GiB.
|
||||
```
|
||||
Next, make a root partition. This will take up the rest of the disk.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition type
|
||||
p primary (1 primary, 0 extended, 3 free)
|
||||
e extended (container for logical partitions)
|
||||
Select (default p): p
|
||||
Partition number (2-4, default 2): 2
|
||||
First sector (8390656-60549086, default 8390656):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (8390656-60549086, default 60549086):
|
||||
First, create a SWAP partition. I recommend making it 4 GiB. Here is a [chart](https://docs.voidlinux.org/installation/live-images/partitions.html#swap-partitions) explaining the amount of SWAP that should be added based on the amount of RAM that the system has. If you don't know how much RAM the system has, just guess. If the system is slow, you should probably do 8 GiB of SWAP.
|
||||
|
||||
Created a new partition 2 of type 'Linux' and of size 23.9 GiB.
|
||||
```
|
||||
Print the changes. It should look something like this (the sizes will not be exactly the same):
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: 0xe04e67c4
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
/dev/sda2 2048 8390654 8388606 4G 82 Linux
|
||||
/dev/sda3 8390655 60549119 52158464 25.6G 83 Linux
|
||||
```
|
||||
When you are ready, write the changes.
|
||||
```
|
||||
Command (m for help): w
|
||||
```
|
||||
Once again, I recommend refering to the linked Gentoo Wiki page, if you want to well understand the partitioning process. If you followed this section, skip the Legacy BIOS section.
|
||||
Press **n**, **Enter**, **Enter**, **+4G**:
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition type
|
||||
p primary (1 primary, 0 extended, 3 free)
|
||||
e extended (container for logical partitions)
|
||||
Select (default p): p
|
||||
Partition number (1-4, default 1): 1
|
||||
First sector (0-60549119, default 0):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (0-60549119, default 60549119): +4G
|
||||
|
||||
Created a new partition 2 of type 'Linux' and of size 4 GiB.
|
||||
```
|
||||
Next, make a root partition. This will take up the rest of the disk.
|
||||
```
|
||||
Command (m for help): n
|
||||
Partition type
|
||||
p primary (1 primary, 0 extended, 3 free)
|
||||
e extended (container for logical partitions)
|
||||
Select (default p): p
|
||||
Partition number (2-4, default 2): 2
|
||||
First sector (8390656-60549086, default 8390656):
|
||||
Last sector, +/-sectors or +/-size{K,M,G,T,P} (8390656-60549086, default 60549086):
|
||||
|
||||
Created a new partition 2 of type 'Linux' and of size 23.9 GiB.
|
||||
```
|
||||
Print the changes. It should look something like this (the sizes will not be exactly the same):
|
||||
```
|
||||
Command (m for help): p
|
||||
Disk /dev/sda: 28.89 GiB, 31001149440 bytes, 60549120 sectors
|
||||
Disk model: DataTraveler 2.0
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
I/O size (minimum/optimal): 512 bytes / 512 bytes
|
||||
Disklabel type: dos
|
||||
Disk identifier: 0xe04e67c4
|
||||
|
||||
Device Boot Start End Sectors Size Id Type
|
||||
/dev/sda2 2048 8390654 8388606 4G 82 Linux
|
||||
/dev/sda3 8390655 60549119 52158464 25.6G 83 Linux
|
||||
```
|
||||
When you are ready, write the changes.
|
||||
```
|
||||
Command (m for help): w
|
||||
```
|
||||
Once again, I recommend refering to the linked Gentoo Wiki page, if you want to well understand the partitioning process. If you followed this section, skip the Legacy BIOS section.
|
||||
### Back to the GUI
|
||||
Next step is to create the file systems.
|
||||
Next step is to create the file systems.
|
||||
|
||||
Now select **FileSystems**.<br />
|
||||
![image of "select FileSystems"](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/select-filesystems.png)
|
||||
Now select **FileSystems**.<br />
|
||||
![image of "select FileSystems"](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/select-filesystems.png)
|
||||
|
||||
Now create the filesystems. Follow the directions dedicated to your firmware (UEFI/LegacyBIOS).
|
||||
Now create the filesystems. Follow the directions dedicated to your firmware (UEFI/LegacyBIOS).
|
||||
#### UEFI
|
||||
For UEFI, the first partition, should be vfat, the second partition should be SWAP, and the third partition should be some sort of Linux file system.
|
||||
For UEFI, the first partition, should be vfat, the second partition should be SWAP, and the third partition should be some sort of Linux file system.
|
||||
|
||||
Select the first partition.<br />
|
||||
![image of the first partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/first-uefi-partition.png)
|
||||
Select the first partition.<br />
|
||||
![image of the first partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/first-uefi-partition.png)
|
||||
|
||||
Select **vfat**.<br />
|
||||
![image of vfat](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-vfat.png)
|
||||
Select **vfat**.<br />
|
||||
![image of vfat](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-vfat.png)
|
||||
|
||||
Type `/boot/efi` as the mountpoint.<br />
|
||||
![image of /boot/efi](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/boot-mountpoint.png)
|
||||
Type `/boot/efi` as the mountpoint.<br />
|
||||
![image of /boot/efi](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/boot-mountpoint.png)
|
||||
|
||||
Say "yes."<br />
|
||||
![image of new filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/new-filesystem.png)
|
||||
Say "yes."<br />
|
||||
![image of new filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/new-filesystem.png)
|
||||
|
||||
Now select the second partition.<br />
|
||||
![image of the second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-uefi-partition.png)
|
||||
Now select the second partition.<br />
|
||||
![image of the second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-uefi-partition.png)
|
||||
|
||||
Now select **swap**.<br />
|
||||
![image of swap](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-swap.png)
|
||||
Now select **swap**.<br />
|
||||
![image of swap](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-swap.png)
|
||||
|
||||
Now select the third partition.<br />
|
||||
![image of the third partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/third-uefi-partition.png)
|
||||
Now select the third partition.<br />
|
||||
![image of the third partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/third-uefi-partition.png)
|
||||
|
||||
Now select any Linux filesystem. This could be Ext4, BTRFS, or XFS. It doesn't really matter which one you pick.<br />
|
||||
![image of Linux filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-linux-filesystem.png)
|
||||
Now select any Linux filesystem. This could be Ext4, BTRFS, or XFS. It doesn't really matter which one you pick.<br />
|
||||
![image of Linux filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/uefi-linux-filesystem.png)
|
||||
|
||||
Type `/` as the mountpoint.<br />
|
||||
![image of /](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/root-mountpoint.png)
|
||||
Type `/` as the mountpoint.<br />
|
||||
![image of /](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/root-mountpoint.png)
|
||||
#### Legacy BIOS
|
||||
Select the second partition.<br />
|
||||
![image of second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-legacy-bios-partition.png)
|
||||
Select the second partition.<br />
|
||||
![image of second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-legacy-bios-partition.png)
|
||||
|
||||
Now select **swap**.<br />
|
||||
![image of swap](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bios-swap.png)
|
||||
Now select **swap**.<br />
|
||||
![image of swap](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bios-swap.png)
|
||||
|
||||
Say "yes."<br />
|
||||
![image of new filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/new-legacy-bios-filesystem.png)
|
||||
Say "yes."<br />
|
||||
![image of new filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/new-legacy-bios-filesystem.png)
|
||||
|
||||
Now select the second partition.<br />
|
||||
![image of the second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-legacy-bios-partition.png)
|
||||
Now select the second partition.<br />
|
||||
![image of the second partition](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/second-legacy-bios-partition.png)
|
||||
|
||||
Now select any Linux filesystem. This could be Ext4, BTRFS, or XFS. It doesn't really matter which one you pick.<br />
|
||||
![image of Linux filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bios-linux-filesystem.png)
|
||||
Now select any Linux filesystem. This could be Ext4, BTRFS, or XFS. It doesn't really matter which one you pick.<br />
|
||||
![image of Linux filesystem](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bios-linux-filesystem.png)
|
||||
|
||||
Type `/` as the mountpoint.<br />
|
||||
![image of /](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bois-root-mountpoint.png)
|
||||
Type `/` as the mountpoint.<br />
|
||||
![image of /](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/legacy-bois-root-mountpoint.png)
|
||||
#### UEFI and BIOS
|
||||
Select **Install**.<br />
|
||||
![image of "select Install"](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/select-install.png)
|
||||
Select **Install**.<br />
|
||||
![image of "select Install"](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/select-install.png)
|
||||
|
||||
While the process is running check tty8 to see a verbose output (**Ctrl** + **Alt** + **8**). To return to the GUI, press (**Ctrl** + **Alt** + **1**) to go back to tty1.
|
||||
While the process is running check tty8 to see a verbose output (**Ctrl** + **Alt** + **8**). To return to the GUI, press (**Ctrl** + **Alt** + **1**) to go back to tty1.
|
||||
|
||||
**Do not reboot**, unless you chose the grub bootloader. If you chose the grub bootloader, reboot, and skip the next section.<br />
|
||||
![image of reboot](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/reboot.png)
|
||||
**Do not reboot**, unless you chose the grub bootloader. If you chose the grub bootloader, reboot, and skip the next section.<br />
|
||||
![image of reboot](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/reboot.png)
|
||||
### Installing a Different Bootloader
|
||||
If you are installing a different bootloader, say "no" to the reboot prompt.<br />
|
||||
![image of don't reboot](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/dont-reboot.png)
|
||||
If you are installing a different bootloader, say "no" to the reboot prompt.<br />
|
||||
![image of don't reboot](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/dont-reboot.png)
|
||||
|
||||
Now select **Exit**.<br />
|
||||
![image of Exit](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/exit.png)
|
||||
Now select **Exit**.<br />
|
||||
![image of Exit](https://git.disroot.org/oink/Grandma/raw/branch/main/Assests/Images/exit.png)
|
||||
|
||||
Mount the filesystem.
|
||||
```sh
|
||||
mount <root partition> /mnt
|
||||
```
|
||||
Replace **\<root partition\>** with the root partition (ie. `/dev/sda3`).
|
||||
Mount the filesystem.
|
||||
```sh
|
||||
mount <root partition> /mnt
|
||||
```
|
||||
Replace **\<root partition\>** with the root partition (ie. `/dev/sda3`).
|
||||
|
||||
If you are using UEFI, mount the boot partition.
|
||||
```sh
|
||||
mkdir -p /mnt/boot/efi/
|
||||
mount <boot partiton> /mnt/boot/efi/
|
||||
```
|
||||
Replace **\<boot partition\>** with the boot partition (ie. `/dev/sda1`).
|
||||
If you are using UEFI, mount the boot partition.
|
||||
```sh
|
||||
mkdir -p /mnt/boot/efi/
|
||||
mount <boot partiton> /mnt/boot/efi/
|
||||
```
|
||||
Replace **\<boot partition\>** with the boot partition (ie. `/dev/sda1`).
|
||||
|
||||
Now prepare for `chroot`.
|
||||
```sh
|
||||
mount -t proc none /mnt/proc
|
||||
mount -t sysfs none /mnt/sys
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /run /mnt/run
|
||||
```
|
||||
Copy over network files.
|
||||
```sh
|
||||
cp /etc/resolv.conf /etc/hosts /mnt/
|
||||
```
|
||||
Now `chroot`.
|
||||
```sh
|
||||
chroot /mnt /bin/bash
|
||||
```
|
||||
Update the package manager.
|
||||
```sh
|
||||
xbps-install -u xbps
|
||||
```
|
||||
Now prepare for `chroot`.
|
||||
```sh
|
||||
mount -t proc none /mnt/proc
|
||||
mount -t sysfs none /mnt/sys
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /run /mnt/run
|
||||
```
|
||||
Copy over network files.
|
||||
```sh
|
||||
cp /etc/resolv.conf /etc/hosts /mnt/
|
||||
```
|
||||
Now `chroot`.
|
||||
```sh
|
||||
chroot /mnt /bin/bash
|
||||
```
|
||||
Update the package manager.
|
||||
```sh
|
||||
xbps-install -u xbps
|
||||
```
|
||||
#mkfs.vfat <### UEFI
|
||||
Install a terminal text editor of choice
|
||||
```sh
|
||||
xbps-install -S vis
|
||||
```
|
||||
Replace `vis` with the terminal text of your choice.
|
||||
Install a terminal text editor of choice
|
||||
```sh
|
||||
xbps-install -S vis
|
||||
```
|
||||
Replace `vis` with the terminal text of your choice.
|
||||
|
||||
Edit `/etc/default/efiboomgr-kernel-hook`
|
||||
```sh
|
||||
vis /etc/default/efiboomgr-kernel-hook
|
||||
```
|
||||
Replace `vis` with the text editor that was installed
|
||||
```sh
|
||||
DIFY_EFI_ENTRIES="1"
|
||||
DISK="<disk name>"
|
||||
PART="<boot partition number>"
|
||||
```
|
||||
Replace **\<disk name\>** with the name of the disk that the system was installed on (ie. `/dev/sda`). Replace **\<boot partition number\>** with the number of the boot partion (probably 1).
|
||||
Reconfigure the kernel.
|
||||
```sh
|
||||
xbps-reconfigure linux$(uname -r | awk -F. 'OFS="." {print $1,$2}')
|
||||
```
|
||||
Now reboot.
|
||||
```
|
||||
reboot
|
||||
```
|
||||
Edit `/etc/default/efiboomgr-kernel-hook`
|
||||
```sh
|
||||
vis /etc/default/efiboomgr-kernel-hook
|
||||
```
|
||||
Replace `vis` with the text editor that was installed
|
||||
```sh
|
||||
DIFY_EFI_ENTRIES="1"
|
||||
DISK="<disk name>"
|
||||
PART="<boot partition number>"
|
||||
```
|
||||
Replace **\<disk name\>** with the name of the disk that the system was installed on (ie. `/dev/sda`). Replace **\<boot partition number\>** with the number of the boot partion (probably 1).
|
||||
Reconfigure the kernel.
|
||||
```sh
|
||||
xbps-reconfigure linux$(uname -r | awk -F. 'OFS="." {print $1,$2}')
|
||||
```
|
||||
Now reboot.
|
||||
```
|
||||
reboot
|
||||
```
|
||||
#### Legacy BIOS
|
||||
Now install Git and LILO.
|
||||
```sh
|
||||
xbps-install -S git lilo
|
||||
```
|
||||
Enter the home directory of the regular user.
|
||||
```sh
|
||||
cd /home/<user>/
|
||||
```
|
||||
Replace **\<user\>** weth the name of the user.
|
||||
Now install Git and LILO.
|
||||
```sh
|
||||
xbps-install -S git lilo
|
||||
```
|
||||
Enter the home directory of the regular user.
|
||||
```sh
|
||||
cd /home/<user>/
|
||||
```
|
||||
Replace **\<user\>** weth the name of the user.
|
||||
|
||||
Now create the `.Git` directory. This is where Git repos will be stored. Make sure you get the capitolization correct, or programs might mistake the home folder as a git repo.
|
||||
```
|
||||
mkdir .Git
|
||||
```
|
||||
Now enter that directory
|
||||
```sh
|
||||
cd .Git
|
||||
```
|
||||
Now clone the Git repo containing the configs that will be used throughout the guide.
|
||||
```sh
|
||||
git clone https://git.disroot.org/oink/Grandma.git
|
||||
```
|
||||
Copy the LILO config to `/etc/`
|
||||
```sh
|
||||
cp Grandma/Config/lilo/lilo.conf /etc/
|
||||
```
|
||||
Install a terminal text editor of choice
|
||||
```sh
|
||||
xbps-install -S vis
|
||||
```
|
||||
List the contents of the `/boot` directory.
|
||||
```
|
||||
ls /boot
|
||||
```
|
||||
The file you are looking for should look something like `vmlinuz-6.3.12_1`. Remember that filename.
|
||||
Now create the `.Git` directory. This is where Git repos will be stored. Make sure you get the capitolization correct, or programs might mistake the home folder as a git repo.
|
||||
```
|
||||
mkdir .Git
|
||||
```
|
||||
Now enter that directory
|
||||
```sh
|
||||
cd .Git
|
||||
```
|
||||
Now clone the Git repo containing the configs that will be used throughout the guide.
|
||||
```sh
|
||||
git clone https://git.disroot.org/oink/Grandma.git
|
||||
```
|
||||
Copy the LILO config to `/etc/`
|
||||
```sh
|
||||
cp Grandma/Config/lilo/lilo.conf /etc/
|
||||
```
|
||||
Install a terminal text editor of choice
|
||||
```sh
|
||||
xbps-install -S vis
|
||||
```
|
||||
List the contents of the `/boot` directory.
|
||||
```
|
||||
ls /boot
|
||||
```
|
||||
The file you are looking for should look something like `vmlinuz-6.3.12_1`. Remember that filename.
|
||||
|
||||
Now edit the `lilo.conf`
|
||||
```sh
|
||||
vis /etc/lilo.conf
|
||||
```
|
||||
Change the the disk to the one that Void was installed on.
|
||||
```sh
|
||||
Now edit the `lilo.conf`
|
||||
```sh
|
||||
vis /etc/lilo.conf
|
||||
```
|
||||
Change the the disk to the one that Void was installed on.
|
||||
```sh
|
||||
# Defines the boot device. This is where Lilo installs its boot
|
||||
# block. It can be either a partition, or the raw device, in which
|
||||
# case it installs in the MBR, and will overwrite the current MBR.
|
||||
# With newer kernel you should use the ID of the boot device, which
|
||||
# can be found here: /dev/disks/by-id/ata*.
|
||||
boot = /dev/sda
|
||||
```
|
||||
Change the partition to the root partition.
|
||||
```sh
|
||||
boot = /dev/sda
|
||||
```
|
||||
Change the partition to the root partition.
|
||||
```sh
|
||||
# Defines the partition which is the root partition. This partition
|
||||
# will be mounted at first from the kernel. With newer kernel you
|
||||
# should use the UUID (UUID="...") of the root device, which can be
|
||||
# found here: /dev/disks/by-uuid/*.
|
||||
root = /dev/sda2
|
||||
```
|
||||
If you are testing in a VM, uncomment the last two lines of this snippet of the file.
|
||||
```sh
|
||||
root = /dev/sda2
|
||||
```
|
||||
If you are testing in a VM, uncomment the last two lines of this snippet of the file.
|
||||
```sh
|
||||
# Defines non-standard parameters for the specified disk.
|
||||
# Uncomment if using a virtual machine.
|
||||
#disk = /dev/vda
|
||||
|
@ -929,10 +949,10 @@ Change the partition to the root partition. Change the image to the file that yo
|
|||
```sh
|
||||
# Void Linux
|
||||
image = /boot/vmlinuz-6.3.12_1
|
||||
label = "Void Linux"
|
||||
root = /dev/sda2
|
||||
read-only
|
||||
append = "quiet"
|
||||
label = "Void Linux"
|
||||
root = /dev/sda2
|
||||
read-only
|
||||
append = "quiet"
|
||||
Reconfigure the kernel.
|
||||
```
|
||||
Now enable LILO.
|
||||
|
|
Loading…
Reference in a new issue