This commit is contained in:
Jackson Delahunt 2019-02-14 16:05:32 +11:00
parent 67c4deea4e
commit 97f2daef3a
4 changed files with 27 additions and 11 deletions

View file

@ -2,4 +2,24 @@
My [daily driver](https://cloud.docker.com/repository/docker/sabrehagen/desktop-environment).
Use a new GitHub [Personal Access Token](https://github.com/settings/tokens/new) for [`DESKTOP_ENVIRONMENT_GITHUB_TOKEN`](scripts/environment.sh#L3) on each device running the desktop environmment.
## Getting Started
Use a new GitHub [Personal Access Token](https://github.com/settings/tokens/new) for [`DESKTOP_ENVIRONMENT_GITHUB_TOKEN`](scripts/credentials.sh#L2) on each device running the desktop environmment.
```sh
# Clone docker environment.
git clone https://github.com/sabrehagen/desktop-environment && cd desktop-environment
# Bootstrap docker host.
./scripts/bootstrap-host.sh
# Become non-root user.
su jackson
# Start the environment.
./scripts/refresh.sh
```
## Forking
Set your [user configuration](scripts/environment.sh#L5) and go.

View file

@ -37,8 +37,8 @@ wget -O alacritty.deb https://github.com/jwilm/alacritty/releases/download/v0.2.
dpkg -i alacritty.deb && \
rm alacritty.deb
# Start the desktop environment on system start
echo "@reboot $REPO_ROOT/scripts/start.sh" >> /etc/crontab
# Start the desktop environment as the host user on system start
echo "@reboot $HOST_USER $REPO_ROOT/scripts/start.sh" >> /etc/crontab
# Allow connections from docker containers to the host's X server
xhost local:docker
@ -68,6 +68,9 @@ usermod \
--groups docker,sudo \
$HOST_USER
# Avoid committing user credentials to the repository
git update-index --assume-unchanged $REPO_ROOT/scripts/credentials.sh
# Take ownership of all files under the user's directory
chown $HOST_USER:$HOST_USER /$HOST_USER

View file

@ -1,7 +0,0 @@
REPO_ROOT=$(dirname $(realpath $0))/..
# Bootstrap the local host
sh $REPO_ROOT/scripts/bootstrap-host.sh
# Bootstrap the docker volumes
sh $REPO_ROOT/scripts/bootstrap-volumes.sh

View file

@ -1,2 +1,2 @@
# Desktop environment user github access
# Desktop environment user github personal access token
echo DESKTOP_ENVIRONMENT_GITHUB_TOKEN=