From a3628fc49db4d88ff3e4067268650710d1da3f6f Mon Sep 17 00:00:00 2001
From: Silvino Silva Follow this instructions with active chroot,
+ first mount partitions
+ and before chroot mount follow file systems; Now you can chroot; Install linux-gnu port,
+ linux libre kernel is a true source based kernel that
+ respects your freedoms. Read linux kernel
+ for more information. Default crux configuration can be obtained from iso,
+ kernel port depend on dracut, grub2
+ and grub2-efi. You don't need them to build with pkgmk, to install
+ boot related tools use prt-get; If you don't have the port binary package build it; Install kernel; Install dracut; Review configuration file; Run dracut to create init ram filesystem for
+ port linux-blob kernel; Create grub file in /etc/default/grub with values; Grub Manual,
+ install grub on MBR of disk sdb; If you are installing on removable media; grub-mkconfig generates grub.cfg, it will try to discover
+ available kernels and attempt to generate menu entries for
+ them; Check /boot/grub/grub.cfg, if is wrong add menu to
+ /etc/grub.d/40_custom, replace correct partition from grub-prob
+ output and correct UUID from fstab or blkid Simple way to have "resque" system is to mount boot as read only,
+ this assures that even as root nothing can be changed without remount.
+ To have different system independent from host grub will have entry to
+ boot small iso on /boot partition; Crux iso is not used because at the moment it fails to
+ find "crux-media" during or after init. Edit /etc/grub.d/40_custom On grub boot menu press e to edit boot options, change; to; Boot and mount; Reboot computer using power / reset. If you have qemu installed you can see if it boots, in this
+ example sdb is usb external drive; This is part of the Tribu System Documentation.
+ Copyright (C) 2020
+ Tribu Team.
+ See the file Gnu Free Documentation License
+ for copying conditions.
- This is part of the Tribu System Documentation.
- Copyright (C) 2020
- Tribu Team.
+ This is part of the LeetIO System Documentation.
+ Copyright (C) 2021
+ LeetIO Team.
See the file Gnu Free Documentation License
for copying conditions.1.3. Boot
+
+
+ $ sudo mount --bind /dev $CHROOT/dev
+ $ sudo mount -vt devpts devpts $CHROOT/dev/pts
+ $ sudo mount -vt tmpfs shm $CHROOT/dev/shm
+ $ sudo mount -vt proc proc $CHROOT/proc
+ $ sudo mount -vt sysfs sysfs $CHROOT/sys
+
+
+
+ $ sudo chroot $CHROOT /usr/bin/env -i \
+ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+ /bin/bash --login
+
+
+ 1.3.1. Kernel
+
+
+ $ prt-get depinst linux-gnu
+
+
+
+ # cd /usr/ports/machine-ports/linux-gnu
+ # pkgmk -d
+
+
+
+ # pkgadd /usr/ports/packages/linux-gnu#4.9.86-2.pkg.tar.gz
+
+
+ 1.3.2. Dracut
+
+
+ # cd /usr/ports/machine-ports/dracut
+ # pkgmk -d
+ # pkgadd /usr/ports/packages/dracut#044-2.pkg.tar.gz
+
+
+
+ # PUT YOUR CONFIG IN separate files
+ # in /etc/dracut.conf.d named "
+
+
+ # dracut --kver 4.9.86-gnu
+
+
+ 1.3.3. Grub
+
+
+ GRUB_DISABLE_LINUX_UUID=false
+ GRUB_ENABLE_LINUX_LABEL=false
+
+
+
+ # grub-install /dev/sdb
+ Installation finished. No error reported.
+
+
+
+ # grub-install --removable /dev/sdb
+ Installation finished. No error reported.
+
+
+
+ # grub-mkconfig -o /boot/grub/grub.cfg
+ Generating grub.cfg ...
+ Found linux image: /boot/vmlinuz-4.9.86-gnu
+ Found initrd image: /boot/initramfs-4.9.86-gnu.img
+ done
+ #
+
+
+
+ # grub-probe --target=hints_string /
+
+
+ 1.3.3.1. Rescue iso
+
+
+ $ wget http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/7.x/x86/release/CorePlus-current.iso
+ $ sudo mv CorePlus-current.iso /boot/tinycore.iso
+
+
+
+
+ menuentry "Rescue" {
+ load_video
+ set gfxpayload=keep
+
+ set isofile="/tinycore.iso"
+ loopback loop $isofile
+ linux (loop)/boot/vmlinuz64 loglevel=3 cde
+ initrd (loop)/boot/corepure64.gz
+ }
+
+
+ 1.3.4. Recover
+
+ Root password
+
+
+ linux /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro single
+
+
+
+ linux /vmlinuz-4.9.92-gnu root=UUID=3bab76f8-e714-45f1-8e30-04cc8a09c3d1 ro init=/bin/bash
+
+
+
+ # mount -a
+ # mount -o remount,rw /
+ # passwd root
+ # mount -o remount,ro /
+ # sync
+
+
+ 1.3.5. Checkup
+
+
+ # qemu-system-x86_64 -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img -append root=/dev/sdb /dev/sdb2
+
+
+ Debug Grub
+
+ Debug initram
+
+
+ /usr/lib/dracut/skipcpio /boot/initramfs-4.9.86-gnu.img | gunzip -c | cpio -i -d
+ 36875 blocks
+
+
+ Core OS Index
+
This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/bash.html b/linux/bash.html index f49d27e..1a7edb2 100644 --- a/linux/bash.html +++ b/linux/bash.html @@ -5,7 +5,7 @@- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/configure.html b/linux/configure.html index a548e5d..2e72c90 100644 --- a/linux/configure.html +++ b/linux/configure.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/dash.html b/linux/dash.html index a9aebee..8da34a3 100644 --- a/linux/dash.html +++ b/linux/dash.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/exim.html b/linux/exim.html index 028bfce..5cfed62 100644 --- a/linux/exim.html +++ b/linux/exim.html @@ -5,7 +5,7 @@- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/hardening.html b/linux/hardening.html index 041f999..0fd13e3 100644 --- a/linux/hardening.html +++ b/linux/hardening.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexAdd unnecessary tests to profile to have less noise.
- Core OS Index -This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/index.html b/linux/index.html index 089d143..33578f7 100644 --- a/linux/index.html +++ b/linux/index.html @@ -2,15 +2,15 @@ -Core OS covers installation and configuration of +
GNU/Linux covers installation and configuration of basic functionality of Crux 3.5 Gnu\Linux operating system. This documentation try's to follow Crux HandBook installation method diverges, for example, by only installing and @@ -162,9 +162,9 @@ Documentation Index
- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/install.html b/linux/install.html index 64fbe02..f42f4a2 100644 --- a/linux/install.html +++ b/linux/install.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/linux.html b/linux/linux.html index 9d568e9..3d992e9 100644 --- a/linux/linux.html +++ b/linux/linux.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/network.html b/linux/network.html index 0d359f3..ec33b25 100644 --- a/linux/network.html +++ b/linux/network.html @@ -5,7 +5,7 @@- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/package.html b/linux/package.html index 5235d01..4b68b6a 100644 --- a/linux/package.html +++ b/linux/package.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/ports.html b/linux/ports.html index 78607bd..28047c5 100644 --- a/linux/ports.html +++ b/linux/ports.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux Index- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/reboot.html b/linux/reboot.html index 1a4783b..f8ab278 100644 --- a/linux/reboot.html +++ b/linux/reboot.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/samhain.html b/linux/samhain.html index 4c940ef..f679749 100644 --- a/linux/samhain.html +++ b/linux/samhain.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux Index- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/sysctl.html b/linux/sysctl.html index 3b1d492..9940d43 100644 --- a/linux/sysctl.html +++ b/linux/sysctl.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/toolchain.html b/linux/toolchain.html index 23f5655..1ee7c89 100644 --- a/linux/toolchain.html +++ b/linux/toolchain.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/linux/tty-terminal.html b/linux/tty-terminal.html index 4da3798..77c7b9d 100644 --- a/linux/tty-terminal.html +++ b/linux/tty-terminal.html @@ -6,7 +6,7 @@ - Core OS Index + GNU/Linux IndexThis is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + GNU/Linux Index +
This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.
diff --git a/tools/dnsmasq.html b/tools/dnsmasq.html index 7c923dd..4d738e4 100644 --- a/tools/dnsmasq.html +++ b/tools/dnsmasq.html @@ -83,9 +83,9 @@ Tools Index- This is part of the Tribu System Documentation. - Copyright (C) 2020 - Tribu Team. + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. See the file Gnu Free Documentation License for copying conditions.