Guest User

Untitled

a guest
Jun 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. ###### establecer la distribucion del teclado (latino america);
  2. ```bash
  3. root@archlinux# loadkeys la-latin1
  4. ```
  5.  
  6. ###### Preparar particiones: cfdisk OR fdisk y crear 4 particiones (swap, boot, home, root)
  7.  
  8. ```bash
  9.  
  10. root@archlinux# lsblk
  11. root@archlinux# fdisk /dev/sda
  12. ```
  13.  
  14. ###### FORMATEO DE UNIDADES
  15. ```bash
  16. root@archlinux# mkfs.ext4 /dev/sda1 -L "ArchLinuxBoot"
  17. root@archlinux# mkfs.ext4 /dev/sda2 -L "boot"
  18. root@archlinux# mkfs.ext4 /dev/sda3 -L "home"
  19. root@archlinux# mkfs.ext4 /dev/sda4 -L "root"
  20.  
  21. root@archlinux# mkswap /dev/sda1
  22. ```
  23. ###### MONTAR PARTICIONES
  24.  
  25. ```bash
  26. # Montar la particion root en /mnt:
  27. root@archlinux# mount /dev/sda2 /mnt
  28.  
  29. # se crean los directorios de las particiones
  30. root@archlinux# mkdir /mnt/boot
  31. root@archlinux# mkdir /mnt/home
  32. root@archlinux# mkdir /mnt/{boot,home}
  33.  
  34. # Montar las particiones correspondientes:
  35. root@archlinux# mount /dev/sda1 /mnt/boot
  36. root@archlinux# mount /dev/sda3 /mnt/home
  37.  
  38. # activar la swap:
  39. root@archlinux# swapon /dev/sda4
  40.  
  41. # Revisar particiones generadas
  42. root@archlinux# lsblk
  43. ```
  44.  
  45. ###### verificar si estamos conectados a internet
  46.  
  47. ```bash
  48. root@archlinux# ping -c 3 8.8.8.8
  49.  
  50. #Buscar el servidor mas cercano de tu pais
  51. #copiarlo y ponerlo en las primeras lineas para darle prioridad a las descargas
  52. root@archlinux# vi /etc/pacman.d/mirrorlist
  53.  
  54. # Actualizar los la lista de packetes disponibles
  55. root@archlinux# pacman -Syy
  56.  
  57. # actualizar las llaves de pacman
  58. root@archlinux# pacman-key --init
  59. root@archlinux# pacman-key --populate archlinux
  60. ```
  61.  
  62. ###### instalacion de la base del sistema
  63. ```bash
  64. root@archlinux# pacstrap /mnt base base-devel
  65. ```
  66.  
  67. ###### generamos el archivo fstab en la tabla de montado de particiones
  68. ```bash
  69. root@archlinux# genfstab -p -U /mnt >> /mnt/etc/fstab
  70. ```
  71.  
  72. ###### comprobamos la instalacion de la base de linux
  73. ```bash
  74. root@archlinux# cat /mnt/etc/fstab
  75. ```
  76.  
  77. ###### Entrar al bash con el usuario root, aqui estas dentro de sistema
  78. ```bash
  79. root@archlinux# arch-chroot /mnt /bin/bash
  80.  
  81. root@archlinux# pacman -S grub os-prober
  82.  
  83. root@archlinux# grub-install --recheck --target=i386-pc /dev/sda
  84.  
  85. root@archlinux# grub-mkconfig -o /boot/grub/grub.cfg
  86.  
  87. root@archlinux# mkinitcpio -p linux
  88.  
  89. root@archlinux# umoun -R /mnt
  90. root@archlinux# reboot
  91. ```
Add Comment
Please, Sign In to add comment