VNC scripts

This commit is contained in:
ville rantanen
2013-07-30 13:40:43 +03:00
parent e1ae16944e
commit d995d32d12
3 changed files with 178 additions and 0 deletions

8
vnckill Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
dn=$( echo $UID | sed 's/.*\(....\)$/\1/' )
vncserver -kill :$dn
rm -f /tmp/.X${dn}-lock
rm -f /tmp/.X11-unix/X${dn}