1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/bin/instvnc
2023-04-16 20:09:37 +02:00

15 lines
252 B
Bash
Executable file

#!/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"