Hello everyone
I am trying auto load vncserver at startup; i edited "/etc/rc.local" however it didnt work
.
here's when i nano /etc/rc.local
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
su - user -c "cd /home/user && vncserver :1 -geometry 1680x1080 -depth 24"
my second question is that when i run vncserver from terminal after logging in, i get a gray screen on vnc viewer.
however, if run vncserver as root, it works fine but the keyboard doesn't function correctly (i get wrong keystrokes)
my nano ~/.vnc/xstartup
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
thanks.