Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Install freenx
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2870
Location: Bay Area, CA

PostPosted: Mon Sep 12, 2005 7:13 pm    Post subject: Reply with quote

Q-collective wrote:
Any ideas about the compile error I posted a while back?
yes.

the file NX.h needs to be 'ln -s'ed in a standard location like /usr/include after the nx-x11 install. I thought this was fixed in later ebuilds. But apparently not.
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Mon Sep 12, 2005 8:27 pm    Post subject: HOWTO Connect a WinXP box to a Gentoo box via FREENX server Reply with quote

arjay1 wrote:
hey guys - I'm not talking about being unable to get 1.5.0 to work, or whatever. I'm talking about not being able to get ANY version to work. If any of you have a simple step min-howto for me I would sure appreciate it!!

So, after experimenting with both versions, and falling in several pitfalls, here's my HOWTO on Connecting a WinXP box to a Gentoo box via FREENX server and NoMachine WinXP client:

PROD HOWTO:

First, you will want to add the commercial USE flag for the nxserver; otherwise, you will encounter blocking issues with the client:
Code:
$ echo "net-misc/nxserver-freenx commercial" >> /etc/portage/package.use

Next, emerge the stable versions:
Code:
emerge --sync
emerge nxserver-freenx

The above line should pull in everything.

Most of the initial setup problems revolve around SSH setup. Make sure you have SSH installed, if you don't already ("emerge openssh"). Also, make sure you have the following lines enabled in your ssh config snippets:
Code:
cat /etc/ssh/sshd_config
...
AuthorizedKeysFile      .ssh/authorized_keys
PubkeyAuthentication  yes
...

The second line is not activated by default, I think. This can definitely cause a pitfall. The next pitfall occurs because openssh uses the authorized_keys file, while freenx defaults to using the authorized_keys2 file. You can fix this by using one of the two following methods: Either fix the sshd_config to use authorized_keys2, or fix freenx to use authorized_keys. Either way, these two systems have to reference the same file, or it won't work. You can fix SSH by modifying the file above and restarting ssh:
Code:
nano /etc/ssh/sshd_config
[change this line...]
#AuthorizedKeysFile      .ssh/authorized_keys
[to this line...]
AuthorizedKeysFile      .ssh/authorized_keys2
[restart ssh]
$ /etc/init.d/sshd restart

Or, change freenx:
Code:
nano /usr/NX/bin/nxserver
[look for "authorized_keys2" and change to "authorized_keys"]

