zhihuizhiming / neatx

Automatically exported from code.google.com/p/neatx
0 stars 0 forks source link

/bin/netcat and /etc/X11/Xsession are not pressent Fedora #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some values in lib/constants.py does not apply on Fedora 11. Here is what I
had to change to make it run:

Index: lib/constants.py
===================================================================
--- lib/constants.py    (revision 19)
+++ lib/constants.py    (working copy)
@@ -25,16 +25,16 @@
 from neatx import _autoconf

-NXDIR = "/usr/lib/nx"
+NXDIR = "/usr/bin"

 SYSLOG_ADDRESS = "/dev/log"
 BASH = "/bin/bash"
-NETCAT = "/bin/netcat"
+NETCAT = "/usr/bin/nc"
 XRDB = "/usr/bin/xrdb"
 SU = "/bin/su"
 SSH = "/usr/bin/ssh"
 XAUTH = "/usr/bin/xauth"
-XSESSION = "/etc/X11/Xsession"
+XSESSION = "/etc/X11/xinit/Xsession"

 START_CONSOLE_COMMAND = "/usr/bin/xterm"
 START_KDE_COMMAND = XSESSION + " startkde"

Original issue reported on code.google.com by MathiasNicolajsenKjaergaard on 20 Jul 2009 at 6:56

GoogleCodeExporter commented 8 years ago
Thanks. The NXDIR change has recently been made in svn, but the other two will 
still
be needed for now.

Original comment by kormat on 22 Jul 2009 at 4:43

GoogleCodeExporter commented 8 years ago
These changes can now be made in the neatx.conf file after installation. I've 
sent
out a patch mention this in the INSTALL instructions. Thanks,

Steve

Original comment by kormat on 29 Jul 2009 at 6:06

GoogleCodeExporter commented 8 years ago
it would be nice to actually autodetect location of netcat (well, basically use 
whatever is in path) and also allow using binary named 'nc', as that's what it 
is 
called like in slackware (and maybe elsewhere).

took me some time to figure out it's defaulting to /bin/netcat...

Original comment by taa...@gmail.com on 7 Sep 2009 at 12:04

GoogleCodeExporter commented 8 years ago
This is still an issue in trunk in January 2010

Original comment by robparr...@gmail.com on 19 Jan 2010 at 11:48

GoogleCodeExporter commented 8 years ago
There's a patch out to fix this now.

Original comment by kormat on 9 Feb 2010 at 10:27

GoogleCodeExporter commented 8 years ago
Fixed in http://code.google.com/p/neatx/source/detail?r=53

Original comment by kormat on 12 Feb 2010 at 11:39

GoogleCodeExporter commented 8 years ago
Issue 41 has been merged into this issue.

Original comment by kormat on 12 Feb 2010 at 11:48

GoogleCodeExporter commented 8 years ago
I've installed the latest version today (rev 55, 16 Feb 2010) and the default
installation can not find netcat and Xsession (on openSUSE 11.2). Changing the
locations of the files in /etc/neatx.conf did not seem to work.

Original comment by wib...@gmail.com on 16 Feb 2010 at 3:29

GoogleCodeExporter commented 8 years ago
@wibaje: How did you install? Building the rpm following the instructions in 
INSTALL? 
Can you tell me the paths to your netcat and Xsession programs are, please?

Original comment by kormat on 19 Feb 2010 at 1:34

GoogleCodeExporter commented 8 years ago
I downloaded the sources from the SVN repository and followed the instructions 
in the
INSTALL file. I did not build the rpm but follwed the instructions from
"Building/installing from source"

I think however my problem was that I didn't copy the neatx.conf.example to
/usr/local/etc/neatx.conf but to /etc/neatx.conf. The /usr/local/etc directory
doesn't exist on the standard openSUSE install. I tried again with the 
neatx.conf
file in /usr/local/etc/ and it works now.

I changed the paths of netcat and xSession as follows:
/bin/netcat -> /usr/bin/netcat
/etc/X11/Xsession -> /etc/X11/xdm/Xsession

Would it be possible to read the neatx.conf file from /etc/ directory iso the
/usr/local/etc/ directory?

Original comment by wib...@gmail.com on 22 Feb 2010 at 11:27

GoogleCodeExporter commented 8 years ago
wibaje, you should pass --sysconfdir=/etc (and maybe --localstatedir=/var) to 
configure.

Original comment by han...@google.com on 22 Feb 2010 at 11:33