Archlinux basic installation configuration scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
4.8 KiB

3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # Arch Basic Install Commands-Script
  2. In this repository you will find packages-scripts for the base install of Arch Linux and the Gnome, KDE, Cinnamon and Xfce desktop environments. More to come for Windows Managers soon.
  3. Modify the packages to your liking, make the script executable with `chmod +x scriptname` and then run with `./scriptname`.
  4. Remember that the first part of the Arch Linux install is manual, that is you will have to partition, format and mount the disk yourself. Install the base packages and make sure to include `git` so that you can clone the repository in `chroot`.
  5. A small summary:
  6. 1. If needed, load your keymap
  7. 2. Refresh the servers with pacman -Syy
  8. 3. Partition the disk
  9. 4. Format the partitions
  10. 5. Mount the partitions
  11. 6. Install the base packages into /mnt (pacstrap /mnt base linux linux-firmware git vim intel-ucode (or amd-ucode))
  12. 7. Generate the FSTAB file with genfstab -U /mnt >> /mnt/etc/FSTAB
  13. 8. Chroot in with arch-chroot /mnt
  14. 9. Download the git repository with git clone https://gitlab.com/eflinux/arch-basic
  15. 10. cd arch-basic
  16. 11. chmod +x install-uefi.sh
  17. 12. run with ./install-uefi.sh
  18. ## Basic keymap configuration
  19. ```
  20. $ setfont ter-132n
  21. $ loadkeys es
  22. $ timedatectl set-ntp true
  23. ```
  24. ## Internet connection
  25. If there is possible get access through a Ethernet cable, otherwise configure the Wi-Fi connection
  26. ### Wifi on MacBook Air
  27. ```
  28. # rmmod b43 ssb bcma wl
  29. # modprobe wl
  30. # iwctl
  31. ```
  32. #### iwctl
  33. To get an interactive prompt do:
  34. `$ iwctl`
  35. The interactive prompt is then displayed with a prefix of [iwd]#.
  36. Tip:
  37. In the iwctl prompt you can auto-complete commands and device names by hitting Tab.
  38. To exit the interactive prompt, send EOF by pressing Ctrl+d.
  39. You can use all commands as command line arguments without entering an interactive prompt. For example: iwctl device wlan0 show.
  40. To list all available commands:
  41. ``` shell
  42. [iwd]# help
  43. Connect to a network
  44. First, if you do not know your wireless device name, list all Wi-Fi devices:
  45. [iwd]# device list
  46. Then, to scan for networks:
  47. [iwd]# station device scan
  48. You can then list all available networks:
  49. [iwd]# station device get-networks
  50. Finally, to connect to a network:
  51. [iwd]# station device connect SSID
  52. Tip: The user interface supports autocomplete, by typing station and Tab Tab, the available devices are displayed, type the first letters of the device and Tab to complete.
  53. To test wifi use:
  54. $ ping 8.8.8.8
  55. ```
  56. ## Refresh the servers
  57. Refresh the servers with
  58. `$ pacman -Syy`
  59. ## Partition disk
  60. first verify your boot mode by using:
  61. `ls /sys/firmware/efi/efivars`
  62. if you have an answer from the system you will use the `efi`installation mode.
  63. Then, use `lsblk` to determine your device name and topology:
  64. ```
  65. $ lsblk
  66. ```
  67. then create the next partitions using:
  68. ``` shell
  69. $ cgdisk /dev/sda
  70. ```
  71. **From here and now, the HD path (/dev/sda) will depend from the number and order of your hard drives. Thus, please verify the path structure and size with `lsblk` command. Therefore, in the next steps change the path for your preferred one**
  72. - Size, Type(code), Name
  73. - 1. 512M, EFI(ef00), boot
  74. - 2. 4G(your ram size), Linux swap(8200), swap
  75. - 3. (your desicion), Linux filesystem(8300), arch
  76. - 4. (rest of disk), 8300, home
  77. ## Format the partitions
  78. For EFI partitions use:
  79. ```
  80. mkfs.vfat /dev/sda1
  81. ```
  82. For swap partitions use:
  83. ```
  84. mksawp /dev/sda2
  85. swapon /dev/sda2
  86. ```
  87. For ext4 partitions use:
  88. ```
  89. mkfs.ext4 /dev/sda3
  90. mkfs.ext4 /dev/sda4
  91. mkfs.ext4 /dev/sda5
  92. ```
  93. ## Mount and install system
  94. ```
  95. $ mount /dev/sda3 /mnt
  96. $ mkdir -p /mnt/boot/efi
  97. $ mkdir /mnt/home
  98. $ mount /dev/sda1 /mnt/boot/efi
  99. $ mount /dev/sda4 /mnt/home
  100. ```
  101. ## Install base system and configure it
  102. To install the basic or base system you will use the scripts in this repository. To install the base system modify the file `base-uefi.sh` to your needs. The minimal packages and configuration is already done in the file. However, change your `user-name` and the root `password`
  103. ```
  104. $ pacstrap /mnt base linux linux-firmware git vim broadcom-wl-dkms linux-headers
  105. $ genfstab -U /mnt >> /mnt/etc/fstab
  106. $ arch-chroot /mnt
  107. $ git clone http://gmarxcc.com:8088/gmarx/arch-basic.git
  108. $ cd arch-basic
  109. $ ./base-uefi.sh
  110. ```
  111. check also the file `/etc/mkinitcpio.conf` to select properly the video drivers
  112. ```
  113. MODULES=(radeon) en el archivo
  114. mkinitcpio -p linux
  115. ```
  116. ## Install the Xorg display server
  117. To install the most basic Windows System (also useful to work with DWM -Dynamic Window Manager-) or X System run the script `xorg-basic.sh`, also available in this repository by:
  118. ``` shell
  119. $ ./xorg-basic.sh
  120. ```
  121. **Note: it is widely recommended to work with dwm and the suckles applications. Visit the repository: http://gmarxcc.com:8088/Linux/dwm, already prepared to run in Apple Hardware. To implement the dwm in other platforms search the suckless web.**