mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-18 18:56:20 +00:00
Redo plasma to use novnc from alpine
This commit is contained in:
parent
4f106beafc
commit
d3411e2fe9
6 changed files with 89 additions and 18 deletions
|
|
@ -1,51 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# Check for MYVNC_VNCPASS variable
|
||||
if [ -z ${MYVNC_VNCPASS} ]
|
||||
then
|
||||
echo "MYVNC_VNCPASS env variable is missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Configure tigervnc auth
|
||||
if [ ! -f ~/.config/tigervnc/passwd ]
|
||||
then
|
||||
echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.config/tigervnc/passwd
|
||||
chmod 0600 ~/.config/tigervnc/passwd
|
||||
fi
|
||||
|
||||
# Remove VNCPASS env
|
||||
unset MYVNC_VNCPASS
|
||||
|
||||
# VNC xstartup
|
||||
install /dev/stdin ~/.config/tigervnc/xstartup <<- xstartup
|
||||
#!/usr/bin/env bash
|
||||
unset SESSION_MANAGER
|
||||
unset DBUS_SESSION_BUS_ADDRESS
|
||||
exec ${STARTXBIN}
|
||||
xstartup
|
||||
|
||||
# Turn vnc sharing on/off
|
||||
if [[ ${MYVNC_VNCSHARING} == "true" ]] || [[ ${MYVNC_VNCSHARING} == "1" ]]
|
||||
then
|
||||
_MYVNC_VNCSHARING=alwaysshared
|
||||
else
|
||||
_MYVNC_VNCSHARING=nevershared
|
||||
fi
|
||||
|
||||
# VNC config
|
||||
cat >~/.config/tigervnc/config <<- vncconfig
|
||||
session=plasmax11
|
||||
dpi=192
|
||||
geometry=1920x1080
|
||||
framerate=60
|
||||
depth=32
|
||||
${_MYVNC_VNCSHARING}
|
||||
vncconfig
|
||||
|
||||
# Disable KDE screenlock
|
||||
cat >~/.config/kscreenlockerrc <<- 'kscreenlockerrc'
|
||||
[Daemon]
|
||||
Autolock=false
|
||||
LockOnResume=false
|
||||
Timeout=0
|
||||
kscreenlockerrc
|
||||
Loading…
Add table
Add a link
Reference in a new issue