It may be possible to use the default keys generated during the freenx ebuild, but I chose to regenerate mine for security and clarity:
Code:
cd /usr/NX/home/nx/.ssh
rm -rf *
nxkeygen  [or, /usr/NX/bin/nxkeygen  - if you're having $PATH problems]
cp -p server.id_dsa.pub.key authoirzed_keys [or, authorized_keys2, depending on your choice above]
cp -p client.id_dsa.key some_FTP/SCP_accessible_location
nxserver --adduser USERNAME

The last line initializes one of your local Linux users as an acceptable and ready NX user, and it is required for each user.

Having refreshed your keys, you need to get the private client.id_dsa.key to client box. I use WinSCP to copy the key file from my Gentoo box to my Windows XP client box, so I can import the key into my client configuration. Now, to configure the client for Windows:
  • Download and install free client from NoMachine
  • Bring up client wizard and enter box specific info (IP, user id created above, etc.)
  • Hit the "Key" button - Key form pops up
  • Hit the "Import" button on key form - import key file form pops up
  • Navigate to your client.id_dsa.key, which you copied previously
  • "OK" - "Save" - "Save" - etc.
  • Login

If you get errors getting the NX user to authenticate, double-check the SSH and key related steps above. I went in circles several times trying to get all of these just right. Don't forget you may have to "nxserver --deluser USERNAME ; nxserver --adduser USERNAME", if you change the NX key location.

But, what if you want to try the latest version, which StifflerStealth has made available to us?

UNSTABLE HOWTO:

If you want to be daring and play with the latest versions of freenx, then you will need to deviate from the standard portage tree using a "portage overlay", which StifflerStealth has created. If you are new to the "portage overlay" concept, as was I, then you may want to do some recommended reading:

Gentoo Linux Documentation -- Diverting from the Official Tree
HOWTO Installing 3rd Party Ebuilds

Here's the quick HOWTO on portage overlay for noobs, like me:
Code:
$ mkdir /usr/local/portage
$ cd /usr/local/portage
$ wget http://bugs.gentoo.org/attachment.cgi?id=67454 -O download.tar.bz2
$ bunzip2 download.tar.bz2
$ tar -xvf download.tar
$ rm -rf download.tar

This overlay tree will contain a modified, partial portage tree, which will override the default tree whenever an emerge is performed. However, you need to direct "emerge" to consider this new overlay tree:
Code:
$nano /etc/make.conf
[look for this line...]
#PORTDIR_OVERLAY=/usr/local/portage
[and uncomment it, or change it to..]
PORTDIR_OVERLAY=/usr/local/portage

Since some of the files in these ebuilds are marked nostable, "~x86", then we will need to allow the nonstable keywords, but just for these packages:
Code:
$ echo "net-misc/nxproxy ~x86" >> /etc/portage/package.keywords
$ echo "net-misc/nxssh ~x86" >> /etc/portage/package.keywords

Next, you will want to revisit the "authorized_keywords" issue. If you changed, /etc/ssh/sshd_config to look in .ssh/authorized_keys2, then you are fine. However, if your ssh config is still looking in .ssh/authorized_keys, you may want to fix freenx to look in the correct location:
Code:
nano /usr/NX/bin/nxloadconfig
[look for this line...]
# the name of the authorized keys file for ssh
SSH_AUTHORIZED_KEYS="authorized_keys2"
[and change to this...]
# the name of the authorized keys file for ssh
SSH_AUTHORIZED_KEYS="authorized_keys"

If you are using the latest NoMachine client, version 1.5.0, then you will want to enable the 1.5.0 compatible backend for the freenx server; otherwise, you may run into the "cookie" authorization issue:
Code:
$ cd /usr/NX/etc
cp -p node.conf.sample node.conf [unless you already have a node.conf]
nano node.conf
[look for this line...]
ENABLE_1_5_0_BACKEND="0"
[and change to this...]
ENABLE_1_5_0_BACKEND="1"

Now, just for secuirty and clarity, let's regen our keys again:
Code:
cd /usr/NX/home/nx/.ssh
rm -rf *
nxkeygen  [or, /usr/NX/bin/nxkeygen  - if you're having $PATH problems]
cp -p server.id_dsa.pub.key authoirzed_keys [or, authorized_keys2, depending on your choice above]
cp -p client.id_dsa.key some_FTP/SCP_accessible_location

Of course, you will want to reimport this new key into the NoMachine client, as described in the PROD HOWTO. After that, you should be good to go!

Let me know if I missed anything, and I'll gladly update this post.
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Tue Sep 13, 2005 6:30 pm    Post subject: slightly off topic... Reply with quote

Since this seems to be the only freenx thread getting current attention on the Gentoo forums, please allow me to post 3 somewhat related questions. Has anybody been able to successfully setup/configure the following 3 features for freenx?
  1. Multi-Monitor support - my client is a dual-head Windows XP box, but I cannot make the display bigger than one monitor (1600x1200). Is it possible to spread the display across multiple monitors? This seems an aritfiical limitation, since I can drag the 1600x1200 window back and forth across both monitors, yet I cannot spread it across both tubes. (Shameless duplicate thread) - To me, this is the most important issue to dramatically increasing usability and effectiveness. :-)
  2. Suspend/Resume - Does this work yet with a WindowsXP client and Gentoo freenx server? Even if I always use the same client box to connect to the same server box?
  3. Network Sound - I emerged esound as suggested earlier and was able to get some really poor test sound from the KDE control panel to come through the pipe, but nothing else seems to work. Found a little on this here (NoMachine Sound Config)

I'm running the latest version of of the freenx server (0.44, I think) on a Gentoo box. My client is running the latest NoMachine (1.5.0) client on a Windows XP.
Back to top
View user's profile Send private message
alinv
Guru
Guru


Joined: 19 Nov 2002
Posts: 395
Location: Bucharest

PostPosted: Tue Sep 13, 2005 8:43 pm    Post subject: Reply with quote

@m27315: Great! It works now.

Thanks a lot,
Alin
_________________
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B.
Back to top
View user's profile Send private message
arjay1
n00b
n00b


Joined: 24 Aug 2005
Posts: 57
Location: Coin, Spain

PostPosted: Wed Sep 14, 2005 8:58 am    Post subject: Reply with quote

Sorry - must be a bit thick today. I am trying to install nxclient on a gentoo LINUX box, not windows. I have the server installed just fine on a debian machine on the network.

I have downloaded and untarred the nxclient from nomachine.com to my client box - the file was nxclient-1.5.0-106.i386.tar.gz. The tar process gives me an NX directory in the temp directory where I downloaded the tar.gz file.

What happens now? Am I supposed to install the program in someway? None of the icons for launching nxxclient have appeared in the menu (as they did when I tried this a few days ago in a debian installation).
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Wed Sep 14, 2005 10:38 pm    Post subject: Reply with quote

I just need to clarify how this is all supposed to work.

I've installed the nxclient and server on my Gentoo server. I'm trying to connect to it from another Windows machine on the LAN.

I've done the whole --adduser and --passwd thing and nxserver --start says that the server is running. But why do I do now?

I've discovered that if I start a VNC desktop session on my server that I can connect to it from the Windows client. But that's not really what supposed to happen is it?...

So how do I configure my client to connect to the Gentoo box?

And say that I wanted to connect two Windows machines on the same network... how does the configuration differ for them? Do I need to install a server version of nx on each of the Windows machine or what?
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 897
Location: US-FL-EST

PostPosted: Thu Sep 15, 2005 3:42 am    Post subject: Re: slightly off topic... Reply with quote

m27315 wrote:
Since this seems to be the only freenx thread getting current attention on the Gentoo forums, please allow me to post 3 somewhat related questions. Has anybody been able to successfully setup/configure the following 3 features for freenx?
[list=1][*]Multi-Monitor support - my client is a dual-head Windows XP box, but I cannot make the display bigger than one monitor (1600x1200). Is it possible to spread the display across multiple monitors? This seems an aritfiical limitation, since I can drag the 1600x1200 window back and forth across both monitors, yet I cannot spread it across both tubes. (Shameless duplicate thread) - To me, this is the most important issue to dramatically increasing usability and effectiveness. :-)


