mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-26 06:37:21 +10:00
fixes
This commit is contained in:
parent
d9e18312f4
commit
b8e07ccce3
2 changed files with 20 additions and 12 deletions
|
|
@ -1,17 +1,28 @@
|
|||
# Host machine user configuration
|
||||
HOST_HOME=$HOME
|
||||
# Host user configuration
|
||||
HOST_USER=$(whoami)
|
||||
HOST_HOME=$HOME
|
||||
|
||||
# Allow connections from docker containers to the host machine's X server
|
||||
# Container user configuration
|
||||
CONTAINER_USER=jackson
|
||||
CONTAINER_HOME=/$CONTAINER_USER/home
|
||||
|
||||
# Install docker on the host
|
||||
apt update && apt install --yes \
|
||||
docker.io
|
||||
|
||||
# Add the container user to the docker group on the host
|
||||
usermod -aG docker $CONTAINER_USER
|
||||
|
||||
# Allow connections from docker containers to the host's X server
|
||||
xhost local:docker
|
||||
|
||||
# Enable password-less sudo for the user on the host machine
|
||||
# Enable password-less sudo for the container user on the host
|
||||
echo "$HOST_USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
|
||||
|
||||
# Install alacritty
|
||||
# Install alacritty on the host
|
||||
wget -q -O alacritty.deb https://github.com/jwilm/alacritty/releases/download/v0.2.5/Alacritty-v0.2.5_amd64.deb && \
|
||||
dpkg -i alacritty.deb && \
|
||||
rm alacritty.deb
|
||||
|
||||
# Install the latest alacritty config on the host machine
|
||||
# Install the latest alacritty config on the host
|
||||
wget -q -O $HOST_HOME/.config/alacritty/alacritty.yml https://raw.githubusercontent.com/sabrehagen/dotfiles-alacritty/master/.config/alacritty/alacritty.yml
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
# Jackson container user configuration
|
||||
# Jackson container volumes configuration
|
||||
CONTAINER_USER=jackson
|
||||
CONTAINER_HOME=/$CONTAINER_USER/home
|
||||
|
||||
# Jackson container volume configuration
|
||||
JACKSON_CONFIG_CHROME=$CONTAINER_HOME/.config/google-chrome
|
||||
JACKSON_CONFIG_CODE=$CONTAINER_HOME/.config/Code
|
||||
JACKSON_CONFIG_CHROME=/$CONTAINER_USER/home/.config/google-chrome
|
||||
JACKSON_CONFIG_CODE=/$CONTAINER_USER/home/.config/Code
|
||||
|
||||
# Give the container user ownership of the JACKSON_CONFIG_CHROME volume
|
||||
docker run \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue