Centos 5 is still using pygtk2 2.10 and pygobject 2.12. It was
painless to rebuild a fedora src rpm of pygobject 2.14, but for pygtk2
I modified the extras/rpm/neatx.spec to accept my pygtk2 2.10
I was able to follow the rpm build instructions from INSTALL, except
that I had to use the path /usr/src/redhat/instead of ~<user>/
rpmbuild/
After installation of the package, there were a few issues.
First, I notice that the neatx.spec attempts to create the nx user..
In my case, I already had an nx user from my previous install of
freenx, so I had to manually create the /var/lib/neatx directory and
set the nx user's home directory correctly.
Second, I had to create my own /var/lib/neatx/sessions directory--it
doesn't seem that the neatx.spec handles that part. Does the sessions
directory automatically get when the first user connects? If so, it
may have been that I didn't initially have the permissions set
correctly on the /var/lib/neatx directory.
My mods to neatx.conf to get it running:
netcat-path = /usr/bin/nc # was /bin/netcat
xsession-path = /etc/X11/xinit/Xsession # was /etc/X11/Xsession
I can start a new session, suspend, reconnect, and terminate. Shadow
doesn't work for me...
When I try to shadow my running session, client hangs at requesting
user authorization, and ultimately times out:
On the client side:
NX> 105 Attachsession --link="wan" --backingstore="1" --
encryption="1" --cache="128m" --images="512m" --defer="0" --shmem="1"
--shpix="1" --strict="0" --composite="1" --media="0" --session="local
%20centos%20server" --type="shadow" --client="winnt" --keyboard="pc102/
en_us" --id="07cca0745eb1b75c8e081c6e660139bc" --display="159" --
geometry="1274x747" --resize="1"
NX> 500 Session didn't become ready in time
NX> 280 Exiting on signal: 15
On the server end
Feb 6 12:13:59 fig nxnode[8190]: INFO nxnode:81 Received request:
'attach', [{'session': 'local%20centos%20server', 'defer': '0',
'shpix': '1', 'strict': '0', 'composite': '1', 'encryption': '1',
'cache': '128M', 'display': '159', 'geometry': '1274x747',
'backingstore': '1', 'client': 'winnt', 'link': 'wan', 'shmem': '1',
'media': '0', 'images': '512M', 'keyboard': 'pc102/en_US', 'type':
'shadow', 'id': '07CCA0745EB1B75C8E081C6E660139BC', 'resize': '1'},
'C98BA328B707768838C0B396859FA4B0']
Feb 6 12:13:59 fig nxnode[8190]: INFO node:290 Starting xauth for [(':
993', '7D66F73EE5530DDF99BCF8E93BEC15B7'), ('localhost:993',
'7D66F73EE5530DDF99BCF8E93BEC15B7'), (':159',
'C98BA328B707768838C0B396859FA4B0'), ('localhost:159',
'C98BA328B707768838C0B396859FA4B0')]
Feb 6 12:13:59 fig nxnode[8190]: INFO daemon:491 Starting program,
executable=None, args=['/usr/bin/xauth', '-f', '/var/lib/neatx/
sessions/FCB2D2B4D719EA0AC1750979723C8A8F/authority']
Feb 6 12:13:59 fig nxnode[8190]: INFO daemon:519 Child /usr/bin/
xauth[8193] started
Feb 6 12:13:59 fig nxserver[8180]: INFO nxserver:594 Waiting for
session 'FCB2D2B4D719EA0AC1750979723C8A8F' to achieve waiting status
Feb 6 12:13:59 fig nxnode[8190]: INFO node:325 Starting nxagent
Feb 6 12:13:59 fig nxnode-wrapper[8188]: Traceback (most recent call
last):
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/node.py", line 309, in __XAuthDone
Feb 6 12:13:59 fig nxnode-wrapper[8188]: self.__StartNxAgent()
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/node.py", line 340, in __StartNxAgent
Feb 6 12:13:59 fig nxnode-wrapper[8188]: self.__nxagent.Start()
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/agent.py", line 258, in Start
Feb 6 12:13:59 fig nxnode-wrapper[8188]:
self._UpdateOptionsFile()
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/agent.py", line 609, in _UpdateOptionsFile
Feb 6 12:13:59 fig nxnode-wrapper[8188]:
self._WriteOptionsFile(self._GetOptions())
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/agent.py", line 620, in _WriteOptionsFile
Feb 6 12:13:59 fig nxnode-wrapper[8188]:
self.__CheckOptsChars(opts)
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/agent.py", line 639, in __CheckOptsChars
Feb 6 12:13:59 fig nxnode-wrapper[8188]:
self.__CheckStrChars(value, "Value of option %r (%r)" % (name, value))
Feb 6 12:13:59 fig nxnode-wrapper[8188]: File "/usr/lib/python2.4/
site-packages/neatx/agent.py", line 652, in __CheckStrChars
Feb 6 12:13:59 fig nxnode-wrapper[8188]: if c in s:
Feb 6 12:13:59 fig nxnode-wrapper[8188]: TypeError: iterable argument
required
Feb 6 12:14:30 fig nxserver[8180]: ERROR nxserver:600 Session
FCB2D2B4D719EA0AC1750979723C8A8F has not achieved waiting status
within 30 seconds
Feb 6 12:14:30 fig nxserver-login[8170]: INFO auth:142 Waiting for
authenticated program to finish
I would appreciate any thoughts.
Thanks
--Jordan
http://groups.google.com/group/neatx/browse_thread/thread/98a2753127fd7875
--Jordan
Something didn't go quite right there. This should take care of
creating the /var/lib/neatx directory tree:
http://code.google.com/p/neatx/source/browse/trunk/neatx/extras/rpm/neatx.spec#54
as the neatx Makefile does that sort of thing. I'm guessing you have
an older version of autoconf/automake or such that behaves slightly
differently.
> My mods to neatx.conf to get it running:
> netcat-path = /usr/bin/nc # was /bin/netcat
> xsession-path = /etc/X11/xinit/Xsession # was /etc/X11/Xsession
These should be fixed by a patch i have out for review. Thanks for the
reminder re: xsession path, i'd missed that.
Steve
--
"You are technically correct, the best kind of correct."
- Bureaucrat 1.0, Futurama
For those of you who want to duplicate my installation of neatx on
centos, I used the EPEL repo for obtaining the rpmdevtools package.
For pygobject2, I used the pygobject2-2.14 src rpm from Fedora 9
(rpmbuilder --rebuild ./pygobject2-2.14.1-2.fc9.src.rpm). Then I just
followed the rpm instructions in the INSTALL file of neatx.
--Jordan
On Feb 9, 5:17 pm, Stephen Shirley <kor...@gmail.com> wrote:
> On Sat, Feb 6, 2010 at 19:22, Jordan Gray <jordan.d.g...@gmail.com> wrote:
> > First, I notice that the neatx.spec attempts to create the nx user..
> > In my case, I already had an nx user from my previous install of
> > freenx, so I had to manually create the /var/lib/neatx directory and
> > set the nx user's home directory correctly.
>
> > Second, I had to create my own /var/lib/neatx/sessions directory--it
> > doesn't seem that the neatx.spec handles that part. Does the sessions
> > directory automatically get when the first user connects? If so, it
> > may have been that I didn't initially have the permissions set
> > correctly on the /var/lib/neatx directory.
>
> Something didn't go quite right there. This should take care of
> creating the /var/lib/neatx directory tree:http://code.google.com/p/neatx/source/browse/trunk/neatx/extras/rpm/n...