I'm virtually certain that 1600x1200 is the max. I don't know this for sure since I'm not a programmer. However, I believe nomachine has coded their modified xserver to be hardcoded for VESA display standard. Max res defined in VESA is 1600x1200. Coding the server for the VESA driver avoids reliance on specific hardware, OS yada-yada-yada.

VMware workstation has the same limit for basically the same reason. Though VMware emulates a specific graphics chip, they provide full VESA support through that driver.

In essence, neither product knows anything about 'dual head' configurations. That's a funtion of the underlying OS.

As for sound, I haven't tried to pipe it back to me yet. I maintain my mother's machine using NX. She always knows when I log on because the welcome sound when KDE starts plays back on her speakers. ;-)

BTW - thank you very much for your guide above. It increased my understanding of what I did when I installed freenx on my mother's machine. Now, if I could just get it to work through my firewall ...

edit - It just occured to me how you at least get more non-contiguous desktop real estate from your server machine. Simply open up a second connection. Put one NX client window on one screen and put the other NX client on the other screen. I've had as many as three connections open simultaneously on my mother's machine. The only practical limit is the speed of your connection. Of course, this doesn't solve the problem if you actually need a contiguous desktop.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
frilled
Retired Dev
Retired Dev


Joined: 15 Mar 2004
Posts: 386
Location: Atlantis, inner city ring

PostPosted: Thu Sep 15, 2005 2:09 pm    Post subject: Re: slightly off topic... Reply with quote

Quote:
I'm virtually certain that 1600x1200 is the max. [...]VMware workstation has the same limit for basically the same reason. Though VMware emulates a specific graphics chip, they provide full VESA support through that driver.


Hm. You can use arbitrary resolutions in VMware workstation. You might need to set the maximum width and height in the .vmx file, though.

