Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TigerVnc
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
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Thu Mar 17, 2011 6:09 am    Post subject: TigerVnc Reply with quote

i would like to know how to configure vnc-server for start gnome session?
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1240
Location: Edinburgh, UK

PostPosted: Mon Mar 21, 2011 12:36 pm    Post subject: Reply with quote

Hi leonchik1976,

If you are using tigervnc normally, when it starts it will run the script ~/.vnc/xstartup for each enabled vnc user. So whatever command is used to start Gnome can be put there. You can put more than one command here if there is any preliminary stuff you want to do, but note you must put "&" after each command and also "exec" before the last command in the file.

As for what command to use, there is probably a command like "startgnome" as there are similar for KDE and Fluxbox etc. Alternatively (and maybe better because it does more stuff), there should be an X-session startup script for Gnome in the folder /etc/X11/Sessions/ so you could use that instead. So an example contents for ~/.vnc/xstartup could be:
Code:
exec /etc/X11/Sessions/gnome &
# Note: I don't use Gnome so I'm only guessing the script's name


If there is anything different to your tigervnc setup, give us details and we can advise what's best for you.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1753
Location: PB, Germany

PostPosted: Wed Dec 05, 2012 10:18 am    Post subject: tigervnc, taking over running session Reply with quote

I have tigervnc setup to start a new Xfce session. That works.
Is it possible to setup tigervnc to take over a running session? On the mailing list a user has a script in order to support some other user by taking over their session, but this is using x11vnc. Does it work with tigervnc too?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Wed Dec 05, 2012 11:20 am    Post subject: Re: tigervnc, taking over running session Reply with quote

Massimo B. wrote:
Is it possible to setup tigervnc to take over a running session?

Yes. Create a /etc/X11/xorg.conf.d/40-vnc.conf with this:
Code:
Section "Module"
    Load    "vnc"
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Option      "PasswordFile"  "/home/username/.vnc/passwd"
EndSection

Adjust the PasswordFile path. Now your regular X server is a vnc server.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1753
Location: PB, Germany

PostPosted: Wed Dec 05, 2012 11:27 am    Post subject: Reply with quote

Hi Gusar, very interesting. In the #tigervnc channel I was told the only way is using x0vncserver which is very slow and only for demonstration use.
How does your solution work? My X server will still act as before and is usable locally as usual but is also accessible by VNC? Does this work for different resolution too?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Wed Dec 05, 2012 3:37 pm    Post subject: Reply with quote

Massimo B. wrote:
My X server will still act as before and is usable locally as usual but is also accessible by VNC?

Yes, exactly this. Different resolutions shouldn't be a problem, simply use xrandr.
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