Guest User

Untitled

a guest
Nov 12th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1.  
  2. Overview
  3. --------
  4. + Vanilla install in VMWare, using the 11.01.2013 x86_x64 media.
  5. + All disks are 1MB aligned by gdisk.
  6. + Bootloader is initialized by BIOS, not UEFI.
  7. + The boot partition is created with 2MB of preceding space to leave necessary space for embedding grub's core.img.
  8. + I have not added a swap partition, since this is a VM and I don't need suspend-to-disk support.
  9. + I have not added any disk encryption, since this is a VM installed on a system that already has full disk encryption.
  10.  
  11. VM Specifications
  12. -----------------
  13. Kernel: Other Linux 3.X 64 Bit Kernel
  14. Memory: 4096
  15. Processors: 2x2
  16. Disk Size: 20GB
  17.  
  18. Disk Layout
  19. -----------
  20.  
  21. | Partition | START | END | SIZE | FLAGS | TYPE | FS | MOUNT |
  22. | --------- | ----- | ------ | ----- | ----- | ---- | ---- | ----- |
  23. | /dev/sda1 | +2M | +1024M | 1024M | BOOT | EF02 | EXT2 | /boot |
  24. | /dev/sda2 | * | * | 19G | N/A | 8300 | EXT4 | / |
  25.  
  26. # load the keymap
  27. loadkeys us
  28.  
  29. # update the installation media & install gdisk
  30. pacman -Syu
  31. pacman -S gdisk
  32.  
  33. # partition the disks per the layout above
  34. gdisk /dev/sda
  35.  
  36. # create and mount file systems
  37. mkfs -t ext2 /dev/sda1
  38. mkfs -t ext4 /dev/sda2
  39. mount /dev/sda2 /mnt
  40. mkdir -p /mnt/boot
  41. mount /dev/sda1 /mnt/boot
  42.  
  43. # install the base system with pacstrap
  44. pacstrap /mnt base base-devel grub
  45.  
  46. # generate fstab
  47. genfstab -p /mnt >> /mnt/etc/fstab
  48.  
  49. # chroot into new environment
  50. arch-chroot /mnt
  51.  
  52. # set hostname
  53. echo "elysium" > /etc/hostname
  54.  
  55. # set root password
  56. passwd
  57.  
  58. # provide sudo group with sudo privileges
  59. visudo
  60.  
  61. # create the sudo group
  62. groupadd sudo
  63.  
  64. # create new user
  65. useradd -m -g users -G sudo -s /bin/bash oxsyn
  66. passwd oxsyn
  67.  
  68. # set the timezone
  69. ln -s /usr/share/zoneinfo/US/Mountain /etc/localtime
  70.  
  71. # configure locales
  72. sed '/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/s' /etc/locale.gen > /tmp/locale.gen && cat /tmp/locale.gen > /etc/locale.gen
  73. locale-gen
  74. locale >> /etc/locale.conf
  75.  
  76. # set the system time to utc
  77. hwclock --systohc --utc
  78.  
  79. # build ramdisk image
  80. mkinitcpio -p linux
  81.  
  82. # build & install bootloader
  83. grub-mkconfig -o /boot/grub/grub.cfg
  84. grub-install /dev/sda
  85.  
  86. # exit the new environment
  87. exit
  88.  
  89. # unmount systems & reboot environment
  90. umount /mnt/boot
  91. umount /mnt
  92. reboot
Advertisement
Add Comment
Please, Sign In to add comment