I even got odd resolutions (like 920x1180 for Portrait mode) to work with either Linux and XP clients.
_________________
"Failure is not an option!"
"Sir, we are out of further options."
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Thu Sep 15, 2005 8:05 pm    Post subject: Re: slightly off topic... Reply with quote

dufeu wrote:
I'm virtually certain that 1600x1200 is the max. I don't know this for sure since I'm not a programmer. However, I believe nomachine has coded their modified xserver to be hardcoded for VESA display standard. Max res defined in VESA is 1600x1200. Coding the server for the VESA driver avoids reliance on specific hardware, OS yada-yada-yada. ... In essence, neither product knows anything about 'dual head' configurations. That's a funtion of the underlying OS.

Actually, it works fine if the client is another Linux box. If I use a dual-head Linux box, both "full screen" and "avaliable area" use all the workspace available across both monitors. The problem is in the client not the server, I suspect. I think the Windows client is artificially limiting the size of the screen to a single monitor.

arjay1 wrote:
I have downloaded and untarred the nxclient from nomachine.com to my client box - the file was nxclient-1.5.0-106.i386.tar.gz. The tar process gives me an NX directory in the temp directory where I downloaded the tar.gz file.

What happens now? Am I supposed to install the program in someway? None of the icons for launching nxxclient have appeared in the menu (as they did when I tried this a few days ago in a debian installation).

I guess you figured this out by now, but there are no icons created this way. You will have to install them yourself. The icons should exist here:
Code:
$ ls /tmp/NX/share/icons
nxclient-admin.png  nxclient-wizard.png  nx-desktop.ico  nx-desktop.png  nx.png

You can run the client from the command line as follows, until you get it manually added to the menus:
Code:
$ /tmp/NX/bin/nxclient&

Just to report on my own request...
m27315 wrote:
2. Suspend/Resume - Does this work yet with a WindowsXP client and Gentoo freenx server? Even if I always use the same client box to connect to the same server box?

This works for me using a RHE install at work of 0.44 freenx server, so I'm guessing the limitation is in the Gentoo default install/config of the freenx server, because I am using the exact same Windows client box for both cases. I'll do some comparing of the installs and report back later...

justincataldo wrote:
I've discovered that if I start a VNC desktop session on my server that I can connect to it from the Windows client. But that's not really what supposed to happen is it?...

So how do I configure my client to connect to the Gentoo box?

And say that I wanted to connect two Windows machines on the same network... how does the configuration differ for them? Do I need to install a server version of nx on each of the Windows machine or what?

See previous howto notes...

m27315 wrote:
Having refreshed your keys, you need to get the private client.id_dsa.key to client box. I use WinSCP to copy the key file from my Gentoo box to my Windows XP client box, so I can import the key into my client configuration. Now, to configure the client for Windows:
  • Download and install free client from NoMachine
  • Bring up client wizard and enter box specific info (IP, user id created above, etc.)
  • Hit the "Key" button - Key form pops up
  • Hit the "Import" button on key form - import key file form pops up
  • Navigate to your client.id_dsa.key, which you copied previously
  • "OK" - "Save" - "Save" - etc.
  • Login

The client can connect to VNC, but that's not what you want to do. Change the "Desktop" back to "UNIX" on the "General" tab.
Oh, freenx does not exist for the Windows platform. You would have to pay NoMachine for their commercial Windows server. If you want to stay "free", then your server will always be freenx on Linux (X).
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 897
Location: US-FL-EST

PostPosted: Thu Sep 15, 2005 8:14 pm    Post subject: Re: slightly off topic... Reply with quote

m27315 wrote:
dufeu wrote:
I'm virtually certain that 1600x1200 is the max. I don't know this for sure since I'm not a programmer. However, I believe nomachine has coded their modified xserver to be hardcoded for VESA display standard. Max res defined in VESA is 1600x1200. Coding the server for the VESA driver avoids reliance on specific hardware, OS yada-yada-yada. ... In essence, neither product knows anything about 'dual head' configurations. That's a funtion of the underlying OS.

Actually, it works fine if the client is another Linux box. If I use a dual-head Linux box, both "full screen" and "avaliable area" use all the workspace available across both monitors. The problem is in the client not the server, I suspect. I think the Windows client is artificially limiting the size of the screen to a single monitor.


Ah well. Another perfectly good theory ignomiously blown up. ;-)

