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.

132 lines
4.0 KiB

3 years ago
3 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 summary of the steps to follow are:
  6. ## Basic keymap configuration
  7. ```
  8. $ setfont ter-132n
  9. $ loadkeys es
  10. $ timedatectl set-ntp true
  11. ```
  12. ## Internet connection
  13. If there is possible get access through a Ethernet cable, otherwise configure the Wi-Fi connection
  14. ### Wifi on MacBook Air
  15. ```
  16. # rmmod b43 ssb bcma wl
  17. # modprobe wl
  18. # iwctl
  19. ```
  20. #### iwctl
  21. To get an interactive prompt do:
  22. `$ iwctl`
  23. The interactive prompt is then displayed with a prefix of [iwd]#.
  24. Tip:
  25. In the iwctl prompt you can auto-complete commands and device names by hitting Tab.
  26. To exit the interactive prompt, send EOF by pressing Ctrl+d.
  27. You can use all commands as command line arguments without entering an interactive prompt. For example: iwctl device wlan0 show.
  28. To list all available commands:
  29. ``` shell
  30. [iwd]# help
  31. Connect to a network
  32. First, if you do not know your wireless device name, list all Wi-Fi devices:
  33. [iwd]# device list
  34. Then, to scan for networks:
  35. [iwd]# station device scan
  36. You can then list all available networks:
  37. [iwd]# station device get-networks
  38. Finally, to connect to a network:
  39. [iwd]# station device connect SSID
  40. 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.
  41. To test wifi use:
  42. $ ping 8.8.8.8
  43. ```
  44. ## Refresh the servers
  45. Refresh the servers with
  46. `$ pacman -Syy`
  47. ## Partition disk
  48. first verify your boot mode by using:
  49. `ls /sys/firmware/efi/efivars`
  50. if you have an answer from the system you will use the `efi`installation mode.
  51. Then, use `lsblk` to determine your device name and topology:
  52. ```
  53. $ lsblk
  54. ```
  55. then create the next partitions using:
  56. ``` shell
  57. $ cgdisk /dev/sda
  58. ```
  59. **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**
  60. - Size, Type(code), Name
  61. - 1. 512M, EFI(ef00), boot
  62. - 2. 4G(your ram size), Linux swap(8200), swap
  63. - 3. (your desicion), Linux filesystem(8300), arch
  64. - 4. (rest of disk), 8300, home
  65. ## Mount and install system
  66. ```
  67. $ mount /dev/sda3 /mnt
  68. $ mkdir -p /mnt/boot/efi
  69. $ mkdir /mnt/home
  70. $ mount /dev/sda1 /mnt/boot/efi
  71. $ mount /dev/sda4 /mnt/home
  72. ```
  73. ## Install base system and configure it
  74. 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`
  75. ```
  76. $ pacstrap /mnt base linux linux-firmware git vim broadcom-wl-dkms linux-headers
  77. $ genfstab -U /mnt >> /mnt/etc/fstab
  78. $ arch-chroot /mnt
  79. $ git clone ssh://git@gmarxcc.com:2222/gmarx/arch-basic.git
  80. $ cd arch-basic
  81. $ ./base-uefi.sh
  82. ```
  83. check also the file `/etc/mkinitcpio.conf` to select properly the video drivers
  84. ```
  85. MODULES=(radeon) en el archivo
  86. mkinitcpio -p linux
  87. ```
  88. ## Install the Xorg display server
  89. 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:
  90. ``` shell
  91. $ ./xorg-basic.sh
  92. ```
  93. **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.**