FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS Development

 
 
LinkBack Thread Tools
 
Old 09-30-2010, 09:44 PM
Akemi Yagi
 
Default Updated nx/freenx packages

CentOS devs (perhaps Tru?),

I have an updated version of nx/freenx ready. The srpms are:

http://centos.toracat.org/misc/nx-freenx/5/SRPMS/freenx-0.7.3-6.el5.centos.ay.src.rpm
http://centos.toracat.org/misc/nx-freenx/5/SRPMS/nx-3.4.0-6.el5.centos.ay.src.rpm

Two tarballs (nxagent and nx-X11) in nx have been update to the
current version (as of Sept 2010).

One main change done in this update is addition of support for
RHEL6(beta). For example,

rpmbuild -bb --target x86_64 --define 'dist .el6.centos' --define
"centos_ver 6" freenx.spec

will build the x86_64 version of freenx for RHEL/CentOS-6.

Anyone wishing to give them a try can find the binaries at:

http://centos.toracat.org/misc/nx-freenx/6/i386/
http://centos.toracat.org/misc/nx-freenx/6/x86_64/

I have tested them against RHEL 6 beta2 and they seem to work fine.

Thanks,

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 01:27 PM
Tru Huynh
 
Default Updated nx/freenx packages

On Thu, Sep 30, 2010 at 02:44:25PM -0700, Akemi Yagi wrote:
> CentOS devs (perhaps Tru?),
>
Hi,


> I have an updated version of nx/freenx ready. The srpms are:
>
> http://centos.toracat.org/misc/nx-freenx/5/SRPMS/freenx-0.7.3-6.el5.centos.ay.src.rpm
> http://centos.toracat.org/misc/nx-freenx/5/SRPMS/nx-3.4.0-6.el5.centos.ay.src.rpm
I pulled both and had a quick look :P
>
> Two tarballs (nxagent and nx-X11) in nx have been update to the
> current version (as of Sept 2010).
>
ack'ed md5sums from http://www.nomachine.com/sources.php confirmed

> One main change done in this update is addition of support for
> RHEL6(beta). For example,
>
> rpmbuild -bb --target x86_64 --define 'dist .el6.centos' --define
> "centos_ver 6" freenx.spec

that will not work since freenx-0.7.2-centos-el6-diffs.patch is not provided in
http://centos.toracat.org/misc/nx-freenx/5/SRPMS/freenx-0.7.3-6.el5.centos.ay.src.rpm
<quote>
%if "%centos_ver" == "5"
Patch1: freenx-0.7.2-centos-diffs.patch
%endif
%if "%centos_ver" == "6"
Patch1: freenx-0.7.2-centos-el6-diffs.patch
%endif
</quote>
to only one of them is included in the src.rpm :P

attached a proposed fix

Cheers,

Tru

--
Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
--- freenx.spec.ori 2010-10-01 15:20:36.000000000 +0200
+++ freenx.spec 2010-10-01 15:23:58.000000000 +0200
@@ -21,12 +21,7 @@
Source2: nxserver.logrotate
Patch631: freenx-0.7.3-r631.patch
Patch0: freenx-0.7.1-nxnode-fullscreen.patch
-%if "%centos_ver" == "5"
Patch1: freenx-0.7.2-centos-diffs.patch
-%endif
-%if "%centos_ver" == "6"
-Patch1: freenx-0.7.2-centos-el6-diffs.patch
-%endif
Patch2: freenx-0.7.2-initd-script.patch
Patch3: freenx-0.7.2-mswindows-sessreg.patch
Patch4: freenx-0.7.3-centos-nxserver.patch
@@ -36,6 +31,7 @@
Patch8: freenx-0.7.3-centos-space-in-passwd-bug4274.patch
Patch9: freenx-0.7.3-centos-leading-dash-in-passwd-bug4275.patch
Patch10: freenx-0.7.3-centos-md5sum-bug4360.patch
+Patch11: freenx-0.7.2-centos-el6-diffs.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: openssh-server nc expect dbus-x11 perl xorg-x11-server-utils
@@ -69,7 +65,12 @@

%patch631 -p1
%patch0 -p1
+%if "%centos_ver" == "5"
%patch1 -p1
+%endif
+%if "%centos_ver" == "6"
+%patch11 -p1
+%endif
%patch2 -p1

%if "%centos_ver" == "4"
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 02:08 PM
Florian La Roche
 
Default Updated nx/freenx packages

> to only one of them is included in the src.rpm :P


Hello Akemi and Tru,

It looks to me like only one patch for CentOS-5 and CentOS-6 should
be possible, then no '%if' at all is needed and further maintenance
of the rpm would also stay simpler. Try the attached patch
for both CentOS-5 and CentOS-6, it seems to work ok for me...

regards,

Florian La Roche

P.S.: Would it make sense to also use that src.rpm for Fedora? Merging
there as well would be a great next step...

diff -uNrp freenx-server-0.7.2.orig/node.conf.sample freenx-server-0.7.2/node.conf.sample
--- freenx-server-0.7.2.orig/node.conf.sample 2008-03-14 16:47:47.000000000 -0500
+++ freenx-server-0.7.2/node.conf.sample 2008-04-12 10:58:12.000000000 -0500
@@ -443,11 +443,11 @@

# The key that contains the name of the script that starts a KDE session.
# It's run when a 'unix-kde' session is requested by the client.
-#COMMAND_START_KDE=startkde
+#COMMAND_START_KDE="/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde"

# The key that contains the name of the script that starts a gnome session.
# It's run when a 'unix-gnome' session is requested by the client.
-#COMMAND_START_GNOME=gnome-session
+#COMMAND_START_GNOME="/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session"

# The key that contains the name of the script that starts a CDE session.
# It's run when a 'unix-cde' session is requested by the client.
@@ -479,7 +479,7 @@
#COMMAND_SMBUMOUNT_CIFS=/sbin/umount.cifs

# The key that contains the name of the complete path of the 'netcat' command.
-#COMMAND_NETCAT=netcat
+#COMMAND_NETCAT=nc

# The key that contains the name of the complete path of the 'ssh' and
# 'ssh-keygen' command.
diff -uNrp freenx-server-0.7.2.orig/nxloadconfig freenx-server-0.7.2/nxloadconfig
--- freenx-server-0.7.2.orig/nxloadconfig 2008-03-14 16:47:47.000000000 -0500
+++ freenx-server-0.7.2/nxloadconfig 2008-04-12 11:01:20.000000000 -0500
@@ -180,8 +180,8 @@ DEFAULT_X_WM=""
KILL_DEFAULT_X_WM="1"
USER_X_STARTUP_SCRIPT=.Xclients
DEFAULT_X_SESSION=/etc/X11/xdm/Xsession
-COMMAND_START_KDE=startkde
-COMMAND_START_GNOME=gnome-session
+COMMAND_START_KDE="/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde"
+COMMAND_START_GNOME="/usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/gnome-session"
COMMAND_START_CDE=cdwm
COMMAND_XTERM=xterm
COMMAND_XAUTH=/usr/X11R6/bin/xauth
@@ -189,7 +189,7 @@ COMMAND_SMBMOUNT=smbmount
COMMAND_SMBUMOUNT=smbumount
COMMAND_SMBMOUNT_CIFS=/sbin/mount.cifs
COMMAND_SMBUMOUNT_CIFS=/sbin/umount.cifs
-COMMAND_NETCAT=netcat
+COMMAND_NETCAT=nc
COMMAND_SSH=ssh
COMMAND_SSH_KEYGEN=ssh-keygen
COMMAND_CUPSD=/usr/sbin/cupsd
@@ -307,7 +307,7 @@ fi
[ -z "$AGENT_LIBRARY_PATH" ] && AGENT_LIBRARY_PATH=$PATH_LIB
[ -z "$PROXY_LIBRARY_PATH" ] && PROXY_LIBRARY_PATH=$PATH_LIB
[ -z "$APPLICATION_LIBRARY_PATH" ] && APPLICATION_LIBRARY_PATH=$PATH_LIB
-[ -z "$APPLICATION_LIBRARY_PRELOAD" ] && APPLICATION_LIBRARY_PRELOAD="$APPLICATION_LIBRARY_ PATH/libX11.so.6.2:$APPLICATION_LIBRARY_PATH/libXext.so.6.4:$APPLICATION_LIBRARY_PATH/libXcomp.so:$APPLICATION_LIBRARY_PATH/libXcompext.so:$APPLICATION_LIBRARY_PATH/libXrender.so.1.2"
+[ -z "$APPLICATION_LIBRARY_PRELOAD" ] && APPLICATION_LIBRARY_PRELOAD="$APPLICATION_LIBRARY_ PATH/libX11.so.6.2:$APPLICATION_LIBRARY_PATH/libXext.so.6.4:$APPLICATION_LIBRARY_PATH/libXcomp.so.2:$APPLICATION_LIBRARY_PATH/libXcompext.so:$APPLICATION_LIBRARY_PATH/libXrender.so.1.2"

NX_BACKEND_VERSION=$(strings $PATH_BIN/nxagent 2>/dev/null | egrep 'NXAGENT - Version' | sed 's/.*Version //g')

diff -uNrp freenx-server-0.7.2.orig/nxsetup freenx-server-0.7.2/nxsetup
--- freenx-server-0.7.2.orig/nxsetup 2008-03-14 16:47:47.000000000 -0500
+++ freenx-server-0.7.2/nxsetup 2008-04-12 11:09:06.000000000 -0500
@@ -49,6 +49,7 @@ parse_cmdline()
--uninstall) UNINSTALL="yes"; shift ;;
--purge) PURGE="yes"; shift ;;
--auto) AUTOMATIC="yes"; shift ;;
+ --override) OVERRIDE="yes"; shift ;;
--test) TEST="yes"; shift ;;
--) shift ; break ;;
*) echo "Invalid flag $1" ; HELP="yes"; shift ; break ;;
@@ -65,7 +66,7 @@ parse_cmdline()
[ "$UNINSTALL" = "yes" -a "$CLEAN" = "yes" ] && HELP="yes"
[ "$SETUP_SSH2_KEY" = "yes" -a "$SETUP_NOMACHINE_KEY" = "no" ] && HELP="yes"

- if [ "$INSTALL" = "no" -a "$UNINSTALL" = "no" -a "$AUTOMATIC" = "no" -a "$HELP" = "no" ]
+ if [ "$INSTALL" = "no" -a "$UNINSTALL" = "no" -a "$AUTOMATIC" = "no" -a "$HELP" = "no" -a "$OVERRIDE" = "yes" ]
then
echo "------> You did select no action."
echo " FreeNX guesses that you want to _install_ the server."
@@ -81,6 +82,20 @@ parse_cmdline()

[ "$INSTALL" = "no" -a "$UNINSTALL" = "no" ] && HELP="yes"

+ if [ "$OVERRIDE" = "no" ]
+ then
+ echo "Your FreeNX server was already setup and configured by the RPM."
+ echo
+ echo "You should only need to copy the client.id_dsa.key from /etc/nxserver to your client,"
+ echo "then properly import the key into the client setup. Only proceed with nxsetup if you"
+ echo "know exactly what you are doing."
+ echo
+ echo "To bypass this message, add the following to the nxsetup arguments:"
+ echo " --override"
+ echo
+ exit 0
+ fi
+
if [ "$HELP" = "yes" ]
then
echo "nxsetup - Setup the FreeNX server."
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 02:24 PM
Akemi Yagi
 
Default Updated nx/freenx packages

On Fri, Oct 1, 2010 at 6:27 AM, Tru Huynh <tru@centos.org> wrote:
> On Thu, Sep 30, 2010 at 02:44:25PM -0700, Akemi Yagi wrote:

>> Two tarballs (nxagent and nx-X11) in nx have been update to the
>> current version (as of Sept 2010).
>>
> ack'ed md5sums from http://www.nomachine.com/sources.php confirmed

Thanks for checking.

>> One main change done in this update is addition of support for
>> RHEL6(beta). For example,
>>
>> rpmbuild -bb --target x86_64 --define 'dist .el6.centos' --define
>> "centos_ver 6" freenx.spec
>
> that will not work since freenx-0.7.2-centos-el6-diffs.patch is not provided in
> http://centos.toracat.org/misc/nx-freenx/5/SRPMS/freenx-0.7.3-6.el5.centos.ay.src.rpm
> <quote>
> %if "%centos_ver" == "5"
> Patch1: * * * * freenx-0.7.2-centos-diffs.patch
> %endif
> %if "%centos_ver" == "6"
> Patch1: * * * * freenx-0.7.2-centos-el6-diffs.patch
> %endif
> </quote>
> to only one of them is included in the src.rpm :P
>
> attached a proposed fix

That was my oversight. :-( Indeed, your patch is the way to handle a
case like this.

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 02:29 PM
Akemi Yagi
 
Default Updated nx/freenx packages

On Fri, Oct 1, 2010 at 7:08 AM, Florian La Roche
<Florian.LaRoche@gmx.net> wrote:
>> to only one of them is included in the src.rpm :P

> Hello Akemi and Tru,
>
> It looks to me like only one patch for CentOS-5 and CentOS-6 should
> be possible, then no '%if' at all is needed and further maintenance
> of the rpm would also stay simpler. Try the attached patch
> for both CentOS-5 and CentOS-6, it seems to work ok for me...
>
> regards,
>
> Florian La Roche
>
> P.S.: Would it make sense to also use that src.rpm for Fedora? Merging
> * * *there as well would be a great next step...

Hi Florian,

Thanks for the patch. That will eliminate the need for the "if" in the spec.

Speaking of merging with Fedora, in fact, Johnny Hughes was planning
to adopting the Fedora src as a next step. Would you like to take on
this "project" ?

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 02:30 PM
Akemi Yagi
 
Default Updated nx/freenx packages

Sorry to bother you again

On Fri, Oct 1, 2010 at 7:29 AM, Akemi Yagi <amyagi@gmail.com> wrote:

> Speaking of merging with Fedora, in fact, Johnny Hughes was planning
> to adopting the Fedora src as a next step. Would you like to take on
> this "project" ?

s/adopting/adopt/

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-01-2010, 04:03 PM
Akemi Yagi
 
Default Updated nx/freenx packages

On Fri, Oct 1, 2010 at 7:24 AM, Akemi Yagi <amyagi@gmail.com> wrote:
> On Fri, Oct 1, 2010 at 6:27 AM, Tru Huynh <tru@centos.org> wrote:

>> attached a proposed fix
>
> That was my oversight. :-( *Indeed, your patch is the way to handle a
> case like this.

My proposal is to go ahead with updating nx/freenx for CentOS-5 with
your patch (either that or by removing the CentOS-6 related code). We
then deal with CentOS-6 as a moving target because that needs more
testing for sure.

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-03-2010, 05:27 PM
Akemi Yagi
 
Default Updated nx/freenx packages

On Fri, Oct 1, 2010 at 9:03 AM, Akemi Yagi <amyagi@gmail.com> wrote:
> On Fri, Oct 1, 2010 at 7:24 AM, Akemi Yagi <amyagi@gmail.com> wrote:
>> On Fri, Oct 1, 2010 at 6:27 AM, Tru Huynh <tru@centos.org> wrote:
>
>>> attached a proposed fix
>>
>> That was my oversight. :-( *Indeed, your patch is the way to handle a
>> case like this.
>
> My proposal is to go ahead with updating nx/freenx for CentOS-5 with
> your patch (either that or by removing the CentOS-6 related code). *We
> then deal with CentOS-6 as a moving target because that needs more
> testing for sure.

Hi Tru,

I have uploaded the version that has your fix.

http://centos.toracat.org/misc/nx-freenx/5/SRPMS/freenx-0.7.3-6.el5.centos.ay2.src.rpm

Next, we would like to deal with CentOS-6 as per Florian's proposal.

Akemi
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 
Old 10-04-2010, 05:27 AM
Florian La Roche
 
Default Updated nx/freenx packages

> Thanks for the patch. That will eliminate the need for the "if" in the spec.

Ok, having a current version pushed to CentOS will be good.

> Speaking of merging with Fedora, in fact, Johnny Hughes was planning
> to adopting the Fedora src as a next step. Would you like to take on
> this "project" ?

I don't have Fedora running here, so not sure I'll have time for that.
I'll check on it...

regards,

Florian La Roche

_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 

Thread Tools




All times are GMT. The time now is 08:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org