Thank you for the info. I usually use the windows client. I didn't realize it work on the linux client.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2870
Location: Bay Area, CA

PostPosted: Fri Sep 16, 2005 12:55 am    Post subject: Re: slightly off topic... Reply with quote

m27315 wrote:

Actually, it works fine if the client is another Linux box. If I use a dual-head Linux box, both "full screen" and "avaliable area" use all the workspace available across both monitors. The problem is in the client not the server, I suspect. I think the Windows client is artificially limiting the size of the screen to a single monitor.


the windows client is nothing but a cygwin X server running in full screen mode. The X server codebase used for nxwin.exe is admittedly very old and probably doesn't understand/support xinerama. NX guys are not planning to move to xorg based cygwin implementation anytime soon because they lack resources. Can you please verify if cygwin X server can span across monitors for you?
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Fri Sep 16, 2005 3:31 am    Post subject: Re: slightly off topic... Reply with quote

m27315 wrote:
Just to report on my own request...
m27315 wrote:
2. Suspend/Resume - Does this work yet with a WindowsXP client and Gentoo freenx server? Even if I always use the same client box to connect to the same server box?

This works for me using a RHE install at work of 0.44 freenx server, so I'm guessing the limitation is in the Gentoo default install/config of the freenx server, because I am using the exact same Windows client box for both cases. I'll do some comparing of the installs and report back later...

As far as I can tell, both servers (Gentoo vs. RHE) are running the exact same version of code, although I have yet to examine the source code. All the shell scripts (nxserver, etc.) have no diff. The config files are also equivalent. I have no idea what is the culprit.

Just for more info, I can manually perform a suspend:

Code:
$ nxserver --suspend USERNAME

The resume works fine; however, the "Ctrl-Alt-t" key combination does not raise the Suspend/Terminate dialog box, as it does using the RHE server. Could this be a keyboard setup issue on the server? I am using the same client in both instances.

Has anybody else been able to get the Suspend/Terminate dialog to pop up? How are you performing Suspend/Terminate?
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Fri Sep 16, 2005 7:52 pm    Post subject: Re: slightly off topic... Reply with quote

devsk wrote:
the windows client is nothing but a cygwin X server running in full screen mode. The X server codebase used for nxwin.exe is admittedly very old and probably doesn't understand/support xinerama. NX guys are not planning to move to xorg based cygwin implementation anytime soon because they lack resources. Can you please verify if cygwin X server can span across monitors for you?

I downloaded and installed the latest vesions of Cygwin/X and Xming.

Re: Xming - If I run the wizard and tell it "Multiple Windows", it runs in rootless mode consuming both monitors. If I right-click on the "X" icon in the system tray, and uncheck "Hide Root Window", the gray X background does indeed consume both windows, allowing me to spread a KDE session across both monitors. Why can't NoMachine do the same? (I know - I am asking this question in the wrong place - just thinking out loud...)

Re: Cygwin/X - Now that you mentioned it, I watched the NoMachine client install process a little more closely, and I saw that it did indeed mention "Cygwin/X" during the file copying/installation process. To test it out, from the Cygwin/X bash shell, I started the Cygwin/X server in the following ways, which also demonstrated that it has multiple monitor capability:

Code:
$ Xwin :0 -clipboard -nodecoration
# Consumes all of 1st monitor, except for taskbar
$ Xwin :0 -clipboard -fullscreen
# Consumes all of 1st monitor, including taskbar - true fullscreen mode
$ Xwin :0 -clipboard [b]-multiplemonitors[/b] -nodecoration
# This consumes almost all of both monitors, leaving only the taskbar unconsumed.
$ XWin :0 -clipboard -fullscreen [b]-multiplemonitors[/b]
# Only consumes the left monitor - Seems to ignore the -multiplemonitors switch - a bug?

Even though the Cygwin/X mode ignores multiple monitors in fullscreen mode (seems to be a bug in the Cygwin/X code), the "Available Area" mode in the nxclient should still be able to use the "-multiplemonitors" switch to provide a window that consumes all of the available space, except the taskbar. I think the capability is there. The nomachine guys need to simply activate the "-multiplemonitors" switch, assuming they are bundling the current version of Cygwin/X.

