[SOLVED] FREENX - using twm

General support questions
Post Reply
nl-x
Posts: 9
Joined: 2011/07/25 11:14:52

[SOLVED] FREENX - using twm

Post by nl-x » 2011/07/26 15:16:46

Hi all,

Since a recent topic I have FreeNX running. Previously I wasn't able to log in. But that appeared to be a SELinux issue.
Now that is solved, I can connect with FreeNX. But still, I dont get a screen yet.

The point is, I don't have Gnome installed. I want to have a most-basic version of Gnome and asked how to install it.
Scottro advised me to use TWM.

[quote]What if you don't use Gnome. There's a few different ways to do a minimal X install.

The simplest may be

yum install xorg-x11-* xinit xterm


That brings in what seems like a lot extra, but is only 10 MB or so in size--save the 8-9 MB is possibly more work than you feel like doing.

Then, in the FreeNX client, you'll want to Desktop Unix Custom, and use /usr/bin/twm as the command. Also, uncheck the default floating window and choose new virtual desktop.[/quote]

First of all i need to say that [b]yum install xinit[/b] failed, as no such packet is available. (xorg-x11-* and xterm installed successfully)

Secondly, I configured the FreeNX client to use /usr/bin/twm (and I checked first to see if it exists), and configured it to use New Virtual Desktop in stead of Floating WIndow, ... but I could not open a window. I got the following "Connection Error" message:

[quote]NX> 203 NXSSH running with pid: 16632
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: x.x.x.x on port: 2021
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: root
NX> 102 Password:
NX> 103 Welcome to: webserver1.lan user: root
NX> 105 listsession --user="root" --status="suspended,running" --geometry="1920x1200x32+render" --type="unix-application"
NX> 127 Sessions list of user 'root' for reconnect:

Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: root
NX> 105 startsession --virtualdesktop="1" --application="/usr/bin/twm" --link="adsl" --backingstore="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="ws1temp" --type="unix-application" --geometry="640x480+640+305" --client="macosx" --keyboard="query" --screeninfo="640x480x32+render"

NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)
NX> 700 Session id: webserver1.lan-1000-B84FD60F0EE6758B876942135CBED32A
NX> 705 Session display: 1000
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: 563c2ed9ec2b9feba2bbce5702b99ad5
NX> 702 Proxy IP: 192.168.2.65
NX> 706 Agent cookie: 563c2ed9ec2b9feba2bbce5702b99ad5
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 0
NX> 105 NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/root/.nx/F-C-webserver1.lan-1000-B84FD60F0EE6758B876942135CBED32A/session". You might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows:
NX> 1006 Session status: closed
NX> 1001 Bye.
/usr/bin/nxserver: line 1531: 2977 Terminated sleep $AGENT_STARTUP_TIMEOUT
Can't open /var/lib/nxserver/db/running/sessionId{B84FD60F0EE6758B876942135CBED32A}: No such file or directory.
mv: cannot stat `/var/lib/nxserver/db/running/sessionId{B84FD60F0EE6758B876942135CBED32A}': No such file or directory
/usr/bin/nxserver: line 562: kill: (2722) - No such process
NX> 280 Exiting on signal: 15
[/quote]

FYI. Please note that my SSH runs on port 22. But I have a NAT router that forwards port 2021 to port 22 on this server. (In my previous installation (CentOS 5.6 - Gnome) this worked well.)

As far as I can see, user 'nx' now can log in. And even the second user 'root' manages to log in. But the TWM does not open.

Any help is appreciated.


Kind regards,
NL-X

nl-x
Posts: 9
Joined: 2011/07/25 11:14:52

Re: FREENX - using twm

Post by nl-x » 2011/07/26 15:27:07

Hmm. Ok, I have already solved this one...
Before I had disabled encryption on all traffic, in the time I didn't know that SELinux was bothering me.
Apparently disabling all encryption is not allowed.

Next (and hopefully last) question:

OK. NX is working. TWM is working.
Now , how do I open Pirut !? (The Add/remove software application)

If Pirut has been discontinued on CentOS6, then what is its replacement called?


[b]EDIT:[/b] According to http://rpm.pbone.net/index.php3/stat/4/idpl/16612205/dir/centos_6/com/gnome-packagekit-2.28.3-3.el6.i686.rpm.html , gnome-packagekit should provide pirut. But I have it installed, and there is no pirut provided.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

[SOLVED] FREENX - using twm

Post by pschaff » 2011/07/30 13:47:54

The new question is OT, and it looks like you figured out the add/remove software question in your [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=32365&forum=55&post_id=138529#forumpost138529]other topic[/url] anyway, so I am marking this one [SOLVED] for posterity.

Post Reply