Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 

Setup

Main

Setup a place like home. Fully automated arch setup script based on a markdown file . Install all the packages, and all the CLI tools, everything.

Requirements

This setup does not configure Arch. Use a script like archfi for that. Once Arch is installed you need sudo, git and a user account:

pacman -S sudo git
useradd -m -g wheel -s /bin/bash <user>
passwd <user>
su <user>

Run visudo and uncomment "%wheel ALL=(ALL) ALL". You will also need to set a variable TOKEN to your GitHub application token for this script. You can set your token and test it by running:

TOKEN=<your-app-token>
curl -H "Authorization: token $TOKEN" https://api.github.com/user

Once that is done run the script:

curl https://raw.githubusercontent.com/glumpat/setup/master/dist/setup.sh |  bash
# Alternatively, download and execute explictly
curl -LO https://raw.githubusercontent.com/glumpat/setup/master/dist/setup.sh
chmod +x setup.sh && ./setup.sh

Have a look at the script for more info.

Development

To modify which packages get installed edit the setup file.

Testing

In order to test if your script you can utilize Docker with a custom image. Build it using

docker build -t 'glumpat/setup-test' .

Debugging specific parts of the script is possible by attaching to the image

docker run --rm -ti -v $PWD:/home/ glumpat/setup-test bash

To execute the entire install script execute

./test/docker-install.sh --debug

Deployment

Run gatsh to create a new distribution:

gatsh setup.sh >> dist/setup.sh

About

I had to setup my PC manually one too many times. Time to automate!

Resources

Stars

Watchers

Forks

Packages

No packages published