As another solution path, I noticed while setting up an NVIDIA dual-head today that it had an option for "Dual View" or "Span" mode. Both options allow you to use both monitors, but "Span" tricks the OS into thinking that they comprise one big monitor, kind of XINERMA-ish. Consequently, when you maximize something, it takes up all of both screens. No need for the HYRDRAVISION maximize button. The Display "Settings" look very different too. One shows two monitors, while "Span" shows one big monitor. Does anybody know how to make an ATI card do a "Span" mode? I'm looking forward to seeing if that might trick nxwin into using both monitors in fullscreen.

EDIT (9/16/2005 - 4:15pm) Haha! That works!!! :-D ATI has a similar wizard that gives you the option between "Extended Desktop Mode" and "Horizontal Stretch Mode". The latter requires both monitors to be the same resolution and color depth, but it does trick all the apps into thinking that all the monitors are one big monitor. The "Maximize" button and "fullscreen" buttons stretch everything across all monitors. It works great for the NoMachine client! I can now stretch the Linux KDE desktop, running on freenx (0.44), across both monitors on my Windows XP box using the NoMachine client! Of course, maximizing firefox and thunderbird also spreads the apps across both monitors, which makes reading painful, so your maximize becomes less useful for other apps, but that's a good tradeoff for me! Now back to the Suspend/Terminate dialog box issue using the Gentoo freenx server...

However, since Exceed, ReflectionX, Cygwin/X, and Xming all understand spreading across multiple monitors without such changes, I would hope NoMachine would understand it too... Oh well, you can't have everything. :-) I'm thrilled that I at least have a workaround!
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2870
Location: Bay Area, CA

PostPosted: Fri Sep 16, 2005 10:45 pm    Post subject: Re: slightly off topic... Reply with quote

m27315 wrote:

Has anybody else been able to get the Suspend/Terminate dialog to pop up? How are you performing Suspend/Terminate?

check that a /usr/NX/bin/nxclient executable (shell script from freenx is better) exists on gentoo server. where is your 'xmessage' executable on Gentoo server? Is that path in the PATH of freenx scripts?

I have one rhel and one gentoo NX server install and I don't see this issue.

PS: killing the window (Alt-F4 or clicking 'x') also should give you the same dialog box.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 897
Location: US-FL-EST

PostPosted: Sat Sep 17, 2005 1:14 am    Post subject: freenx server for amd64 Reply with quote

Has anyone gotten the freenx-server working on amd64 based systems?

I've successfully used the nx windows client at work to logon through my firewall onto my amd athlon PC today. So I'd like to be able to do the same for my Asus K8N-DL based system.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
cprior
n00b
n00b


Joined: 03 Jun 2004
Posts: 57
Location: #gentoo ;)

PostPosted: Sat Sep 17, 2005 5:41 pm    Post subject: Reply with quote

arjay1 wrote:
I get "Server not install or Remote Access Disabled."
Code:
NX> 203 NXSSH running with pid: 5383
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 151.1.143.116 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.



I was stopped at that point some months ago. I just went back to that nx stuff today and I felt almost ashamed: I simply did not import the key into the nxclient...
Back to top
View user's profile Send private message
arjay1
n00b
n00b


Joined: 24 Aug 2005
Posts: 57
Location: Coin, Spain

PostPosted: Sun Sep 18, 2005 7:15 am    Post subject: Reply with quote

cprior - wish it was that simple :cry: I got the same problems even when using nomachines' own keys that don't require copying over .....
Back to top
View user's profile Send private message
arjay1
n00b
n00b


Joined: 24 Aug 2005
Posts: 57
Location: Coin, Spain

PostPosted: Sun Sep 18, 2005 7:42 am    Post subject: Reply with quote

m27315 from your post:

Quote:

I guess you figured this out by now, but there are no icons created this way. You will have to install them yourself. The icons should exist here:

Code:
$ ls /tmp/NX/share/icons
nxclient-admin.png nxclient-wizard.png nx-desktop.ico nx-desktop.png nx.png

You can run the client from the command line as follows, until you get it manually added to the menus:

Code:
$ /tmp/NX/bin/nxclient&


Yes - the icons are where you said they should be, but how do I manually install them?

