View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Thu Mar 17, 2011 6:09 am Post subject: TigerVnc |
|
|
i would like to know how to configure vnc-server for start gnome session? |
|
Back to top |
|
|
Havin_it Veteran
Joined: 17 Jul 2005 Posts: 1247 Location: Edinburgh, UK
|
Posted: Mon Mar 21, 2011 12:36 pm Post subject: |
|
|
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 |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Wed Dec 05, 2012 10:18 am Post subject: tigervnc, taking over running session |
|
|
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 |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Wed Dec 05, 2012 11:20 am Post subject: Re: tigervnc, taking over running session |
|
|
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 |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Wed Dec 05, 2012 11:27 am Post subject: |
|
|
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 |
|
|
Gusar Advocate
Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Wed Dec 05, 2012 3:37 pm Post subject: |
|
|
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 |
|
|
|