Advertisement
cirrus

Archlinux install pt1

Apr 28th, 2013
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.60 KB | None | 0 0
  1. // Load UK Keyboard Layout
  2. loadkeys uk
  3.  
  4. ## Disk partitioning with cfdisk
  5. cfdisk
  6.  
  7. #Boot
  8. 1. partition100 - 200 MB Bootable
  9. # Swap depending on memory size
  10. 2. partition(Swap [82])
  11. #Root
  12. 3. partition /
  13. #Home
  14. 4. partition/home/
  15.  
  16. #format partitions
  17. mkfs.ext2 /dev/sda1/
  18. mkswap /dev/sda2/
  19. mkfs.ext4 /dev/sda3/
  20. mkfs.ext4 /dev/sda4/
  21.  
  22. #mount partitions
  23. mount /dev/sda3 /mnt
  24. mkdir -p /mnt/boot
  25. mount /dev/sda1 /mnt/boot
  26. mkdir -p /mnt/home
  27. mount /dev/sda4 /mnt/home
  28. mkswap /dev/sda2
  29. swapon /dev/sda2
  30.  
  31. #Install the base system
  32. pacstrap /mnt base base-devel sudo gpm gdbm iproute2 iw net-tools netcfg pacman-mirrorlist networkmanager
  33.  
  34. #Install boot loader grup2
  35. pacstrap /mnt grub-bios
  36.  
  37. #Generate a fstab with the following command
  38. genfstab -p /mnt >> /mnt/etc/fstab
  39.  
  40. # Next, go into the newly installed system: (chroot)
  41. arch-chroot /mnt
  42.  
  43. #Here enter the PC name (and then save and close)
  44. nano /etc/hostname
  45.  
  46. # Your Current Time Zone (link) up.
  47. ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
  48.  
  49. # Uncomment on your locale parameter.
  50. nano /etc/locale.gen
  51. #after that enter:
  52. locale-gen
  53.  
  54. # Configure / etc mkinitcpio.conf / as needed
  55. # and create an initial ramdisk:
  56. mkinitcpio -p linux
  57.  
  58. #Bootloader configuration & installation:
  59. grub-mkconfig -o /boot/grub/grub.cfg
  60. grub-install /dev/sda
  61.  
  62.  
  63. #The Language Preference (Locale):
  64. nano /etc/locale.conf
  65. #Enter this 2 Lines
  66. LANG=en_GB.UTF-8
  67. LC_COLLATE=C
  68.  
  69. #Setting the keyboard layout:
  70. nano /etc/vconsole.conf
  71. KEYMAP=de-latin1-nodeadkeys
  72.  
  73. #Configuration / etc / pacman.conf
  74. # For 64 Bit Only
  75. nano /etc/pacman.conf
  76.  
  77. # Uncomment this 3 Lines
  78. [multilib]
  79. SigLevel = PackageRequired TrustedOnly
  80. Include = /etc/pacman.d/mirrorlist
  81.  
  82. #Configure Clock
  83. hwclock --systohc --utc
  84.  
  85. #Set root Password
  86. passwd
  87.  
  88. #exit the arch-chroot
  89. exit
  90.  
  91. umount /mnt/boot
  92. umount /mnt/home
  93. umount /mnt
  94.  
  95. #reboot the System
  96. reboot
  97.  
  98. #Enable The Networkmanager
  99. systemctl enable NetworkManager
  100.  
  101. #Clean Reboot
  102. systemctl reboot
  103.  
  104. #Pacman Refresh
  105. pacman -Syu
  106.  
  107. #Install Other necessary services
  108. pacman -S acpid ntp dbus avahi cups
  109.  
  110. #Activate this Services
  111. systemctl enable cronie
  112. systemctl enable acpid
  113. systemctl enable ntpd
  114. systemctl enable avahi-daemon
  115. systemctl enable cups
  116.  
  117. ##Automatic time setting
  118.  
  119. #Add the server for your country
  120. nano /etc/ntp.conf
  121. Once you know which ntp servers you want to use add the servers to /etc/ntp.conf as shown below:
  122. server 0.uk.pool.ntp.org iburst   #UK
  123. server 1.uk.pool.ntp.org iburst   #UK
  124. server 2.uk.pool.ntp.org iburst   #UK
  125. server 3.uk.pool.ntp.org iburst   #UK
  126.  
  127.  
  128. #Sync the Time
  129. ntpd -gq
  130. hwclock -w
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement