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 ... 13, 14, 15 ... 28, 29, 30  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
arjay1
n00b
n00b


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

PostPosted: Mon Sep 19, 2005 4:32 pm    Post subject: Reply with quote

StifflerStealth
cprior

Thanks for the advice. I had tried to install nxclient using emerge but it would not run - that is why I was trying the tar.gz file.

Anyway, I have solved my problem. After setting up my server, I thought I only needed to install nxclient for the client machine. I didn't realise that I also needed nx-x11, nxssh and nxproxy on the client. I am used to debian which installs all these programs automatically when you install nxclient. Once I emerged them, nxclient runs just fine - with the apps auto-installed in the main KDE menu. I can now log on just fine to nomachine's free test sites and run a remote session there.

Now to do battle with the server side which is a debian installation. I asked for advice here earlier because you guys are MILES ahead of the mob over on the debian forums as far as freenx is concerned. I have explained several times that mine is a gentoo/client-debian/server setup but I can take a hint - perhaps I had better go back to the debian forum. I have probably taken up a lot of your time and don't want to outstay my welcome :)

Thanks again.

RJ

EDIT: BTW as far as I can see, the Linux version of nxclient does not have a "Key" button next to the hostname (unless it is in a version later than 1.40). This could be confusing for us newbies that are trying to set up a linux-linux system??
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Mon Sep 19, 2005 10:32 pm    Post subject: Problem with logging into nxserver freenx Reply with quote

I've set up a second machine on my home lan so that I can log into it using freenx. For some reason, I can't get this one to work.

On this PC's freenx server, I keep getting this:

Code:
NXPROXY - Version 1.5.0

Copyright (C) 2001, 2005 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '2808'.
Info: Synchronizing local and remote caches.
Info: Handshaking with remote proxy completed.
Info: Using cache parameters 4/262144/32768KB/32768KB.
Info: Using wan link parameters 16384/16/5/20.
Info: Using pack method 'no-pack' with session 'unix-application'.
Info: Using ZLIB data compression level 1.
Info: Using ZLIB data threshold set to 32.
Info: Not using ZLIB stream compression.
Info: Using remote ZLIB data compression level 1.
Info: Not using remote ZLIB stream compression.
Info: No suitable cache file found.
Info: Forwarding embedded keyboard connections to port '6005'.
Info: Starting X protocol compression.
Warning: Cookie mismatch in the authentication data.
Info: End of session requested by remote proxy.
Info: Shutting down the link and exiting.


I've googled pretty thoroughly but haven't been able to figure this one out.

Any pointers of what I should be looking for?
_________________
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: Tue Sep 20, 2005 8:16 am    Post subject: Reply with quote

On a fresh test-install I just went into configuration and disabled ZLIB compression.
That lets me connect and I will figure out what's really wrong later...
Back to top
View user's profile Send private message
DDV01
n00b
n00b


Joined: 08 Jul 2003
Posts: 70
Location: The Netherlands

PostPosted: Sun Sep 25, 2005 12:44 pm    Post subject: Reply with quote

I think I've almost got things working... Except for a "Failed keyboard-interactive/pam" error.
Can anyone help me out here? I'm using 0.4.0
Thanks


Code:

Sep 25 14:35:57 server sshd[12543]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Sep 25 14:35:57 server sshd[9132]: debug1: Forked child 12543.
Sep 25 14:35:57 server sshd[12543]: debug1: inetd sockets after dupping: 3, 3
Sep 25 14:35:57 server sshd[12543]: Connection from 192.168.1.196 port 1806
Sep 25 14:35:57 server sshd[12543]: debug1: Client protocol version 2.0; client software version OpenSSH_3.9p1
Sep 25 14:35:57 server sshd[12543]: debug1: match: OpenSSH_3.9p1 pat OpenSSH*
Sep 25 14:35:57 server sshd[12543]: debug1: Enabling compatibility mode for protocol 2.0
Sep 25 14:35:57 server sshd[12543]: debug1: Local version string SSH-1.99-OpenSSH_3.9p1
Sep 25 14:35:57 server sshd[12543]: debug1: PAM: initializing for "nx"
Sep 25 14:35:57 server sshd[12543]: debug1: PAM: setting PAM_RHOST to "192.168.1.196"
Sep 25 14:35:57 server sshd[12543]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 25 14:35:57 server sshd[12543]: debug1: temporarily_use_uid: 104/100 (e=0/0)
Sep 25 14:35:57 server sshd[12543]: debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys
Sep 25 14:35:57 server sshd[12543]: debug1: matching key found: file /usr/NX/home/nx/.ssh/authorized_keys, line 1
Sep 25 14:35:57 server sshd[12543]: Found matching DSA key: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Sep 25 14:35:57 server sshd[12543]: debug1: restore_uid: 0/0
Sep 25 14:35:57 server sshd[12543]: debug1: ssh_dss_verify: signature correct
Sep 25 14:35:57 server sshd[12543]: Accepted publickey for nx from 192.168.1.196 port 1806 ssh2
Sep 25 14:35:57 server sshd[12543]: debug1: monitor_child_preauth: nx has been authenticated by privileged process
Sep 25 14:35:57 server sshd(pam_unix)[12548]: session opened for user nx by (uid=0)
Sep 25 14:35:57 server sshd[12548]: debug1: PAM: reinitializing credentials
Sep 25 14:35:57 server sshd[12548]: debug1: permanently_set_uid: 104/100
Sep 25 14:35:57 server sshd[12548]: debug1: Entering interactive session for SSH2.
Sep 25 14:35:57 server sshd[12548]: debug1: server_init_dispatch_20
Sep 25 14:35:57 server sshd[12548]: debug1: server_input_channel_open: ctype session rchan 0 win 131072 max 32768
Sep 25 14:35:57 server sshd[12548]: debug1: input_session_request
Sep 25 14:35:57 server sshd[12548]: debug1: channel 0: new [server-session]
Sep 25 14:35:57 server sshd[12548]: debug1: session_new: init
Sep 25 14:35:57 server sshd[12548]: debug1: session_new: session 0
Sep 25 14:35:57 server sshd[12548]: debug1: session_open: channel 0
Sep 25 14:35:57 server sshd[12548]: debug1: session_open: session 0: link with channel 0
Sep 25 14:35:57 server sshd[12548]: debug1: server_input_channel_open: confirm session
Sep 25 14:35:57 server sshd[12548]: debug1: server_input_channel_req: channel 0 request shell reply 0
Sep 25 14:35:57 server sshd[12548]: debug1: session_by_channel: session 0 channel 0
Sep 25 14:35:57 server sshd[12548]: debug1: session_input_channel_req: session 0 req shell
Sep 25 14:36:05 server sshd[13065]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
Sep 25 14:36:05 server sshd[9132]: debug1: Forked child 13065.
Sep 25 14:36:05 server sshd[13065]: debug1: inetd sockets after dupping: 3, 3
Sep 25 14:36:05 server sshd[13065]: Connection from 127.0.0.1 port 32788
Sep 25 14:36:05 server sshd[13065]: debug1: Client protocol version 2.0; client software version OpenSSH_3.9p1
Sep 25 14:36:05 server sshd[13065]: debug1: match: OpenSSH_3.9p1 pat OpenSSH*
Sep 25 14:36:05 server sshd[13065]: debug1: Enabling compatibility mode for protocol 2.0
Sep 25 14:36:05 server sshd[13065]: debug1: Local version string SSH-1.99-OpenSSH_3.9p1
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: initializing for "userxxx"
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: setting PAM_RHOST to "localhost"
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 25 14:36:05 server sshd[13065]: debug1: temporarily_use_uid: 500/501 (e=0/0)
Sep 25 14:36:05 server sshd[13065]: debug1: trying public key file /home/userxxx/.ssh/authorized_keys
Sep 25 14:36:05 server sshd[13065]: debug1: restore_uid: 0/0
Sep 25 14:36:05 server sshd[13065]: debug1: temporarily_use_uid: 500/501 (e=0/0)
Sep 25 14:36:05 server sshd[13065]: debug1: trying public key file /home/userxxx/.ssh/authorized_keys
Sep 25 14:36:05 server sshd[13065]: debug1: restore_uid: 0/0
Sep 25 14:36:05 server sshd(pam_unix)[13071]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:08 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:08 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
Sep 25 14:36:08 server sshd(pam_unix)[13074]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:10 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:10 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
Sep 25 14:36:10 server sshd(pam_unix)[13077]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:13 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:13 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
Sep 25 14:36:13 server sshd[13065]: debug1: do_cleanup
Sep 25 14:36:13 server sshd[13065]: debug1: PAM: cleanup
Sep 25 14:36:13 server sshd[12548]: Read error from remote host 192.168.1.196: Connection reset by peer
Sep 25 14:36:13 server sshd[12548]: debug1: do_cleanup
Sep 25 14:36:13 server sshd[12548]: debug1: PAM: cleanup
Sep 25 14:36:13 server sshd(pam_unix)[12548]: session closed for user nx
Sep 25 14:36:13 server sshd[12543]: debug1: do_cleanup

Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


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

PostPosted: Sun Sep 25, 2005 7:23 pm    Post subject: Reply with quote

DDV01 wrote:
I think I've almost got things working... Except for a "Failed keyboard-interactive/pam" error.
Can anyone help me out here? I'm using 0.4.0
Thanks
Code:


Sep 25 14:35:57 server sshd[12543]: debug1: PAM: initializing for "nx"
Sep 25 14:35:57 server sshd[12543]: debug1: PAM: setting PAM_RHOST to "192.168.1.196"
Sep 25 14:35:57 server sshd[12543]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 25 14:35:57 server sshd[12543]: debug1: temporarily_use_uid: 104/100 (e=0/0)
Sep 25 14:35:57 server sshd[12543]: debug1: trying public key file /usr/NX/home/nx/.ssh/authorized_keys
Sep 25 14:35:57 server sshd[12543]: debug1: matching key found: file /usr/NX/home/nx/.ssh/authorized_keys, line 1
Sep 25 14:35:57 server sshd[12543]: Found matching DSA key: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Sep 25 14:35:57 server sshd[12543]: debug1: restore_uid: 0/0
Sep 25 14:35:57 server sshd[12543]: debug1: ssh_dss_verify: signature correct
Sep 25 14:35:57 server sshd[12543]: Accepted publickey for nx from 192.168.1.196 port 1806 ssh2
Sep 25 14:35:57 server sshd[12543]: debug1: monitor_child_preauth: nx has been authenticated by privileged process
Sep 25 14:35:57 server sshd(pam_unix)[12548]: session opened for user nx by (uid=0)
Sep 25 14:35:57 server sshd[12548]: debug1: PAM: reinitializing credentials
...
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: initializing for "userxxx"
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: setting PAM_RHOST to "localhost"
Sep 25 14:36:05 server sshd[13065]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 25 14:36:05 server sshd[13065]: debug1: temporarily_use_uid: 500/501 (e=0/0)
Sep 25 14:36:05 server sshd[13065]: debug1: trying public key file /home/userxxx/.ssh/authorized_keys
Sep 25 14:36:05 server sshd[13065]: debug1: restore_uid: 0/0
Sep 25 14:36:05 server sshd[13065]: debug1: temporarily_use_uid: 500/501 (e=0/0)
Sep 25 14:36:05 server sshd[13065]: debug1: trying public key file /home/userxxx/.ssh/authorized_keys
Sep 25 14:36:05 server sshd[13065]: debug1: restore_uid: 0/0
Sep 25 14:36:05 server sshd(pam_unix)[13071]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:08 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:08 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
Sep 25 14:36:08 server sshd(pam_unix)[13074]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:10 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:10 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
Sep 25 14:36:10 server sshd(pam_unix)[13077]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:13 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:13 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2
...

Analyzing your log file, we can see that the NX user authenticated just fine. That clears hurdle #1. However, it failed when trying to authenticate your real user, "userxxx". This is the real clue, I think:

Code:
Sep 25 14:36:05 server sshd[13065]: debug1: trying public key file /home/userxxx/.ssh/authorized_keys
Sep 25 14:36:05 server sshd[13065]: debug1: restore_uid: 0/0
Sep 25 14:36:05 server sshd(pam_unix)[13071]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=localhost  user=userxxx
Sep 25 14:36:08 server sshd[13065]: error: PAM: Authentication failure for userxxx from localhost
Sep 25 14:36:08 server sshd[13065]: Failed keyboard-interactive/pam for userxxx from 127.0.0.1 port 32788 ssh2


The "Failed keyboard-interactive/pam" just means you entered an incorrect/missing password. Try it during a normal ssh login - you'll get the same error.

To me, this suggests one of three problems:
  1. wrong password - are you sure entered the correct system (Gentoo) password in the client window?
  2. disabled text password - see this thread for proper sshd_config https://forums.gentoo.org/viewtopic-t-378090.html
  3. missing key on client - I never have tried this, but I wonder if you manually appended your "userxxx" key into the nomachine client, could you authenticate with no password at all? Using keys for both nx and userxxx? Interesting... Oh well, you should focus on the first 2 possibilities
Back to top
View user's profile Send private message
y0zza
n00b
n00b


Joined: 30 Jul 2004
Posts: 68

PostPosted: Sun Sep 25, 2005 10:57 pm    Post subject: Reply with quote

Got this working with the new 1.50-r2 overlay ebuilds and the NoMachine 1.50 client on Mac OS X Tiger. :)

Pretty impressed by the responsiveness so far, waaaay faster than simple X11 forwarding over SSH (even with compression) although still slightly behind RDP in terms of latency. Nonetheless colour me impressed. Session resuming also appears to work well. The only issue I haven't looked into yet is the 'cookie' failures on the first login attempt. Logging in again the second time works fine though. This is with the 1.5 backend enabled (ENABLE_1_5_0_BACKEND). Seems to be more of an issue with NoMachine's OS X client or Apple X11 though.

Installed with a mixture of m27315's "unstable" guide and some fumbling around by myself.

Now I can remotely administer my Gentoo box from OS X without the pain of VNC :D

Edit - nxauth cookie problem turned out to be due to NoMachine's Mac OS X client assuming it was installed in /usr/NX, even though it was told the path was /opt/local/NX. Everything happy now :)

dufeu,
If you're using the 1.50 ebuilds, make sure you have ENABLE_1_5_0_BACKEND="1" set in your node.conf file (/usr/NX/etc). That cleared up any cookie mismatch issues I had connecting from NoMachine's 1.50 client. (The X authorization cookie issue discussed earlier in this post is unrelated).
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 26, 2005 5:27 am    Post subject: problems with the Gentoo Linux client... Reply with quote

