From 6558b768ffb72e4bc16b0c0784122c82ab3ec0be Mon Sep 17 00:00:00 2001 From: mayfrost Date: Mon, 26 Feb 2018 02:33:45 +0000 Subject: [PATCH] Update Initiation.md --- Initiation.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/Initiation.md b/Initiation.md index c767f13..da11b30 100644 --- a/Initiation.md +++ b/Initiation.md @@ -8,7 +8,7 @@ This guide is for those who want to install either CRUX or Source Mage GNU/Linux Boot in UEFI mode if on UEFI, BIOS if on BIOS, and select installation media. * Make sure your network is up (OPTIONAL) `dhcpcd ` -* Temporarily change keyboard (available configurations can be found in the directories _/usr/share/kbd/keymaps/_ for __CRUX__ and _/usr/share/keymaps/i386/qwerty_ for __Source Mage GNU/Linux__) +* Temporarily change keyboard (available configurations can be found in the directories "_/usr/share/kbd/keymaps/_" for __CRUX__ and "_/usr/share/keymaps/i386/qwerty_" for __Source Mage GNU/Linux__) `loadkeys ` ## PARTITIONING @@ -18,7 +18,7 @@ Supported filesystems by bootloaders are (if on UEFI ignore this as it only supp * __GRUB Legacy__: FAT16, FAT32, minix, ext2, ext3, ext4, ReiserFS, JFS, XFS, VSTa fs, Btrfs * __GRUB 2__: ext2, ext3, ext4, btrfs, zfs, ufs, minix, iso9660, udf, jfs, hfs, hfs+, afs, affs, sfs, xfs, reiserfs, tar, cpio, NTFS, FAT16, FAT32 -In these examples we make only two partitions but you can extend this if you know how. The partitions are one root partition, later mounted to _/mnt/drive format_ with _mkfs._, and one boot partition, later mounted to _/mnt/drive/boot_ and format with _mkfs._ unless is __UEFI__ in which case _mkfs.vfat_ is the only format available and will be mounted to _/mnt/drive/boot/efi_. +In these examples we make only two partitions but you can extend this if you know how. The partitions are one root partition, later mounted to "_/mnt/drive_" with "_mkfs._" format, and one boot partition, later mounted to "_/mnt/drive/boot_" and with "_mkfs._" format unless is __UEFI__ in which case "_mkfs.vfat_" is the only format available and will be mounted to "_/mnt/drive/boot/efi_" instead. * Use parted `parted /dev/sda` @@ -50,8 +50,8 @@ mount -t proc none /mnt/drive/proc mount -t devpts none /mnt/drive/dev/pts` ## SETUP -* On CRUX run "_setup_", and if on UEFI select on setup grub2-efi (if using GRUB 2), efibootmgr, and elfutils from opt (only select core, and say yes when you're asked if you want to select individual packages). And if you are not using LILO de-select it from core. -* On Source Mage GNU/Linux get the tarball +* On __CRUX__ run "_setup_", and if on UEFI select on setup grub2-efi (if using GRUB 2), efibootmgr, and elfutils from opt (only select core, and say yes when you're asked if you want to select individual packages). And if you are not using LILO de-select it from core. +* On __Source Mage GNU/Linux__ get the tarball `cd /mnt/drive wget -c "http://download.sourcemage.org/image/official/smgl-stable--basesystem-x86_64." tar xvf smgl-stable--basesystem-x86_64.` @@ -63,8 +63,8 @@ tar xvf smgl-stable--basesystem-x86_64.` `passwd root` ### Change the network interfaces -* On CRUX modify "_/etc/rc.d/net_" with the rules you want (IP, gateway, domain, etc) -* On Source Mage GNU/Linux add preferred interfaces to "_/etc/network/interfaces_" for example +* On __CRUX__ modify "_/etc/rc.d/net_" with the rules you want (IP, gateway, domain, etc) +* On __Source Mage GNU/Linux__ add preferred interfaces to "_/etc/network/interfaces_" for example `auto eth0 allow-hotplug eth0 iface eth0 inet dhcp` @@ -76,29 +76,30 @@ iface eth0 inet dhcp` * Change the "_/etc/fstab_" file with appropriate filesystems `/dev/sda1 /boot defaults 0 2 /dev/sda2 / noatime 0 1` -* On CRUX uncomment the lines referring to devpts, tmp, and shm as some programs require it (Firefox), also USB and or cdrom if using those +* On __CRUX__ uncomment the lines referring to devpts, tmp, and shm as some programs require it (Firefox), also USB and or cdrom if using those * If on UEFI replace "_/boot_" with "_/boot/efi_" ### Edit environment -* On CRUX change the font, keyboard, timezone, hostname and services on the "_/etc/rc.conf_" file +* On __CRUX__ change the font, keyboard, timezone, hostname and services on the "_/etc/rc.conf_" file `ls /usr/share/kbd/keymaps/` -* On Source Mage GNU/Linux change keymaps on the "_/etc/sysconfig/keymap_" file +* On __Source Mage GNU/Linux__ change keymaps on the "_/etc/sysconfig/keymap_" file `ls /usr/share/keymaps/i386/qwerty` -* On CRUX generate locales (change interface language) +* On __CRUX__ generate locales (change interface language) `localedef -i -f ISO- ` -* On Source Mage GNU/Linux generate locales (change interface language) +* On __Source Mage GNU/Linux__ generate locales (change interface language) `cast -r locale` ## BOOTLOADER * The drive where bootloaders and OSes are installed on these examples is "_/dev/sda_", but could be anywhere. * The bootloader installation __IS__ inside chroot AND with drives mounted, so this guides assumes you are inside "_/mnt/drive_". +* "__", "__" and "__" are just the numbers of partitions. * The "_vmlinuz_" file makes reference to the kernel image, you can rename it or simlink to it in all cases, the only rule is you have to make sure the name is referenced correctly in the bootloader. By default it can have names like "_vmlinuz-linux_", "_vmlinuz-_" and so on. The same with "_initramfs.img_", it can be "_initramfs-.img_" and such. * All bootloader examples have included other OS inside what is called "_stanzas_". * FreeDOS and Windows stanzas are __OPTIONAL__. * If dualbooting with Windows remember that it likes to be in the first partition. * If on UEFI check if module is loaded by issuing "_modprobe efivars_". -* On CRUX do "_prt-get remove lilo_" if you dont use LILO. -* On Source Mage GNU/Linux do "_cast _" to install the preferred bootloader. +* On __CRUX__ do "_prt-get remove lilo_" if you dont use LILO. +* On __Source Mage GNU/Linux__ do "_cast _" to install the preferred bootloader. ### LILO * If on UEFI use __elilo__ and change names to "_/etc/elilo.conf_" instead of "_/etc/lilo.conf_" and "_elilo_" instead of "_lilo_" in commands @@ -106,7 +107,7 @@ iface eth0 inet dhcp` * Inserting "_password=_" inside an OS stanza will protect with a password that OS, but inserting "_password=_" just before the stanzas and outside any of them will protect with a password the bootloader itself (notice the space inside stanzas) `boot = /dev/sda image = /boot/vmlinuz - Label = CRUX + Label = root = /dev/sda other = /dev/sda table = /dev/sda @@ -139,9 +140,9 @@ mount /dev/sda1 /boot/efi` `PROMPT 1 TIMEOUT 50 MENU BACKGROUND splash.png -DEFAULT CRUX -LABEL CRUX - MENU LABEL CRUX +DEFAULT +LABEL + MENU LABEL LINUX /boot/vmlinuz INITRD /boot/initramfs.img LABEL FreeDOS