Connecting to a linux server to Xfce using FreeNX

If you've eg. Xubuntu on your server with Xfce as the default desktop environment, then it's not trivial how you can connect with FreeNX and use this desktop environment. In the nxclient enter the session configuration screen, set the "desktop" to "Unix" and "Custom", enter "Settings" and choose the "Run the following command" for the "Application", and enter this into the textbox: /usr/bin/xfce4-session. In the "Options" select the "New virtual desktop". Press OK and select in the "Display" section "Full screen". Now you're all set. Smile

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Worked, thanks!

This worked great on Xubuntu 8.04. Thanks!

NXserver & Xubuntu

Hi,

Works indeed.........
but not anymore if you go above kernel 2.6.28.15 ! So in .16 the file you mention is gone:(
I copied the missing files but that only leaves the message away about a wrong path and you end up in a dark Machine screen.

Hmm, will try further.


PB.

Re: NXserver & Xubuntu

I don't see how the kernel version could be related to the Xfce session initializer binary? Shock I've not used Xubuntu for quite some time, but I'm pretty sure that a kernel upgrade will not remove the /usr/bin/xfce4-session file (which is part of the xfce4-session package ... which does not conflict with any of the linux-image-2.6.28-16-* packages).

Using startxfce4 command

In command line : I'm using startxfce4. And it worked also.

xfce & nx

I think it's not enough. I found that nxclient does not run any login shell
so that there are not run scripts from /etc/profile.d. My solution is command line:

/bin/bash -l /usr/bin/startxfce4

(or .... /usr/bin/xfce4-session if you wish).

Regards
pjo

Doesn't work here

Hi, when do this with /usr/bin/xfce4-session then I get a window of given size which is black and is closing after a second or so.
It works better for me with /usr/bin/startxfce4 but there I only get the desktop in the middle of the window with a thick black frame surrounding it. So, the desktop is not spread over the whole size of the window.

Do you have a workaround for this?

Cheers, Thomas

Re: Doesn't work here

I'm sorry, but I've not been using Xfce for years now. Looking at the executables /usr/bin/xfce4-session and /usr/bin/startxfce4, the latter one should work. Shock In current Ubuntu (I mean 10.10 Maverick) the Xfce session startup works like this:
  1. First /usr/bin/startxfce4 is invoked, which calls ...
  2. /etc/xdg/xfce4/xinitrc, which starts a bunch of stuff and calls ...
  3. /usr/bin/xfce4-session

works fine on Mythbuntu 12.04 LTS

Hi
just drop by to say that it works fine on Mythbuntu 12.04 LTS.
Thanks for the hint!

works not on xubuntu 12.04 LTS: applic. start on server-DISPLAY

Hi,
thx very much for excellent help here. I reached to start XFCE4 with /usr/bin/startxfce4 , also with /usr/bin -l /usr/bin/startxfce4. But unfortunately all applications started from XFCE panel or menu or desktop icons start on the display of the 20.04 NX-server, not on the NX-client - except the terminal. Within the terminal I'm able to start firefox on the client, but not every application, e.g. google-chrome or LibreOffice, they start on the display of the server. How can I switch the DISPLAY variable to the right display?
the Client is Suse 11.1.

tia
Eckard

Re: works not on xubuntu 12.04 LTS: applic. start on ...

Hi Eckard!
Unfortunately I've abandoned Xfce a long time ago and I've not used FreeNX with 12.04 yet. So I cannot help you at the moment. I'll use Ubuntu 12.04 with FreeNX in the foreseeable future (maybe a few months from now) and if I encounter any problems, I'll update this post with my findings.