Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] start tightvnc service fails
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Tue May 13, 2008 9:25 pm    Post subject: [SOLVED] start tightvnc service fails Reply with quote

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
View user's profile Send private message
johnny99
Apprentice
Apprentice


Joined: 24 Oct 2005
Posts: 249
Location: Berkeley, California

PostPosted: Thu May 15, 2008 12:05 am    Post subject: Reply with quote

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
Code:
emerge 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum