diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/index.html | 1 | ||||
-rw-r--r-- | tools/qemu.html | 32 | ||||
-rw-r--r-- | tools/tar.html | 2 |
3 files changed, 20 insertions, 15 deletions
diff --git a/tools/index.html b/tools/index.html index 991a1b5..dd73571 100644 --- a/tools/index.html +++ b/tools/index.html @@ -97,6 +97,7 @@ <li><a href="nginx.html#logs">6. Logs</a></li> </ul> </li> + <li><a href="httpd.html">Nginx</a> <li><a href="gitolite.html">Gitolite</a> <ul> <li><a href="gitolite.html#install">1. Install Gitolite</a></li> diff --git a/tools/qemu.html b/tools/qemu.html index 04c367d..44f48ae 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -43,7 +43,7 @@ this describes how to create a qcow2 type;</p> <pre> - $ qemu-img create -f qcow2 crux-img.qcow2 15G + $ qemu-img create -f qcow2 crux-img.qcow2 20G </pre> <h3 id="mount">2.1. Mount images</h3> @@ -68,19 +68,15 @@ unit mib \ mkpart primary 2 4 \ name 1 grub \ - mkpart ESP fat32 4 128 \ + mkpart ESP fat32 4 132 \ name 2 efi \ - mkpart primary ext4 128 1128 \ + mkpart primary ext4 132 1132 \ name 3 boot \ - mkpart primary ext4 1128 12128 \ - name 4 root \ - mkpart primary ext4 12128 14128 \ - name 5 var \ - mkpart primary ext4 14128 100% \ - name 6 lvm \ + mkpart primary 1132 100% \ + name 4 lvm \ set 1 bios_grub on \ set 2 boot on \ - set 6 lvm on + set 4 lvm on </pre> <pre> @@ -90,11 +86,19 @@ <p>Use /dev/mapper/$(name_of_device) to assign correct blocks;</p> <pre> + pvcreate /dev/mapper/${DEV_NAME}p4 + vgcreate vg_system /dev/mapper/${DEV_NAME}p4 + lvcreate -L 15G -n lv_root vg_system + lvcreate -L 2G -n lv_var vg_system + lvcreate -l 100%FREE -n lv_home vg_system + </pre> + + <pre> mkfs.fat -F 32 /dev/mapper/${DEV_NAME}p2 mkfs.ext4 /dev/mapper/${DEV_NAME}p3 - mkfs.ext4 /dev/mapper/${DEV_NAME}p4 - mkfs.ext4 /dev/mapper/${DEV_NAME}p5 - pvcreate /dev/mapper/${DEV_NAME}p6 + mkfs.ext4 /dev/vg_system/lv_root + mkfs.ext4 /dev/vg_system/lv_var + mkfs.ext4 /dev/vg_system/lv_home </pre> <p>Read <a href="lvm.html">lvm</a> documentation on how to setup @@ -103,7 +107,7 @@ <p>Mount partition;</p> <pre> - mount /dev/mapper/${DEV_NAME}p4 $CHROOT + mount /dev/vg_system/ mkdir -p $CHROOT/proc mkdir -p $CHROOT/sys mkdir -p $CHROOT/dev diff --git a/tools/tar.html b/tools/tar.html index 32fe945..02c7c73 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -15,7 +15,7 @@ <p>To create a simple compressed tar;</p> <pre> - $ tar -czvf tar_name.tar.gz /path/to/archive + $ tar -czpvf tar_name.tar.gz /path/to/archive </pre> <p>Script |