Skip to content

xdBronch/archinstallscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

archinstallscript

How to use

This installer uses variables exported. To export variables, do export <variable>=<value> You can also use this website to generate the installation script.

Variables

This variables must be exported

  • root: / partition
  • boot: /boot partition
    • NOTE: Should be large enough to hold the kernels you want to install (and windows' efi if you want to it show up on systemd-boot). Arch wiki recommends 512 MB, 300 should be enough for most of the cases and 90ish should be enough if you are going to only use a kernel.

Optional but recommended.

  • gpu: if unselected, installs the base drivers. Select it to nvidia, amd or intel.
  • timezone: do ls /usr/share/zoneinfo to get available regions and ls /usr/share/zoneinfo/<Region> to get available cities. The format should be Region/City. Defaults to "Europe/Lisbon".
  • rootpw: root user password. Defaults to "root".
  • installtype: One of these values: minimal (only installs base arch and creates new user) and desktop. Defaults to minimal.
  • network: Variable which lets you configure the systems network daemon. It can be systemd-networkd, networkmanager, dhcpcd or none. Defaults to networkmanager.
  • desktop: Choose the Desktop Environment you want between gnome, kde and xfce. Defaults to gnome. NEW dwm value.
    • Only if installtype is set as desktop
  • username: Username for the user account. Defaults to "user".
    • NOTE: Don't use uppercase letters. They aren't supported on linux usernames and it will fail to create your user.
  • userpw: Password for the user account. Defaults to "user".
  • winefi: Windows EFI partition to be detected by systemd-boot. If defined, its contents will be copied to your EFI partition, so systemd-boot can detect it and give an option to boot into your windows install.

Optional

  • editor: either neovim, vim or nano. Defaults to nvim.
  • swap: swap partition.
  • home: home partition
  • kernel: eg. linux-zen.
  • hostname: set a hostname instead of "arch".

DWM specific

  • dwmrepo: Repository of the dwm build you want to use. Defaults to mine.
  • dwmrefresh: If you have a refresh variable on your dwm's config.h, it should change it according to this variable.

Once you are done setting up the variables, run the installer script:

curl -L -s https://bit.ly/35SjPVH | sh

Tips

You can create a repository with a bash script that exports the variables you want to make it easier to automate your future installs. Make sure that the repository is private or assign password related variables manually when installing (before running this script). You can check an example here

About

The repo name is explicit enough

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%