forked from ahurac/dotfiles
Scrpit pour lancer un serveur VNC minimal
This commit is contained in:
parent
56176695c8
commit
5148e164e6
2 changed files with 15 additions and 5 deletions
5
bin/dwm
5
bin/dwm
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
cd
|
||||
exec dwm \
|
||||
"$@"
|
||||
|
15
bin/instvnc
Executable file
15
bin/instvnc
Executable 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"
|
||||
|
Loading…
Reference in a new issue