I ran this command as per your post but I just get
Code:
carrera:/usr/NX/bin# nxclient&
bash: nxclient: command not found
[1] 16369
[1]   Exit 127                nxclient
carrera:/usr/NX/bin#

even though I can see the file nxclient in the /bin folder. I changed permissions to the NX folder in case it was that but no joy. Also tried running it in root but same thing. I just don't get it. I can ssh fine both ways between my gentoo and linux boxes but nx no way! Apart from nxclient and openssh - is there anything else I am supposed to have installed on the client. This is driving me nuts!
Back to top
View user's profile Send private message
cprior
n00b
n00b


Joined: 03 Jun 2004
Posts: 57
Location: #gentoo ;)

PostPosted: Sun Sep 18, 2005 11:19 am    Post subject: Reply with quote

arjay1 wrote:
cprior - wish it was that simple :cry: I got the same problems even when using nomachines' own keys that don't require copying over .....


Besides the typo, did you follow

m27315 wrote:

cp -p server.id_dsa.pub.key authoirzed_keys [or, authorized_keys2, depending on your choice above]


exactly as given?

The -p parameter is crucial as OpenSSH is quite strict about file permissions, you need the equivalent of chmod 600 or it will fail.
Back to top
View user's profile Send private message
arjay1
n00b
n00b


Joined: 24 Aug 2005
Posts: 57
Location: Coin, Spain

PostPosted: Sun Sep 18, 2005 11:31 am    Post subject: Reply with quote

cprior.

Now you have really thrown me!..

1. What typo? Did you mean the typo in nxclient&? If so, I also ran nxclient, but it reports the same:
Code:
carrera:/home/richard# cd /usr/NX/bin
carrera:/usr/NX/bin# nxclient
bash: nxclient: command not found
carrera:/usr/NX/bin# ls
nxclient  nxesd  nxprint  nxssh
carrera:/usr/NX/bin#

As you can see, the file nxclient is in that folder.

2. As to your second point, not sure what this is about:
Quote:
m27315 wrote:

cp -p server.id_dsa.pub.key authoirzed_keys [or, authorized_keys2, depending on your choice above]
???

Since I can't even get nxclient to run (no such command) isn't it a bit early in the process to be setting up the keys?

Anyway - thanks for continuing to provide support

RJ
Back to top
View user's profile Send private message
cprior
n00b
n00b


Joined: 03 Jun 2004
Posts: 57
Location: #gentoo ;)

PostPosted: Sun Sep 18, 2005 11:57 am    Post subject: Reply with quote

arjay1 wrote:
1. What typo?
m27315 wrote:
m27315 wrote:
cp -p server.id_dsa.pub.key authoirzed_keys [or, authorized_keys2, depending on your choice above]


(emphasis added)

So on your server, you never run nxclient at all. But just to be sure, my directory looks like this:

nxserver ~ # ls /usr/NX/bin
nxagent nxdesktop nxnode nxprint nxsetup
nxauth nxkeygen nxnode-login nxproxy nxssh
nxclient nxloadconfig nxpasswd nxserver nxviewer

