[mythtv-users] Starting VNCServer Auto-magically
tptac.jhardman at gmail.com
Sun Apr 22 22:01:34 UTC 2007
Running a root VNC on a home network that is not accessible from the rest of
the world is not a big problem.
On FC you need to edit your /etc/sysconfig/vncservers file
You will want a line like this, the users need to all be on the same line
VNCSERVERARGS="-geometry 800x600 -depth 24"
VNCSERVERARGS="-geometry 1024x768 -depth 24"
After you have saved that file, you need to issue vncpasswd logged in as
each user, su someuser
Now as root (assuming you followed the advise from Ben) service vncservers
Now you should have a new set of files in each users home dir, xstartup,
edit and uncomment the lines... (these are hidden files/dirs in .vnc)
Last but not least su to root and # touch .Xauthority in each users home
Restart the vncservers and you should be good to go. Remember you will be
connecting on port 5901 for root and 5902 for someuser.
On 4/22/07, Ben Lancaster <lists at benlancaster.co.uk> wrote:
> 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:
> VNCSERVERARGS="-geometry 1024x768 -nohttpd"
> VNCSERVERARGS="-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.
> mythtv-users mailing list
> mythtv-users at mythtv.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mythtv-users