Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 5th, 2011  |  syntax: None  |  size: 3.30 KB  |  views: 143  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --Order of Commands--
  2.  
  3.  
  4.  
  5. ls /dev|grep sd
  6.  
  7. cfdisk /dev/sda
  8.  
  9. Create 100MB Partition Bootable at the Beginning
  10.  
  11. Create 2048MB Partition at the beginning
  12.  
  13. Create remaining free space partition at the beginning
  14.  
  15. <--Not code, just instruction-->Write tables to disk
  16.  
  17. <--Not code, just instruction-->Quit cfdisk
  18.  
  19. mkfs.ext2 /dev/sda1
  20.  
  21. mkswap /dev/sda2
  22.  
  23. mkfs.reiserfs /dev/sda3
  24.  
  25. mount -t reiserfs /dev/sda3 /mnt/gentoo ; cd /mnt/gentoo
  26.  
  27. wget http://gentoo.arcticnetwork.ca/releases/x86/current-stage3/stage3-i686-20110614.tar.bz2
  28.  
  29. tar xpjf stage3<press tab and it will autocomplete>
  30.  
  31. swapon /dev/sda2
  32.  
  33. cp /etc/resolv.conf /mnt/gentoo/resolv.conf
  34.  
  35. mount /dev/sda1 /mnt/gentoo/boot
  36.  
  37. mount -t proc none /mnt/gentoo/proc
  38.  
  39. mount -o bind /dev /mnt/gentoo/dev
  40.  
  41. cd usr/
  42.  
  43. wget http://gentoo.arcticnetwork.ca/releases/snapshots/current/portage-latest.tar.bz2
  44.  
  45. tar xjf portage-latest.tar.bz2
  46.  
  47. rm -vf /mnt/gentoo/etc/make.co*
  48.  
  49. nano /mnt/gentoo/etc/make.conf
  50.  
  51.  
  52.  
  53. #the following belongs in your make.conf file
  54.  
  55.        
  56.  
  57. CFLAGS="-fomit-frame-pointer -fstack-protector-all -falign-functions=32 -falign-loops=32 -fforce-addr -Os -pipe -march=native"
  58.  
  59.         CXXFlags="-fomit-frame-pointer -fstack-protector-all -falign-functions=32 -falign-loops=32 -fforce-addr -Os -pipe -march=native"
  60.  
  61.        
  62.  
  63.         #CHOST for 32bit users uncomment the following line
  64.  
  65.         #CHOST="i686-pc-linux-gnu"
  66.  
  67.         #CHOST for 64bit users. Uncomment the next line
  68.  
  69.         #CHOST="x86_64-pc-linux-gnu"
  70.  
  71.  
  72.  
  73.         FEATURES="metadata-transfer sandbox candy"
  74.  
  75.  
  76.  
  77.         USE="gtk truetype postgres freetype jpg jpeg png gif imap ttf winscp passwd scp X gnutls mysql v4l2 extras lisp threads ithreads acpi bash-completion bzip2 crypt cracklib css ctype apache2 curl curlwrappers dbus encode ftp gcj gd geoip udev ipv6 lua ncurses nsplugin python readline sockets socks5 sqlite sse sse2 ssl suid unicode vim-syntax xml php perlsuid"
  78.  
  79.  
  80.  
  81. Ctrl+alt+f2
  82.  
  83. grep -ci cores /proc/cpuinfo
  84.  
  85. Ctrl+alt+f1
  86.  
  87.  
  88.  
  89. #Replace NUMBER with 1 higher than our grep command gave us. For one core, you'd have "-j2".
  90.  
  91. MAKEOPTS="-jNUMBER -s"
  92.  
  93.  
  94.  
  95. ^x Y Enter
  96.  
  97.  
  98.  
  99. chroot /mnt/gentoo /bin/bash --login
  100.  
  101. echo nameserver 4.2.2.1 > /etc/resolv.conf
  102.  
  103. echo nameserver 4.2.2.2 >> /etc/resolv.conf
  104.  
  105. emerge -q --sync
  106.  
  107. emerge -q axel
  108.  
  109. nano -w /etc/make.conf
  110.  
  111.  
  112.  
  113. FETCHCOMMAND="/usr/bin/axel -n 8 -o /\${DISTDIR}/\${FILE} -a \${URI}"
  114.  
  115. RESUMECOMMAND="/usr/bin/axel -n 8 -o /\${DISTDIR}/\${FILE} -a \${URI}"
  116.  
  117.  
  118.  
  119. ^x Y Enter
  120.  
  121.  
  122.  
  123. emerge -qN pciutils coreutils baselayout hardened-sources world
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143. -----------------------
  144.  
  145. ----Troubleshooting----
  146.  
  147. -----------------------
  148.  
  149.  
  150.  
  151. --For issues with reiserfs--
  152.  
  153.  
  154.  
  155. In stead of running the command
  156.  
  157. mkfs.reiserfs /dev/sda3
  158.  
  159.  
  160.  
  161. run the command
  162.  
  163. mkfs.ext4 /dev/sda3
  164.  
  165.  
  166.  
  167. then in stead of
  168.  
  169. mount -t reiserfs /dev/sda3 /mnt/gentoo
  170.  
  171.  
  172.  
  173. run
  174.  
  175. mount -t ext4 /dev/sda3 /mnt/gentoo
  176.  
  177.  
  178.  
  179. If you have followed these instructions, and are still having issues,
  180.  
  181. please let us know.
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. --For internet problems--
  190.  
  191.  
  192.  
  193. killall -9 dhcpd
  194.  
  195. ifconfig eth0 up
  196.  
  197. dhcpcd eth0
  198.  
  199. echo nameserver 4.2.2.1 > /etc/resolv.conf
  200.  
  201. echo nameserver 4.2.2.2 >> /etc/resolv.conf
  202.  
  203. ping -c1 google.com
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211. --Manual IP and Gateway Setup--
  212.  
  213.  
  214.  
  215. ifconfig eth0 xxx.xxx.xxx.xxx up
  216.  
  217. route add default gw xxx.xxx.xxx.xxx
clone this paste RAW Paste Data