Vídeo explicativo: VNC Server no Linux
Curso Online Ubuntu Server Administrator: 10 HORAS: http://cursos.escolalinux.com.br/ubun...
/usr/local/bin/myvncserver
#!/bin/bash
PATH="$PATH:/usr/bin/"
DISPLAY="1"
DEPTH="16"
GEOMETRY="1024x768"
OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY} -localhost"
case "$1" in
start)
/usr/bin/vncserver ${OPTIONS}
;;
stop)
/usr/bin/vncserver -kill :${DISPLAY}
;;
restart)
$0 stop
$0 start
;;
esac
exit 0
Um oferecimento: Linux Solutions - http://www.linuxsolutions.com.br