Scrpit pour lancer un serveur VNC minimal

This commit is contained in:
Hippolyte Chauvin 2023-04-16 20:09:37 +02:00
parent 56176695c8
commit 5148e164e6
2 changed files with 15 additions and 5 deletions

View file

@ -1,5 +0,0 @@
#!/bin/sh
cd
exec dwm \
"$@"

15
bin/instvnc Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh -e
display="$(grep "$LOGNAME" /etc/tigervnc/vncserver.users | head -n 1 | awk -F '=' '{ print $1 }')"
echo "Using display: $display"
test -n "$display"
set -x
cd
exec \
screen \
-d \
-m \
vncserver \
"$display"