You are not logged in.
Hi,
I currently have a VNC server running on :1 correctly with gnome, but because I have 2 clients with different screen resolutions I want to run a second server on :2 for the other client. It sucks that I have to hardcode a resolution but I guess there's not really a way around that.
This is my current config with tightvnc
In rc.local:
# Start server on boot as user
su -c 'vncserver :1 -geometry 1920x1200' user
In ~/.vnc/xstartup
#!/bin/sh
exec dbus-launch $HOME/.vnc/startvnc.sh
And startvnc.sh:
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
exec gnome-session &
Please can someone tell me the correct way to duplicate this on :2 at a new resolution? I've tried starting up a second X server from rc.local then just starting a vncserver on :2 but that didn't get me anywhere.
Last edited by tntcoda (2011-04-09 12:06:30)
Offline
Why two scripts? Just keep one ~/.vnc/xstartup with your details and add a 2nd line in your /etc/rc.local to trigger the 2nd vnc server. Are both vncsevers owned by the same "user" as you have defined it?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Why two scripts? Just keep one ~/.vnc/xstartup with your details and add a 2nd line in your /etc/rc.local to trigger the 2nd vnc server. Are both vncsevers owned by the same "user" as you have defined it?
Ok thanks I will tidy up those scripts, but do I not need to start a second X server in addition to a second vnc server? They are both owned by the same user yes.
Last edited by tntcoda (2011-04-09 12:17:54)
Offline
No... you don't need any X server running at all. The vncserver will take care of what it needs. Technically, you can run the box in runmode 3 and your vncservers will happily run as well.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Ok thanks, so i started up another vnc server as the user with: vncserver :2 -geometry 800x600, the connection with vncviwer to :2 times out but :1 still works perfectly. Here's the log file for the 2nd server:
Couldn't open RGB_DB '/usr/share/X11/rgb'
09/04/11 13:42:49 Xvnc version TightVNC-1.3.10
09/04/11 13:42:49 Copyright (C) 2000-2009 TightVNC Group
09/04/11 13:42:49 Copyright (C) 1999 AT&T Laboratories Cambridge
09/04/11 13:42:49 All Rights Reserved.
09/04/11 13:42:49 See http://www.tightvnc.com/ for information on TightVNC
09/04/11 13:42:49 Desktop name 'X' (net:2)
09/04/11 13:42:49 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
09/04/11 13:42:49 Listening for VNC connections on TCP port 5902
09/04/11 13:42:49 Listening for HTTP connections on TCP port 5802
09/04/11 13:42:49 URL http://net:5802
Font directory '/usr/share/fonts/Type1/' not found - ignoring
Xlib: extension "RANDR" missing on display ":2".
gnome-session[16223]: WARNING: GSIdleMonitor: IDLETIME counter not found
gnome-session[16223]: WARNING: Unable to determine session: Unable to lookup session information for process '16223'
gnome-session[16223]: WARNING: Could not parse desktop file /home/jack/.config/autostart/xfce4-tips-autostart.desktop: Key file does not have key 'Name'
gnome-session[16223]: WARNING: could not read /home/jack/.config/autostart/xfce4-tips-autostart.desktop
gnome-session[16223]: WARNING: Could not parse desktop file /home/jack/.config/autostart/xfce4-settings-helper-autostart.desktop: Key file does not have key 'Name'
gnome-session[16223]: WARNING: could not read /home/jack/.config/autostart/xfce4-settings-helper-autostart.desktop
GNOME_KEYRING_CONTROL=/tmp/keyring-EtJzps
GNOME_KEYRING_PID=16233
GNOME_KEYRING_CONTROL=/tmp/keyring-EtJzps
GNOME_KEYRING_CONTROL=/tmp/keyring-EtJzps
GPG_AGENT_INFO=/tmp/keyring-EtJzps/gpg:0:1
GNOME_KEYRING_CONTROL=/tmp/keyring-EtJzps
GPG_AGENT_INFO=/tmp/keyring-EtJzps/gpg:0:1
SSH_AUTH_SOCK=/tmp/keyring-EtJzps/ssh
Xlib: extension "RANDR" missing on display ":2".
** (gnome-settings-daemon:16240): WARNING **: Unable to start xrandr manager: RandR extension is not present
(gnome-settings-daemon:16240): GLib-CRITICAL **: g_hash_table_destroy: assertion `hash_table != NULL' failed
** (gnome-settings-daemon:16240): WARNING **: XKB extension not available
** (gnome-settings-daemon:16240): WARNING **: Neither XKeyboard not Xfree86's keyboard extensions are available,
no way to support keyboard autorepeat rate settings
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "XInputExtension" missing on display ":2".
Xlib: extension "RANDR" missing on display ":2".
Window manager warning: Log level 32: could not find XKB extension.
Xlib: extension "RANDR" missing on display ":2".
Unable to open desktop file evolution.desktop for panel launcher
Xlib: extension "RANDR" missing on display ":2".
Xlib: extension "RANDR" missing on display ":2".
Xlib: extension "RANDR" missing on display ":2".
Xlib: extension "RANDR" missing on display ":2".
(polkit-gnome-authentication-agent-1:16266): polkit-gnome-1-WARNING **: Unable to determine the session we are in: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '16266'
** (nautilus:16257): WARNING **: Failed to get the current CK session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '16257'
Any ideas? Those logs gave me the impression I needed a second X session running.
Offline
$ cat ~/.vnc/xstartup
#!/bin/sh
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
exec ck-launch-session startlxde
exec pcmanfm --desktop
And I can start and connect to two just fine...???
$ vncserver -geometry 1440x900 -alwaysshared -dpi 96 :1
New 'reborn:1 (facade)' desktop is reborn:1
Starting applications specified in /home/facade/.vnc/xstartup
Log file is /home/facade/.vnc/reborn:1.log
$ vncserver -geometry 1440x900 -alwaysshared -dpi 96 :2
New 'reborn:2 (facade)' desktop is reborn:2
Starting applications specified in /home/facade/.vnc/xstartup
Log file is /home/facade/.vnc/reborn:2.log
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Very strange, even if i kill the first server and just start up :2 it still wont work and just times out.
This is my new xstartup as you suggested, works fine for :1 - im all out of ideas
#!/bin/sh
autocutsel -fork
export XKL_XMODMAP_DISABLE=1
exec ck-launch-session gnome-session
Happens with both tightvnc and tigervnc, no firewalls or anything.
EDIT: And there is no difference between the :1 and :2 log files and netstat shows both ports 5901/5902 open.
X is running on the local box displaying the gnome login screen on the physical display, take it that shouldnt effect anything?
Last edited by tntcoda (2011-04-09 16:36:14)
Offline