kevinjohnson7890

Gentoo X86 32-Bit Installation Guide

Nov 6th, 2022
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. ------------------------------------------------------
  2. GENTOO LINUX X86 32-BIT INSTALLATION GUIDE
  3. -------------------------------------------------
  4. cfdisk /dev/sda
  5. sda1 2gb swap
  6. sda2 rest linux filesystem
  7. ------------------------------
  8. mkswap /dev/sda1
  9. swapon /dev/sda1
  10. mkfs.ext4 /dev/sda2
  11. mkdir /mnt/gentoo
  12. mount /dev/sda2 /mnt/gentoo
  13. ---------------------------------------------
  14. date
  15. ntpd -q -g
  16. cd /mnt/gentoo
  17. links www.gentoo.org/downloads/#x86
  18. download stage3
  19. tar xpvf stage3*.tar.xz --xattrs-include='*.*' --numeric-owner
  20. nano -w /mnt/gentoo/etc/portage/make.conf
  21. COMMON_FLAGS="-02 -march=native"
  22. MAKEOPTS="-j2"
  23. --exit
  24. mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf
  25. mkdir --parents /mnt/gentoo/etc/portage/repos.conf
  26. cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
  27. cp --dereference /etc/resolv.conf /mnt/gentoo/etc
  28. ----------------------------------------------------
  29. mount --types proc /proc /mnt/gentoo/proc
  30. mount --rbind /sys /mnt/gentoo/sys
  31. mount --make-rslave /mnt/gentoo/sys
  32. mount --rbind /dev /mnt/gentoo/dev
  33. mount --make-rslave /mnt/gentoo/dev
  34. mount --rbind /run /mnt/gentoo/run
  35. mount --make-rslave /mnt/gentoo/run
  36. ------------------------------------------------
  37. chroot /mnt/gentoo /bin/bash
  38. source /etc/profile
  39. export PS1="(chroot) ${PS1}"
  40. --------------------------------------------
  41. emerge-webrsync
  42. emerge --sync
  43. eselect news list
  44. eselect news read
  45. eselect news purge
  46. eselect profile list
  47. eselect profile set n
  48. ----------------------------------------------------
  49. emerge --ask --verbose --update --deep --newuse @world
  50. nano -w /etc/portage/make.conf
  51. ACCEPT_LICENSE="-* @BINARY-REDISTRIBUTABLE"
  52. --exit
  53. ls /usr/share/zoneinfo/
  54. echo "Europe/Rome" > /etc/timezone
  55. emerge --config sys-libs/timezone-data
  56. -------------------------------------------
  57. nano -w /etc/locale.gen
  58. en_US ISO-8859-1
  59. en_US.UTF-8 UTF-8
  60. --exit
  61. locale-gen
  62. eselect locale list
  63. eselect locale set n
  64. env-update && source /etc/profile && export PS1="(chroot) ${PS1}"
  65. -------------------------------------------------
  66. echo "sys-kernel/linux-firmware @BINARY-REDISTRIBUTABLE" | tee -a /etc/portage/package.license
  67. echo "sys-kernel/genkernel @BINARY-REDISTRIBUTABLE" | tee -a /etc/portage/package.license
  68. emerge --ask sys-kernel/linux-firmware
  69. emerge --ask sys-kernel/gentoo-sources
  70. eselect kernel list
  71. eselect kernel set n
  72. emerge --ask sys-kernel/genkernel
  73. genkernel all
  74. ls /boot/vmlinu* /boot/initramfs*
  75. -------------------------------------------
  76. blkid
  77. nano -w /etc/fstab
  78. /dev/sda1 /boot ext4 defaults,noatime 1 2
  79. /dev/sda2 none swap sw 0 0
  80.  
  81. /dev/cdrom /mnt/cdrom auto noauto,user 0 0
  82. -----------------------------------------
  83. nano -w /etc/conf.d/hostname
  84. hostname="tux"
  85. --exit
  86. nano -w /etc/conf.d/net
  87. dns_domain_lo="homenetwork"
  88. --exit
  89. emerge --ask net-misc/dhcpcd
  90. rc-update add dhcpcd default
  91. rc-service dhcpcd start
  92. emerge --ask --noreplace net-misc/netifrc
  93. nano -w /etc/conf.d/net
  94. config_enp0s3="dhcp"
  95. --exit
  96. cd /etc/init.d
  97. ln -s net.lo net.enp0s3
  98. rc-update add net.enp0s3 default
  99. nano -w /etc/hosts
  100. 127.0.0.1 tux.homenetwork tux.localhost
  101. --exit
  102. passwd (setup root password)
  103. qbdhsjtudk175320/*-
  104. -----------------------------------------------------
  105. emerge --ask app-admin/sysklogd
  106. rc-update add sysklogd default
  107. emerge --ask sys-process/cronie
  108. rc-update add cronie default
  109. emerge --ask sys-apps/mlocate
  110. rc-update add sshd default
  111. --------------------------------------------------------
  112. emerge --ask --verbose sys-boot/grub
  113. emerge --ask neofetch htop cmatrix
  114. libtool --finish /usr/lib
  115. emerge --ask sudo
  116. emerge --ask nano
  117. eselect editor list
  118. eselect editor set n
  119. source /etc/profile
  120. export PS1="(chroot) ${PS1}"
  121. grub-install /dev/sda --target=i386-pc --bootloader-id="Gentoo Linux [GRUB]"
  122. grub-mkconfig -o /boot/grub/grub.cfg
  123. ------------------------------------------------
  124. exit
  125. cd
  126. umount -l /mnt/gentoo/dev/{/shm,/pts,}
  127. umount -R /mnt/gentoo
  128. reboot
  129. ----------------------------------------------------------
  130. useradd john
  131. passwd john qweiop1290/*-
  132. usermod -G wheel,audio,portage john
  133. EDITOR=nano visudo
  134. --------------------------------------------------
Tags: gentoo
Advertisement
Add Comment
Please, Sign In to add comment