I'm having a weird issue when trying to run the Linux client from a different Gentoo box (server on a RHE3 box - verified good install/config by windows client on XP box):
Code:
$ Mon Sep 26 00:21:30 [root@optimus]/usr/NX/bin
/usr/NX/bin/nxclient
/usr/NX/bin/nxclient: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Any suggestions? I have tried unemergeing and reemerging with various USE flags (commercial, -commercial), but with no difference. I tried the nomachine's client too, but same result.

EDIT: Found this interesting thread: https://forums.gentoo.org/viewtopic-t-63590.html

BTW, I am running GCC 3.4 on a slightly outdated box - hasn't been updated in 2-3 months, until yesterday.

EDIT: I tried this to no benefit:
Code:
emerge --deep --newuse --update world
emerge --depclean
revdep-rebuild
emerge -e system  [this forced me from devfs -> udev - unexpected surprise at reboot]
emerge libstdc++-v3
[reboot]

I am trying this now, although I am doubtful it will help:
Code:
emerge -e world
emerge --depclean
revdep-rebuild

Also, tried switching back to gcc3.3.3, but that did not help either.


Last edited by m27315 on Mon Sep 26, 2005 3:08 pm; edited 2 times in total
Back to top
View user's profile Send private message
Hideki
n00b
n00b


Joined: 09 Mar 2003
Posts: 74

PostPosted: Mon Sep 26, 2005 3:03 pm    Post subject: Reply with quote

Hmm, I don't know if it's just me but FreeNX just works by installing it for me without any kind of tweak.

I was running 0.4.0 with 'emerge nxserver-freenx' and from the next moment, I use Windows client on another Windows machine and it connects with a user existing in the Gentoo machine, provided that I had the Gnome environment already set up.

The next thing I did was, tx to the HOWTO in the last page, I decided to go at 0.4.4 with portage overlaying, but what I simply did was make the overlay directory and unarchive the bz2 provided in the bugzilla and emerged without having commercial USE flag or any ssh setting tweaks(openssh used authorized_keys, and freenx used authorized_keys2). Though, of course I changed the BACKEND option to allow for newer backend. But of course, I should get my own keys later on for security reasons.

And it seems like I can already connect with 1.5.0 nx Windows client.
That was all good in itself, but I thought 0.4.4 had a working suspend/resume or dynamic desktop resizing, but they seem not to work, but quitting gnome now at least ends the session properly now.

So, I wonder what's really needed to get FreeNX running.
Back to top
View user's profile Send private message
DDV01
n00b
n00b


Joined: 08 Jul 2003
Posts: 70
Location: The Netherlands

PostPosted: Mon Sep 26, 2005 4:42 pm    Post subject: Reply with quote

It is still not working for me (see couple of posts back).
Quote:

The "Failed keyboard-interactive/pam" just means you entered an incorrect/missing password. Try it during a normal ssh login - you'll get the same error.

To me, this suggests one of three problems:

wrong password - are you sure entered the correct system (Gentoo) password in the client window?

disabled text password - see this thread for proper sshd_config https://forums.gentoo.org/viewtopic-t-378090.html

missing key on client - I never have tried this, but I wonder if you manually appended your "userxxx" key into the nomachine client, could you authenticate with no password at all? Using keys for both nx and userxxx? Interesting... Oh well, you should focus on the first 2 possibilities


The "disabled text password" seemed to be the problem earlier, now I'm stuck with a connection time out when loggin in (normal ssh works ok) and no obvious (to me) signs in the syslog, except for a read error:
Code:

Sep 26 18:34:21 server sshd[22180]: debug1: rexec start in 4 out 4 newsock 4 pipe
 6 sock 7