Here is the relevant extract from my .bash_history of a fresh install (sync'ed today):

Code:
echo "net-misc/nxclient ~x86" >> /etc/portage/package.keywords
echo "net-misc/nx-x11 ~x86" >> /etc/portage/package.keywords
echo "net-misc/nxproxy ~x86" >> /etc/portage/package.keywords
echo "net-misc/nxserver-freenx ~x86 " >> /etc/portage/package.keywords
echo "net-misc/nxssh ~x86" >> /etc/portage/package.keywords
echo "net-misc/nxserver-freenx commercial" >> /etc/portage/package.use
emerge freenx-server -vp
emerge nxserver-freenx -vp
emerge nxserver-freenx -vp
emerge nxserver-freenx
echo $PATH
env-update
source /etc/profile
echo $PATH
vi /etc/ssh/sshd_config #checked for authorized_keys2 and PubkeyAuth
/etc/init.d/sshd restart
cd /usr/NX/home/nx/.ssh/
ls
rm -rf *
/usr/NX/bin/nxkeygen
cp -p server.id_dsa.pub.key authorized_keys2
cp client.id_dsa.key $HOME/
chown cprior:users $HOME/client.id_dsa.key
/usr/NX/bin/nxserver --adduser cprior


(I hope I did include everything)

But on the server, there is nothing about nxclient at all!
(For the sake of clarity, and as I dislike pure-text forum posts in occasions like this, have a look at http://trecento.prior-i.de/images/comp_gentoo_nxsetup.png )

HTH.
Back to top
View user's profile Send private message
cprior
n00b
n00b


Joined: 03 Jun 2004
Posts: 57
Location: #gentoo ;)

PostPosted: Sun Sep 18, 2005 12:15 pm    Post subject: Reply with quote

arjay1 wrote:

Code:
carrera:/home/richard# cd /usr/NX/bin
carrera:/usr/NX/bin# nxclient
bash: nxclient: command not found
carrera:/usr/NX/bin# ls
nxclient  nxesd  nxprint  nxssh
carrera:/usr/NX/bin#

As you can see, the file nxclient is in that folder.


Now that I think about it I suspect that your $PATH has not been updated after the emerge. If you rebooted in the meanwhile it should be fixed already, if not just do an env-update && source /etc/profile.

The command was not found because a) it was not in your $PATH and b) then you had to run it by ./nxclient
Back to top
View user's profile Send private message
arjay1
n00b
n00b


Joined: 24 Aug 2005
Posts: 57
Location: Coin, Spain

PostPosted: Sun Sep 18, 2005 4:45 pm    Post subject: Reply with quote

Thanks for all that. Just to check - are you saying you emerged a gentoo version of nxclient? I downloaded the tar version from nomachine's web-site and just untar'd it in /usr. But I will check the Paths issue.

Also, just to clarify things - my copy of nxserver is running on a debian installation. I am not so satisified with gentoo yet that I would replace debian on my main server. I am just playing with gentoo on a spare linux box - to evaluate it. So far, I am not convinced it is worth all the trouble to get to where I now have debian. (I haven't forgotten having to wait nearly FOUR DAYS just for kde to compile 8O)
Back to top
View user's profile Send private message
StifflerStealth
l33t
l33t


Joined: 03 Jul 2002
Posts: 968

PostPosted: Mon Sep 19, 2005 12:16 am    Post subject: Reply with quote

If you DLed the client from the NoMachine's website, then you are not using the ebuild to install it, thus you are not using the Gentoo Version, thus it is not Gentoo's fault that it doesn't work.

This is from the ebuild. You can use this to see if you have all the files in the right place:
Quote:
src_install() {
exeinto /usr/NX/bin
doexe usr/NX/bin/nxclient
doexe usr/NX/bin/nxprint

insinto /usr/NX/share
doins usr/NX/share/client.id_dsa.key
doins usr/NX/share/keyboards
insinto /usr/NX/share/icons
doins usr/NX/share/icons/*
insinto /usr/NX/share/images
doins usr/NX/share/images/*.png

insinto /usr/share/applnk/Internet
doins "usr/NX/share/applnk/NX Client for Linux/nxclient-admin.desktop"
doins "usr/NX/share/applnk/NX Client for Linux/nxclient-help.desktop"
doins "usr/NX/share/applnk/NX Client for Linux/nxclient-wizard.desktop"
doins "usr/NX/share/applnk/NX Client for Linux/nxclient.desktop"
}

Also, the ebuild actually downloads the RPM version. That's just how it always been. I don't know if there are any differences with the RPM and tar versions. All I know is that it works.

The Path to /usr/NX/bin is put in the PATH variable, and the ebuild automatically does a env-update so after nx-x11 is installed, you should just be able to type nxserver, nxclient, ... and so on from anywhere and you can even use tab completion on them. So, type nx then a tab and see if you get nxclient in the list.
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
cprior
n00b
n00b


Joined: 03 Jun 2004
Posts: 57
Location: #gentoo ;)

PostPosted: Mon Sep 19, 2005 5:58 am    Post subject: Reply with quote

StifflerStealth wrote:
If you DLed the client from the NoMachine's website, then you are not using the ebuild to install it, thus you are not using the Gentoo Version, thus it is not Gentoo's fault that it doesn't work.


That's what I thought, too: What brings this into f.gentoo.o?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 28, 29, 30  Next
Page 13 of 30

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum