mirror of
https://github.com/mayfrost/guides.git
synced 2024-10-31 23:16:06 +00:00
Update Initiation.md
This commit is contained in:
parent
ea7d7b0598
commit
6558b768ff
@ -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.
|
Boot in UEFI mode if on UEFI, BIOS if on BIOS, and select installation media.
|
||||||
* Make sure your network is up (OPTIONAL)
|
* Make sure your network is up (OPTIONAL)
|
||||||
`dhcpcd <NIC>`
|
`dhcpcd <NIC>`
|
||||||
* 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 <KEYMAP>`
|
`loadkeys <KEYMAP>`
|
||||||
|
|
||||||
## PARTITIONING
|
## 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 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
|
* __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.<ROOT_FILESYSTEM>_, and one boot partition, later mounted to _/mnt/drive/boot_ and format with _mkfs.<BOOTLOADER_FILESYSTEM>_ 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.<ROOT_FILESYSTEM>_" format, and one boot partition, later mounted to "_/mnt/drive/boot_" and with "_mkfs.<BOOTLOADER_FILESYSTEM>_" 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
|
* Use parted
|
||||||
`parted /dev/sda`
|
`parted /dev/sda`
|
||||||
@ -50,8 +50,8 @@ mount -t proc none /mnt/drive/proc
|
|||||||
mount -t devpts none /mnt/drive/dev/pts`
|
mount -t devpts none /mnt/drive/dev/pts`
|
||||||
|
|
||||||
## SETUP
|
## 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 __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 __Source Mage GNU/Linux__ get the tarball
|
||||||
`cd /mnt/drive
|
`cd /mnt/drive
|
||||||
wget -c "http://download.sourcemage.org/image/official/smgl-stable-<version>-basesystem-x86_64.<compression>"
|
wget -c "http://download.sourcemage.org/image/official/smgl-stable-<version>-basesystem-x86_64.<compression>"
|
||||||
tar xvf smgl-stable-<version>-basesystem-x86_64.<compression>`
|
tar xvf smgl-stable-<version>-basesystem-x86_64.<compression>`
|
||||||
@ -63,8 +63,8 @@ tar xvf smgl-stable-<version>-basesystem-x86_64.<compression>`
|
|||||||
`passwd root`
|
`passwd root`
|
||||||
|
|
||||||
### Change the network interfaces
|
### Change the network interfaces
|
||||||
* On CRUX modify "_/etc/rc.d/net_" with the rules you want (IP, gateway, domain, etc)
|
* 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 __Source Mage GNU/Linux__ add preferred interfaces to "_/etc/network/interfaces_" for example
|
||||||
`auto eth0
|
`auto eth0
|
||||||
allow-hotplug eth0
|
allow-hotplug eth0
|
||||||
iface eth0 inet dhcp`
|
iface eth0 inet dhcp`
|
||||||
@ -76,29 +76,30 @@ iface eth0 inet dhcp`
|
|||||||
* Change the "_/etc/fstab_" file with appropriate filesystems
|
* Change the "_/etc/fstab_" file with appropriate filesystems
|
||||||
`/dev/sda1 /boot <BOOTLOADER_FILESYSTEM> defaults 0 2
|
`/dev/sda1 /boot <BOOTLOADER_FILESYSTEM> defaults 0 2
|
||||||
/dev/sda2 / <ROOT_FILESYSTEM> noatime 0 1`
|
/dev/sda2 / <ROOT_FILESYSTEM> 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_"
|
* If on UEFI replace "_/boot_" with "_/boot/efi_"
|
||||||
|
|
||||||
### Edit environment
|
### 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/`
|
`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`
|
`ls /usr/share/keymaps/i386/qwerty`
|
||||||
* On CRUX generate locales (change interface language)
|
* On __CRUX__ generate locales (change interface language)
|
||||||
`localedef -i <LOCALE> -f ISO-<CODE> <LOCALE>`
|
`localedef -i <LOCALE> -f ISO-<CODE> <LOCALE>`
|
||||||
* On Source Mage GNU/Linux generate locales (change interface language)
|
* On __Source Mage GNU/Linux__ generate locales (change interface language)
|
||||||
`cast -r locale`
|
`cast -r locale`
|
||||||
|
|
||||||
## BOOTLOADER
|
## BOOTLOADER
|
||||||
* The drive where bootloaders and OSes are installed on these examples is "_/dev/sda_", but could be anywhere.
|
* 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_".
|
* The bootloader installation __IS__ inside chroot AND with drives mounted, so this guides assumes you are inside "_/mnt/drive_".
|
||||||
|
* "_<PARTITION_NUMBER_OF_DISTRO>_", "_<PARTITION_NUMBER_OF_FREEDOS>_" and "_<PARTITION_NUMBER_OF_WINDOWS>_" 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-<KERNEL_VERSION>_" and so on. The same with "_initramfs.img_", it can be "_initramfs-<KERNEL_VERSION>.img_" and such.
|
* 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-<KERNEL_VERSION>_" and so on. The same with "_initramfs.img_", it can be "_initramfs-<KERNEL_VERSION>.img_" and such.
|
||||||
* All bootloader examples have included other OS inside what is called "_stanzas_".
|
* All bootloader examples have included other OS inside what is called "_stanzas_".
|
||||||
* FreeDOS and Windows stanzas are __OPTIONAL__.
|
* FreeDOS and Windows stanzas are __OPTIONAL__.
|
||||||
* If dualbooting with Windows remember that it likes to be in the first partition.
|
* 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_".
|
* 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 __CRUX__ do "_prt-get remove lilo_" if you dont use LILO.
|
||||||
* On Source Mage GNU/Linux do "_cast <BOOTLOADER>_" to install the preferred bootloader.
|
* On __Source Mage GNU/Linux__ do "_cast <BOOTLOADER>_" to install the preferred bootloader.
|
||||||
|
|
||||||
### LILO
|
### 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
|
* 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=<PASSWORD>_" inside an OS stanza will protect with a password that OS, but inserting "_password=<PASSWORD>_" just before the stanzas and outside any of them will protect with a password the bootloader itself (notice the space inside stanzas)
|
* Inserting "_password=<PASSWORD>_" inside an OS stanza will protect with a password that OS, but inserting "_password=<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
|
`boot = /dev/sda
|
||||||
image = /boot/vmlinuz
|
image = /boot/vmlinuz
|
||||||
Label = CRUX
|
Label = <DISTRO_NAME>
|
||||||
root = /dev/sda<PARTITION_NUMBER_OF_DISTRO>
|
root = /dev/sda<PARTITION_NUMBER_OF_DISTRO>
|
||||||
other = /dev/sda<PARTITION_NUMBER_OF_FREEDOS>
|
other = /dev/sda<PARTITION_NUMBER_OF_FREEDOS>
|
||||||
table = /dev/sda
|
table = /dev/sda
|
||||||
@ -139,9 +140,9 @@ mount /dev/sda1 /boot/efi`
|
|||||||
`PROMPT 1
|
`PROMPT 1
|
||||||
TIMEOUT 50
|
TIMEOUT 50
|
||||||
MENU BACKGROUND splash.png
|
MENU BACKGROUND splash.png
|
||||||
DEFAULT CRUX
|
DEFAULT <DISTRO_NAME>
|
||||||
LABEL CRUX
|
LABEL <DISTRO_NAME>
|
||||||
MENU LABEL CRUX
|
MENU LABEL <DISTRO_NAME>
|
||||||
LINUX /boot/vmlinuz
|
LINUX /boot/vmlinuz
|
||||||
INITRD /boot/initramfs.img
|
INITRD /boot/initramfs.img
|
||||||
LABEL FreeDOS
|
LABEL FreeDOS
|
||||||
|
Loading…
Reference in New Issue
Block a user