Il 28 febbraio 2012 16:34, Jim Carlson <jim.carl...@brandesassociates.com> ha scritto: > Nicola, > > When you write "ps -ef | grep <windows manager X11rdp|Xvnc>", what do you > mean by "windows manager"? > > I am running the gnome desktop. > > For example, when connected to the CentOS machine via two sessions of Windows > RDP I opened a terminal session and tried the following command: "ps -ef | > grep gnome-session X11rdp|Xvnc" with below results: > > [root@Syndeo2 ~]# ps -ef |grep gnome-session X11rdp|Xvnc > grep: X11rdp: No such file or directory > > Fatal server error: > Server is already active for display 0 > If this server is no longer running, remove /tmp/.X0-lock > and start again. > > > Is this the desired result or am I missing something here?
if you write: ps -ef |grep gnome-session X11rdp|Xvnc you are trying to run another Xvnc istance... and you get errors! if you want to know running sessions you should try to map process chain starting from "startwm.sh" --- here an example: root 18262 10872 0 17:06 /usr/local/sbin/xrdp-sessvc 18264 18263 rdmts 18263 18262 0 17:06 /bin/sh /etc/xrdp/startwm.sh test-term-id-0001 rdmts 18264 18262 0 17:06 X11rdp :10 -geometry 240x320 -depth 16 -bs -ac -nolisten tcp root 18269 18262 0 17:06 xrdp-chansrv rdmts 18273 18263 0 17:06 /bin/sh /usr/lib/firefox-1.5.0.12/firefox -P test-term-id-0001 http://asndev.despar.it:7001/forms/frmservlet?config=rdmtst10_hh_j rdmts 18288 18273 0 17:06 /bin/sh /usr/lib/firefox-1.5.0.12/run-mozilla.sh /usr/lib/firefox-1.5.0.12/firefox-bin -P test-term-id-0001 http://asndev.despar.it: rdmts 18293 18288 99 17:06 /usr/lib/firefox-1.5.0.12/firefox-bin -P test-term-id-0001 http://asndev.despar.it:7001/forms/frmservlet?config=rdmtst10_hh_j rdmts 18297 1 1 17:06 /usr/libexec/gconfd-2 15 The session startup sequence is the following one: xrdp+xrdp-sesman when a new session is arriving launch --> xrdp-sessvc + Xvnc + startwm.sh Xvnc will provide graphical environment startwm.sh will actually run the windows manager/software inside Xvnc (es. gnome) Note: In my installation I use no windows manager, I simply run firefox. --- So if you type: "ps -ef | grep startwm.sh" you can see how many sessions you are running, if you want more details about each session you should analyze startwm.sh child processes as shown above. Hope you find this useful Nicola ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ xrdp-devel mailing list xrdp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xrdp-devel