[CentOS] freenx

Tue Jan 24 02:53:29 UTC 2006
Craig White <craigwhite at azapple.com>

On Mon, 2006-01-23 at 18:46 -0600, Johnny Hughes wrote:
> On Mon, 2006-01-23 at 17:07 -0700, Craig White wrote:
> > On Mon, 2006-01-23 at 16:54 -0700, Craig White wrote:
> > > On Tue, 2006-01-24 at 00:49 +0100, Deim Ágoston wrote:
> > > > >> Try strace -p freenxpid -f -t -o /tmp/logfile
> > > > > ----
> > > > > awesome idea...how do you figure out the pid when...
> > > > >
> > > > > # ps aux|grep nx
> > > > > root     15218  0.0  0.1  4600  664 pts/5    S+   16:32   0:00 grep nx
> > > > >
> > > > > doesn't show a process id?
> > > > 
> > > > it doesn't show that freenx is running! Are you sure it's started? Try to
> > > > start it manulay with strace -o /tmp/logfile -f -t /usr/sbin/freenx
> > > > 
> > > > (or wherever you installed the binaries)
> > > ----
> > > # nxserver --status
> > > NX> 100 NXSERVER - Version 1.4.0-44 OS (GPL)
> > > NX> 110 NX Server is running
> > > NX> 999 Bye
> > > 
> > > (hey - I'm just the dummy that started fooling with it).
> > > 
> > > # strace -o /tmp/logfile -f -t /usr/sbin/nxserver --restart
> > > -bash: strace: command not found
> > > 
> > > I will figure out where it comes from and install it I guess
> > ----
> > this was pointless - outside of the great log file it created...the
> > trace was only of the nxserver -restart and nothing beyond that so no
> > useful information could be derived. I haven't a clue on which process
> > it would be - I presume that it all starts with an ssh connection...
> > 
> 
> OK ... lets start over :)
> 
> remove everything on the server and then do this on the server:
> 
> yum install nx freenx
> 
> Then download and install the latest client from nomachine.org on the
> client.
> 
> then ssh into the server from the client and on the server edit the
> file:
> 
> /etc/nxserver/client.id_dsa.key and copy/paste it into the Window that
> shows up when you press the "Key" button, then press "Save".
> 
> Make sure to check the box that says "Enable encryption of all traffic"
> 
> That should do it...
----
[root at srv1 nxserver]# yum install nx freenx
Setting up Install Process
Setting up repositories
dag                       100% |=========================| 1.1 kB
00:00
update                    100% |=========================|  951 B
00:00
rpmforge                  100% |=========================| 1.1 kB
00:00
base                      100% |=========================| 1.1 kB
00:00
addons                    100% |=========================|  951 B
00:00
extras                    100% |=========================| 1.1 kB
00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package nx.i386 0:1.5.0-1.centos4 set to be updated
---> Package freenx.noarch 0:0.4.4-1.centos4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository
Size
=============================================================================
Installing:
 freenx                  noarch     0.4.4-1.centos4  extras
53 k
 nx                      i386       1.5.0-1.centos4  extras
2.5 M

Transaction Summary
=============================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 2.5 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: nx                           #########################
[1/2]
  Installing: freenx                       #########################
[2/2]
Stopping sshd:[  OK  ]
Starting sshd:[  OK  ]

Installed: freenx.noarch 0:0.4.4-1.centos4 nx.i386 0:1.5.0-1.centos4
Complete!
[root at srv1 nxserver]# cat /etc/nxserver/client.id_dsa.key
-----BEGIN DSA PRIVATE KEY-----
MIIBugIBAAKBgQDBskKR9sORJnvfaapZj9WTx4qtxqG7/EkGGK3xXsps7O1EWGY0
SZOmWByUndSJrubi9xD7yU+m7t6gs7ryh3n9MilekLdAH6LoeNqLY9k3s0DAykBA
LXWUA5DSfZ+rYL+AbQutw0VQhfXxC5XCrc1sOgaOPrXPRkUxMATbw1I8SwIVAJNT
oQef7sTe4IoaCAi0piUxcUQzAoGARC0uLYlLcZUJ8Td2uu8COHuq8M+xnj2h7aD+
wVrvNQhwvSfTuBf4KUEoLX8Y0rHNA/lFtjO0cg0JXUA1apXSUJAbfFmQBK1MWk8L
rOlecL0dUt+6Yv5HMFvbmUH25y1phKfQclZOFCYTVE824EoQQSpLSAtBFAFb+rQK
09MdltACgYB4FtfLpqWAII19htxZrasQD6XPE625u1koLjopitaU3aSlinmdAzuh
novwgc9iOLguWd1QU7+NOkmdfcy6iYkHtzMDa+oqDtTkEd+tXhPTVQEUS4sEEtAb
4pwPlIlnXiwSb01encGg3W0FrJyEFd2644rBeDqr5RYPx/UIylTuGwIUWYS+lZgb
XvkxbNEuY5Qk6gnkKUc=
-----END DSA PRIVATE KEY-----

You will have to trust that I...

copied the above key (that which was between the ----BEGIN and -----END
but not including those lines) and pasted into the key section and that
I also went into 'configure -> advanced' and checked the box 'enable SSL
traffic for communication' and I also made sure that...

# grep Pubkey /etc/ssh/sshd_config
PubkeyAuthentication yes

prior to restarting SSHD on the server which happens automatically when
you install freenx.

No change - unable to authenticate user craig though clearly I can
authenticate as user craig from console...

[root at lin-workstation opt]# ssh craig at srv1
craig at srv1's password:
Last login: Mon Jan 23 17:03:14 2006 from localhost.localdomain
[craig at srv1 ~]$

as for the client...
# rpm -q nxclient
nxclient-1.5.0-135

that's on FC-4 though

Thanks - no workee

and by the way...2 things really bother me but since I can't make it
work as it is, I'm not changing them...

1 - there is no /etc/nxserver/node.conf #only node.conf.sample

2 - the pub key I listed above apparently is the one distributed with
the binary and that would seem to be a security issue

Craig

Craig