3
9
Utilizamos las instrucciones Ctrl + O y luego Ctrl + X para guardar el archivo
10
La instrucción chmod +x /etc/init.d/vncboot para hacer el script ejecutable.
11
La instrucción update-rc.d vncboot defauts para agregar al arranque del siste-
ma.
12
De esta forma el sistema queda configurado para la ejecución del VNC en el
arranque
www.superaccess.co
#! /bin/sh
# /etc/init.d/vncboot
USER=root
HOME=/root
export USER HOME
case "$1" in
start)
echo "Arrancando VNC Server"
su -p -c "/usr/bin/vncserver :1 -geometry 1920x1080 -depth 24"
;;
stop)
echo "Stopping Server"
vncserver -kill :1
;;
*)
echo "Uso: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
Figura 6: Aplicación de arranque para
el servidor VNC
Manual
acceso multilectora k-1004
Instalación Servidor VNC
de
alistamiento
sistema
8
de
control
de