astrutt

GENTOO QUICK INSTALL COMMANDS WITH NETWORK/INTERNET

May 17th, 2017
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. ## GENTOO QUICK INSTALL COMMANDS WITH NETWORK/INTERNET ##
  2.  
  3. cfdisk /dev/sda
  4. mke2fs /dev/sda1
  5. mke2fs -j -O dir_index /dev/sda3
  6. mkswap /dev/sda2 && swapon /dev/sda2
  7. mount /dev/sda3 /mnt/gentoo
  8. mkdir /mnt/gentoo/boot
  9. mount /dev/sda1 /mnt/gentoo/boot
  10. cd /mnt/gentoo
  11. wget ftp://lug.mtu.edu/gentoo/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64*.tar.bz2
  12. time tar xjpf stage3*
  13. cd /mnt/gentoo/usr
  14. wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2
  15. time tar xjf portage*
  16. cd /
  17. mount -t proc proc /mnt/gentoo/proc
  18. mount --rbind /dev /mnt/gentoo/dev
  19. mount --rbind /sys /mnt/gentoo/sys
  20. cp -L /etc/resolv.conf /mnt/gentoo/etc/
  21. chroot /mnt/gentoo /bin/bash
  22. env-update && source /etc/profile
  23.  
  24. #### ALMOST DONE ####
  25.  
  26. ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  27. echo "America/New_York" > /etc/timezone
  28. date
  29. cd /etc
  30. nano -w /etc/hosts
  31. nano -w /etc/conf.d/hostname
  32. time emerge --sync
  33. ### update portage if needed ###
  34. time emerge portage
  35. eselect profile set 1
  36. ### conf kernel per hardware ###
  37. time emerge gentoo-sources grub pciutils genkernel
  38. nano -w /etc/fstab
  39. ## READY ?? ##
  40. nano -w /etc/genkernel.conf
  41. time genkernel --install all
  42. grub-install /dev/sda
  43. grub-mkconfig -o /boot/grub/grub.cfg
  44. ## kernel done / installed ##
  45. cd /etc/conf.d
  46. echo 'config_eth0=( "192.168.1.10/24" )' >> net
  47. echo 'routes_eth0=( "default gw 192.168.1.1" )' >> net
  48. rc-update add sshd default
  49. ## SET ROOT PW ##
  50. passwd root
  51. nano -w /etc/conf.d/hwclock
  52. nano -w /etc/rc.conf
  53. nano -w /etc/conf.d/rc
  54. nano -w /etc/conf.d/keymaps
  55. time emerge syslog-ng vixie-cron
  56. rc-update add syslog-ng default
  57. rc-update add vixie-cron default
  58. time emerge mirrorselect
  59. mirrorselect -s3 -b10 -o -D >> /etc/portage/make.conf
  60. time emerge dhcpcd uptimed app-misc/screen ntp mlocate ccze htop app-admin/logrotate gentoolkit bind-tools
  61. rc-update add ntp-client default
  62. rc-update add ntpd default
  63. rc-update add uptimed boot
  64.  
  65. ## DONE !! ##
  66.  
  67. * add "vga=791 splash=silent,theme:gentoo console=tty1 quiet" if you use a splash framebuffer
  68. * With support for several ext* filesystems available, it may be needed to
  69. * add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.
Advertisement
Add Comment
Please, Sign In to add comment