Sep 26 18:34:21 server sshd[21762]: debug1: Forked child 22180.
Sep 26 18:34:21 server sshd[22180]: debug1: inetd sockets after dupping: 3, 3
Sep 26 18:34:21 server sshd[22180]: Connection from 192.168.1.196 port 1532
Sep 26 18:34:21 server sshd[22180]: debug1: Client protocol version 2.0; client s
oftware version OpenSSH_3.9p1
Sep 26 18:34:21 server sshd[22180]: debug1: match: OpenSSH_3.9p1 pat OpenSSH*
Sep 26 18:34:21 server sshd[22180]: debug1: Enabling compatibility mode for proto
col 2.0
Sep 26 18:34:21 server sshd[22180]: debug1: Local version string SSH-1.99-OpenSSH
_3.9p1
Sep 26 18:34:21 server sshd[22180]: debug1: PAM: initializing for "nx"
Sep 26 18:34:21 server sshd[22180]: debug1: PAM: setting PAM_RHOST to "192.168.1.
196"
Sep 26 18:34:21 server sshd[22180]: debug1: PAM: setting PAM_TTY to "ssh"
Sep 26 18:34:21 server sshd[22180]: Failed none for nx from 192.168.1.196 port 15
32 ssh2
Sep 26 18:34:21 server sshd[22180]: debug1: temporarily_use_uid: 104/100 (e=0/0)
Sep 26 18:34:21 server sshd[22180]: debug1: trying public key file /usr/NX/home/n
x/.ssh/authorized_keys
Sep 26 18:34:21 server sshd[22180]: debug1: matching key found: file /usr/NX/home
/nx/.ssh/authorized_keys, line 1
Sep 26 18:34:21 server sshd[22180]: Found matching DSA key: xx:xx:xx:xx:xx:xx:xx:
xx:xx:xx:xx:xx:xx:xx:xx:xx
Sep 26 18:34:21 server sshd[22180]: debug1: restore_uid: 0/0
Sep 26 18:34:21 server sshd[22180]: debug1: ssh_dss_verify: signature correct
Sep 26 18:34:21 server sshd[22180]: Accepted publickey for nx from 192.168.1.196
port 1532 ssh2
Sep 26 18:34:21 server sshd[22180]: debug1: monitor_child_preauth: nx has been au
thenticated by privileged process
Sep 26 18:34:21 server sshd(pam_unix)[22185]: session opened for user nx by (uid=
0)
Sep 26 18:34:21 server sshd[22185]: debug1: PAM: reinitializing credentials
Sep 26 18:34:21 server sshd[22185]: debug1: permanently_set_uid: 104/100
Sep 26 18:34:21 server sshd[22185]: debug1: Entering interactive session for SSH2
.
Sep 26 18:34:21 server sshd[22185]: debug1: server_init_dispatch_20
Sep 26 18:34:21 server sshd[22185]: debug1: server_input_channel_open: ctype sess
ion rchan 0 win 131072 max 32768
Sep 26 18:34:21 server sshd[22185]: debug1: input_session_request
Sep 26 18:34:21 server sshd[22185]: debug1: channel 0: new [server-session]
Sep 26 18:34:21 server sshd[22185]: debug1: session_new: init
Sep 26 18:34:21 server sshd[22185]: debug1: session_new: session 0
Sep 26 18:34:21 server sshd[22185]: debug1: session_open: channel 0
Sep 26 18:34:21 server sshd[22185]: debug1: session_open: session 0: link with ch
annel 0
Sep 26 18:34:21 server sshd[22185]: debug1: server_input_channel_open: confirm se
ssion
Sep 26 18:34:21 server sshd[22185]: debug1: server_input_channel_req: channel 0 r
equest shell reply 0
Sep 26 18:34:21 server sshd[22185]: debug1: session_by_channel: session 0 channel
 0
Sep 26 18:34:21 server sshd[22185]: debug1: session_input_channel_req: session 0
req shell
Sep 26 18:35:21 server sshd[22185]: Read error from remote host 192.168.1.196: Co
nnection reset by peer
Sep 26 18:35:21 server sshd[22185]: debug1: do_cleanup
Sep 26 18:35:21 server sshd[22185]: debug1: PAM: cleanup
Sep 26 18:35:21 server sshd(pam_unix)[22185]: session closed for user nx
Sep 26 18:35:21 server sshd[22180]: debug1: do_cleanup
Sep 26 18:35:21 server sshd[22180]: debug1: PAM: cleanup
Sep 26 18:36:28 server syslog-ng[5289]: STATS: dropped 204
Sep 26 18:36:33 server sshd[6485]: debug1: server_input_channel_req: channel 0 request window-change reply 0
Sep 26 18:36:33 server sshd[6485]: debug1: session_by_channel: session 0 channel 0


BTW there's no firewall between client and server (yet). Could the read error be the problem ? search or google doesn't really help me
Back to top
View user's profile Send private message
braynyac
n00b
n00b


Joined: 11 Mar 2003
Posts: 10

PostPosted: Mon Sep 26, 2005 9:02 pm    Post subject: nxagent Reply with quote

Hello All,

I have been reading/using this thread for a long time (almost a year now), and have freenx up on several boxes. However, one box is posing a huge problem - I just can not get it running.

Today, I was finally able to get it to a place where my desktop starts to load (custom desktop, startxfce4). However, after the initial loading screen for Xfce4, my nx session dies mysteriously. Checking out the logs yields nothing, but running nxagent from the console gives me:

Code:
NXAgent: Unable to open display "".


I have no idea why it is doing this, or how to fix it. I saw that on the very bottom of page 8 another user had this problem but no one had a solution then. I appreciate the help!

~braynyac
_________________
I never really understood how there could be things that would drive you insane just because you knew them until I ran into Windows.
- Peter da Silva
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Tue Sep 27, 2005 3:27 pm    Post subject: Thank you!! Reply with quote

y0zza wrote:
dufeu,
If you're using the 1.50 ebuilds, make sure you have ENABLE_1_5_0_BACKEND="1" set in your node.conf file (/usr/NX/etc). That cleared up any cookie mismatch issues I had connecting from NoMachine's 1.50 client. (The X authorization cookie issue discussed earlier in this post is unrelated).


Thank you. This worked for me perfectly.

I'll be posting some new questions separately in a short while.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Tue Sep 27, 2005 3:43 pm    Post subject: How to start a custom X11 session? Reply with quote

I'm looking for either a good example X11 session start script or to be pointed where I can find a clear discussion of starting X11 sessions.

Most of the time, I would prefer to start fluxbox instead of KDE when administering remotely via an NX client.

I understand that I need to create a script to start an X11 session which runs fluxbox. But I'm not certain what needs to go into it and where I need to put it so the NX client can find it. It's also not clear to me if I need to make further changes to the freenx server's node.conf configuration file.

I have looked at the startkde script and freely admit it's over my head.


Advice would be appreciated. :-)
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Tue Sep 27, 2005 4:05 pm    Post subject: Tip / Reminder Reply with quote

This isn't a question, but rather a tip/reminder about what one can and cannot do with the NX client.

The NX client is not the PC. This means that keyboard control sequences like CTL-ALT-F1 -F2 -F3 will not work. If you want to open a second session to the PC you're logged onto, you need to invoke another instance of an NX client.

You say this is blindingly obvious? Well perhaps. It also means that you cannot NX into a linux PC, use VMware-Workstation to invoke Win2k running on said PC and expect to be able to use CTL-ALT-DEL to log into the VMware Windows virtual session. Tip: Turn off the default requirement in Windows for the CTL-ALT-DEL dialog box.

Yes, I can actually NX into my home computer, fire up vmware, start an instance of Windows and VPN back into work. After that, I can start up pcAnywhere on my home's virtual session and then administer our windows based servers.

Sick, isn't it.

However, I'm not doing this just because I can.

For a variety of reasons beyond my control, I need to have a permanent IP address assigned to my home windows virtual session. Which means that if I want to perform certain admin functions while on the road, I actually have to log on at home so that I can have the correct internal network configuration. I'm not the network admin. And this is the way he wants things done.

But wait! It's even sicker!

I've set up my firewall to passthrough specific ports to two different machines running freenx. So I can have NX clients running simultaneously logged onto two different PCs.

And through it all, response time is reasonable! Except when I fire up pcAnywhere. That's just sllooooowwww.

:-)
_________________
People whom think M$ is mediocre, don't know the half of it.
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 27, 2005 5:45 pm    Post subject: Reply with quote

DDV01 wrote:
It is still not working for me (see couple of posts back). ... The "disabled text password" seemed to be the problem earlier, now I'm stuck with a connection time out when loggin in (normal ssh works ok) and no obvious (to me) signs in the syslog, except for a read error:
Code:
...
Sep 26 18:35:21 server sshd[22185]: Read error from remote host 192.168.1.196: Connection reset by peer
...

BTW there's no firewall between client and server (yet). Could the read error be the problem ? search or google doesn't really help me

If you have Windows firewall, Black Ice, etc. they will block the client, and you'll never know it, if memory serves me right. Where are you running the client? WindowsXP?
.....
braynyac wrote:
Today, I was finally able to get it to a place where my desktop starts to load (custom desktop, startxfce4). However, after the initial loading screen for Xfce4, my nx session dies mysteriously. Checking out the logs yields nothing, but running nxagent from the console gives me:

Code:
NXAgent: Unable to open display "".

Just a noob shooting in the dark, but would you mind posting your sshd_config for the server, and your ssh_config for the client? I wonder if you have disabled X11 forwarding... Also, curious if you need an "xhost +" on the client side...
.....
dufeu wrote:
y0zza wrote:
dufeu,
If you're using the 1.50 ebuilds, make sure you have ENABLE_1_5_0_BACKEND="1" set in your node.conf file (/usr/NX/etc). That cleared up any cookie mismatch issues I had connecting from NoMachine's 1.50 client. (The X authorization cookie issue discussed earlier in this post is unrelated).


Thank you. This worked for me perfectly.

I'll be posting some new questions separately in a short while.

@dufeu, haven't you posted that question once, already in this thread? :roll:
See bottom of page 10: https://forums.gentoo.org/viewtopic-t-214455-postdays-0-postorder-asc-start-225.html
At least I'm not the only person with Alzheimer's on this board. :D
.....
m27315 wrote:
I'm having a weird issue when trying to run the Linux client from a different Gentoo box (server on a RHE3 box - verified good install/config by windows client on XP box):
Code:
$ Mon Sep 26 00:21:30 [root@optimus]/usr/NX/bin
/usr/NX/bin/nxclient
/usr/NX/bin/nxclient: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Any suggestions? I have tried unemergeing and reemerging with various USE flags (commercial, -commercial), but with no difference. I tried the nomachine's client too, but same result.

EDIT: Found this interesting thread: https://forums.gentoo.org/viewtopic-t-63590.html

BTW, I am running GCC 3.4 on a slightly outdated box - hasn't been updated in 2-3 months, until yesterday.

EDIT: I tried this to no benefit:
Code:
emerge --deep --newuse --update world
emerge --depclean
revdep-rebuild
emerge -e system  [this forced me from devfs -> udev - unexpected surprise at reboot]
emerge libstdc++-v3
[reboot]

I am trying this now, although I am doubtful it will help:
Code:
emerge -e world
emerge --depclean
revdep-rebuild

Also, tried switching back to gcc3.3.3, but that did not help either.

