Welcome to LQ!
I always have a vncserver session started for my user at boot time on my server. So I put this line in
/etc/rc.local :
Code:
su - myusername -c "cd /home/myusername && vncserver :1 -geometry 1024x768 -depth 24"
I have noticed the server makes the default "KDE is starting up" sound as it boots to the login screen, even though nobody is logged in yet.
So, something like this might solve your problem.
Youll also need this text in
/home/yourusername/.vnc/xstartup
Code:
#!/bin/bash
# This is the file /home/yourusername/.vnc/xstartup
startkde &
If you are running gnome, I think you need
startgdm instead of
startkde
You will not have to
use this desktop, you can just leave it running there.