Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

TigerVnc

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
leonchik1976
Guru
Guru
Posts: 344
Joined: Sun Jan 24, 2010 1:28 pm

TigerVnc

  • Quote

Post by leonchik1976 » Thu Mar 17, 2011 6:09 am

i would like to know how to configure vnc-server for start gnome session?
Top
Havin_it
Veteran
Veteran
Posts: 1346
Joined: Sun Jul 17, 2005 10:26 am
Location: Edinburgh, UK
Contact:
Contact Havin_it
Website

  • Quote

Post by Havin_it » Mon Mar 21, 2011 12:36 pm

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: Select all

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.
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1941
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

tigervnc, taking over running session

  • Quote

Post by Massimo B. » Wed Dec 05, 2012 10:18 am

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 G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

Re: tigervnc, taking over running session

  • Quote

Post by Gusar » Wed Dec 05, 2012 11:20 am

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: Select all

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.
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1941
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Wed Dec 05, 2012 11:27 am

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 G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Wed Dec 05, 2012 3:37 pm

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.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy