├── etc ├── setup.conf ├── reserved_usernames ├── nvidia_340_pci_ids └── nvidia_390_pci_ids ├── README.md ├── LICENSE └── setup /etc/setup.conf: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # arch-setup configuration file. It defines variables used by the installer. 3 | # This file should NOT be modified unless you know what you are doing. 4 | 5 | # Essential packages 6 | BASE_PACKAGES=('base' 'base-devel' 'linux' 'linux-firmware' 'grub' 'networkmanager') 7 | BASE_ESSENTIALS=('man-db' 'man-pages' 'texinfo' 'nano') 8 | # Packages that will be installed whenever a GUI is installed 9 | DESKTOP_DEFAULTS=('gvfs' 'pavucontrol' 'pulseaudio' 'pulseaudio-alsa' 'ttf-dejavu' 'xdg-user-dirs' 'xf86-input-libinput' 'xorg-apps' 'xorg-server' 'xterm') 10 | UEFI=false 11 | bluetooth=false 12 | installed=false 13 | mounted=false 14 | 15 | # LVM naming 16 | LVM_GROUP="arch_vg" 17 | LVM_ROOT="root" 18 | LVM_SWAP="swap" 19 | CRYPT_DEVICE_NAME="cryptlvm" 20 | 21 | # System info 22 | architecture=$(lscpu | grep 'Architecture' | awk '{print $2}') 23 | hypervisor=$(systemd-detect-virt) 24 | 25 | # Check for UEFI 26 | if [ -d /sys/firmware/efi ]; then 27 | UEFI=true 28 | fi 29 | 30 | # Check for bluetooth support 31 | if dmesg | grep -iq "blue"; then 32 | bluetooth=true 33 | fi 34 | -------------------------------------------------------------------------------- /etc/reserved_usernames: -------------------------------------------------------------------------------- 1 | # List of reserved usernames used to avoid any conflict when creating a user. 2 | # https://salsa.debian.org/installer-team/user-setup/raw/master/reserved-usernames 3 | 4 | # Static users from base-passwd/passwd.master (3.5.41). 5 | root 6 | daemon 7 | bin 8 | sys 9 | sync 10 | games 11 | man 12 | lp 13 | mail 14 | news 15 | uucp 16 | proxy 17 | www-data 18 | backup 19 | list 20 | irc 21 | gnats 22 | nobody 23 | 24 | # Other static groups from base-passwd/group.master (3.5.41). 25 | adm 26 | tty 27 | disk 28 | kmem 29 | dialout 30 | fax 31 | voice 32 | cdrom 33 | floppy 34 | tape 35 | sudo 36 | audio 37 | dip 38 | operator 39 | src 40 | shadow 41 | utmp 42 | video 43 | sasl 44 | plugdev 45 | staff 46 | users 47 | nogroup 48 | 49 | # Reserved usernames listed in base-passwd/README (3.5.41). 50 | netplan 51 | ftn 52 | mysql 53 | tac-plus 54 | alias 55 | qmail 56 | qmaild 57 | qmails 58 | qmailr 59 | qmailq 60 | qmaill 61 | qmailp 62 | asterisk 63 | vpopmail 64 | vchkpw 65 | slurm 66 | hacluster 67 | haclient 68 | grsec-tpe 69 | grsec-sock-all 70 | grsec-sock-clt 71 | grsec-sock-srv 72 | grsec-proc 73 | ceph 74 | opensrf 75 | libvirt-qemu 76 | 77 | # Ubuntu creates the admin group and adds the first user to it in order to 78 | # grant them sudo privileges. 79 | admin 80 | 81 | # Other miscellaneous system users/groups created by common packages. While 82 | # it's useful to add things here that people might run into, it's not 83 | # absolutely critical; the worst that will happen is that the installation 84 | # will fail at some later point. 85 | Debian-exim 86 | bind 87 | crontab 88 | cupsys 89 | dcc 90 | dhcp 91 | dictd 92 | dnsmasq 93 | dovecot 94 | fetchmail 95 | firebird 96 | ftp 97 | fuse 98 | gdm 99 | haldaemon 100 | hplilp 101 | identd 102 | jwhois 103 | klog 104 | lpadmin 105 | messagebus 106 | mythtv 107 | netdev 108 | powerdev 109 | radvd 110 | saned 111 | sbuild 112 | scanner 113 | slocate 114 | ssh 115 | sshd 116 | ssl-cert 117 | sslwrap 118 | statd 119 | syslog 120 | telnetd 121 | tftpd 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # arch-setup 2 | 3 | arch-setup is a console menu based (TUI) install script for Arch Linux. 4 | 5 | The goal of this project is to provide a "Debian-like" install experience for new users interested 6 | in Arch Linux. Nearly every aspect of the install process is configurable by the installer. However, 7 | when it comes to more complicated aspects such as partitioning, the installer uses sane defaults to 8 | keep the installation process as user friendly as possible. 9 | 10 | ![preview](https://media.giphy.com/media/kGQ5M2i1oVTk3I1t4o/giphy.gif) 11 | 12 | ## Usage 13 | 14 | ### Prerequisites 15 | 16 | * Bootable installation media 17 | * First, [download](https://www.archlinux.org/download/) the latest Arch ISO. Then, follow the instructions to [create a bootable device](https://wiki.archlinux.org/index.php/USB_flash_installation_media) 18 | * Working internet connection 19 | * If you require a wireless connection, use the `iwctl` command to [connect to a network](https://wiki.archlinux.org/index.php/Iwd#iwctl) 20 | 21 | ### Downloading and Running the Script 22 | 23 | 1. Once you have booted into the live media, install git and dialog: `pacman -Sy git dialog` 24 | * If you encounter `error: not enough free disk space`, then increase cowspace: 25 | 26 | `mount -o remount,size=1G /run/archiso/cowspace` 27 | 28 | 2. Clone this repository: `git clone https://github.com/jorgeluiscarrillo/arch-setup && cd arch-setup/` 29 | 3. Run the script: `./setup` 30 | 31 | ## Features 32 | 33 | ### Sane Defaults 34 | 35 | Sane defaults are a set of predefined configurations that simply make sense for users of all levels 36 | of Linux experience. 37 | 38 | * Automatic Partitioning 39 | * Full disk partitioning with optional swap partition 40 | * Full disk partitioning with LVM 41 | * Full disk partitioning with LVM and root disk encryption (LVM on LUKS) 42 | 43 | * Networking 44 | * NetworkManager: Provides detection and configuration to automatically connect to a network 45 | * nm-applet: GUI front-end for NetworkManager 46 | 47 | * Boot loader 48 | * GRUB: Provides support for BIOS/UEFI systems and most file systems 49 | 50 | ### Desktop Environment and Window Managers 51 | 52 | Users may choose to install a complete desktop environment or a minimal window manager 53 | 54 | * Desktop Environments 55 | * Budgie 56 | * Cinnamon 57 | * GNOME 58 | * KDE Plasma 59 | * LXDE 60 | * LXQT 61 | * MATE 62 | * Xfce 63 | * Window Managers 64 | * awesome 65 | * bspwm 66 | * Fluxbox 67 | * i3 68 | * Openbox 69 | * xmonad 70 | 71 | ### Graphics Drivers and Virtual Machine Support 72 | 73 | Discrete graphics hardware is automatically detected. Users may choose to install open-source or 74 | proprietary drivers. If a virtual machine is detected, any utilities and drivers will be installed. 75 | 76 | * ATI/AMD 77 | * AMDGPU open-source driver 78 | * ATI (Radeon) open-source driver 79 | * NVIDIA 80 | * Nouveau open-source driver 81 | * NVIDIA proprietary driver 82 | * Virtual Machine Utilities 83 | * VirtualBox: Guest Additions 84 | * VMware Workstation: Open Virtual Machine Tools 85 | -------------------------------------------------------------------------------- /etc/nvidia_340_pci_ids: -------------------------------------------------------------------------------- 1 | Credits to the anarchy-linux project for this list (https://github.com/deadhead420/anarchy-linux/blob/master/etc/nvidia340.xx) 2 | NVIDIA 340.xx chipset / PCI ID list 3 | 4 | NVIDIA GPU product Device PCI ID Subdevice PCI ID 5 | ---------------------------------------------------- 6 | GeForce 8800 GTX 0x0191 7 | GeForce 8800 GTS 0x0193 8 | GeForce 8800 Ultra 0x0194 9 | Tesla C870 0x0197 10 | Quadro FX 5600 0x019D 11 | Quadro FX 4600 0x019E 12 | GeForce 8600 GTS 0x0400 13 | GeForce 8600 GT 0x0401 14 | GeForce 8600 GT 0x0402 15 | GeForce 8600 GS 0x0403 16 | GeForce 8400 GS 0x0404 17 | GeForce 9500M GS 0x0405 18 | GeForce 8300 GS 0x0406 19 | GeForce 8600M GT 0x0407 20 | GeForce 9650M GS 0x0408 21 | GeForce 8700M GT 0x0409 22 | Quadro FX 370 0x040A 23 | Quadro NVS 320M 0x040B 24 | Quadro FX 570M 0x040C 25 | Quadro FX 1600M 0x040D 26 | Quadro FX 570 0x040E 27 | Quadro FX 1700 0x040F 28 | GeForce GT 330 0x0410 29 | GeForce 8400 SE 0x0420 30 | GeForce 8500 GT 0x0421 31 | GeForce 8400 GS 0x0422 32 | GeForce 8300 GS 0x0423 33 | GeForce 8400 GS 0x0424 34 | GeForce 8600M GS 0x0425 35 | GeForce 8400M GT 0x0426 36 | GeForce 8400M GS 0x0427 37 | GeForce 8400M G 0x0428 38 | Quadro NVS 140M 0x0429 39 | Quadro NVS 130M 0x042A 40 | Quadro NVS 135M 0x042B 41 | GeForce 9400 GT 0x042C 42 | Quadro FX 360M 0x042D 43 | GeForce 9300M G 0x042E 44 | Quadro NVS 290 0x042F 45 | GeForce GTX 295 0x05E0 46 | GeForce GTX 280 0x05E1 47 | GeForce GTX 260 0x05E2 48 | GeForce GTX 285 0x05E3 49 | GeForce GTX 275 0x05E6 50 | Tesla C1060 0x05E7 51 | Tesla T10 Processor 0x05E7 0x0595 52 | Tesla T10 Processor 0x05E7 0x068F 53 | Tesla M1060 0x05E7 0x0697 54 | Tesla M1060 0x05E7 0x0714 55 | Tesla M1060 0x05E7 0x0743 56 | GeForce GTX 260 0x05EA 57 | GeForce GTX 295 0x05EB 58 | Quadroplex 2200 D2 0x05ED 59 | Quadroplex 2200 S4 0x05F8 60 | Quadro CX 0x05F9 61 | Quadro FX 5800 0x05FD 62 | Quadro FX 4800 0x05FE 63 | Quadro FX 3800 0x05FF 64 | GeForce 8800 GTS 512 0x0600 65 | GeForce 9800 GT 0x0601 66 | GeForce 8800 GT 0x0602 67 | GeForce GT 230 0x0603 68 | GeForce 9800 GX2 0x0604 69 | GeForce 9800 GT 0x0605 70 | GeForce 8800 GS 0x0606 71 | GeForce GTS 240 0x0607 72 | GeForce 9800M GTX 0x0608 73 | GeForce 8800M GTS 0x0609 74 | GeForce 8800 GS 0x0609 0x00A7 75 | GeForce GTX 280M 0x060A 76 | GeForce 9800M GT 0x060B 77 | GeForce 8800M GTX 0x060C 78 | GeForce 8800 GS 0x060D 79 | GeForce GTX 285M 0x060F 80 | GeForce 9600 GSO 0x0610 81 | GeForce 8800 GT 0x0611 82 | GeForce 9800 GTX/9800 GTX+ 0x0612 83 | GeForce 9800 GTX+ 0x0613 84 | GeForce 9800 GT 0x0614 85 | GeForce GTS 250 0x0615 86 | GeForce 9800M GTX 0x0617 87 | GeForce GTX 260M 0x0618 88 | Quadro FX 4700 X2 0x0619 89 | Quadro FX 3700 0x061A 90 | Quadro VX 200 0x061B 91 | Quadro FX 3600M 0x061C 92 | Quadro FX 2800M 0x061D 93 | Quadro FX 3700M 0x061E 94 | Quadro FX 3800M 0x061F 95 | GeForce GT 230 0x0621 96 | GeForce 9600 GT 0x0622 97 | GeForce 9600 GS 0x0623 98 | GeForce 9600 GSO 512 0x0625 99 | GeForce GT 130 0x0626 100 | GeForce GT 140 0x0627 101 | GeForce 9800M GTS 0x0628 102 | GeForce 9700M GTS 0x062A 103 | GeForce 9800M GS 0x062B 104 | GeForce 9800M GTS 0x062C 105 | GeForce 9600 GT 0x062D 106 | GeForce 9600 GT 0x062E 107 | GeForce GT 130 0x062E 0x0605 108 | GeForce 9700 S 0x0630 109 | GeForce GTS 160M 0x0631 110 | GeForce GTS 150M 0x0632 111 | GeForce 9600 GSO 0x0635 112 | GeForce 9600 GT 0x0637 113 | Quadro FX 1800 0x0638 114 | Quadro FX 2700M 0x063A 115 | GeForce 9500 GT 0x0640 116 | GeForce 9400 GT 0x0641 117 | GeForce 9500 GT 0x0643 118 | GeForce 9500 GS 0x0644 119 | GeForce 9500 GS 0x0645 120 | GeForce GT 120 0x0646 121 | GeForce 9600M GT 0x0647 122 | GeForce 9600M GS 0x0648 123 | GeForce 9600M GT 0x0649 124 | GeForce GT 220M 0x0649 0x202D 125 | GeForce 9700M GT 0x064A 126 | GeForce 9500M G 0x064B 127 | GeForce 9650M GT 0x064C 128 | GeForce G 110M 0x0651 129 | GeForce GT 130M 0x0652 130 | GeForce GT 240M LE 0x0652 0x0850 131 | GeForce GT 120M 0x0653 132 | GeForce GT 220M 0x0654 133 | GeForce GT 320M 0x0654 0x14A2 134 | GeForce GT 320M 0x0654 0x14D2 135 | GeForce GT 120 0x0655 0x0633 136 | GeForce GT 120 0x0656 0x0693 137 | Quadro FX 380 0x0658 138 | Quadro FX 580 0x0659 139 | Quadro FX 1700M 0x065A 140 | GeForce 9400 GT 0x065B 141 | Quadro FX 770M 0x065C 142 | GeForce 9300 GE 0x06E0 143 | GeForce 9300 GS 0x06E1 144 | GeForce 8400 0x06E2 145 | GeForce 8400 SE 0x06E3 146 | GeForce 8400 GS 0x06E4 147 | GeForce 9300M GS 0x06E5 148 | GeForce G100 0x06E6 149 | GeForce 9300 SE 0x06E7 150 | GeForce 9200M GS 0x06E8 151 | GeForce 9200M GE 0x06E8 0x360B 152 | GeForce 9300M GS 0x06E9 153 | Quadro NVS 150M 0x06EA 154 | Quadro NVS 160M 0x06EB 155 | GeForce G 105M 0x06EC 156 | GeForce G 103M 0x06EF 157 | GeForce G105M 0x06F1 158 | Quadro NVS 420 0x06F8 159 | Quadro FX 370 LP 0x06F9 160 | Quadro FX 370 Low Profile 0x06F9 0x060D 161 | Quadro NVS 450 0x06FA 162 | Quadro FX 370M 0x06FB 163 | Quadro NVS 295 0x06FD 164 | HICx16 + Graphics 0x06FF 165 | HICx8 + Graphics 0x06FF 0x0711 166 | GeForce 8200M 0x0840 167 | GeForce 9100M G 0x0844 168 | GeForce 8200M G 0x0845 169 | GeForce 9200 0x0846 170 | GeForce 9100 0x0847 171 | GeForce 8300 0x0848 172 | GeForce 8200 0x0849 173 | nForce 730a 0x084A 174 | GeForce 9200 0x084B 175 | nForce 980a/780a SLI 0x084C 176 | nForce 750a SLI 0x084D 177 | GeForce 8100 / nForce 720a 0x084F 178 | GeForce 9400 0x0860 179 | GeForce 9400 0x0861 180 | GeForce 9400M G 0x0862 181 | GeForce 9400M 0x0863 182 | GeForce 9300 0x0864 183 | ION 0x0865 184 | GeForce 9400M G 0x0866 185 | GeForce 9400M 0x0866 0x00B1 186 | GeForce 9400 0x0867 187 | nForce 760i SLI 0x0868 188 | GeForce 9400 0x0869 189 | GeForce 9400 0x086A 190 | GeForce 9300 / nForce 730i 0x086C 191 | GeForce 9200 0x086D 192 | GeForce 9100M G 0x086E 193 | GeForce 8200M G 0x086F 194 | GeForce 9400M 0x0870 195 | GeForce 9200 0x0871 196 | GeForce G102M 0x0872 197 | GeForce G205M 0x0872 0x1C42 198 | GeForce G102M 0x0873 199 | GeForce G205M 0x0873 0x1C52 200 | ION 0x0874 201 | ION 0x0876 202 | GeForce 9400 0x087A 203 | ION 0x087D 204 | ION LE 0x087E 205 | ION LE 0x087F 206 | GeForce 320M 0x08A0 207 | GeForce 320M 0x08A2 208 | GeForce 320M 0x08A3 209 | GeForce 320M 0x08A4 210 | GeForce 320M 0x08A5 211 | GeForce GT 220 0x0A20 212 | GeForce 315 0x0A22 213 | GeForce 210 0x0A23 214 | GeForce 405 0x0A26 215 | GeForce 405 0x0A27 216 | GeForce GT 230M 0x0A28 217 | GeForce GT 330M 0x0A29 218 | GeForce GT 230M 0x0A2A 219 | GeForce GT 330M 0x0A2B 220 | NVS 5100M 0x0A2C 221 | GeForce GT 320M 0x0A2D 222 | GeForce GT 415 0x0A32 223 | GeForce GT 240M 0x0A34 224 | GeForce GT 325M 0x0A35 225 | Quadro 400 0x0A38 226 | Quadro FX 880M 0x0A3C 227 | GeForce G210 0x0A60 228 | GeForce 205 0x0A62 229 | GeForce 310 0x0A63 230 | Second Generation ION 0x0A64 231 | GeForce 210 0x0A65 232 | GeForce 310 0x0A66 233 | GeForce 315 0x0A67 234 | GeForce G105M 0x0A68 235 | GeForce G105M 0x0A69 236 | NVS 2100M 0x0A6A 237 | NVS 3100M 0x0A6C 238 | GeForce 305M 0x0A6E 239 | Second Generation ION 0x0A6E 0x3607 240 | Second Generation ION 0x0A6F 241 | GeForce 310M 0x0A70 242 | Second Generation ION 0x0A70 0x3605 243 | Second Generation ION 0x0A70 0x3617 244 | GeForce 305M 0x0A71 245 | GeForce 310M 0x0A72 246 | GeForce 305M 0x0A73 247 | Second Generation ION 0x0A73 0x3607 248 | Second Generation ION 0x0A73 0x3610 249 | GeForce G210M 0x0A74 250 | GeForce G210 0x0A74 0x903A 251 | GeForce 310M 0x0A75 252 | Second Generation ION 0x0A75 0x3605 253 | Second Generation ION 0x0A76 254 | Quadro FX 380 LP 0x0A78 255 | GeForce 315M 0x0A7A 256 | GeForce 405 0x0A7A 0x0003 257 | GeForce 405M 0x0A7A 0x3950 258 | GeForce 405M 0x0A7A 0x397D 259 | GeForce 405 0x0A7A 0x3980 260 | GeForce 405 0x0A7A 0x8006 261 | GeForce 405 0x0A7A 0x90B4 262 | GeForce 405 0x0A7A 0xAA51 263 | GeForce 405 0x0A7A 0xAA58 264 | GeForce 405 0x0A7A 0xAC71 265 | GeForce 405 0x0A7A 0xAC82 266 | Quadro FX 380M 0x0A7C 267 | GeForce GT 330 0x0CA0 268 | GeForce GT 320 0x0CA2 269 | GeForce GT 240 0x0CA3 270 | GeForce GT 340 0x0CA4 271 | GeForce GT 220 0x0CA5 272 | GeForce GT 330 0x0CA7 273 | GeForce GTS 260M 0x0CA8 274 | GeForce GTS 250M 0x0CA9 275 | GeForce GT 220 0x0CAC 276 | GeForce GT 335M 0x0CAF 277 | GeForce GTS 350M 0x0CB0 278 | GeForce GTS 360M 0x0CB1 279 | Quadro FX 1800M 0x0CBC 280 | GeForce 9300 GS 0x10C0 281 | GeForce 8400GS 0x10C3 282 | GeForce 405 0x10C5 283 | NVS 300 0x10D8 284 | -------------------------------------------------------------------------------- /etc/nvidia_390_pci_ids: -------------------------------------------------------------------------------- 1 | Credits to the anarchy-linux project for this list (https://github.com/deadhead420/anarchy-linux/blob/master/etc/nvidia390.xx) 2 | NVIDIA 390.xx chipset / PCI ID list 3 | 4 | NVIDIA GPU product Device PCI ID Subdevice PCI ID 5 | ---------------------------------------------------- 6 | 7 | GeForce GTX 480 06C0 8 | GeForce GTX 465 06C4 9 | GeForce GTX 480M 06CA 10 | GeForce GTX 470 06CD 11 | GeForce GT 440 0DC0 12 | GeForce GTS 450 0DC4 13 | GeForce GTS 450 0DC5 14 | GeForce GTS 450 0DC6 15 | GeForce GT 555M 0DCD 16 | GeForce GT 555M 0DCE 17 | GeForce GTX 460M 0DD1 18 | GeForce GT 445M 0DD2 19 | GeForce GT 435M 0DD3 20 | GeForce GT 550M 0DD6 21 | GeForce GT 440 0DE0 22 | GeForce GT 430 0DE1 23 | GeForce GT 420 0DE2 24 | GeForce GT 635M 0DE3 25 | GeForce GT 520 0DE4 26 | GeForce GT 530 0DE5 27 | GeForce GT 610 0DE7 28 | GeForce GT 620M 0DE8 29 | GeForce GT 630M 0DE9 30 | GeForce GT 620M 0DE9 1025 0692 31 | GeForce GT 620M 0DE9 1025 0725 32 | GeForce GT 620M 0DE9 1025 0728 33 | GeForce GT 620M 0DE9 1025 072B 34 | GeForce GT 620M 0DE9 1025 072E 35 | GeForce GT 620M 0DE9 1025 0753 36 | GeForce GT 620M 0DE9 1025 0754 37 | GeForce GT 640M LE 0DE9 17AA 3977 38 | GeForce GT 635M 0DE9 1B0A 2210 39 | GeForce 610M 0DEA 40 | GeForce 615 0DEA 17AA 365A 41 | GeForce 615 0DEA 17AA 365B 42 | GeForce 615 0DEA 17AA 365E 43 | GeForce 615 0DEA 17AA 3660 44 | GeForce 615 0DEA 17AA 366C 45 | GeForce GT 555M 0DEB 46 | GeForce GT 525M 0DEC 47 | GeForce GT 520M 0DED 48 | GeForce GT 415M 0DEE 49 | GeForce GT 425M 0DF0 50 | GeForce GT 420M 0DF1 51 | GeForce GT 435M 0DF2 52 | GeForce GT 420M 0DF3 53 | GeForce GT 540M 0DF4 54 | GeForce GT 630M 0DF4 152D 0952 55 | GeForce GT 630M 0DF4 152D 0953 56 | GeForce GT 525M 0DF5 57 | GeForce GT 550M 0DF6 58 | GeForce GT 520M 0DF7 59 | GeForce GTX 460 0E22 60 | GeForce GTX 460 SE 0E23 61 | GeForce GTX 460 0E24 62 | GeForce GTX 470M 0E30 63 | GeForce GTX 485M 0E31 64 | GeForce GT 630 0F00 65 | GeForce GT 620 0F01 66 | GeForce GT 730 0F02 67 | GeForce GT 610 0F03 68 | GeForce GT 640 0FC0 69 | GeForce GT 640 0FC1 70 | GeForce GT 630 0FC2 71 | GeForce GTX 650 0FC6 72 | GeForce GT 740 0FC8 73 | GeForce GT 730 0FC9 74 | GeForce GT 755M 0FCD 75 | GeForce GT 640M LE 0FCE 76 | GeForce GT 650M 0FD1 77 | GeForce GT 640M 0FD2 78 | GeForce GT 640M LE 0FD2 1028 0595 79 | GeForce GT 640M LE 0FD2 1028 05B2 80 | GeForce GT 640M LE 0FD3 81 | GeForce GTX 660M 0FD4 82 | GeForce GT 650M 0FD5 83 | GeForce GT 640M 0FD8 84 | GeForce GT 645M 0FD9 85 | GeForce GT 740M 0FDF 86 | GeForce GTX 660M 0FE0 87 | GeForce GT 730M 0FE1 88 | GeForce GT 745M 0FE2 89 | GeForce GT 745M 0FE3 90 | GeForce GT 745A 0FE3 103C 2B16 91 | GeForce GT 745A 0FE3 17AA 3675 92 | GeForce GT 750M 0FE4 93 | GeForce GT 750M 0FE9 94 | GeForce GT 755M 0FEA 95 | GeForce 710A 0FEC 96 | GeForce 820M 0FED 97 | GeForce 810M 0FEE 98 | GeForce GTX TITAN Z 1001 99 | GeForce GTX 780 1004 100 | GeForce GTX TITAN 1005 101 | GeForce GTX 780 1007 102 | GeForce GTX 780 Ti 1008 103 | GeForce GTX 780 Ti 100A 104 | GeForce GTX TITAN Black 100C 105 | GeForce GT 520 1040 106 | GeForce 510 1042 107 | GeForce 605 1048 108 | GeForce GT 620 1049 109 | GeForce GT 610 104A 110 | GeForce GT 625 (OEM) 104B 111 | GeForce GT 625 104B 1043 844C 112 | GeForce GT 625 104B 1043 846B 113 | GeForce GT 625 104B 1462 B590 114 | GeForce GT 625 104B 174B 0625 115 | GeForce GT 625 104B 174B A625 116 | GeForce GT 705 104C 117 | GeForce GT 520M 1050 118 | GeForce GT 520MX 1051 119 | GeForce GT 520M 1052 120 | GeForce 410M 1054 121 | GeForce 410M 1055 122 | GeForce 610M 1058 123 | GeForce 610 1058 103C 2AF1 124 | GeForce 800A 1058 17AA 3682 125 | GeForce 705A 1058 17AA 3692 126 | GeForce 800A 1058 17AA 3695 127 | GeForce 800A 1058 17AA 36A8 128 | GeForce 800A 1058 17AA 36AC 129 | GeForce 800A 1058 17AA 36AD 130 | GeForce 800A 1058 705A 3682 131 | GeForce 610M 1059 132 | GeForce 610M 105A 133 | GeForce 705M 105B 134 | GeForce 705A 105B 103C 2AFB 135 | GeForce 800A 105B 17AA 30B1 136 | GeForce 705A 105B 17AA 30F3 137 | GeForce 800A 105B 17AA 36A1 138 | GeForce GTX 580 1080 139 | GeForce GTX 570 1081 140 | GeForce GTX 560 Ti 1082 141 | GeForce GTX 560 1084 142 | GeForce GTX 570 1086 143 | GeForce GTX 560 Ti 1087 144 | GeForce GTX 590 1088 145 | GeForce GTX 580 1089 146 | GeForce GTX 580 108B 147 | GeForce 820M 1140 1019 0799 148 | GeForce GT 720M 1140 1019 999F 149 | GeForce GT 620M 1140 1025 0600 150 | GeForce GT 620M 1140 1025 0606 151 | GeForce GT 620M 1140 1025 064A 152 | GeForce GT 620M 1140 1025 064C 153 | GeForce GT 620M 1140 1025 067A 154 | GeForce GT 620M 1140 1025 0680 155 | GeForce 710M 1140 1025 0686 156 | GeForce 710M 1140 1025 0689 157 | GeForce 710M 1140 1025 068B 158 | GeForce 710M 1140 1025 068D 159 | GeForce 710M 1140 1025 068E 160 | GeForce 710M 1140 1025 0691 161 | GeForce GT 620M 1140 1025 0692 162 | GeForce GT 620M 1140 1025 0694 163 | GeForce GT 620M 1140 1025 0702 164 | GeForce GT 620M 1140 1025 0719 165 | GeForce GT 620M 1140 1025 0725 166 | GeForce GT 620M 1140 1025 0728 167 | GeForce GT 620M 1140 1025 072B 168 | GeForce GT 620M 1140 1025 072E 169 | GeForce GT 620M 1140 1025 0732 170 | GeForce GT 720M 1140 1025 0763 171 | GeForce 710M 1140 1025 0773 172 | GeForce 710M 1140 1025 0774 173 | GeForce GT 720M 1140 1025 0776 174 | GeForce 710M 1140 1025 077A 175 | GeForce 710M 1140 1025 077B 176 | GeForce 710M 1140 1025 077C 177 | GeForce 710M 1140 1025 077D 178 | GeForce 710M 1140 1025 077E 179 | GeForce 710M 1140 1025 077F 180 | GeForce GT 720M 1140 1025 0781 181 | GeForce GT 720M 1140 1025 0798 182 | GeForce GT 720M 1140 1025 0799 183 | GeForce GT 720M 1140 1025 079B 184 | GeForce GT 720M 1140 1025 079C 185 | GeForce GT 720M 1140 1025 0807 186 | GeForce 820M 1140 1025 0821 187 | GeForce GT 720M 1140 1025 0823 188 | GeForce GT 720M 1140 1025 0830 189 | GeForce GT 720M 1140 1025 0833 190 | GeForce GT 720M 1140 1025 0837 191 | GeForce 820M 1140 1025 083E 192 | GeForce 710M 1140 1025 0841 193 | GeForce 820M 1140 1025 0853 194 | GeForce 820M 1140 1025 0854 195 | GeForce 820M 1140 1025 0855 196 | GeForce 820M 1140 1025 0856 197 | GeForce 820M 1140 1025 0857 198 | GeForce 820M 1140 1025 0858 199 | GeForce 820M 1140 1025 0863 200 | GeForce 820M 1140 1025 0868 201 | GeForce 810M 1140 1025 0869 202 | GeForce 820M 1140 1025 0873 203 | GeForce 820M 1140 1025 0878 204 | GeForce 820M 1140 1025 087B 205 | GeForce 820M 1140 1025 087F 206 | GeForce 820M 1140 1025 0881 207 | GeForce 820M 1140 1025 0885 208 | GeForce 820M 1140 1025 088A 209 | GeForce 820M 1140 1025 089B 210 | GeForce 820M 1140 1025 0921 211 | GeForce 810M 1140 1025 092E 212 | GeForce 820M 1140 1025 092F 213 | GeForce 820M 1140 1025 0932 214 | GeForce 820M 1140 1025 093A 215 | GeForce 820M 1140 1025 093C 216 | GeForce 820M 1140 1025 093F 217 | GeForce 820M 1140 1025 0941 218 | GeForce 820M 1140 1025 0945 219 | GeForce 820M 1140 1025 0954 220 | GeForce 820M 1140 1025 0965 221 | GeForce GT 630M 1140 1028 054D 222 | GeForce GT 630M 1140 1028 054E 223 | GeForce GT 620M 1140 1028 0554 224 | GeForce GT 620M 1140 1028 0557 225 | GeForce GT 625M 1140 1028 0562 226 | GeForce GT 630M 1140 1028 0565 227 | GeForce GT 630M 1140 1028 0568 228 | GeForce GT 630M 1140 1028 0590 229 | GeForce GT 625M 1140 1028 0592 230 | GeForce GT 625M 1140 1028 0594 231 | GeForce GT 625M 1140 1028 0595 232 | GeForce GT 625M 1140 1028 05A2 233 | GeForce GT 625M 1140 1028 05B1 234 | GeForce GT 625M 1140 1028 05B3 235 | GeForce GT 630M 1140 1028 05DA 236 | GeForce GT 720M 1140 1028 05DE 237 | GeForce GT 720M 1140 1028 05E0 238 | GeForce GT 630M 1140 1028 05E8 239 | GeForce GT 720M 1140 1028 05F4 240 | GeForce GT 720M 1140 1028 060F 241 | GeForce GT 720M 1140 1028 062F 242 | GeForce 820M 1140 1028 064E 243 | GeForce 820M 1140 1028 0652 244 | GeForce 820M 1140 1028 0653 245 | GeForce 820M 1140 1028 0655 246 | GeForce 820M 1140 1028 065E 247 | GeForce 820M 1140 1028 0662 248 | GeForce 820M 1140 1028 068D 249 | GeForce 820M 1140 1028 06AD 250 | GeForce 820M 1140 1028 06AE 251 | GeForce 820M 1140 1028 06AF 252 | GeForce 820M 1140 1028 06B0 253 | GeForce 820M 1140 1028 06C0 254 | GeForce 820M 1140 1028 06C1 255 | GeForce GT 630M 1140 103C 18EF 256 | GeForce GT 630M 1140 103C 18F9 257 | GeForce GT 630M 1140 103C 18FB 258 | GeForce GT 630M 1140 103C 18FD 259 | GeForce GT 630M 1140 103C 18FF 260 | GeForce 820M 1140 103C 218A 261 | GeForce 820M 1140 103C 21BB 262 | GeForce 820M 1140 103C 21BC 263 | GeForce 820M 1140 103C 220E 264 | GeForce 820M 1140 103C 2210 265 | GeForce 820M 1140 103C 2212 266 | GeForce 820M 1140 103C 2214 267 | GeForce 820M 1140 103C 2218 268 | GeForce 820M 1140 103C 225B 269 | GeForce 820M 1140 103C 225D 270 | GeForce 820M 1140 103C 226D 271 | GeForce 820M 1140 103C 226F 272 | GeForce 820M 1140 103C 22D2 273 | GeForce 820M 1140 103C 22D9 274 | GeForce 820M 1140 103C 2335 275 | GeForce 820M 1140 103C 2337 276 | GeForce GT 720A 1140 103C 2AEF 277 | GeForce 710A 1140 103C 2AF9 278 | GeForce GT 720M 1140 1043 11FD 279 | GeForce GT 720M 1140 1043 124D 280 | GeForce GT 720M 1140 1043 126D 281 | GeForce GT 720M 1140 1043 131D 282 | GeForce GT 720M 1140 1043 13FD 283 | GeForce GT 720M 1140 1043 14C7 284 | GeForce GT 620M 1140 1043 1507 285 | GeForce 820M 1140 1043 15AD 286 | GeForce 820M 1140 1043 15ED 287 | GeForce 820M 1140 1043 160D 288 | GeForce 820M 1140 1043 163D 289 | GeForce 820M 1140 1043 165D 290 | GeForce 820M 1140 1043 166D 291 | GeForce 820M 1140 1043 16CD 292 | GeForce 820M 1140 1043 16DD 293 | GeForce 820M 1140 1043 170D 294 | GeForce 820M 1140 1043 176D 295 | GeForce 820M 1140 1043 178D 296 | GeForce 820M 1140 1043 179D 297 | GeForce GT 620M 1140 1043 2132 298 | GeForce GT 720M 1140 1043 21BA 299 | GeForce GT 720M 1140 1043 21FA 300 | GeForce GT 720M 1140 1043 220A 301 | GeForce GT 720M 1140 1043 221A 302 | GeForce GT 710M 1140 1043 223A 303 | GeForce GT 710M 1140 1043 224A 304 | GeForce 820M 1140 1043 227A 305 | GeForce 820M 1140 1043 228A 306 | GeForce 820M 1140 1043 22FA 307 | GeForce 820M 1140 1043 232A 308 | GeForce 820M 1140 1043 233A 309 | GeForce 820M 1140 1043 235A 310 | GeForce 820M 1140 1043 236A 311 | GeForce 820M 1140 1043 238A 312 | GeForce GT 720M 1140 1043 8595 313 | GeForce GT 720M 1140 1043 85EA 314 | GeForce 820M 1140 1043 85EB 315 | GeForce 820M 1140 1043 85EC 316 | GeForce GT 720M 1140 1043 85EE 317 | GeForce 820M 1140 1043 85F3 318 | GeForce 820M 1140 1043 860E 319 | GeForce 820M 1140 1043 861A 320 | GeForce 820M 1140 1043 861B 321 | GeForce 820M 1140 1043 8628 322 | GeForce 820M 1140 1043 8643 323 | GeForce 820M 1140 1043 864C 324 | GeForce 820M 1140 1043 8652 325 | GeForce 820M 1140 1043 8660 326 | GeForce 820M 1140 1043 8661 327 | GeForce GT 720M 1140 105B 0DAC 328 | GeForce GT 720M 1140 105B 0DAD 329 | GeForce GT 720M 1140 105B 0EF3 330 | GeForce GT 720M 1140 10CF 17F5 331 | GeForce 710M 1140 1179 FA01 332 | GeForce 710M 1140 1179 FA02 333 | GeForce 710M 1140 1179 FA03 334 | GeForce 710M 1140 1179 FA05 335 | GeForce 710M 1140 1179 FA11 336 | GeForce 710M 1140 1179 FA13 337 | GeForce 710M 1140 1179 FA18 338 | GeForce 710M 1140 1179 FA19 339 | GeForce 710M 1140 1179 FA21 340 | GeForce 710M 1140 1179 FA23 341 | GeForce 710M 1140 1179 FA2A 342 | GeForce 710M 1140 1179 FA32 343 | GeForce 710M 1140 1179 FA33 344 | GeForce 710M 1140 1179 FA36 345 | GeForce 710M 1140 1179 FA38 346 | GeForce 710M 1140 1179 FA42 347 | GeForce 710M 1140 1179 FA43 348 | GeForce 710M 1140 1179 FA45 349 | GeForce 710M 1140 1179 FA47 350 | GeForce 710M 1140 1179 FA49 351 | GeForce 710M 1140 1179 FA58 352 | GeForce 710M 1140 1179 FA59 353 | GeForce 710M 1140 1179 FA88 354 | GeForce 710M 1140 1179 FA89 355 | GeForce GT 620M 1140 144D B092 356 | GeForce GT 630M 1140 144D C0D5 357 | GeForce GT 620M 1140 144D C0D7 358 | GeForce 820M 1140 144D C10D 359 | GeForce GT 620M 1140 144D C652 360 | GeForce 710M 1140 144D C709 361 | GeForce 710M 1140 144D C711 362 | GeForce 710M 1140 144D C736 363 | GeForce 710M 1140 144D C737 364 | GeForce 820M 1140 144D C745 365 | GeForce 820M 1140 144D C750 366 | GeForce GT 710M 1140 1462 10B8 367 | GeForce GT 720M 1140 1462 10E9 368 | GeForce 820M 1140 1462 1116 369 | GeForce 720M 1140 1462 AA33 370 | GeForce GT 720M 1140 1462 AAA2 371 | GeForce 820M 1140 1462 AAA3 372 | GeForce GT 720M 1140 1462 ACB2 373 | GeForce GT 720M 1140 1462 ACC1 374 | GeForce 720M 1140 1462 AE61 375 | GeForce GT 720M 1140 1462 AE65 376 | GeForce 820M 1140 1462 AE6A 377 | GeForce GT 720M 1140 1462 AE71 378 | GeForce 820M 1140 14C0 0083 379 | GeForce 620M 1140 152D 0926 380 | GeForce GT 630M 1140 152D 0982 381 | GeForce GT 630M 1140 152D 0983 382 | GeForce GT 820M 1140 152D 1005 383 | GeForce 710M 1140 152D 1012 384 | GeForce 820M 1140 152D 1019 385 | GeForce GT 630M 1140 152D 1030 386 | GeForce 710M 1140 152D 1055 387 | GeForce GT 720M 1140 152D 1067 388 | GeForce 820M 1140 152D 1092 389 | GeForce GT 720M 1140 17AA 2213 390 | GeForce GT 720M 1140 17AA 2220 391 | GeForce GT 720A 1140 17AA 309C 392 | GeForce 820A 1140 17AA 30B4 393 | GeForce 720A 1140 17AA 30B7 394 | GeForce 820A 1140 17AA 30E4 395 | GeForce 820A 1140 17AA 361B 396 | GeForce 820A 1140 17AA 361C 397 | GeForce 820A 1140 17AA 361D 398 | GeForce GT 620M 1140 17AA 3656 399 | GeForce 705M 1140 17AA 365A 400 | GeForce 800M 1140 17AA 365E 401 | GeForce 820A 1140 17AA 3661 402 | GeForce 800M 1140 17AA 366C 403 | GeForce 800M 1140 17AA 3685 404 | GeForce 800M 1140 17AA 3686 405 | GeForce 705A 1140 17AA 3687 406 | GeForce 820A 1140 17AA 3696 407 | GeForce 820A 1140 17AA 369B 408 | GeForce 820A 1140 17AA 369C 409 | GeForce 820A 1140 17AA 369D 410 | GeForce 820A 1140 17AA 369E 411 | GeForce 820A 1140 17AA 36A6 412 | GeForce 820A 1140 17AA 36A7 413 | GeForce 820A 1140 17AA 36A9 414 | GeForce 820A 1140 17AA 36AF 415 | GeForce 820A 1140 17AA 36B0 416 | GeForce 820A 1140 17AA 36B6 417 | GeForce GT 720M 1140 17AA 3800 418 | GeForce GT 720M 1140 17AA 3801 419 | GeForce GT 720M 1140 17AA 3802 420 | GeForce GT 720M 1140 17AA 3803 421 | GeForce GT 720M 1140 17AA 3804 422 | GeForce GT 720M 1140 17AA 3806 423 | GeForce GT 720M 1140 17AA 3808 424 | GeForce GT 820M 1140 17AA 380D 425 | GeForce GT 820M 1140 17AA 380E 426 | GeForce GT 820M 1140 17AA 380F 427 | GeForce GT 820M 1140 17AA 3811 428 | GeForce 820M 1140 17AA 3812 429 | GeForce 820M 1140 17AA 3813 430 | GeForce 820M 1140 17AA 3816 431 | GeForce 820M 1140 17AA 3817 432 | GeForce 820M 1140 17AA 3818 433 | GeForce 820M 1140 17AA 381A 434 | GeForce 820M 1140 17AA 381C 435 | GeForce 820M 1140 17AA 381D 436 | GeForce 610M 1140 17AA 3901 437 | GeForce 710M 1140 17AA 3902 438 | GeForce 710M 1140 17AA 3903 439 | GeForce GT 625M 1140 17AA 3904 440 | GeForce GT 720M 1140 17AA 3905 441 | GeForce 820M 1140 17AA 3907 442 | GeForce GT 720M 1140 17AA 3910 443 | GeForce GT 720M 1140 17AA 3912 444 | GeForce 820M 1140 17AA 3913 445 | GeForce 820M 1140 17AA 3915 446 | GeForce 610M 1140 17AA 3983 447 | GeForce 610M 1140 17AA 5001 448 | GeForce GT 720M 1140 17AA 5003 449 | GeForce 705M 1140 17AA 5005 450 | GeForce GT 620M 1140 17AA 500D 451 | GeForce 710M 1140 17AA 5014 452 | GeForce 710M 1140 17AA 5017 453 | GeForce 710M 1140 17AA 5019 454 | GeForce 710M 1140 17AA 501A 455 | GeForce GT 720M 1140 17AA 501F 456 | GeForce 710M 1140 17AA 5025 457 | GeForce 710M 1140 17AA 5027 458 | GeForce 710M 1140 17AA 502A 459 | GeForce GT 720M 1140 17AA 502B 460 | GeForce 710M 1140 17AA 502D 461 | GeForce GT 720M 1140 17AA 502E 462 | GeForce GT 720M 1140 17AA 502F 463 | GeForce 705M 1140 17AA 5030 464 | GeForce 705M 1140 17AA 5031 465 | GeForce 820M 1140 17AA 5032 466 | GeForce 820M 1140 17AA 5033 467 | GeForce 710M 1140 17AA 503E 468 | GeForce 820M 1140 17AA 503F 469 | GeForce 820M 1140 17AA 5040 470 | GeForce 710M 1140 1854 0177 471 | GeForce 710M 1140 1854 0180 472 | GeForce GT 720M 1140 1854 0190 473 | GeForce GT 720M 1140 1854 0192 474 | GeForce 820M 1140 1854 0224 475 | GeForce 820M 1140 1B0A 01C0 476 | GeForce GT 620M 1140 1B0A 20DD 477 | GeForce GT 620M 1140 1B0A 20DF 478 | GeForce 820M 1140 1B0A 210E 479 | GeForce GT 720M 1140 1B0A 2202 480 | GeForce 820M 1140 1B0A 90D7 481 | GeForce 820M 1140 1B0A 90DD 482 | GeForce 820M 1140 1B50 5530 483 | GeForce GT 720M 1140 1B6C 5031 484 | GeForce 820M 1140 1BAB 0106 485 | GeForce 810M 1140 1D05 1013 486 | GeForce GTX 680 1180 487 | GeForce GTX 660 Ti 1183 488 | GeForce GTX 770 1184 489 | GeForce GTX 660 1185 490 | GeForce GTX 760 1185 10DE 106F 491 | GeForce GTX 760 1187 492 | GeForce GTX 690 1188 493 | GeForce GTX 670 1189 494 | GeForce GTX 760 Ti OEM 1189 10DE 1074 495 | GeForce GTX 760 (192-bit) 118E 496 | GeForce GTX 760 Ti OEM 1193 497 | GeForce GTX 660 1195 498 | GeForce GTX 880M 1198 499 | GeForce GTX 870M 1199 500 | GeForce GTX 760 1199 1458 D001 501 | GeForce GTX 860M 119A 502 | GeForce GTX 775M 119D 503 | GeForce GTX 780M 119E 504 | GeForce GTX 780M 119F 505 | GeForce GTX 680M 11A0 506 | GeForce GTX 670MX 11A1 507 | GeForce GTX 675MX 11A2 508 | GeForce GTX 680MX 11A3 509 | GeForce GTX 675MX 11A7 510 | GeForce GTX 660 11C0 511 | GeForce GTX 650 Ti BOOST 11C2 512 | GeForce GTX 650 Ti 11C3 513 | GeForce GTX 645 11C4 514 | GeForce GT 740 11C5 515 | GeForce GTX 650 Ti 11C6 516 | GeForce GTX 650 11C8 517 | GeForce GT 740 11CB 518 | GeForce GTX 770M 11E0 519 | GeForce GTX 765M 11E1 520 | GeForce GTX 765M 11E2 521 | GeForce GTX 760M 11E3 522 | GeForce GTX 760A 11E3 17AA 3683 523 | GeForce GTX 560 Ti 1200 524 | GeForce GTX 560 1201 525 | GeForce GTX 460 SE v2 1203 526 | GeForce GTX 460 v2 1205 527 | GeForce GTX 555 1206 528 | GeForce GT 645 1207 529 | GeForce GTX 560 SE 1208 530 | GeForce GTX 570M 1210 531 | GeForce GTX 580M 1211 532 | GeForce GTX 675M 1212 533 | GeForce GTX 670M 1213 534 | GeForce GT 545 1241 535 | GeForce GT 545 1243 536 | GeForce GTX 550 Ti 1244 537 | GeForce GTS 450 1245 538 | GeForce GT 550M 1246 539 | GeForce GT 555M 1247 540 | GeForce GT 635M 1247 1043 212A 541 | GeForce GT 635M 1247 1043 212B 542 | GeForce GT 635M 1247 1043 212C 543 | GeForce GT 555M 1248 544 | GeForce GTS 450 1249 545 | GeForce GT 640 124B 546 | GeForce GT 555M 124D 547 | GeForce GT 635M 124D 1462 10CC 548 | GeForce GTX 560M 1251 549 | GeForce GT 635 1280 550 | GeForce GT 710 1281 551 | GeForce GT 640 1282 552 | GeForce GT 630 1284 553 | GeForce GT 720 1286 554 | GeForce GT 730 1287 555 | GeForce GT 720 1288 556 | GeForce GT 710 1289 557 | GeForce GT 710 128B 558 | GeForce GT 730M 1290 559 | GeForce 730A 1290 103C 2AFA 560 | GeForce GT 735M 1291 561 | GeForce GT 740M 1292 562 | GeForce GT 740A 1292 17AA 3675 563 | GeForce GT 740A 1292 17AA 367C 564 | GeForce GT 740A 1292 17AA 3684 565 | GeForce GT 730M 1293 566 | GeForce 710M 1295 567 | GeForce 710A 1295 103C 2B0D 568 | GeForce 710A 1295 103C 2B0F 569 | GeForce 810A 1295 103C 2B20 570 | GeForce 810A 1295 103C 2B21 571 | GeForce 805A 1295 17AA 367A 572 | GeForce 710A 1295 17AA 367C 573 | GeForce 825M 1296 574 | GeForce GT 720M 1298 575 | GeForce 920M 1299 576 | GeForce 920A 1299 17AA 30BB 577 | GeForce 920A 1299 17AA 30DA 578 | GeForce 920A 1299 17AA 30DC 579 | GeForce 920A 1299 17AA 30DD 580 | GeForce 920A 1299 17AA 30DF 581 | GeForce 920A 1299 17AA 3117 582 | GeForce 920A 1299 17AA 361B 583 | GeForce 920A 1299 17AA 362D 584 | GeForce 920A 1299 17AA 362E 585 | GeForce 920A 1299 17AA 3630 586 | GeForce 920A 1299 17AA 3637 587 | GeForce 920A 1299 17AA 369B 588 | GeForce 920A 1299 17AA 36A7 589 | GeForce 920A 1299 17AA 36AF 590 | GeForce 920A 1299 17AA 36F0 591 | GeForce GT 730 1299 1B0A 01C6 592 | GeForce 910M 129A 593 | GeForce 830M 1340 594 | GeForce 830A 1340 103C 2B2B 595 | GeForce 840M 1341 596 | GeForce 840A 1341 17AA 3697 597 | GeForce 840A 1341 17AA 3699 598 | GeForce 840A 1341 17AA 369C 599 | GeForce 840A 1341 17AA 36AF 600 | GeForce 845M 1344 601 | GeForce 930M 1346 602 | GeForce 930A 1346 17AA 30BA 603 | GeForce 930A 1346 17AA 362C 604 | GeForce 930A 1346 17AA 362F 605 | GeForce 930A 1346 17AA 3636 606 | GeForce 940M 1347 607 | GeForce 940A 1347 17AA 36B9 608 | GeForce 940A 1347 17AA 36BA 609 | GeForce 945M 1348 610 | GeForce 945A 1348 103C 2B5C 611 | GeForce 930M 1349 612 | GeForce 930A 1349 17AA 3124 613 | GeForce 930A 1349 17AA 364B 614 | GeForce 930A 1349 17AA 36C3 615 | GeForce 930A 1349 17AA 36D1 616 | GeForce 930A 1349 17AA 36D8 617 | GeForce 940MX 134B 618 | GeForce GPU 134B 1414 0008 619 | GeForce 940MX 134D 620 | GeForce 930MX 134E 621 | GeForce 920MX 134F 622 | GeForce 940A 137D 17AA 3699 623 | GeForce GTX 750 Ti 1380 624 | GeForce GTX 750 1381 625 | GeForce GTX 745 1382 626 | GeForce 845M 1390 627 | GeForce GTX 850M 1391 628 | GeForce GTX 850A 1391 17AA 3697 629 | GeForce GTX 860M 1392 630 | GeForce GPU 1392 1028 066A 631 | GeForce GTX 750 Ti 1392 1043 861E 632 | GeForce GTX 750 Ti 1392 1043 86D9 633 | GeForce 840M 1393 634 | GeForce 845M 1398 635 | GeForce 945M 1399 636 | GeForce GTX 950M 139A 637 | GeForce GTX 950A 139A 17AA 362C 638 | GeForce GTX 950A 139A 17AA 362F 639 | GeForce GTX 950A 139A 17AA 363F 640 | GeForce GTX 950A 139A 17AA 3640 641 | GeForce GTX 950A 139A 17AA 3647 642 | GeForce GTX 950A 139A 17AA 36B9 643 | GeForce GTX 960M 139B 644 | GeForce GTX 750 Ti 139B 1025 107A 645 | GeForce GTX 860M 139B 1028 06A3 646 | GeForce GTX 960A 139B 103C 2B4C 647 | GeForce GTX 750Ti 139B 17AA 3649 648 | GeForce GTX 960A 139B 17AA 36BF 649 | GeForce GTX 750 Ti 139B 19DA C248 650 | GeForce GTX 750Ti 139B 1AFA 8A75 651 | GeForce 940M 139C 652 | GeForce GTX 750 Ti 139D 653 | GeForce GTX 980 13C0 654 | GeForce GTX 970 13C2 655 | GeForce GTX 980M 13D7 656 | GeForce GTX 970M 13D8 657 | GeForce GTX 960 13D8 1462 1198 658 | GeForce GTX 960 13D8 1462 1199 659 | GeForce GTX 960 13D8 19DA B282 660 | GeForce GTX 960 13D8 19DA B284 661 | GeForce GTX 960 13D8 19DA B286 662 | GeForce GTX 965M 13D9 663 | GeForce GTX 980 13DA 664 | GeForce GTX 960 1401 F 665 | GeForce GTX 950 1402 F 666 | GeForce GTX 960 1406 F 667 | GeForce GTX 750 1407 668 | GeForce GTX 965M 1427 669 | GeForce GTX 950 1427 1458 D003 F 670 | GeForce GTX 980M 1617 671 | GeForce GTX 970M 1618 672 | GeForce GTX 965M 1619 673 | GeForce GTX 980 161A 674 | GeForce GTX 965M 1667 675 | GeForce MX130 174D 676 | GeForce MX110 174E 677 | GeForce 940MX 179C 678 | GeForce GTX TITAN X 17C2 679 | GeForce GTX 980 Ti 17C8 680 | TITAN X (Pascal) 1B00 681 | TITAN Xp 1B02 682 | TITAN Xp COLLECTORS EDITION 1B02 10DE 123E 683 | TITAN Xp COLLECTORS EDITION 1B02 10DE 123F 684 | GeForce GTX 1080 Ti 1B06 685 | GeForce GTX 1080 1B80 686 | GeForce GTX 1070 1B81 687 | GeForce GTX 1070 Ti 1B82 688 | GeForce GTX 1060 3GB 1B84 689 | P104-100 1B87 690 | GeForce GTX 1080 1BA0 691 | GeForce GTX 1070 1BA1 692 | GeForce GTX 1070 with MaxQ Design 1BA1 1458 1651 693 | GeForce GTX 1070 with Max-Q Design 1BA1 1462 11E8 694 | GeForce GTX 1070 with Max-Q Design 1BA1 1462 11E9 695 | GeForce GTX 1070 with Max-Q Design 1BA1 1558 9501 696 | GeForce GTX 1070 with Max-Q Design 1BA1 1D05 1032 697 | P104-101 1BC7 698 | GeForce GTX 1080 1BE0 699 | GeForce GTX 1080 with Max-Q Design 1BE0 1025 1221 700 | GeForce GTX 1080 with Max-Q Design 1BE0 1025 123E 701 | GeForce GTX 1080 with Max-Q Design 1BE0 1028 07C0 702 | GeForce GTX 1080 with Max-Q Design 1BE0 1043 1BF0 703 | GeForce GTX 1080 with Max-Q Design 1BE0 1458 355B 704 | GeForce GTX 1070 1BE1 705 | GeForce GTX 1070 with Max-Q Design 1BE1 1043 16F0 706 | GeForce GTX 1060 3GB 1C02 707 | GeForce GTX 1060 6GB 1C03 708 | GeForce GTX 1060 5GB 1C04 709 | GeForce GTX 1060 6GB 1C06 710 | P106-100 1C07 711 | P106-090 1C09 712 | GeForce GTX 1060 1C20 713 | GeForce GTX 1060 with Max-Q Design 1C20 1028 0802 714 | GeForce GTX 1060 with Max-Q Design 1C20 1028 0803 715 | GeForce GTX 1060 with Max-Q Design 1C20 17AA 39B9 716 | GeForce GTX 1050 Ti 1C21 717 | GeForce GTX 1050 1C22 718 | GeForce GTX 1060 1C60 719 | GeForce GTX 1060 with Max-Q Design 1C60 103C 8390 720 | GeForce GTX 1050 Ti 1C61 721 | GeForce GTX 1050 1C62 722 | GeForce GTX 1050 1C81 723 | GeForce GTX 1050 Ti 1C82 724 | GeForce GTX 1050 Ti 1C8C 725 | GeForce GTX 1050 Ti with Max-Q Design 1C8C 17AA 39FF 726 | GeForce GTX 1050 1C8D 727 | GeForce GT 1030 1D01 728 | GeForce MX150 1D10 729 | GeForce MX150 1D12 730 | Quadro 6000 06D8 731 | Quadro 5000 06D9 732 | Quadro 5000M 06DA 733 | Quadro 6000 06DC 734 | Quadro 4000 06DD 735 | Quadro 2000 0DD8 736 | Quadro 2000D 0DD8 10DE 0914 737 | Quadro 2000M 0DDA 738 | Quadro 600 0DF8 739 | Quadro 500M 0DF9 740 | Quadro 1000M 0DFA 741 | Quadro 3000M 0E3A 742 | Quadro 4000M 0E3B 743 | Quadro K420 0FF3 744 | Quadro K1100M 0FF6 745 | Quadro K500M 0FF8 746 | Quadro K2000D 0FF9 747 | Quadro K600 0FFA 748 | Quadro K2000M 0FFB 749 | Quadro K1000M 0FFC 750 | Quadro K2000 0FFE 751 | Quadro 410 0FFF 752 | Quadro K6000 103A 753 | Quadro K5200 103C 754 | Quadro 5010M 109A 755 | Quadro 7000 109B 756 | Quadro K4200 11B4 757 | Quadro K3100M 11B6 758 | Quadro K4100M 11B7 759 | Quadro K5100M 11B8 760 | Quadro K5000 11BA 761 | Quadro K5000M 11BC 762 | Quadro K4000M 11BD 763 | Quadro K3000M 11BE 764 | Quadro K4000 11FA 765 | Quadro K2100M 11FC 766 | Quadro K610M 12B9 767 | Quadro K510M 12BA 768 | Quadro K620M 137A 17AA 2225 769 | Quadro M500M 137A 17AA 2232 770 | Quadro M500M 137A 17AA 505A 771 | Quadro M520 137B 772 | Quadro M2000M 13B0 773 | Quadro M1000M 13B1 774 | Quadro M600M 13B2 775 | Quadro K2200M 13B3 776 | Quadro M620 13B4 777 | Quadro M1200 13B6 778 | Quadro K2200 13BA 779 | Quadro K620 13BB 780 | Quadro K1200 13BC 781 | Quadro M5000 13F0 782 | Quadro M4000 13F1 783 | Quadro M5000M 13F8 784 | Quadro M5000 SE 13F8 10DE 11DD 785 | Quadro M4000M 13F9 786 | Quadro M3000M 13FA 787 | Quadro M3000 SE 13FA 10DE 11C9 788 | Quadro M5500 13FB 789 | Quadro M2000 1430 F 790 | Quadro GP100 15F0 G 791 | Quadro M6000 17F0 792 | Quadro M6000 24GB 17F1 793 | Quadro P6000 1B30 794 | Quadro P5000 1BB0 795 | Quadro P4000 1BB1 796 | Quadro P5200 1BB5 797 | Quadro P5000 1BB6 798 | Quadro P4000 1BB7 799 | Quadro P4000 with Max-Q Design 1BB7 1462 11E9 800 | Quadro P4000 with Max-Q Design 1BB7 1558 9501 801 | Quadro P3000 1BB8 802 | Quadro P2000 1C30 803 | Quadro P1000 1CB1 804 | Quadro P600 1CB2 805 | Quadro P400 1CB3 806 | Quadro P620 1CB6 807 | Quadro P500 1D33 808 | NVS 5400M 0DEF 809 | NVS 5200M 0DFC 810 | NVS 510 0FFD 811 | NVS 4200M 1056 812 | NVS 4200M 1057 813 | NVS 315 107C 814 | NVS 310 107D 815 | NVS 5200M 1140 1043 10DD 816 | NVS 5200M 1140 1043 10ED 817 | NVS 5200M 1140 1043 2136 818 | NVS 5200M 1140 144D C0E2 819 | NVS 5200M 1140 144D C0E3 820 | NVS 5200M 1140 144D C0E4 821 | NVS 5200M 1140 17AA 2200 822 | NVS 810 13B9 823 | Tesla C2050 / C2070 06D1 824 | Tesla C2050 06D1 10DE 0771 825 | Tesla C2070 06D1 10DE 0772 826 | Tesla M2070 06D2 827 | Tesla X2070 06D2 10DE 088F 828 | Tesla T20 Processor 06DE 829 | Tesla S2050 06DE 10DE 0773 830 | Tesla M2050 06DE 10DE 082F 831 | Tesla X2070 06DE 10DE 0840 832 | Tesla M2050 06DE 10DE 0842 833 | Tesla M2050 06DE 10DE 0846 834 | Tesla M2050 06DE 10DE 0866 835 | Tesla M2050 06DE 10DE 0907 836 | Tesla M2050 06DE 10DE 091E 837 | Tesla M2070-Q 06DF 838 | Tesla K20Xm 1021 839 | Tesla K20c 1022 840 | Tesla K40m 1023 841 | Tesla K40c 1024 842 | Tesla K20s 1026 843 | Tesla K40st 1027 844 | Tesla K20m 1028 845 | Tesla K40s 1029 846 | Tesla K40t 102A 847 | Tesla K80 102D 848 | Tesla M2090 1091 849 | Tesla X2090 1091 10DE 088E 850 | Tesla X2090 1091 10DE 0891 851 | Tesla X2090 1091 10DE 0974 852 | Tesla X2090 1091 10DE 098D 853 | Tesla M2075 1094 854 | Tesla C2075 1096 855 | Tesla C2050 1096 10DE 0911 856 | Tesla K10 118F 857 | Tesla K8 1194 858 | Tesla M60 13F2 859 | Tesla M6 13F3 860 | Tesla M4 1431 F 861 | Quadro M2200 1436 F 862 | Tesla P100-PCIE-12GB 15F7 G 863 | Tesla P100-PCIE-16GB 15F8 G 864 | Tesla P100-SXM2-16GB 15F9 G 865 | Tesla M40 17FD 866 | Tesla M40 24GB 17FD 10DE 1173 867 | Tesla P40 1B38 868 | Tesla P4 1BB3 869 | Tesla P6 1BB4 870 | GRID K520 118A 871 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /setup: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Load the configuration file 4 | init() { 5 | DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 6 | source "$DIR"/etc/setup.conf 7 | clear ; setfont Lat2-Terminus16.psfu.gz 8 | dialog --title "Welcome to Arch Linux Installer" \ 9 | --ok-label "Begin Installation" --msgbox "Navigating the installer is \ 10 | easy.\nYou may select options using the ARROW keys and SPACE or \ 11 | ENTER.\nAlternate keys may also be used: '+', '-', and TAB." 7 70 12 | } 13 | 14 | # Proceed with installation only if there is an internet connection 15 | check_connection() { 16 | dialog --infobox "Checking internet connection..." 3 50 17 | # Check if a web page is available 18 | if ! nc -zw1 archlinux.org 443; then 19 | dialog --title "Connect to the Internet" \ 20 | --msgbox "The installer was unable to detect a working internet \ 21 | connection. The installation media supports wired network devices on \ 22 | boot. Make sure the cable is plugged in. Wireless users should use the \ 23 | 'iwctl' command to connect to a wireless connection.\n\nOnce you have \ 24 | a working internet connection, retry running the installer." 10 80 25 | reset ; exit 1 26 | fi 27 | } 28 | 29 | # Check and disable any active mountpoints 30 | check_mountpoints() { 31 | if mountpoint -q /mnt; then 32 | dialog --infobox "Unmounting active mountpoints on $DISK..." 3 50 33 | umount -R /mnt 34 | fi 35 | 36 | if free | awk '/^Swap:/ {exit !$2}'; then 37 | swapoff -a 38 | fi 39 | } 40 | 41 | # Check for LVM on the system to avoid conflicts 42 | check_lvm_status() { 43 | # Check for an existing volume group on the selected disk 44 | if vgs --noheading --nosuffix -o pv_name | grep -q "$DISK"; then 45 | vg_on_pv=$(pvs -o pv_name,vg_name | grep "$DISK" | awk '{print $2}') 46 | dialog --title "WARNING: LVM Exists on $DISK" \ 47 | --yesno "A volume group ($vg_on_pv) was detected on the selected disk \ 48 | ($DISK).\n\nIn order to proceed, the volume group ($vg_on_pv) needs to be \ 49 | removed and all data will be lost!\n\nAre you sure you want to remove the \ 50 | volume group '$vg_on_pv'?" 11 75 51 | if [ $? -eq 0 ]; then 52 | dialog --infobox "Removing $vg_on_pv from $DISK..." 3 50 53 | vgchange -y -an "$vg_on_pv" &> /dev/null 54 | vgremove -y "$vg_on_pv" &> /dev/null 55 | else 56 | dialog --title "ERROR: Unable to Partition $DISK" \ 57 | --msgbox "The installer can't proceed while LVM is active on \ 58 | $DISK.\n\nIf you have any active LVM devices, please make sure they are not in \ 59 | use and backup any data on the volume group before running the installer." 8 80 60 | reset ; exit 1 61 | fi 62 | fi 63 | 64 | # Check for a volume group with the same name on the system when creating LVM 65 | if [ "$PARTITION_LAYOUT" != "Basic" ]; then 66 | if vgs "$LVM_GROUP" &> /dev/null; then 67 | dialog --title "WARNING: LVM Volume Group Exists" \ 68 | --yesno "A volume group with the name '$LVM_GROUP' already exists on \ 69 | your system.\n\nIn order to proceed, the volume group ($LVM_GROUP) needs to be \ 70 | overwritten and all data will be lost!\n\nAre you sure you want to overwrite \ 71 | the volume group '$LVM_GROUP'?" 11 80 72 | if [ $? -eq 0 ]; then 73 | dialog --infobox "Removing $LVM_GROUP from $DISK..." 3 50 74 | vgchange -y -an "$LVM_GROUP" &> /dev/null 75 | vgremove -y "$LVM_GROUP" &> /dev/null 76 | else 77 | dialog --title "ERROR: Unable to Partition $DISK" \ 78 | --msgbox "The installer can't partition the disk because a volume \ 79 | group with the name '$LVM_GROUP' already exists on your system.\n\nIf you have \ 80 | any active LVM devices, please make sure they are not in use and backup any \ 81 | data on the volume group before running the installer." 9 80 82 | reset ; exit 1 83 | fi 84 | fi 85 | fi 86 | } 87 | 88 | # Prompt the user to set their keyboard layout 89 | set_keymap() { 90 | while true; do 91 | KEYMAP=$(dialog --title "Set the Keyboard Layout" --nocancel \ 92 | --default-item "us" --menu "Select a keymap that corresponds to your \ 93 | keyboard layout. Choose 'other' if your keymap is not listed. If you are \ 94 | unsure, the default is 'us' (United States/QWERTY).\n\nKeymap:" 22 57 10 \ 95 | "fr" "French" \ 96 | "de" "German" \ 97 | "gr" "Greek" \ 98 | "hu" "Hungarian" \ 99 | "it" "Italian" \ 100 | "pl" "Polish" \ 101 | "ru" "Russian" \ 102 | "es" "Spanish" \ 103 | "us" "United States" \ 104 | "other" "View all available keymaps" 3>&1 1>&2 2>&3) 105 | 106 | if [ "$KEYMAP" = "other" ]; then 107 | keymaps=() 108 | for map in $(localectl list-keymaps); do 109 | keymaps+=("$map" "") 110 | done 111 | KEYMAP=$(dialog --title "Set the Keyboard Layout" --cancel-label "Back" \ 112 | --menu "Select a keymap that corresponds to your keyboard layout. The \ 113 | default is 'us' (United States/QWERTY)." 30 60 25 \ 114 | "${keymaps[@]}" 3>&1 1>&2 2>&3) 115 | if [ $? -eq 0 ]; then 116 | break 117 | fi 118 | else 119 | break 120 | fi 121 | done 122 | dialog --infobox "Setting keymap to $KEYMAP..." 3 50 123 | localectl set-keymap "$KEYMAP" 124 | loadkeys "$KEYMAP" 125 | } 126 | 127 | # Prompt the user to set the system locale 128 | set_locale() { 129 | while true; do 130 | LOCALE=$(dialog --title "Set the System Locale" --nocancel \ 131 | --default-item "en_US.UTF-8" --menu "Select a locale that corresponds \ 132 | to your language and region. The locale you select will define the language \ 133 | used by the system and other region specific information. Choose 'other' if \ 134 | your language and/or region is not listed. If you are unsure, the default is \ 135 | 'en_US.UTF-8'.\n\nLocale:" 30 65 16 \ 136 | "zh_CN.UTF-8" "Chinese (Simplified)" \ 137 | "en_AU.UTF-8" "English (Australia)" \ 138 | "en_CA.UTF-8" "English (Canada)" \ 139 | "en_US.UTF-8" "English (United States)" \ 140 | "en_GB.UTF-8" "English (Great Britain)" \ 141 | "fr_FR.UTF-8" "French (France)" \ 142 | "de_DE.UTF-8" "German (Germany)" \ 143 | "it_IT.UTF-8" "Italian (Italy)" \ 144 | "ja_JP.UTF-8" "Japanese (Japan)" \ 145 | "pt_BR.UTF-8" "Portuguese (Brazil)" \ 146 | "pt_PT.UTF-8" "Portuguese (Portugal)" \ 147 | "ru_RU.UTF-8" "Russian (Russia)" \ 148 | "es_MX.UTF-8" "Spanish (Mexico)" \ 149 | "es_ES.UTF-8" "Spanish (Spain)" \ 150 | "sv_SE.UTF-8" "Swedish (Sweden)" \ 151 | "other" "View all available locales" 3>&1 1>&2 2>&3) 152 | 153 | if [ "$LOCALE" = "other" ]; then 154 | locales=() 155 | # Read each entry in /etc/locale.gen and remove comments and spaces 156 | while read -r line; do 157 | locales+=("$line" "") 158 | done < <(grep -E "^#?[a-z].*UTF-8" /etc/locale.gen | sed -e 's/#//' -e 's/\s.*$//') 159 | LOCALE=$(dialog --title "Set the System Locale" --cancel-label "Back" \ 160 | --menu "Select a locale that corresponds to your language and region. \ 161 | The locale you select will define the language used by the system and other 162 | region specific information. If you are unsure, the default is \ 163 | 'en_US.UTF-8'.\n\nLocale:" 30 65 16 \ 164 | "${locales[@]}" 3>&1 1>&2 2>&3) 165 | if [ $? -eq 0 ]; then 166 | break 167 | fi 168 | else 169 | break 170 | fi 171 | done 172 | } 173 | 174 | # Prompt the user to set the system time zone 175 | set_timezone() { 176 | utc_enabled=true 177 | regions=() 178 | for region in \ 179 | $(find /usr/share/zoneinfo -mindepth 1 -maxdepth 1 -type d -printf '%f\n' \ 180 | | grep -E -v '/$|posix|right' \ 181 | | sort); do 182 | regions+=("$region" "") 183 | done 184 | regions+=("other" "") 185 | 186 | while true; do 187 | ZONE=$(dialog --title "Set the Time Zone" --nocancel \ 188 | --menu "Select your time zone.\nIf your region is not listed, select \ 189 | 'other'.\n\nTime zone:" 27 50 17 \ 190 | "${regions[@]}" 3>&1 1>&2 2>&3) 191 | 192 | if [ "$ZONE" != "other" ]; then 193 | zone_regions=() 194 | for zone_region in \ 195 | $(find /usr/share/zoneinfo/"${ZONE}" -mindepth 1 -maxdepth 1 -printf '%f\n' \ 196 | | sort); do 197 | zone_regions+=("$zone_region" "") 198 | done 199 | SUBZONE=$(dialog --title "Set the Time Zone" --cancel-label "Back" \ 200 | --menu "Select your time zone.\n\nTime zone:" 27 50 17 \ 201 | "${zone_regions[@]}" 3>&1 1>&2 2>&3) 202 | if [ $? -eq 0 ]; then 203 | if [ -d /usr/share/zoneinfo/"${ZONE}/${SUBZONE}" ]; then 204 | subzone_regions=() 205 | for subzone_region in \ 206 | $(find /usr/share/zoneinfo/"${ZONE}/${SUBZONE}" -mindepth 1 -maxdepth 1 -printf '%f\n' \ 207 | | sort); do 208 | subzone_regions+=("$subzone_region" "") 209 | done 210 | SUBZONE_SUBREGION=$(dialog --title "Set the Time Zone" \ 211 | --cancel-label "Back" \ 212 | --menu "Select your time zone.\n\nTime zone:" 27 50 17 \ 213 | "${subzone_regions[@]}" 3>&1 1>&2 2>&3) 214 | if [ $? -eq 0 ]; then 215 | ZONE="${ZONE}/${SUBZONE}/${SUBZONE_SUBREGION}" 216 | break 217 | fi 218 | else 219 | ZONE="${ZONE}/${SUBZONE}" 220 | break 221 | fi 222 | fi 223 | else 224 | for other_region in \ 225 | $(find /usr/share/zoneinfo -mindepth 1 -maxdepth 1 -type f -printf '%f\n' \ 226 | | grep -E -v '/$|iso3166.tab|leapseconds|posixrules|tzdata.zi|zone.tab|zone1970.tab' \ 227 | | sort); do 228 | other_regions+=("$other_region" "") 229 | done 230 | ZONE=$(dialog --title "Set the Time Zone" --cancel-label "Back" \ 231 | --menu "Select your time zone.\n\nTime zone:" 27 50 17 \ 232 | "${other_regions[@]}" 3>&1 1>&2 2>&3) 233 | if [ $? -eq 0 ]; then 234 | ZONE="${ZONE}" 235 | break 236 | fi 237 | fi 238 | done 239 | 240 | dialog --title "Set the Hardware Clock" --nocancel \ 241 | --yesno "Would you like to set the hardware clock from the system \ 242 | clock using UTC time?\nIf you select no, local time will be used \ 243 | instead.\n\nIf you are unsure, UTC time is the default." 8 85 244 | if [ $? -ne 0 ]; then 245 | utc_enabled=false 246 | fi 247 | } 248 | 249 | # Prompt the user to set the system hostname 250 | set_hostname() { 251 | while true; do 252 | HOST_NAME=$(dialog --title "Set the Hostname" --nocancel \ 253 | --inputbox "Please enter the hostname for this system.\n\nThe hostname \ 254 | is a single word that identifies your system to the network.\n\nHostname:" \ 255 | 12 80 "arch" 3>&1 1>&2 2>&3) 256 | 257 | # Hostname must be alpha-numeric and may contain a dash only in between 258 | if printf "%s" "$HOST_NAME" | grep -Eoq "^[a-zA-Z0-9-]{1,63}$" \ 259 | && [ "${HOST_NAME:0:1}" != "-" ] \ 260 | && [ "${HOST_NAME: -1}" != "-" ]; then 261 | break 262 | else 263 | dialog --title "ERROR: Invalid Hostname Format" \ 264 | --msgbox "You entered an invalid hostname.\n\nA valid hostname may \ 265 | contain only the numbers 0-9, upper and lowercase letters (A-Z and a-z), and \ 266 | the minus sign. It must be at most 63 characters long, and may not begin \ 267 | or end with a minus sign." 9 75 268 | fi 269 | done 270 | } 271 | 272 | # Prompt the user to create a password for the superuser account 273 | set_root_passwd(){ 274 | inputs_match=false 275 | while ! $inputs_match; do 276 | input=$(dialog --title "Set the Root Password" --clear --stdout --nocancel \ 277 | --insecure --passwordbox "Please enter a password for 'root', the \ 278 | system administrative account.\n\nRoot password:" 10 75) 279 | confirm_input=$(dialog --title "Set the Root Password" --clear --stdout \ 280 | --insecure --passwordbox "Re-enter password to verify:" 8 55) 281 | 282 | if [ -z "$input" ]; then 283 | dialog --title "ERROR: Empty Password" \ 284 | --msgbox "You are not allowed to have an empty password." 5 55 285 | elif [ "$input" != "$confirm_input" ]; then 286 | dialog --title "ERROR: Passwords Do No Match" \ 287 | --msgbox "The two passwords you entered did not match." 5 55 288 | else 289 | root_passwd="$input" 290 | inputs_match=true 291 | fi 292 | done 293 | } 294 | 295 | # Prompt the user to create an unprivileged user account 296 | create_user() { 297 | while true; do 298 | FULL_NAME=$(dialog --title "Create a User Account" --nocancel \ 299 | --inputbox "The installer will create a user account for you. This is \ 300 | the main user account that you will login to and use for non-administrative \ 301 | activities.\n\nPlease enter the real name for this user. This information \ 302 | will be used for any program that uses the user's real name such as email. \ 303 | Entering your full name here is recommended; however, it may be left \ 304 | blank.\n\nFull name for the new user:" 15 80 3>&1 1>&2 2>&3) 305 | 306 | USER_NAME=$(dialog --title "Create a User Account" \ 307 | --cancel-label "Back" --inputbox "Please enter a username for the new \ 308 | account.\n\nThe username should start with a lower-case letter, which can be \ 309 | followed by any combination of numbers, more lower-case letters, or the dash \ 310 | symbol.\n\nUsername for your account:" 13 80 3>&1 1>&2 2>&3) 311 | 312 | if [ $? -eq 0 ]; then 313 | # Username must start with lowercase letter. May contain lowercase 314 | # alpha-numerics and dashes 315 | if printf "%s" "$USER_NAME" | grep -Eoq "^[a-z][a-z0-9-]*$" \ 316 | && [ "${#USER_NAME}" -lt 33 ]; then 317 | # The reserved_username file contains usernames that should be avoided 318 | if grep -Fxq "$USER_NAME" "$DIR"/etc/reserved_usernames; then 319 | dialog --title "ERROR: Reserved Username" \ 320 | --msgbox "The username you entered ($USER_NAME) is reserved for \ 321 | use by the system. Please select a different one." 6 70 322 | else 323 | inputs_match=false 324 | while ! $inputs_match; do 325 | input=$(dialog --title "Set the Password for $USER_NAME" --clear \ 326 | --stdout --nocancel --insecure --passwordbox "Please enter a \ 327 | password for '$USER_NAME'.\n\nChoose a password for the new user:" 10 70) 328 | confirm_input=$(dialog --title "Set the Password for $USER_NAME" \ 329 | --clear --stdout --insecure \ 330 | --passwordbox "Re-enter password to verify:" 8 55) 331 | 332 | if [ -z "$input" ]; then 333 | dialog --title "ERROR: Empty Password" \ 334 | --msgbox "You are not allowed to have an empty password." 5 55 335 | elif [ "$input" != "$confirm_input" ]; then 336 | dialog --title "ERROR: Passwords Do No Match" \ 337 | --msgbox "The two passwords you entered did not match." 5 55 338 | else 339 | user_passwd="$input" 340 | inputs_match=true 341 | fi 342 | done 343 | break 344 | fi 345 | else 346 | dialog --title "ERROR: Invalid Username Format" \ 347 | --msgbox "You entered an invalid username.\n\nThe username must \ 348 | start with a lower-case letter, which can be followed by any combination of \ 349 | numbers, more lower-case letters, or the dash symbol, and must be no more \ 350 | than 32 characters long." 9 80 351 | fi 352 | fi 353 | done 354 | } 355 | 356 | # Prepare the user's selected disk for partitioning 357 | prepare_disk() { 358 | SWAP="-" 359 | swap_enabled=false 360 | block_devices=() 361 | # List all available block devices excluding 'rom' and 'loop' 362 | for device in $(lsblk -d -n -p -r -e 7,11 -o NAME); do 363 | device_size=$(lsblk -d -n -r -o SIZE "$device") 364 | block_devices+=("$device" "$device_size") 365 | done 366 | 367 | check_mountpoints 368 | while true; do 369 | PARTITION_LAYOUT=$(dialog --title "Partition the Disks" \ 370 | --cancel-label "Exit to Menu" \ 371 | --menu "The installer will now automatically partition a disk for you. \ 372 | If you have no preference or are unsure about which partition layout to \ 373 | choose, the 'Basic' layout is the simplest and should be enough for most use \ 374 | cases.\n\nPartition layout:" 14 80 3 \ 375 | "Basic" "Use entire disk" \ 376 | "LVM" "Use entire disk and set up LVM" \ 377 | "Encrypted" "Use entire disk and set up encrypted LVM" 3>&1 1>&2 2>&3) 378 | 379 | if [ $? -eq 0 ]; then 380 | DISK=$(dialog --title "Set the Installation Disk" --cancel-label "Back" \ 381 | --menu "Select the disk for Arch Linux to be installed on. Note that \ 382 | the disk you select will be erased, but not until you have confirmed the \ 383 | changes.\n\nDisk to partition:" 16 55 5 \ 384 | "${block_devices[@]}" 3>&1 1>&2 2>&3) 385 | 386 | if [ $? -eq 0 ]; then 387 | # NVME devices use nvme0n1p1, p2, p3 etc. for partition naming 388 | # TODO: May need to be modified to support installing on other block 389 | # devices (SD cards, USB?) 390 | PREFIX="" 391 | if [[ "$DISK" == *"nvme"* ]]; then 392 | PREFIX="p" 393 | fi 394 | 395 | FILE_SYSTEM=$(dialog --title "Set the Filesystem for $DISK_ROOT" \ 396 | --nocancel --menu "Select the type of filesystem to use for the \ 397 | specified device. If you are unsure, 'ext4' is the default.\n\nFilesystem \ 398 | type:" 15 68 5 \ 399 | "ext4" "Ext4 journaling filesystem" \ 400 | "ext3" "Ext3 journaling filesystem" \ 401 | "ext2" "Standard Linux Ext2 filesystem" \ 402 | "btrfs" "Btrfs Copy-on-Write B-tree filesystem" \ 403 | "xfs" "SGI's journaling filesystem" 3>&1 1>&2 2>&3) 404 | 405 | dialog --title "Create a Swap Partition" \ 406 | --yesno "Would you like to create an optional swap partition? If \ 407 | you are unsure, it is recommended to create one." 6 57 408 | if [ $? -eq 0 ]; then 409 | # Get the amount of RAM in the system to use as default swap size 410 | mem_total=$(free --giga | awk '/^Mem:/{print $2}') 411 | if [ "$mem_total" != "0" ]; then 412 | mem_total="${mem_total}G" 413 | else 414 | mem_total=$(free --mega | awk '/^Mem:/{print $2}') 415 | mem_total="${mem_total}M" 416 | fi 417 | 418 | while true; do 419 | SWAP=$(dialog --title "Allocate Swap Space" \ 420 | --inputbox "Specify how much swap space to allocate. If you are \ 421 | unsure, the default is to have swap space equal to the amount of RAM in your \ 422 | system.\n\nSwap partition size (use 'M' for MiB or 'G' for GiB):" 11 80 \ 423 | "$mem_total" 3>&1 1>&2 2>&3) 424 | 425 | if [ $? -eq 0 ]; then 426 | disk_size_bytes=$(lsblk -b -d -n -o SIZE "$DISK") 427 | disk_size_mibs=$((disk_size_bytes/1024/1024)) 428 | disk_size_gibs=$((disk_size_mibs/1024)) 429 | swap_size=$(printf "%s" "$SWAP" | tr -c -d '[:digit:]') 430 | 431 | # Input validation for swap size 432 | if printf "%s" "$SWAP" | grep -Eoq "^[0-9]+[MG]$" \ 433 | && [ "${swap_size:0:1}" != "0" ]; then 434 | if [ "${SWAP: -1}" = "M" ] \ 435 | && [ "$swap_size" -lt $((disk_size_mibs - 2048)) ]; then 436 | swap_enabled=true 437 | break 438 | elif [ "${SWAP: -1}" = "G" ] \ 439 | && [ "$swap_size" -lt $((disk_size_gibs - 2)) ]; then 440 | swap_enabled=true 441 | break 442 | else 443 | dialog --title "ERROR: Not Enough Disk Space" \ 444 | --msgbox "The amount you entered exceeds the amount of \ 445 | space available on the disk. Note that the installer sets aside an additional \ 446 | 2 GiB to have enough space for the base installation." 8 60 447 | fi 448 | else 449 | dialog --title "ERROR: Invalid Format" \ 450 | --msgbox "You entered an invalid format. Make sure to use \ 451 | 'M' for 'MiB' or 'G' for 'GiB'." 6 60 452 | fi 453 | else 454 | break 455 | fi 456 | done 457 | fi 458 | 459 | dialog --title "Confirm the Partition Layout for $DISK" --defaultno \ 460 | --yesno "WARNING: All data on the selected disk will be lost! Make \ 461 | sure to review your changes before continuing.\n\nDisk to partition: \ 462 | $DISK\nPartition layout: $PARTITION_LAYOUT\nFilesystem type: \ 463 | $FILE_SYSTEM\nSwap size: $SWAP\n\nAre you sure you want to write the \ 464 | changes to the disk?" 13 60 465 | if [ $? -eq 0 ]; then 466 | check_lvm_status 467 | dialog --infobox "Formatting $DISK..." 3 50 468 | sgdisk --zap-all "$DISK" &> /dev/null 469 | wipefs -a "$DISK" &> /dev/null 470 | dialog --infobox "Partitioning $DISK..." 3 50 471 | create_partition_label 472 | case "$PARTITION_LAYOUT" in 473 | "Basic") create_basic_layout ;; 474 | "LVM") create_lvm_layout ;; 475 | "Encrypted") create_encrypted_layout ;; 476 | esac 477 | break 478 | else 479 | main_menu 480 | fi 481 | fi 482 | else 483 | main_menu 484 | fi 485 | done 486 | } 487 | 488 | # Create a new partition label on the selected disk 489 | create_partition_label() { 490 | # UEFI systems use GPT partitioning and BIOS/CSM systems use MBR 491 | if $UEFI; then 492 | parted -s "$DISK" mklabel gpt &> /dev/null 493 | else 494 | parted -s "$DISK" mklabel msdos &> /dev/null 495 | fi 496 | if [ $? -ne 0 ]; then 497 | dialog --title "ERROR: Unable to Partition $DISK" \ 498 | --msgbox "The installer encountered an error while partitioning \ 499 | $DISK.\n\nMake sure the disk you selected is not active before running the \ 500 | installer. If this error keeps occuring, please reboot your machine and try \ 501 | again." 8 80 502 | reset ; exit 1 503 | fi 504 | } 505 | 506 | # Partition the selected disk where everything is installed on one partition 507 | create_basic_layout() { 508 | if $UEFI; then 509 | BOOT_PART="${DISK}${PREFIX}1" 510 | ROOT_PART="${DISK}${PREFIX}2" 511 | if $swap_enabled; then 512 | SWAP_PART="${DISK}${PREFIX}3" 513 | sgdisk -n 1:0:+512M -n 2:0:-"$SWAP" -n 3:-"$SWAP":-0 \ 514 | -t 1:ef00 -t 2:8300 -t 3:8200 "$DISK" &> /dev/null 515 | mkswap "$SWAP_PART" &> /dev/null 516 | swapon "$SWAP_PART" 517 | else 518 | sgdisk -n 1:0:+512M -n 2:0:0 -t 1:ef00 -t 2:8300 "$DISK" &> /dev/null 519 | fi 520 | mkfs.fat -F32 "$BOOT_PART" &> /dev/null 521 | else 522 | ROOT_PART="${DISK}${PREFIX}1" 523 | if $swap_enabled; then 524 | SWAP_PART="${DISK}${PREFIX}2" 525 | echo -e "n\np\n1\n\n-${SWAP}\nn\np\n2\n\n\nt\n2\n82\nw" \ 526 | | fdisk "$DISK" &> /dev/null 527 | mkswap "$SWAP_PART" &> /dev/null 528 | swapon "$SWAP_PART" 529 | else 530 | echo -e "n\np\n1\n\n\nw" | fdisk "$DISK" &> /dev/null 531 | fi 532 | fi 533 | 534 | case "$FILE_SYSTEM" in 535 | btrfs|xfs) mkfs."$FILE_SYSTEM" -f "$ROOT_PART" &> /dev/null ;; 536 | *) mkfs."$FILE_SYSTEM" "$ROOT_PART" &> /dev/null ;; 537 | esac 538 | mount "$ROOT_PART" /mnt 539 | if [ $? -eq 0 ]; then 540 | mounted=true 541 | fi 542 | if $UEFI; then 543 | mkdir /mnt/boot 544 | mount "$BOOT_PART" /mnt/boot 545 | fi 546 | } 547 | 548 | # Partition the selected disk and configure LVM 549 | create_lvm_layout() { 550 | if $UEFI; then 551 | BOOT_PART="${DISK}${PREFIX}1" 552 | ROOT_PART="${DISK}${PREFIX}2" 553 | sgdisk -n 1:0:+512M -n 2:0:0 -t 1:ef00 -t 2:8e00 "$DISK" &> /dev/null 554 | mkfs.fat -F32 "$BOOT_PART" &> /dev/null 555 | else 556 | ROOT_PART="${DISK}${PREFIX}1" 557 | echo -e "n\np\n1\n\n\nt\n8e\nw" | fdisk "$DISK" &> /dev/null 558 | fi 559 | 560 | dialog --infobox "Configuring LVM on $ROOT_PART..." 3 50 561 | pvcreate -y "$ROOT_PART" &> /dev/null 562 | vgcreate -y "$LVM_GROUP" "$ROOT_PART" &> /dev/null 563 | if $swap_enabled; then 564 | lvcreate -y -L "$SWAP" "$LVM_GROUP" -n "$LVM_SWAP" &> /dev/null 565 | lvcreate -y -l 100%FREE "$LVM_GROUP" -n "$LVM_ROOT" &> /dev/null 566 | mkswap "/dev/${LVM_GROUP}/${LVM_SWAP}" &> /dev/null 567 | swapon "/dev/${LVM_GROUP}/${LVM_SWAP}" 568 | else 569 | lvcreate -y -l 100%FREE "$LVM_GROUP" -n "$LVM_ROOT" &> /dev/null 570 | fi 571 | 572 | case "$FILE_SYSTEM" in 573 | btrfs|xfs) mkfs."$FILE_SYSTEM" -f "/dev/${LVM_GROUP}/${LVM_ROOT}" &> /dev/null ;; 574 | *) mkfs."$FILE_SYSTEM" "/dev/${LVM_GROUP}/${LVM_ROOT}" &> /dev/null ;; 575 | esac 576 | mount "/dev/${LVM_GROUP}/${LVM_ROOT}" /mnt 577 | if [ $? -eq 0 ]; then 578 | mounted=true 579 | fi 580 | if $UEFI; then 581 | mkdir /mnt/boot 582 | mount "$BOOT_PART" /mnt/boot 583 | fi 584 | } 585 | 586 | # Partition the selected disk and set up root disk encryption (LVM on LUKS) 587 | create_encrypted_layout() { 588 | # /boot is left unencrypted 589 | BOOT_PART="${DISK}${PREFIX}1" 590 | ROOT_PART="${DISK}${PREFIX}2" 591 | if $UEFI; then 592 | sgdisk -n 1:0:+512M -n 2:0:0 -t 1:ef00 -t 2:8e00 "$DISK" &> /dev/null 593 | mkfs.fat -F32 "$BOOT_PART" &> /dev/null 594 | else 595 | echo -e "n\np\n1\n\n+512M\nn\np\n2\n\n\nt\n2\n8e\nw" | fdisk "$DISK" &> /dev/null 596 | mkfs.ext4 "$BOOT_PART" &> /dev/null 597 | fi 598 | 599 | inputs_match=false 600 | while ! $inputs_match; do 601 | input=$(dialog --title "Encrypt $ROOT_PART" --clear --stdout \ 602 | --insecure --passwordbox "Enter a passphrase to encrypt \ 603 | $ROOT_PART.\n\nThe overall strength of the encryption process depends \ 604 | strongly on this passphrase, therefore you should set a passphrase that is \ 605 | not easy to guess.\n\nNote that the passphrase you enter will be required \ 606 | each time on boot.\n\nEncryption passphrase:" 15 80) 607 | 608 | if [ $? -eq 0 ]; then 609 | confirm_input=$(dialog --title "Encrypt $ROOT_PART" --clear --stdout \ 610 | --insecure --passwordbox "Re-enter passphrase to verify:" 8 55) 611 | 612 | if [ -z "$input" ]; then 613 | dialog --title "ERROR: Empty Passphrase" \ 614 | --msgbox "You are not allowed to have an empty passphrase." 5 55 615 | elif [ "$input" != "$confirm_input" ]; then 616 | dialog --title "ERROR: Passphrases Do No Match" \ 617 | --msgbox "The two passphrases you entered did not match." 5 55 618 | elif [ "${#input}" -lt 8 ]; then 619 | dialog --title "WARNING: Weak Passphrase" --defaultno \ 620 | --yesno "The passphrase you entered is less than 8 characters which \ 621 | is considered insecure.\n\nContinue using a weak passphrase?" 8 60 622 | if [ $? -eq 0 ]; then 623 | inputs_match=true 624 | fi 625 | else 626 | inputs_match=true 627 | fi 628 | else 629 | dialog --title "Revert Partition Changes" --defaultno \ 630 | --yesno "Are you sure you want to cancel the encryption \ 631 | process? If you choose yes, you will be returned to the partition menu." 7 65 632 | if [ $? -eq 0 ]; then 633 | prepare_disk 634 | fi 635 | fi 636 | done 637 | 638 | dialog --infobox "Encrypting $ROOT_PART..." 3 50 639 | printf "%s" "$input" | cryptsetup luksFormat "$ROOT_PART" - &> /dev/null 640 | printf "%s" "$input" | cryptsetup open "$ROOT_PART" "$CRYPT_DEVICE_NAME" - 641 | dialog --infobox "Configuring LVM on $ROOT_PART..." 3 50 642 | pvcreate -y "/dev/mapper/${CRYPT_DEVICE_NAME}" &> /dev/null 643 | vgcreate -y "$LVM_GROUP" "/dev/mapper/${CRYPT_DEVICE_NAME}" &> /dev/null 644 | 645 | if $swap_enabled; then 646 | lvcreate -y -L "$SWAP" "$LVM_GROUP" -n "$LVM_SWAP" &> /dev/null 647 | lvcreate -y -l 100%FREE "$LVM_GROUP" -n "$LVM_ROOT" &> /dev/null 648 | mkswap "/dev/mapper/${LVM_GROUP}-${LVM_SWAP}" &> /dev/null 649 | swapon "/dev/mapper/${LVM_GROUP}-${LVM_SWAP}" 650 | else 651 | lvcreate -y -l 100%FREE "$LVM_GROUP" -n "$LVM_ROOT" &> /dev/null 652 | fi 653 | 654 | case "$FILE_SYSTEM" in 655 | btrfs|xfs) mkfs."$FILE_SYSTEM" -f "/dev/mapper/${LVM_GROUP}-${LVM_ROOT}" &> /dev/null ;; 656 | *) mkfs."$FILE_SYSTEM" "/dev/mapper/${LVM_GROUP}-${LVM_ROOT}" &> /dev/null ;; 657 | esac 658 | mount "/dev/mapper/${LVM_GROUP}-${LVM_ROOT}" /mnt 659 | if [ $? -eq 0 ]; then 660 | mounted=true 661 | fi 662 | mkdir /mnt/boot 663 | mount "$BOOT_PART" /mnt/boot 664 | } 665 | 666 | # Use the reflector script to update the pacman mirror list 667 | update_mirrorlist() { 668 | dialog --title "Update the Mirror List" \ 669 | --yesno "Would you like to update the Arch Linux mirror list?\n\nUpdating \ 670 | the mirror list will speed up the download of packages. If you select no, \ 671 | your download speed may be affected." 8 70 672 | 673 | if [ $? -eq 0 ]; then 674 | dialog --infobox "Updating pacman mirror list..." 3 50 675 | # Sort the 50 most recently synchronized HTTPS mirrors by download speed 676 | reflector --latest 50 --protocol https --sort rate --save /etc/pacman.d/mirrorlist 677 | fi 678 | } 679 | 680 | # Prompt the user to install the base packages for the system 681 | configure_install() { 682 | bluetooth_enabled=false 683 | dm_enabled=false 684 | multilib=false 685 | DESKTOP_PACKAGES=() 686 | 687 | if $UEFI; then 688 | DESKTOP_PACKAGES+=('efibootmgr') 689 | fi 690 | 691 | if [ "$PARTITION_LAYOUT" = "LVM" ]; then 692 | DESKTOP_PACKAGES+=('lvm2') 693 | elif [ "$PARTITION_LAYOUT" = "Encrypted" ]; then 694 | DESKTOP_PACKAGES+=('lvm2' 'cryptsetup') 695 | fi 696 | 697 | if [ "$FILE_SYSTEM" = "btrfs" ]; then 698 | DESKTOP_PACKAGES+=('btrfs-progs') 699 | elif [ "$FILE_SYSTEM" = "xfs" ]; then 700 | DESKTOP_PACKAGES+=('xfsprogs') 701 | fi 702 | 703 | if [ "$architecture" = "x86_64" ]; then 704 | dialog --title "Enable multilib" \ 705 | --yesno "Would you like to enable the 'multilib' repository?\n\nBy \ 706 | default, Arch only includes 64-bit software in its repositories. The \ 707 | 'multilib' repository contains 32-bit software that is compatible on a 64-bit \ 708 | system (e.g. wine, steam, etc)." 9 70 709 | if [ $? -eq 0 ]; then 710 | multilib=true 711 | fi 712 | fi 713 | 714 | while true; do 715 | DESKTOP=$(dialog --title "Choose your Graphical Environment" --no-cancel \ 716 | --menu "Select the style of graphical environment you wish to \ 717 | use.\n\nGraphical environment:" 12 75 3 \ 718 | "Desktop Environment" "Traditional complete graphical user interface" \ 719 | "Window Manager" "Standalone minimal graphical user interface" \ 720 | "None" "Command-line only interface" 3>&1 1>&2 2>&3) 721 | 722 | if [ "$DESKTOP" = "Desktop Environment" ]; then 723 | GUI=$(dialog --title "Select a Desktop Environment" \ 724 | --cancel-label "Back" \ 725 | --menu "Select a desktop environment to install:" 15 65 8 \ 726 | "Budgie" "Modern GNOME based desktop" \ 727 | "Cinnamon" "Traditional desktop experience" \ 728 | "GNOME" "Modern simplicity focused desktop" \ 729 | "KDE Plasma" "Full featured QT based desktop" \ 730 | "LXDE" "Lightweight and efficient desktop" \ 731 | "LXQT" "Lightweight and efficient QT based desktop" \ 732 | "MATE" "Continuation of the GNOME 2 desktop" \ 733 | "Xfce" "Lightweight and modular desktop" 3>&1 1>&2 2>&3) 734 | if [ $? -eq 0 ]; then 735 | break 736 | fi 737 | elif [ "$DESKTOP" = "Window Manager" ]; then 738 | GUI=$(dialog --title "Select a Window Manager" \ 739 | --cancel-label "Back" \ 740 | --menu "Select a window manager to install:" 13 75 6 \ 741 | "awesome" "Highly configurable, dynamic window manager" \ 742 | "bspwm" "Tiling window manager based on binary space partitioning" \ 743 | "Fluxbox" "Stacking window manager based on Blackbox" \ 744 | "i3" "Dynamic tiling window manager inspired by wmii" \ 745 | "Openbox" "Highly configurable, stacking window manager" \ 746 | "xmonad" "Dynamic tiling window manager configured in Haskell" 3>&1 1>&2 2>&3) 747 | if [ $? -eq 0 ]; then 748 | break 749 | fi 750 | else 751 | break 752 | fi 753 | done 754 | 755 | if [ "$DESKTOP" != "None" ]; then 756 | DESKTOP_PACKAGES+=("${DESKTOP_DEFAULTS[@]}") 757 | case "$GUI" in 758 | "Budgie") DESKTOP_PACKAGES+=('budgie-desktop' 'gnome-control-center') 759 | dialog --title "Install Extras" --yesno "Would you like to \ 760 | install the 'gnome' group?\n\nIt contains additional utilities and \ 761 | applications that integrate well with the Budgie desktop." 8 60 762 | if [ $? -eq 0 ]; then 763 | DESKTOP_PACKAGES+=('gnome') 764 | fi 765 | xinit_config="export XDG_CURRENT_DESKTOP=Budgie:GNOME ; exec budgie-desktop" 766 | ;; 767 | "Cinnamon") DESKTOP_PACKAGES+=('cinnamon' 'cinnamon-translations' 'nemo-fileroller') 768 | xinit_config="exec cinnamon-session" 769 | ;; 770 | "GNOME") DESKTOP_PACKAGES+=('gnome') 771 | dialog --title "Install Extras" --yesno "Would you like to \ 772 | install the 'gnome-extra' group?\n\nIt contains additional utilities and \ 773 | applications that integrate well with the GNOME desktop." 8 60 774 | if [ $? -eq 0 ]; then 775 | DESKTOP_PACKAGES+=('gnome-extra') 776 | fi 777 | xinit_config="exec gnome-session" 778 | ;; 779 | "KDE Plasma") DESKTOP_PACKAGES+=('plasma') 780 | dialog --title "Install Extras" --yesno "Would you like \ 781 | to install the 'kde-applications' group?\n\nIt contains additional utilities \ 782 | and applications that integrate well with the Plasma desktop." 8 60 783 | if [ $? -eq 0 ]; then 784 | DESKTOP_PACKAGES+=('kde-applications') 785 | fi 786 | xinit_config="exec startkde" 787 | ;; 788 | "LXDE") DESKTOP_PACKAGES+=('lxde') 789 | xinit_config="exec startlxde" 790 | ;; 791 | "LXQT") DESKTOP_PACKAGES+=('lxqt' 'breeze-icons') 792 | xinit_config="exec startlxqt" 793 | ;; 794 | "MATE") DESKTOP_PACKAGES+=('mate' 'gtk-engines' 'gtk-engine-murrine') 795 | dialog --title "Install Extras" --yesno "Would you like to \ 796 | install the 'mate-extra' group?\n\nIt contains additional utilities and \ 797 | applications that integrate well with the MATE desktop." 8 60 798 | if [ $? -eq 0 ]; then 799 | DESKTOP_PACKAGES+=('mate-extra') 800 | fi 801 | xinit_config="exec mate-session" 802 | ;; 803 | "Xfce") DESKTOP_PACKAGES+=('xfce4') 804 | dialog --title "Install Extras" --yesno "Would you like to \ 805 | install the 'xfce4-goodies' group?\n\nIt contains additional utilities and \ 806 | applications that integrate well with the Xfce desktop." 8 60 807 | if [ $? -eq 0 ]; then 808 | DESKTOP_PACKAGES+=('xfce4-goodies') 809 | fi 810 | xinit_config="exec startxfce4" 811 | ;; 812 | "awesome") DESKTOP_PACKAGES+=('awesome') 813 | xinit_config="exec awesome" 814 | ;; 815 | "bspwm") DESKTOP_PACKAGES+=('bspwm' 'sxhkd') 816 | xinit_config="sxhkd & ; exec bspwm" 817 | ;; 818 | "Fluxbox") DESKTOP_PACKAGES+=('fluxbox') 819 | xinit_config="exec startfluxbox" 820 | ;; 821 | "i3") DESKTOP_PACKAGES+=('i3') 822 | xinit_config="exec i3" 823 | ;; 824 | "Openbox") DESKTOP_PACKAGES+=('openbox') 825 | xinit_config="exec openbox-session" 826 | ;; 827 | "xmonad") DESKTOP_PACKAGES+=('xmonad' 'xmonad-contrib') 828 | xinit_config="exec xmonad" 829 | ;; 830 | esac 831 | 832 | # GNOME already has networkmanager applet built-in. Plasma uses plasma-nm 833 | if [ "$GUI" != "GNOME" ]; then 834 | if [ "$GUI" = "KDE Plasma" ]; then 835 | DESKTOP_PACKAGES+=('plasma-nm') 836 | else 837 | DESKTOP_PACKAGES+=('network-manager-applet' 'gnome-keyring') 838 | fi 839 | fi 840 | 841 | # Check for available bluetooth devices 842 | if $bluetooth; then 843 | dialog --title "Enable Bluetooth" \ 844 | --yesno "The installer has detected Bluetooth support on your \ 845 | system.\n\nWould you like to install and enable the Bluetooth service?" 7 65 846 | if [ $? -eq 0 ]; then 847 | bluetooth_enabled=true 848 | DESKTOP_PACKAGES+=('bluez' 'bluez-utils' 'pulseaudio-bluetooth') 849 | dialog --title "Install Bluetooth Manager" \ 850 | --yesno "Would you like to install a graphical Bluetooth \ 851 | manager?\n\nThe utility that best integrates with the desktop environment \ 852 | you selected will be installed." 8 60 853 | if [ $? -eq 0 ]; then 854 | case "$GUI" in 855 | "Budgie"|"GNOME") DESKTOP_PACKAGES+=('gnome-bluetooth') ;; 856 | "Cinnamon") DESKTOP_PACKAGES+=('blueberry') ;; 857 | "KDE Plasma") DESKTOP_PACKAGES+=('bluedevil') ;; 858 | *) DESKTOP_PACKAGES+=('blueman') ;; 859 | esac 860 | fi 861 | fi 862 | fi 863 | 864 | dialog --title "Install a Display Manager" \ 865 | --yesno "Would you like to install a graphical login manager?\n\nIf you \ 866 | select no, 'xinit' will be installed so you can manually start Xorg with the\ 867 | 'startx' command." 8 60 868 | if [ $? -eq 0 ]; then 869 | DM=$(dialog --title "Install a Display Manager" \ 870 | --menu "Select a display manager to install:" 10 50 3 \ 871 | "gdm" "GNOME Display Manager" \ 872 | "lightdm" "Lightweight Display Manager" \ 873 | "sddm" "Simple Desktop Display Manager" 3>&1 1>&2 2>&3) 874 | if [ $? -eq 0 ]; then 875 | dm_enabled=true 876 | case "$DM" in 877 | "gdm") DESKTOP_PACKAGES+=('gdm') ;; 878 | "lightdm") DESKTOP_PACKAGES+=('lightdm' 'lightdm-gtk-greeter' 'lightdm-gtk-greeter-settings') ;; 879 | "sddm") DESKTOP_PACKAGES+=('sddm') ;; 880 | esac 881 | else 882 | DESKTOP_PACKAGES+=('xorg-xinit') 883 | dialog --title "xinit" \ 884 | --msgbox "No display manager selected. Installing 'xorg-xinit'. The \ 885 | installer will create a xinitrc file for you.\n\nYou will need to use the \ 886 | 'startx' command to start the graphical environment once you login." 9 57 887 | fi 888 | else 889 | DESKTOP_PACKAGES+=('xorg-xinit') 890 | dialog --title "xinit" \ 891 | --msgbox "No display manager selected. Installing 'xorg-xinit'. The \ 892 | installer will create a xinitrc file for you.\n\nYou will need to use the \ 893 | 'startx' command to start the graphical environment once you login." 9 57 894 | fi 895 | 896 | # Intel/AMD/NVIDIA drivers are not installed on virtual machines 897 | if [ "$hypervisor" = "none" ]; then 898 | if lspci | grep "VGA" | grep -iq "Intel"; then 899 | DESKTOP_PACKAGES+=('xf86-video-intel') 900 | fi 901 | 902 | if lspci | grep "VGA" | grep -iq "NVIDIA"; then 903 | gpu_driver=$(dialog --title "Install Graphics Driver" --no-cancel \ 904 | --menu "The installer has detected an NVIDIA graphics card on your \ 905 | system.\n\nYou may choose to install either the open-source or proprietary \ 906 | driver. If you are unsure, the proprietary driver usually offers the best \ 907 | performance.\n\nGraphics driver:" 16 70 3 \ 908 | "NVIDIA" "Proprietary NVIDIA driver" \ 909 | "Nouveau" "Open-source Nouveau driver" \ 910 | "None" "-" 3>&1 1>&2 2>&3) 911 | if [ "$gpu_driver" = "NVIDIA" ]; then 912 | # Get only the GPU PCI device ID 913 | gpu_pci_id=$(lspci -nn | grep -ioP 'VGA.*NVIDIA.*\[\K[\w:]+' | sed 's/.*://') 914 | # Automatically install the correct driver based on the PCI ID data 915 | if grep -Fq "$gpu_pci_id" "$DIR"/etc/nvidia_390_pci_ids; then 916 | DESKTOP_PACKAGES+=('nvidia-390xx' 'nvidia-390xx-utils' 'nvidia-390xx-settings') 917 | elif grep -Fq "$gpu_pci_id" "$DIR"/etc/nvidia_340_pci_ids; then 918 | # Support for nvidia-340xx has been dropped, use nouveau 919 | dialog --title "Install Graphics Driver" \ 920 | --msgbox "Proprietary driver support has ended for your graphics \ 921 | card.\n\nThe open-source Nouveau driver will be installed." 7 65 922 | DESKTOP_PACKAGES+=('xf86-video-nouveau' 'mesa') 923 | else 924 | DESKTOP_PACKAGES+=('nvidia' 'nvidia-utils' 'nvidia-settings') 925 | fi 926 | else 927 | DESKTOP_PACKAGES+=('xf86-video-nouveau' 'mesa') 928 | fi 929 | elif lspci | grep "VGA" | grep -q "ATI\|AMD"; then 930 | gpu_driver=$(dialog --title "Install Graphics Driver" --no-cancel \ 931 | --menu "The installer has detected an ATI/AMD graphics card on your \ 932 | system.\nThe appropriate driver to install depends on how modern your GPU \ 933 | is.\n\nIf you are unsure, the ATI driver is generally more stable and \ 934 | supports the majority of ATI/AMD GPUs. If you have one of the latest AMD GPUs \ 935 | (Volcanic Islands or newer), then you should install the AMDGPU \ 936 | driver.\n\nGraphics driver:" 17 75 3 \ 937 | "ATI" "Open-source ATI/AMD Radeon driver" \ 938 | "AMDGPU" "Open-source driver for the latest AMD GPUs" \ 939 | "None" "-" 3>&1 1>&2 2>&3) 940 | if [ "$gpu_driver" = "ATI" ]; then 941 | DESKTOP_PACKAGES+=('xf86-video-ati' 'mesa') 942 | else 943 | DESKTOP_PACKAGES+=('xf86-video-amdgpu' 'mesa') 944 | fi 945 | fi 946 | else 947 | dialog --title "Virtual Machine Detected" \ 948 | --msgbox "The installer has detected a virtualized environment: \ 949 | $hypervisor\n\nAny required drivers or utilities will be \ 950 | installed for you." 7 70 951 | case "$hypervisor" in 952 | "vmware") DESKTOP_PACKAGES+=('open-vm-tools' 'xf86-video-vmware' 'xf86-input-vmmouse' 'mesa' 'gtkmm' 'gtkmm3') ;; 953 | "oracle") DESKTOP_PACKAGES+=('virtualbox-guest-utils' 'virtualbox-guest-dkms') ;; 954 | "parallels") DESKTOP_PACKAGES+=('xf86-video-vesa') ;; 955 | *) DESKTOP_PACKAGES+=('xf86-video-fbdev') ;; 956 | esac 957 | fi 958 | fi 959 | } 960 | 961 | install_base() { 962 | while true; do 963 | dialog --title "Installation Summary" \ 964 | --yesno "The base system is ready to be installed on $DISK.\nThe \ 965 | following packages will be installed:\n\n${BASE_PACKAGES[*]} \ 966 | ${BASE_ESSENTIALS[*]} ${DESKTOP_PACKAGES[*]}\n\nInstall Arch Linux?" 0 0 967 | if [ $? -eq 0 ]; then 968 | clear 969 | pacstrap /mnt "${BASE_PACKAGES[@]}" "${BASE_ESSENTIALS[@]}" "${DESKTOP_PACKAGES[@]}" 970 | if [ $? -eq 0 ]; then 971 | installed=true 972 | else 973 | dialog --title "ERROR: Install Failed" \ 974 | --msgbox "Arch Linux failed to install on $DISK.\n\nThe installer \ 975 | encountered an error while executing pacstrap." 7 65 976 | reset ; exit 1 977 | fi 978 | break 979 | else 980 | dialog --title "Cancel Installation" \ 981 | --yesno "Are you sure you want to exit to the main menu?" 5 55 982 | if [ $? -eq 0 ]; then 983 | main_menu 984 | fi 985 | fi 986 | done 987 | } 988 | 989 | # Apply the user's system settings 990 | configure_system() { 991 | dialog --infobox "Generating the fstab file..." 3 50 992 | # Generate the fstab file 993 | genfstab -U -p /mnt >> /mnt/etc/fstab 994 | 995 | dialog --infobox "Adjusting time zone and system clock..." 3 50 996 | # Set the time zone and adjust the hardware clock to the system time (UTC) 997 | ln -sf /usr/share/zoneinfo/"$ZONE" /mnt/etc/localtime 998 | if $utc_enabled; then 999 | arch-chroot /mnt hwclock --systohc --utc 1000 | else 1001 | arch-chroot /mnt hwclock --systohc --localtime 1002 | fi 1003 | 1004 | dialog --infobox "Generating locales..." 3 50 1005 | # Set locale and keyboard layout if applicable and generate the locales 1006 | sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /mnt/etc/locale.gen 1007 | if [ "$LOCALE" != "en_US.UTF-8" ]; then 1008 | sed -i "s/#$LOCALE/$LOCALE/" /mnt/etc/locale.gen 1009 | fi 1010 | echo "LANG=$LOCALE" > /mnt/etc/locale.conf 1011 | if [ "$KEYMAP" != "us" ]; then 1012 | echo "KEYMAP=$KEYMAP" > /mnt/etc/vconsole.conf 1013 | if [ "$DESKTOP" != "None" ]; then 1014 | echo -e "Section \"InputClass\"\nIdentifier \"system-keyboard\"\nMatchIsKeyboard \"on\"\nOption \"XkbLayout\" \"$KEYMAP\"\nEndSection" > /mnt/etc/X11/xorg.conf.d/00-keyboard.conf 1015 | fi 1016 | fi 1017 | arch-chroot /mnt locale-gen &> /dev/null 1018 | 1019 | dialog --infobox "Configuring system hostname..." 3 50 1020 | # Set the hostname and add a matching entry to /etc/hosts 1021 | echo "$HOST_NAME" > /mnt/etc/hostname 1022 | echo -e "127.0.0.1\tlocalhost\n::1\t\tlocalhost\n127.0.1.1\t$HOST_NAME.localdomain\t$HOST_NAME" >> /mnt/etc/hosts 1023 | 1024 | # Modify mkinitcpio.conf hooks if required and generate a new initramfs 1025 | if [ "$PARTITION_LAYOUT" != "Basic" ]; then 1026 | dialog --infobox "Recreating the initramfs image..." 3 50 1027 | if [ "$PARTITION_LAYOUT" = "LVM" ]; then 1028 | sed -i "s/HOOKS=.*/HOOKS=(base udev autodetect modconf block lvm2 filesystems fsck)/" /mnt/etc/mkinitcpio.conf 1029 | elif [ "$PARTITION_LAYOUT" = "Encrypted" ]; then 1030 | sed -i "s/HOOKS=.*/HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)/" /mnt/etc/mkinitcpio.conf 1031 | fi 1032 | arch-chroot /mnt mkinitcpio -p linux &> /dev/null 1033 | fi 1034 | 1035 | dialog --infobox "Installing GRUB to $DISK..." 3 50 1036 | # Append the required kernel parameters to unlock an encrypted partition 1037 | if [ "$PARTITION_LAYOUT" = "Encrypted" ]; then 1038 | root_part_uuid=$(blkid -s UUID -o value "$ROOT_PART") 1039 | sed -i "s/GRUB_CMDLINE_LINUX=\"\(.*\)\"/GRUB_CMDLINE_LINUX=\"\1 cryptdevice=UUID=$root_part_uuid:$CRYPT_DEVICE_NAME root=\/dev\/mapper\/$LVM_GROUP-$LVM_ROOT\"/" /mnt/etc/default/grub 1040 | fi 1041 | 1042 | # Remove the 'quiet' parameter to have a verbose output during boot 1043 | sed -i 's/\(GRUB_CMDLINE_LINUX_DEFAULT=\).*/\1\"\"/g' /mnt/etc/default/grub 1044 | 1045 | # Install GRUB to the target disk and generate the main configuration file 1046 | if $UEFI; then 1047 | arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB &> /dev/null 1048 | else 1049 | arch-chroot /mnt grub-install --target=i386-pc "$DISK" &> /dev/null 1050 | fi 1051 | dialog --infobox "Generating the GRUB configuration file..." 3 50 1052 | arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg &> /dev/null 1053 | 1054 | dialog --infobox "Configuring user accounts..." 3 50 1055 | # Set the root password and create a user account 1056 | arch-chroot /mnt chpasswd <<<"root:$root_passwd" 1057 | # User is added to the 'wheel' group and is granted root privileges with sudo 1058 | if [ -z "$FULL_NAME" ]; then 1059 | arch-chroot /mnt useradd -m -g users -G wheel -s /bin/bash "$USER_NAME" 1060 | else 1061 | arch-chroot /mnt useradd -m -g users -G wheel -c "$FULL_NAME" -s /bin/bash "$USER_NAME" 1062 | fi 1063 | arch-chroot /mnt chpasswd <<<"$USER_NAME:$user_passwd" 1064 | sed -i 's/# %wheel ALL=(ALL) ALL$/%wheel ALL=(ALL) ALL/' /mnt/etc/sudoers 1065 | 1066 | # Uncomment multilib in pacman.conf and refresh the database 1067 | if $multilib; then 1068 | sed -i "/\[multilib\]/,/Include/"'s/^#//' /mnt/etc/pacman.conf 1069 | dialog --infobox "Refreshing pacman database..." 3 50 1070 | arch-chroot /mnt pacman -Sy &> /dev/null 1071 | fi 1072 | 1073 | dialog --infobox "Enabling NetworkManager service..." 3 50 1074 | arch-chroot /mnt systemctl enable NetworkManager.service &> /dev/null 1075 | 1076 | if $bluetooth_enabled; then 1077 | dialog --infobox "Enabling Bluetooth service..." 3 50 1078 | arch-chroot /mnt systemctl enable bluetooth.service &> /dev/null 1079 | fi 1080 | 1081 | # xinitrc is created in user's home directory if display manager is not set 1082 | if [ "$DESKTOP" != "None" ] && ! $dm_enabled; then 1083 | dialog --infobox "Generating the xinitrc file..." 3 50 1084 | echo "$xinit_config" > /mnt/home/"$USER_NAME"/.xinitrc 1085 | elif $dm_enabled; then 1086 | dialog --infobox "Enabling display manager service..." 3 50 1087 | arch-chroot /mnt systemctl enable "$DM".service &> /dev/null 1088 | fi 1089 | 1090 | if [ "$hypervisor" != "none" ]; then 1091 | if [ "$hypervisor" = "oracle" ]; then 1092 | dialog --infobox "Enabling VirtualBox modules..." 3 50 1093 | arch-chroot /mnt systemctl enable vboxservice.service &> /dev/null 1094 | elif [ "$hypervisor" = "vmware" ]; then 1095 | dialog --infobox "Enabling VMware Open-VM-Tools..." 3 50 1096 | arch-chroot /mnt systemctl enable vmtoolsd.service &> /dev/null 1097 | arch-chroot /mnt systemctl enable vmware-vmblock-fuse.service &> /dev/null 1098 | fi 1099 | fi 1100 | } 1101 | 1102 | # System power menu 1103 | reboot_system() { 1104 | if $installed; then 1105 | while true; do 1106 | choice=$(dialog --title "Reboot System" --nocancel \ 1107 | --menu "Arch Linux has finished installing.\nYou must restart your \ 1108 | system to boot Arch.\n\nPlease select one of the following options:" 13 60 3 \ 1109 | "Reboot" "Reboot system" \ 1110 | "Poweroff" "Poweroff system" \ 1111 | "Exit" "Unmount system and exit to CLI" 3>&1 1>&2 2>&3) 1112 | 1113 | dialog --infobox "Unmounting partitions on /mnt..." 3 50 1114 | umount -R /mnt 1115 | case "$choice" in 1116 | "Reboot") reset ; reboot ; exit ;; 1117 | "Poweroff") reset ; poweroff ; exit ;; 1118 | "Exit") reset ; exit ;; 1119 | esac 1120 | done 1121 | else 1122 | dialog --title "Reboot System" \ 1123 | --yesno "The installation is incomplete.\n\nAre you sure you want to \ 1124 | reboot your system?" 7 60 1125 | if [ $? -eq 0 ]; then 1126 | check_mountpoints 1127 | reset ; reboot ; exit 1128 | fi 1129 | fi 1130 | } 1131 | 1132 | # Menu which allows the user to navigate the installer 1133 | main_menu() { 1134 | while true; do 1135 | choice=$(dialog --title "Main Menu" --nocancel \ 1136 | --menu "Select an option below using the UP/DOWN keys and SPACE or \ 1137 | ENTER.\nAlternate keys may also be used: '+', '-', and TAB." 19 70 11 \ 1138 | "KEYMAP" "Set the keyboard layout" \ 1139 | "LOCALE" "Set the system locale" \ 1140 | "TIMEZONE" "Set the system time zone" \ 1141 | "HOSTNAME" "Set the system's hostname" \ 1142 | "ROOT PASSWORD" "Set the root password" \ 1143 | "CREATE USER" "Create your user account" \ 1144 | "PARTITION" "Partition the installation drive" \ 1145 | "UPDATE MIRRORS" "Update the pacman mirror list" \ 1146 | "INSTALL" "Install Arch Linux" \ 1147 | "REBOOT" "Reboot system" \ 1148 | "EXIT" "Exit Arch Linux Installer" 3>&1 1>&2 2>&3) 1149 | 1150 | case "$choice" in 1151 | "KEYMAP") set_keymap ;; 1152 | "LOCALE") set_locale ;; 1153 | "TIMEZONE") set_timezone ;; 1154 | "HOSTNAME") set_hostname ;; 1155 | "ROOT PASSWORD") set_root_passwd ;; 1156 | "CREATE USER") create_user ;; 1157 | "PARTITION") if $mounted; then 1158 | dialog --title "Partition the Disks" \ 1159 | --yesno "A disk is mounted on the system and ready for \ 1160 | installation.\n\nAre you sure you want to return to partitioning?" 7 70 1161 | if [ $? -eq 0 ]; then 1162 | mounted=false 1163 | prepare_disk 1164 | fi 1165 | else 1166 | prepare_disk 1167 | fi 1168 | ;; 1169 | "UPDATE MIRRORS") update_mirrorlist ;; 1170 | "INSTALL") if $mounted; then 1171 | configure_install 1172 | install_base 1173 | configure_system 1174 | reboot_system 1175 | else 1176 | dialog --title "ERROR: No Filesytem Mounted" \ 1177 | --yesno "The installer was unable to detect a \ 1178 | mounted filesystem.\n\nReturn to partitioning?" 7 60 1179 | if [ $? -eq 0 ]; then 1180 | prepare_disk 1181 | fi 1182 | fi 1183 | ;; 1184 | "REBOOT") reboot_system ;; 1185 | "EXIT") reset ; exit ;; 1186 | esac 1187 | done 1188 | } 1189 | 1190 | main() { 1191 | init 1192 | check_connection 1193 | set_keymap 1194 | set_locale 1195 | set_timezone 1196 | set_hostname 1197 | set_root_passwd 1198 | create_user 1199 | prepare_disk 1200 | update_mirrorlist 1201 | configure_install 1202 | install_base 1203 | configure_system 1204 | reboot_system 1205 | } 1206 | 1207 | main 1208 | --------------------------------------------------------------------------------