Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help in configuring Tiger vnc on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 453
Location: India

PostPosted: Sun Aug 03, 2014 6:05 am    Post subject: Need help in configuring Tiger vnc on Gentoo Reply with quote

Hi Experts, I am planning to install Tiger vnc on my Gentoo server. However, I am not able to find any appropriate doc which could help me with the configuration. I have emerged tigervnc and its there in /etc/portage/distfiles.

I now want to know where I could find the config. file for Tigervnc so that I could configure users, ports and things like that.

Please help me if there are some links for the configuration or a sample configuration file.

Appreciate all your help in advance.
Back to top
View user's profile Send private message
PeGa!
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2005
Posts: 101
Location: Capital Federal, Buenos Aires, Argentina

PostPosted: Mon Aug 04, 2014 2:25 am    Post subject: Reply with quote

Hi,

TigerVNC installs a binary called vncserver. This server should be run by any user which wants or needs remote access to that box. The idea is to run vncserver with a few parameters, set the private password and that's it... there is really really easy.

Here is a small tutorial I've seen some years ago with CoLinux: http://colinux.wikia.com/wiki/XCoLinux#Use_VNC_without_XDMCP

Bear in mind that vncserver does not run over X.org, in fact it works as its own X server, so it may conflict.

If you're thinking in a remote desktop-like access, go for nxserver.

If you're thinking in access your own session remotely, just use x11vnc.

Cheers!
_________________
If it moves, it needs an ebuild.

Adopt an unanswered post.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Mon Aug 04, 2014 8:11 am    Post subject: Reply with quote

Yeah, it's not fantastically well documented atm I must say.

There are a few ways you can set it up - I personally ssh into my headless server then run "vncserver" manually, but you might be better off setting it to autostart.

To do this, edit "/etc/conf.d/tigervnc" and add the DISPLAYS="myuser:1" line, replacing the 'myuser' with your username.

(The file also has a note on how to add multiple users)


Then run "rc-update add tigervnc default" and it'll start up automatically when you reboot the machine.

For now, you can also run "/etc/init.d/tigervnc start" and it'll boot the vncserver without having to restart. (Or you can just run "vncserver" from the command line!)

Now you have a functioning vncserver - You will need to run "vncpasswd" and set a password, but then from another machine, you can run "vncviewer" and connect to "<your server's IP address>:1"


When you first log in, you will get the horrible TWM interface; You need to edit your ~/.vnc/xstartup file to start the window manager/DE of your choice; e.g. mine looks like:

~/.vnc/xstartup:

#!/bin/sh

vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

#if [ -x /etc/X11/xinit/xinitrc ]; then
#  exec /etc/X11/xinit/xinitrc
#fi
#if [ -f /etc/X11/xinit/xinitrc ]; then2
#  exec sh /etc/X11/xinit/xinitrc
#fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey
xterm -geometry 80x24+0+0 -ls -title "$VNCDESKTOP Desktop" &
urxvt -geometry 58x24+592+0 -ls -e autocutsel -verbose -debug &

#twm &
#blackbox &
#wmaker &
#startxfce4 &
#icewm &
startkde&


You do need to run "/etc/init.d/tigervnc restart" for it to take effect tho; (Or restart the computer!)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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