2018-02-04 23:02:09 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-02-12 22:18:16 -05:00
|
|
|
PACKAGES="man manpages vim less xz-utils sudo tmux dbus libpam-systemd vifm openssh-client gnome-terminal packagekit-gtk3-module libcanberra-gtk3-module firefox fonts-roboto-hinted nautilus eog evince unzip"
|
2018-02-04 23:02:09 -05:00
|
|
|
|
|
|
|
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
|
|
|
locale-gen
|
|
|
|
update-locale LANG=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
|
|
|
|
|
|
|
|
mkdir -p /etc/systemd/user.conf.d
|
|
|
|
printf '[Manager]\nDefaultEnvironment="DISPLAY=:0"\n' > /etc/systemd/user.conf.d/50-display-env.conf
|
|
|
|
|
2018-02-12 22:18:16 -05:00
|
|
|
mkdir -p /etc/systemd/logind.conf.d
|
|
|
|
printf 'KillUserProcesses=no\n' > /etc/systemd/logind.conf.d/50-no-kill-user-processes.conf
|
|
|
|
|
2018-02-05 11:18:21 -05:00
|
|
|
mkdir -p /usr/libexec
|
|
|
|
cat > /usr/libexec/launch <<- 'EOF'
|
|
|
|
#!/bin/bash
|
|
|
|
export DISPLAY=:0
|
|
|
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
|
|
|
export XDG_RUNTIME_DIR=/run/user/1000
|
2018-02-19 19:47:58 -05:00
|
|
|
export PULSE_SERVER=unix:/run/user/host/pulse/native
|
2018-02-05 11:18:21 -05:00
|
|
|
$@
|
|
|
|
EOF
|
|
|
|
chmod +x /usr/libexec/launch
|
|
|
|
|
2018-02-19 11:45:57 -05:00
|
|
|
printf "127.0.0.1\tsubgraph localhost\n" > /etc/hosts
|
2018-02-04 23:02:09 -05:00
|
|
|
echo "subgraph" > /etc/hostname
|
|
|
|
echo "deb http://http.debian.net/debian unstable main" >> /etc/apt/sources.list
|
|
|
|
useradd -s /bin/bash -m user
|
|
|
|
echo "user:user" | chpasswd
|
|
|
|
usermod -aG sudo user
|
|
|
|
echo "export DISPLAY=:0" >> /home/user/.bashrc
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
apt-get --assume-yes upgrade
|
|
|
|
apt-get --assume-yes --no-install-recommends install ${PACKAGES}
|
|
|
|
|
|
|
|
printf "\n\nInstalled Packages\n\n"
|
|
|
|
dpkg -l
|