diff options
Diffstat (limited to 'core/install.html')
-rw-r--r-- | core/install.html | 226 |
1 files changed, 115 insertions, 111 deletions
diff --git a/core/install.html b/core/install.html index be98a0d..5939e7a 100644 --- a/core/install.html +++ b/core/install.html @@ -2,20 +2,20 @@ <html dir="ltr" lang="en"> <head> <meta charset='utf-8'> - <title>1.1. Install Crux 3.2</title> + <title>1.1. Install Crux 3.3</title> </head> <body> <a href="index.html">Core OS Index</a> - <h1>1.1. Install Crux 3.2</h1> + <h1>1.1. Install Crux 3.3</h1> - <p>Installation of minimal Crux 3.2 Gnu\Linux system, + <p>Installation of minimal Crux 3.3 Gnu\Linux system, with selected packages from core, opt and contrib ports. Process of installation documented can be executed from iso or from existing gnu\linux installation. Read - <a href="http://crux.nu/Main/Handbook3-2">Hand book 3.2</a>, + <a href="http://crux.nu/Main/Handbook3-3">Hand book 3.3</a>, .</p> <p>If you are booting from crux iso and is not your keyboard @@ -25,28 +25,34 @@ # loadkeys dvorak </pre> - <h2 id="step1">1.1.1. Download Iso</h2> + <h2 id="step1">1.1.1. Download iso</h2> - <a href="http://crux.nu/Main/Download">Download Page</a> + <p>Visit crux + <a href="http://crux.nu/Main/Download">download page</a> for + more notes before downloading iso. Script + <a href="scripts/setup-iso.sh">setup-iso.sh</a> downloads + iso from master repo and checks md5sum.</p> <pre> - $ curl -k -O https://serverop.de/crux/crux-3.2/iso/crux-3.2.iso - $ curl -k -O https://serverop.de/crux/crux-3.2/iso/crux-3.2.md5 - $ md5sum crux-3.2.iso - 2e4144590f6b340de2580255ad21620e crux-3.2.iso + $ curl -k -O https://serverop.de/crux/crux-3.3/iso/crux-3.3.iso + $ curl -k -O https://serverop.de/crux/crux-3.3/iso/crux-3.3.md5 + $ md5sum crux-3.3.iso + b82134d40c9947580f7510694f6970de crux-3.3.iso </pre> - <h2 id="step2">1.1.2. Prepare Target</h2> + <h2 id="step2">1.1.2. Prepare target</h2> <p>Prepare disk or target location where new system will be installed. Follow steps describe how to create efi and separate partitions such as; - bios grub, EFI, swap, boot, root, var, usr and home. - Information about - <a href="http://devil-detail.blogspot.pt/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">gpt partition table</a>. - </p> + bios grub, EFI, boot, root, var, usr, swap and home. + For more information about gpt partitions table read + <a href="http://devil-detail.blogspot.com/2013/07/install-grub2-on-gpt-disk-dedicated-partition.html">devil-detail grub2 on gpt</a>. + Script <a href="scripts/setup-target.sh">setup-target.sh</a> + creates follow partitions;</p> <p>Create gpt label and set unit size to use;</p> + <pre> (parted) mklabel gpt (parted) unit mib @@ -69,107 +75,115 @@ installations. Partition size 128M;</p> <pre> - (parted) mkpart ESP fat32 3 131 - (parted) name 2 boot + (parted) mkpart ESP fat32 3 125 + (parted) name 2 efi (parted) set 2 boot on </pre> - <h3>Swap (ram)</h3> + <h3>/boot</h3> - <p>Swap partition general advice is same size as memory ram, - ports system configured to build on ram need at least 34G - to build firefox. Other swap partitions can be added later for port - build on ram. Partition size 512M;</p> + <p>Boot partition. Partition with 1G provide room for kernels + and crux iso that can be directly boot from grub (without root + partition). Partition size 1G;</p> <pre> - (parted) mkpart primary linux-swap 131 643 - (parted) name 3 swap + (parted) mkpart primary ext4 125 1128 + (parted) name 3 boot </pre> - <h3>/boot</h3> + <h3>/</h3> - <p>Boot partition. Partition with 1G provide room for kernels and - crux iso that can be directly boot from grub (without root partition). - Partition size 1G;</p> + <p>Normal core crux installation root partition uses + approximately 2G, without /usr 200MB-500M. Minimum 2G + is recommended to give room to root home directory with + dedicated (separated) usr and var partition. + Partition size 4G;</p> <pre> - (parted) mkpart primary ext4 643 1667 - (parted) name 4 boot + (parted) mkpart primary ext4 1128 5128 + (parted) name 4 root </pre> - <h3>/</h3> + <h3>/var</h3> - <p>Normal core crux installation root partition uses approximately 2G, - without /usr 200MB-500M. Minimum 2G is recommended. Partition size 2.4G;</p> + <p>Var partition is recommended 1G-5G depending on how + system is configured. Partition size 1G;</dd> <pre> - (parted) mkpart primary ext4 1667 4096 - (parted) name 5 root + (parted) mkpart primary ext4 5128 6128 + (parted) name 5 var </pre> - <p>Core system can be installed from here, additional partitions can be - created now or later.</p> - - <h3>/var</h3> + <h3>/usr</h3> - <p>Var partition is recommended 100MiB-500MiB. Partition size 1G;</dd> + <p>User partition with 4G-8G is recommended for a desktop + setup, with dedicated partition for ports. Partition size + 8G;</dd> <pre> - (parted) mkpart primary ext4 4096 5120 - (parted) name 6 var + (parted) mkpart primary ext4 6128 14128 + (parted) name 6 usr </pre> - <h3>/usr</h3> + <h3>Swap (ram)</h3> - <p>User partition with 4G-8G is recommended for a desktop setup, we will use 8G;</dd> + <p>Swap partition general advice is to have the same size as + memory ram, ports system will be configured to build on ram. + To build firefox is necessary at least 34G, swap partitions + will be added to lvm and this partition removed. + Partition size 4G;</p> <pre> - (parted) mkpart primary ext4 5120 13312 - (parted) name 7 usr + (parted) mkpart primary linux-swap 14128 18128 + (parted) name 3 swap </pre> <h3>/home</h3> - <p>Home partition can have limited size for later creation of lvm or fill the rest of - disk space;</dd> + <p>Home partition general advice is to fill the rest of disk + space. Home partition will be added later to lvm and this + partition removed. Fill the rest of disk space;</dd> <pre> - (parted) mkpart primary ext4 13312 -1 + (parted) mkpart primary ext4 18128 100% (parted) name 8 home </pre> - <h3>Create filesystems</h3> + <h2 id="step3">1.1.3. Prepare Install</h2> - <pre> - $ export BLK_EFI=/dev/sda2 - $ export BLK_SWAP=/dev/sda3 - $ export BLK_BOOT=/dev/sda4 - $ export BLK_ROOT=/dev/sda5 - $ export BLK_VAR=/dev/sda6 - $ export BLK_USR=/dev/sda7 - $ export BLK_HOME=/dev/sda8 - </pre> + <p>From now on script + <a href="scripts/setup-install.sh">setup-install.sh</a> + create file systems, install packages, configure host + metadata and setup ports;</p> <pre> - $ sudo mkfs.fat -F 32 $BLK_EFI + $ export CHROOT=/mnt </pre> - <pre> - $ sudo mkswap $BLK_SWAP - </pre> + <h3>Create filesystems</h3> <pre> - $ sudo mkfs.ext4 $BLK_BOOT - $ sudo mkfs.ext4 $BLK_ROOT - $ sudo mkfs.ext4 $BKL_VAR - $ sudo mkfs.ext4 $BKL_USR - $ sudo mkfs.ext4 $BKL_HOME + $ export DEV=/dev/sda </pre> - <h2 id="step3">1.1.3. Prepare Install</h2> + <pre> + $ export BLK_EFI="${DEV}2" + $ export BLK_BOOT="${DEV}3" + $ export BLK_ROOT="${DEV}4" + $ export BLK_VAR="${DEV}5" + $ export BLK_USR="${DEV}6" + $ export BLK_SWP="${DEV}7" + $ export BLK_HOME="${DEV}8" + </pre> <pre> - $ export CHROOT=/mnt + $ sudo mkfs.fat -F 32 $BLK_EFI + $ sudo mkfs.ext4 $BLK_BOOT + $ sudo mkfs.ext4 $BLK_ROOT + $ sudo mkfs.ext4 $BKL_VAR + $ sudo mkfs.ext4 $BKL_USR + $ sudo mkswap $BLK_SWAP + $ sudo mkfs.ext4 $BKL_HOME </pre> <pre> @@ -217,7 +231,7 @@ <pre> # modprobe isofs # modprobe loop - # mount -o loop crux-3.2.iso $CHROOT/media + # mount -o loop crux-3.3.iso $CHROOT/media </pre> <h2 id="step4">1.1.4. Install Crux</h2> @@ -232,17 +246,13 @@ <p>Install temporary pkgadd on $CHROOT;</p> <pre> - $ sudo tar xf /media/crux/core/pkgutils#5.36-2.pkg.tar.xz usr/bin/pkgadd -O > $CHROOT/pkgadd + $ sudo tar xf /media/crux/core/pkgutils#5.40-1.pkg.tar.xz usr/bin/pkgadd -O > $CHROOT/pkgadd $ sudo chmod +x $CHROOT/pkgadd </pre> <p>Edit $CHROOT/core.lst with your preferences, you can remove or add packages from opt collection. Remove lilo if you want - grub;</p> - - <pre> - /mnt/iso/crux/core/lilo#24.1-3.pkg.tar.xz - </pre> + grub.</p> <p>Create package database, it will contain a list of i nstalled packages files.</p> @@ -265,50 +275,44 @@ <h2 id="step5">1.1.5. Install extra packages</h2> <p>Install additional ports like wireless-tools, grub2 - and fakeroot </p> + and fakeroot;</p> <pre> cp $CHROOT/media/crux/opt/* $CHROOT/usr/ports/packages cp $CHROOT/media/crux/xorg/* $CHROOT/usr/ports/packages </pre> - <p>Install fakeroot and create user account, read - ;</p> - <pre> - # pkgadd /media/crux/opt/fakeroot#1.20.2-1.pkg.tar.xz + # chroot $CHROOT /bin/bash </pre> - <pre> - # chroot /mnt /bin/bash - </pre> - <pre> - pkgadd /usr/ports/packages/dbus#1.10.2-1.pkg.tar.xz - pkgadd /usr/ports/packages/expat#2.1.0-1.pkg.tar.xz - pkgadd /usr/ports/packages/libnl#3.2.27-1.pkg.tar.xz - pkgadd /usr/ports/packages/libpng#1.6.19-1.pkg.tar.xz - pkgadd /usr/ports/packages/freetype#2.6.1-1.pkg.tar.xz - pkgadd /usr/ports/packages/libffi#3.2.1-2.pkg.tar.xz - pkgadd /usr/ports/packages/sqlite3#3.9.2-1.pkg.tar.xz - pkgadd /usr/ports/packages/python#2.7.10-1.pkg.tar.xz - pkgadd /usr/ports/packages/glib#2.46.2-1.pkg.tar.xz - pkgadd /usr/ports/packages/grub2#2.00-7.pkg.tar.xz - pkgadd /usr/ports/packages/grub2-efi#2.00-4.pkg.tar.xz - pkgadd /usr/ports/packages/wireless-tools#29-1.pkg.tar.xz - pkgadd /usr/ports/packages/wpa_supplicant#2.5-2.pkg.tar.xz - pkgadd /usr/ports/packages/lvm2#2.02.133-1.pkg.tar.xz - pkgadd /usr/ports/packages/mdadm#3.3.4-1.pkg.tar.xz - pkgadd /usr/ports/packages/efivar#0.21-1.pkg.tar.xz - pkgadd /usr/ports/packages/efibootmgr#0.12-1.pkg.tar.xz - pkgadd /usr/ports/packages/dosfstools#3.0.26-1.pkg.tar.xz + pkgadd /usr/ports/packages/fakeroot#* + pkgadd /usr/ports/packages/dbus#* + pkgadd /usr/ports/packages/expat#* + pkgadd /usr/ports/packages/libnl#* + pkgadd /usr/ports/packages/libpng#* + pkgadd /usr/ports/packages/freetype#* + pkgadd /usr/ports/packages/libffi#* + pkgadd /usr/ports/packages/sqlite3#* + pkgadd /usr/ports/packages/python#* + pkgadd /usr/ports/packages/glib#* + pkgadd /usr/ports/packages/grub2#* + pkgadd /usr/ports/packages/grub2-efi#* + pkgadd /usr/ports/packages/wireless-tools#* + pkgadd /usr/ports/packages/wpa_supplicant#* + pkgadd /usr/ports/packages/lvm2#* + pkgadd /usr/ports/packages/mdadm#* + pkgadd /usr/ports/packages/efivar#* + pkgadd /usr/ports/packages/efibootmgr#* + pkgadd /usr/ports/packages/dosfstools#* </pre> - <pre> - # exit - </pre> + <pre> + # exit + </pre> - <pre> + <pre> $ sudo rm $CHROOT/pkgadd $ sudo rm $CHROOT/core.lst </pre> @@ -317,7 +321,7 @@ <p>Create c9 ports;</p> - <pre> + <pre> $ sudo mkdir $CHROOT/usr/ports/c9-ports </pre> @@ -325,7 +329,7 @@ <pre> $ sudo cp -r ports/* $CHROOT/usr/ports/c9-ports/ - </pre> + </pre> <h2 id="step7">1.1.7. DNS Resolver</h2> @@ -349,7 +353,7 @@ <a href="index.html">Core OS Index</a> <p>This is part of the c9 Manual. - Copyright (C) 2016 + Copyright (C) 2017 c9 team. See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> for copying conditions.</p> |