diff --git a/wiki/docker-images/johnktims_-_folding-at-home.md b/wiki/docker-images/johnktims_-_folding-at-home.md index 3d06409..e996104 100644 --- a/wiki/docker-images/johnktims_-_folding-at-home.md +++ b/wiki/docker-images/johnktims_-_folding-at-home.md @@ -22,7 +22,7 @@ There are some special variables to set. ### GPU -GPU support is documented in [the docker entry](../docker.md). +GPU support is documented in [the docker article](../docker.md). ## rebuild.sh diff --git a/wiki/linux/arch-linux/installation.md b/wiki/linux/arch-linux/installation.md index 9d367d5..3d30897 100644 --- a/wiki/linux/arch-linux/installation.md +++ b/wiki/linux/arch-linux/installation.md @@ -1,9 +1,7 @@ # Arch installation with LUKS encryption and LVM -This is the English version of the -[German installation guide on rvbg.eu](https://wiki.rvbg.eu/#arch/installation.md). This guide is based upon a -[german arch wiki entry](https://wiki.archlinux.de/title/Moderne_Installation_mit_UEFI_und_Verschlüsselung). +[german arch wiki article](https://wiki.archlinux.de/title/Moderne_Installation_mit_UEFI_und_Verschlüsselung). At the end of this guide a fully functional Arch Linux will be installed. @@ -203,4 +201,4 @@ this will install a bunch of useful software including a graphical environment. You can go on to other guides aswell. Additionally if you have a NVidia Graphics Cards you should read -[the NVidia entry](../nvidia.md) too. +[the NVidia article](../nvidia.md) too. diff --git a/wiki/linux/disk-management.md b/wiki/linux/disk-management.md index ccca227..9678852 100644 --- a/wiki/linux/disk-management.md +++ b/wiki/linux/disk-management.md @@ -1,7 +1,8 @@ # Disk Management -This entry focusses on non-LVM and non-MDADM storage. -For [LVM](lvm.md) and [MDADM](./mdadm.md) there are separate entries. +This article focusses on non-LVM and non-MDADM storage. +For [LVM](lvm.md), [MDADM](./mdadm.md) and [LUKS volumes](./dm-crypt.md) there +are separate entries. ## Create Partition diff --git a/wiki/linux/dm-crypt.md b/wiki/linux/dm-crypt.md index 091f5c1..6d259fe 100644 --- a/wiki/linux/dm-crypt.md +++ b/wiki/linux/dm-crypt.md @@ -13,3 +13,19 @@ Where `/dev/sda2` is the device you want to create. To open and map a device run `cryptsetup -y -v luksFormat /dev/sda1 crypt0` where `/dev/sda1` is your encrypted device and `crypt0` is where it will be mapped to with `dev/mapper/crypt0`. + +## Resize a LUKS encrypted volume + +If you have volume groups on the encrypted volume make sure to close them +with the following command modified to your needs: +`vgchange -a n ` + +Open the encrypted volume (assuming its stored at `/dev/sda2` and you map it +to `crypt-volume`): +`cryptsetup luksOpen /dev/sda2 crypt-volume` + +Now resize the encrypted volume to all available space of the partition. +If you don't want to extend the encrypted volume to the whole partition +or the partition is to small for your purposes, make sure to resize the +partition first accordingly (see [disk management](./disk-management.md)). +`cryptsetup resize crypt-volume` diff --git a/wiki/linux/lvm.md b/wiki/linux/lvm.md index e78a45b..305a382 100644 --- a/wiki/linux/lvm.md +++ b/wiki/linux/lvm.md @@ -24,10 +24,24 @@ pvcreate /dev/sdc1 vgextend /dev/sdc1 ``` +## Resize a physical volume + +To increase the size of a physical volume you have to have free free space +in the partition containing the physical volume. +A guide to change 'normal' partitions can be found in the +[disk management article](./disk-management.md); if you have a volume that is +encrypted with LUKS a guide is available in +[the dm-crypt articel](./dm-crypt.md). + +To resize the physical volume to the size of the containing volume run: +`pvresize /dev/mapper/` + ## Increase size of a logical volume -To increase the size of the logical volume you need to have free space in the +To increase the size of the logical volume you have to have free space in the according volume group. You can check that by running: `vgdisplay`. +If you don't have enough space you have to resize the physical volume as +described in this article. Then run: ```shell diff --git a/wiki/linux/proxmox.md b/wiki/linux/proxmox.md index 1d64d0a..7d38bc2 100644 --- a/wiki/linux/proxmox.md +++ b/wiki/linux/proxmox.md @@ -15,7 +15,7 @@ After that follow the instructions and fill in the fields to your liking. ### Enlarging disk of a VM Make sure there is enough disk space available. -For further information see [the disk management entry](./disk-management.md) +For further information see [the disk management article](./disk-management.md) SSH into Proxmox. Enlarge a disk by using: @@ -24,13 +24,14 @@ Enlarge a disk by using: qm resize ``` -For example (100G is 100GibiByte): +For example if you want to the disk 100 by 100G (100GibiByte): ```shell qm resize 100 ide0 +100G ``` -After that grow the filesystem as described in [the disk management article](./disk-management.md). +After that grow the filesystem in the vm as described in +[the disk management article](./disk-management.md). ## Remove local-lvm and add its size to local diff --git a/wiki/linux/vim/c-language.md b/wiki/linux/vim/c-language.md index 1196d1c..e5bbc18 100644 --- a/wiki/linux/vim/c-language.md +++ b/wiki/linux/vim/c-language.md @@ -1,7 +1,8 @@ # C in Vim C is a common programming language. -In this entry we will focus on making vim support c and use vim as an ide for c. +In this article we will focus on making vim support c and use vim as an ide for +c. ## Autocompletion diff --git a/wiki/linux/vim/golang.md b/wiki/linux/vim/golang.md index d753367..14738bc 100644 --- a/wiki/linux/vim/golang.md +++ b/wiki/linux/vim/golang.md @@ -1,8 +1,10 @@ # GoLang in Vim GoLang is a common programming language. -In this entry we will focus on making vim support Go and use vim as an ide for it. -This guide is based on a guide from [octetz.com](https://octetz.com/docs/2019/2019-04-24-vim-as-a-go-ide/). +In this article we will focus on making vim support Go and use vim as an ide +for it. +This guide is based on a guide from +[octetz.com](https://octetz.com/docs/2019/2019-04-24-vim-as-a-go-ide/). ## Build, Test, Run, Docs, Debug, Format diff --git a/wiki/linux/vim/python.md b/wiki/linux/vim/python.md index d97d186..d1334f3 100644 --- a/wiki/linux/vim/python.md +++ b/wiki/linux/vim/python.md @@ -1,8 +1,8 @@ # Python in Vim Python is a common programming language. -In this entry we will focus on making vim support python and use vim as an ide -for it. +In this article we will focus on making vim support python and use vim as an +ide for it. ## Autocompletion diff --git a/wiki/linux/vim/vhdl.md b/wiki/linux/vim/vhdl.md index 65f1ce5..fe9f50d 100644 --- a/wiki/linux/vim/vhdl.md +++ b/wiki/linux/vim/vhdl.md @@ -1,7 +1,7 @@ # VHDL in Vim VHDL is a hardware description language. -In this entry we will focus on making vim support VHDL. +In this article we will focus on making vim support VHDL. ## Linting diff --git a/wiki/matrix.md b/wiki/matrix.md index 3b7af41..0d201c4 100644 --- a/wiki/matrix.md +++ b/wiki/matrix.md @@ -12,7 +12,7 @@ This setup guide follows a modified version of the [guide by matusnovak](https://gist.github.com/matusnovak/37109e60abe79f4b59fc9fbda10896da). Furthermore this guide will assume you already have a [traefik v2.4](./traefik.md) instance setup as described in the -[traefik docker image entry](./docker-images/traefik.md). +[traefik docker image article](./docker-images/traefik.md). ### DNS records