[mythtv-users] Starting VNCServer Auto-magically
Ben Lancaster
lists at benlancaster.co.uk
Sun Apr 22 20:39:15 UTC 2007
On 21 Apr 2007, at 23:34, Carlos Garcia-Sierra wrote:
> I am running FC5 and MythTV in a fast machine. (1G RAM / Dual Core
> 64bit AMD processor)
>
> I want to start a vncserver auto-magically after boot in two users
> (not the mythtv user). Such users are a regular user and root. I
> usually use VNC & root for admin activities, while the second user
> is a user I use for bit-torrent, web-surfing, etc from my not-top-
> of-the-line-laptop.
Avoid VNC as root. Bad idea.
> I added the line: vncserver :1 into /etc/rc.local in order to start
> the root vncserver service.
> But the graphical interface crashes as the computer boots. I can
> not connect via VNC. However ssh is alive.
VNC has some init scripts which might prove more useful. On FC5:
# chkconfig vncserver on
...then edit /etc/sysconfig/vncservers
For example, mine contains the following:
VNCSERVERS="1:username"
VNCSERVERARGS[1]="-geometry 1024x768 -nohttpd"
VNCSERVERS="2:username"
VNCSERVERARGS[2]="-geometry 800x600 -nohttpd"
Might be worth emptying your ~/.vnc folders and recreating them if
you're having stability problems. Also check you're running the
x86_64 version of VNC - I had stability issues running the i386 builds
Obligatory 1p GBP.
Ben
More information about the mythtv-users
mailing list