View previous topic :: View next topic |
Author |
Message |
johnny99 Apprentice
Joined: 24 Oct 2005 Posts: 249 Location: Berkeley, California
|
Posted: Tue May 13, 2008 9:25 pm Post subject: [SOLVED] start tightvnc service fails |
|
|
I can't get the tightvnc service to start.
I installed tightvnc with the server use flag
Code: | echo 'net-misc/tightvnc server tcpd' >> /etc/portage/package.use
emerge net-misc/tightvnc
eix -I vnc
[I] net-misc/tightvnc
Available versions: 1.3.9-r1 {java server tcpd}
Installed versions: 1.3.9-r1(14:08:17 05/13/08)(java server tcpd)
Homepage: http://www.tightvnc.com/
Description: A great client/server software package allowing remote network access to graphical desktops. |
I set the config file to start vnc for user alex, using screen 1.
Code: | cat /etc/conf.d/vnc
DISPLAYS="alex:1"
VNC_OPTS="" |
I created the passwd and xstartup
Code: | mkdir /home/alex/.vnc/
vncpasswd /home/alex/.vnc/passwd
cat cat /home/alexc/.vnc/xstartup[/i]
!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
startfluxbox & |
But the init script always fails uninformatively:
Code: | /etc/init.d/vnc restart
* Caching service dependencies ... [ ok ]
* WARNING: vnc has not yet been started.
* Starting TightVNC server ... [ !! ] |
I get one line in /var/log/messages:
Code: | May 13 14:16:47 localhost rc-scripts: WARNING: vnc has not yet been started. |
What am I doing wrong?
Last edited by johnny99 on Thu May 15, 2008 12:32 am; edited 2 times in total |
|
Back to top |
|
|
johnny99 Apprentice
Joined: 24 Oct 2005 Posts: 249 Location: Berkeley, California
|
Posted: Thu May 15, 2008 12:05 am Post subject: |
|
|
Now working, but not sure what fixed it.
I only specify the 'server' use flag.
Code: | grep tightvnc /etc/portage/package.use
net-misc/tightvnc server |
I re-merged tightvnc
I didn't change /etc/conf.d/vnc
Code: | DISPLAYS="alex:1"
VNC_OPTS="" |
I did recreate the .vnc directory and changed the passwd.
Code: | vncpasswd /home/alex/.vnc/passwd |
I did change /home/alex/.vnc/startup
Code: | #!/bin/sh
fluxbox & |
And now it starts just fine.
Code: | /etc/init.d/vnc restart |
Code: | * Stopping TightVNC server ... [ ok ]
* Starting TightVNC server ... [ ok ] |
I can connect to the machine with a tightvnc vncviewer just fine.
Code: | vncviewer lnx-johns:1 |
|
|
Back to top |
|
|
|