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

9
vncs Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
dn=$( echo $UID | sed 's/.*\(....\)$/\1/' )
vncserver :$dn -depth 24 -geometry 1024x768 -geometry 800x600 -geometry 1366x768 -geometry 1280x1024 -geometry 1680x1050 -geometry 1280x720
echo "Kill with vnckill"
echo "use vncdisp to change resolution"
echo Your VNC connection port is $HOSTNAME:$(( 5900 + $dn ))