mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
script: fix user creation and package installation for X11
This commit is contained in:
committed by
Markus Küffner
parent
7043f46756
commit
2eeeebb15f
@@ -2,23 +2,20 @@
|
||||
## xterm is running in foreground until the klipperscreen
|
||||
## container connects to the xserver
|
||||
|
||||
#!/bin/bash -xe
|
||||
#!/bin/bash
|
||||
|
||||
set -xe
|
||||
|
||||
## Name of the new user
|
||||
USER=screen
|
||||
|
||||
## Create User
|
||||
adduser --system --disabled-password --no-create-home ${USER}
|
||||
adduser --system --disabled-password --no-create-home --gecos '' --shell /bin/bash ${USER}
|
||||
usermod -a -G tty ${USER}
|
||||
|
||||
## Install Packages
|
||||
apt update
|
||||
apt install -y
|
||||
xterm
|
||||
xinit
|
||||
xinput
|
||||
xserver-xorg
|
||||
x11-xserver-utils
|
||||
xserver-xorg-video-fbdev
|
||||
apt install -y xterm xinit xinput xserver-xorg x11-xserver-utils xserver-xorg-video-fbdev
|
||||
|
||||
## Allow any User to start X
|
||||
sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config || true
|
||||
|
||||
Reference in New Issue
Block a user