Ok, just to report on my efforts, my emerge -e world completed successfully; however, that did not resolve my error. Based on a tip from a fellow Gentooizen, I simply copied the missing library from a RHE3 box at work to my home Gentoo box (/usr/lib/). The client worked fine after that! I kind of feel dirty, like I need a shower or something, but at least it is working! ;-)

For the sake of principle, I'm going to spin this off into a separate thread in "Portage and Programming", because I'm curious why I'm the only person having this problem. I would like to get this fixed the Gentoo way!
Back to top
View user's profile Send private message
braynyac
n00b
n00b


Joined: 11 Mar 2003
Posts: 10

PostPosted: Tue Sep 27, 2005 6:14 pm    Post subject: dufeu - fluxbox script Reply with quote

dufeu:

I use fluxbox, IceWM, Xfce4 and E17 remotely to one of my freenx boxes (yes, I have them all installed, mostly so I can play around and see what I like/don't like about each). I have different connections saved, and each uses a different "startup script" as you call it.

To set this in the Windows client (1.5), under the General tab, Desktop section, I have Unix and Custom specified. Click on the Settings button and choose 'Run the following command', then in the box enter the command you normally use to START THE WM (not startx). For instance, for fluxbox, I use "startfluxbox" (without the quotes). For Xfce4, I use "startxfce4", and for E17 I use: exec /usr/bin/enlightenment-0.17.

NOTE: You MAY have to put the word "exec" in front of the command (although I have not noticed a difference either way).

Also, for fluxbox, to configure your applications to start upon freenx loading the fluxbox session, make sure to edit your ~/.fluxbox/startup file. The reason I say this is that I normally use 'startx' to load fluxbox (from the console), and thus have all my settings configured in my .xinitrc file. This way, however, I can call the 'startfluxbox' command and load everything through NX. Also, this allows you to use any display manager (gdm, xdm, kdm) upon boot and still get fluxbox with all of your applications loading (bbpager, gkrellm2, idesk, etc.).

Let me know if this helps!

~braynyac
_________________
I never really understood how there could be things that would drive you insane just because you knew them until I ran into Windows.
- Peter da Silva
Back to top
View user's profile Send private message
braynyac
n00b
n00b


Joined: 11 Mar 2003
Posts: 10

PostPosted: Tue Sep 27, 2005 10:22 pm    Post subject: NXAGENT: Unable to open display "". [FIXED!!!] Reply with quote

Finally!!!

Wanted to let you all know that I have fixed my issue with nxagent. The error was:

Code:
NXAGENT: Unable to open display "".


In order to fix this, I took a look at my box that was working, and how I have nxagent set up on that box. First, some background...

I completely uninstalled freenx 0.2.8, then installed freenex 0.4.0. No luck
I played around with removing all the sessions that had accumulated in /tmp/.X100(1-6), and removing all the cache files in my home dir (~/.nx/*)
Next, I copied my libraries from /usr/NX/lib/ to /usr/lib/. No luck
Then, I copied /usr/NX/etc/node.conf.sample to /usr/NX/etc/node.conf and edited (added in the ENABLE_1_5_0="1"). No luck.
I set up logging, and 'tail -f /var/log/nxserver.log' didn't reveal anything.
Then I looked at my box, and remembered some discussions regarding LD Library paths...and how I had to move my nxagent and nxdesktop files, and create scripts to call them with the LD paths set correctly. So I decided to try it out, and what do you know, it works!

To sum up, I moved /usr/NX/bin/nxagent to /usr/NX/bin/nxagent.orig, and created a file called /usr/NX/bin/nxagent, which has the following:

Code:

#!/bin/sh
LD_LIBRARY_PATH=/usr/NX/lib /usr/NX/bin/nxagent.orig -fp /usr/share/fonts/misc/ "$@"


Next, I chmod'd it a+x, and chown'd it so that the nx user owned it.

Once I had all this in place, I tried to connect from outside, and low and behold! IT WORKED!!!!

~braynyac
_________________
I never really understood how there could be things that would drive you insane just because you knew them until I ran into Windows.
- Peter da Silva
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Wed Sep 28, 2005 12:23 am    Post subject: Re: dufeu - fluxbox script Reply with quote

braynyac wrote:
... then in the box enter the command you normally use to START THE WM (not startx). For instance, for fluxbox, I use "startfluxbox" (without the quotes). For Xfce4, I use "startxfce4", and for E17 I use: exec /usr/bin/enlightenment-0.17.

NOTE: You MAY have to put the word "exec" in front of the command (although I have not noticed a difference either way).

Also, for fluxbox, to configure your applications to start upon freenx loading the fluxbox session, make sure to edit your ~/.fluxbox/startup file.


I completely forgot that each wm has it's own start command. What's more, startfluxbox is even legible! {read: I can understand it. :-) }

You don't need the word 'exec' because it's already included in the startfluxbox bash script.

Thank you very much. It's the piece of information I needed.

Tomorrow from work, I expect to login to both home x86 based machines, start up VMWare on the home office PC, start Win2K in the virtual machine, VPN back into work, kick off pcAnywhere, log onto one of the servers. Why? To be sure that I've worked out all the possible kinks. ;-)

Now, the only whine I have left is not being able to run freenx on my new dual processor Opteron based home workstation.

:-(

I'll have bleu cheese with that whine, thank you. ;-)
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
DDV01
n00b
n00b


Joined: 08 Jul 2003
Posts: 70
Location: The Netherlands

PostPosted: Wed Sep 28, 2005 6:52 am    Post subject: Reply with quote

Quote:

DDV01 wrote:
It is still not working for me (see couple of posts back). ... The "disabled text password" seemed to be the problem earlier, now I'm stuck with a connection time out when loggin in (normal ssh works ok) and no obvious (to me) signs in the syslog, except for a read error:

Code:
...
Sep 26 18:35:21 server sshd[22185]: Read error from remote host 192.168.1.196: Connection reset by peer
...

BTW there's no firewall between client and server (yet). Could the read error be the problem ? search or google doesn't really help me

If you have Windows firewall, Black Ice, etc. they will block the client, and you'll never know it, if memory serves me right. Where are you running the client? WindowsXP?


Yes I''m running XP on the client, Gentoo is still compiling Xorg on my laptop...
But there''s definitely no firewall running on my XP, double checked it just now. I have no problems with authentication or timeouts with other stuff, just freenx. I''m typing this over a TightVNC session tunnelled through ssh..but I want freenx
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 28, 2005 7:32 am    Post subject: Reply with quote

Hey dufeu - a bit off topic I know, but couldn't resist. Sure I saw your desktop poll comments on TUX desktop? Running two different desktops simultaneously? I don't call that weird, but very clever. No wonder you have been able to get freenx to work :D. Pity the thousands of us who never did :cry:. I still come back to this thread in the hope of seeing something else I might try, but nothing so far ....

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


Joined: 11 Mar 2003
Posts: 10

PostPosted: Wed Sep 28, 2005 3:45 pm    Post subject: Reply with quote

Dufeu,

Glad I could help! Good luck with the VPN solution...heh.

~braynyac
_________________
I never really understood how there could be things that would drive you insane just because you knew them until I ran into Windows.
- Peter da Silva
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Wed Oct 05, 2005 8:49 am    Post subject: Reply with quote

This might help somebody. :smile:
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Thu Oct 06, 2005 2:10 am    Post subject: Reply with quote

arjay1 wrote:
Hey dufeu - a bit off topic I know, but couldn't resist. Sure I saw your desktop poll comments on TUX desktop? Running two different desktops simultaneously? I don't call that weird, but very clever. No wonder you have been able to get freenx to work :D. Pity the thousands of us who never did :cry:. I still come back to this thread in the hope of seeing something else I might try, but nothing so far ....

RJ


Thank you for the compliment.

And to everyone else - I did successfully use the Windows NXClient at work to graphically log into both my Gentoo systems behind my firewall at home. Logged onto one of them with two simultaneous sessions - one in KDE and the other in fluxbox. Started my Win2k VMWare Workstation machine from the fluxbox session. Was able to perform a VPN login back into my network at work. And invoked a pcAnywhere session to a server. While this was all up and running, I kicked off yet another NXClient session to my mother's Gentoo machine in FL {I'm in Jersey} and created a new CD for her {using k3b} of some Windblows drivers that I had downloaded on her machine previously {her next door neighbor runs Win98}.

And that ... is definitely sick. :-D

FYI - the latency when creating a CD is large the first time through. Successive CDs are almost reasonable. I'd advise patience.
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Thu Oct 06, 2005 2:23 am    Post subject: Reply with quote

I just found this. Is the nxtunnel command available in Gentoo?

I'm looking for a way to use the windows nxclient through a http proxy... and I think this might be an answer...
Back to top
View user's profile Send private message
StifflerStealth
l33t
l33t


Joined: 03 Jul 2002
Posts: 968

PostPosted: Sun Oct 09, 2005 3:11 pm    Post subject: Reply with quote

Some components of the NX Components were updated, so I updated the overlay. Only nx-x11 and nxclient need to be updated. :)

-nxagent: was updated from version 90 to 93.

-nxdesktop: was updated from version 61 ro 75. The page on the nomachine website says that this is the second maintainace release of the 1.5 series and that a lot of bugs were fixed. I don't know if this will fix any of the specific bugs that were mentioned in this thread though.

-nxclient: was updated from version 106 to 113.

Have fun. :)
_________________
Nothing to read in this sig. Move along.
Back to top
View user's profile Send private message
dufeu
l33t
l33t


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

PostPosted: Tue Oct 11, 2005 2:39 am    Post subject: Reply with quote

StifflerStealth wrote:
Some components of the NX Components were updated, so I updated the overlay. Only nx-x11 and nxclient need to be updated. :)

Thank you!
_________________
People whom think M$ is mediocre, don't know the half of it.
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 ... 13, 14, 15 ... 28, 29, 30  Next
Page 14 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