Advertisement
rodneys_mission

Gentoo - partial install commands

Jan 5th, 2020
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.50 KB | None | 0 0
  1. swapon /dev/sda6
  2. mount /dev/sda7 /mnt/gentoo
  3. date
  4. ntpd -q -g
  5. date
  6.  
  7. nano -w /mnt/gentoo/etc/portage/make.conf
  8. MAKEOPTS="-j5"
  9.  
  10. mount --types proc /proc /mnt/gentoo/proc
  11. mount --rbind /sys /mnt/gentoo/sys
  12. mount --make-rslave /mnt/gentoo/sys
  13. mount --rbind /dev /mnt/gentoo/dev
  14. mount --make-rslave /mnt/gentoo/dev
  15.  
  16. test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
  17. mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm
  18.  
  19. chroot /mnt/gentoo /bin/bash
  20. source /etc/profile
  21. export PS1="(chroot) ${PS1}"
  22.  
  23. mount /dev/sda5 /boot
  24. emerge --sync
  25.  
  26. eselect profile list
  27. -- [16] amd64/17.1 (stable)
  28.  
  29. emerge --ask --verbose --update --deep --newuse @world
  30. nano -w /etc/portage/make.conf
  31. USE="-bluetooth -cups -gnome -kde -qt4 -qt5 -pcmcia smp -systemd -wifi"
  32.  
  33. ls /usr/share/zoneinfo
  34. echo 'US/Central' > /etc/timezone
  35. emerge --config sys-libs/timezone-data
  36. nano -w /etc/locale.gen
  37. locale-gen
  38. eselect locale list
  39. #set en_US.utf8
  40. nano /etc/env.d/02locale
  41. LC_COLLATE="C"
  42. env-update && source /etc/profile && export PS1="(chroot) ${PS1}"
  43.  
  44. emerge --ask sys-kernel/gentoo-sources
  45. emerge --ask sys-apps/pciutils
  46. make menuconfig
  47. make && make modules_install
  48. make install
  49.  
  50. nano /etc/fstab
  51. /dev/sda2   /boot        ext2    defaults,noatime     0 2
  52. /dev/sda3   none         swap    sw                   0 0
  53. /dev/sda4   /            ext4    noatime              0 1
  54. /dev/cdrom  /mnt/cdrom   auto    noauto,user          0 0
  55.  
  56. nano -w /etc/conf.d/hostname
  57. hostname="tux"
  58. emerge --ask --noreplace net-misc/netifrc
  59.  
  60. nano /etc/conf.d/net
  61. dns_domain_lo="new-page"
  62. config_eth0="dhcp"
  63.  
  64. cd /etc/init.d && ln -s net.lo net.eth0 && rc-update add net.eth0 default
  65.  
  66. nano -w /etc/conf.d/hwclock
  67. # set to local
  68.  
  69. emerge --ask app-admin/sysklogd
  70. rc-update add sysklogd default
  71. emerge --ask app-admin/logrotate
  72.  
  73. nano /etc/logrotate.d/portage
  74. >>
  75. /var/log/portage/*.log {
  76.     su portage portage
  77.     createolddir 755 portage portage
  78.     rotate 1
  79.     weekly
  80.     nocreate
  81.     missingok
  82.     ifempty
  83.     olddir /var/log/portage/old
  84.     compress
  85. }
  86. <<
  87.  
  88. emerge --ask sys-process/cronie && rc-update add cronie default && crontab /etc/crontab
  89. rc-update add sshd default
  90. emerge --ask sys-fs/e2fsprogs sys-fs/dosfstools
  91. emerge --ask net-misc/dhcpcd
  92.  
  93. emerge --ask --verbose sys-boot/grub:2
  94. grub-install /dev/sda
  95. emerge --ask --verbose sys-boot/os-prober app-portage/cfg-update
  96. # change merge app to 'sdiff'
  97.  
  98. cd && umount -l /mnt/gentoo/dev{/shm,/pts,} && umount -R /mnt/gentoo && reboot
  99.  
  100. # Early emerge-d packages:
  101. # /etc/ customizations
  102.  
  103. #sshd_config
  104. X11Forwarding yes
  105. X11UseLocalhost no
  106. #rsync for android:
  107. PubkeyAcceptedKeyTypes=+ssh-dss
  108.  
  109. #cfg-update.conf
  110. #MERGE_TOOL = /usr/bin/meld
  111. MERGE_TOOL = /usr/bin/sdiff
  112.  
  113. #make.conf
  114. MAKEOPTS="-j5"
  115. USE="-bluetooth -cups -gnome -kde -qt4 -qt5 -pcmcia smp -systemd -wifi"
  116. L10N="en en-GB en-US"
  117.  
  118. #http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo
  119. GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://mirror.sjc02.svwh.net/gentoo/ http://gentoo.cs.utah.edu/"
  120.  
  121. #sudoers.d/rodney
  122. rodney new-page = (ALL) ALL
  123.  
  124. #more emerge
  125. app-misc/figlet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement