You are not logged in.

#1 2008-07-21 19:53:55

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

freenx

Hi,

alright, I wonder now what to do about freenx. There has been a major upgrade to freenx, they also have their own client now. I do not feel competent enough to do the freenx stuff myself (what are the patches for in the current offical outtdated Arch package?), but on the other hand, I don't think that tpowa is going to update it too soon (at least he didn't react to mail).

Has anyone got a PKGBUILD for v0.7.2?
Who is going to upgrade the official package?
Should a bug report be filed?

Cheers,
Blind

Offline

#2 2008-07-22 19:56:15

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: freenx

Hehe,

I guess dolby answered my question about the bug report. He closed it.
big_smile
Whatever.

So that leaves the other two questions...
For now, I assume I am on my own.

Cheers,
Blind

Offline

#3 2008-07-23 17:39:03

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: freenx

Alright, so I have been playing with this for a while now. I noticed that nx-common and nxserver could use an upgrade, too. Since I am not expecting anything, I have tried it myself, and of course got stuck.

g++ -c -O3 -Wmissing-declarations -Wnested-externs -fPIC -DIN_ADDR_T=in_addr_t -DVERSION=\"3.2.0\"  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -Wall -Wpointer-arith   Socket.cpp
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++
In file included from Socket.cpp:69:
Misc.h:125: error: expected initializer before '*' token
Misc.h:212: error: 'ostream' was not declared in this scope
Misc.h:212: error: 'fs' was not declared in this scope
Misc.h:212: error: expected primary-expression before 'unsigned'
Misc.h:212: error: expected primary-expression before 'int'
Misc.h:212: error: initializer expression list treated as compound expression
Misc.h:213: error: 'istream' was not declared in this scope
Misc.h:213: error: 'fs' was not declared in this scope
Misc.h:213: error: expected primary-expression before 'unsigned'
Misc.h:213: error: expected primary-expression before 'int'
Misc.h:213: error: initializer expression list treated as compound expression
Socket.cpp: In function 'int GetKernelStep()':
Socket.cpp:115: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetReuseAddress(int)':
Socket.cpp:198: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetNonBlocking(int, int)':
Socket.cpp:239: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetLingerTimeout(int, int)':
Socket.cpp:273: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetSendBuffer(int, int)':
Socket.cpp:303: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetReceiveBuffer(int, int)':
Socket.cpp:332: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetNoDelay(int, int)':
Socket.cpp:385: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetKeepAlive(int)':
Socket.cpp:420: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetLowDelay(int)':
Socket.cpp:469: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int SetCloseOnExec(int)':
Socket.cpp:509: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int GetBytesWritable(int)':
Socket.cpp:585: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int GetBytesQueued(int)':
Socket.cpp:650: error: 'cerr' was not declared in this scope
Socket.cpp: In function 'int GetHostAddress(const char*)':
Socket.cpp:717: error: 'cerr' was not declared in this scope
make: *** [Socket.o] Error 1

So this is when I try to compile nxcompsh. I believe this is due to gcc 4.3.1, but I have no clue as to what I need to change to make stuff work.
I am grateful for hints.
Cheers,
Blind

[edit1:] BTW, this happens even though Misc.h *has* included <iostream>.
[edit2:] Ok, nevemind. Found the solution somewhere (some patch for some other program that didn't compile with gcc 4.3.1)

Last edited by Blind (2008-07-23 17:48:03)

Offline

#4 2008-07-23 17:58:28

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: freenx

I'm using FreeNX. Maybe I will find some time to look at it. But why do you want to update? Current setup works fine for me.

btw: When you read FreeNX mailing list you will find out that 0.7.3 release is not far away. We should probably wait or use a svn snapshot meanwhile when you show me a good reason worth to update.

Offline

#5 2008-07-23 18:11:59

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: freenx

Yeah, ok, I guess the main reason for me was to find out how the freenx-client will do.
Also, the version in the repos doesn't work with bash-completion, maybe that changed. Dunno.
I guess there is no really good reason smile

But: freenx-server was not the problem, but nxserver, which was also bumped in version (3.2.0). Dunno how much of a difference that makes. I am playing with that atm.

Offline

#6 2008-07-23 18:26:47

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: freenx

nx-common:

# $Id$
# Maintainer Tobias Powalowski <tpowa@archlinux.org>
# Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org>
pkgname=nx-common
pkgver=3.2.0
pkgrel=1
pkgdesc="NoMachine NX common package for client and server"
arch=('i686')
license=('GPL')
url="http://nomachine.com/"
depends=('libjpeg' 'libpng' 'openssl>=0.9.8h' 'gcc-libs' 'audiofile' 'alsa-lib' 'bash')
source=(\
#Compression libs and proxy sources
http://64.34.161.181/download/3.2.0/sources/nxcomp-3.2.0-7.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxssh-3.2.0-1.tar.gz \
# ESD Support
http://64.34.161.181/download/3.2.0/sources/nxesd-3.2.0-1.tar.gz \
)
options=(!libtool)


build() {
  cd $startdir/src
 
  mkdir -p $startdir/pkg/opt/NX/bin
  mkdir -p $startdir/pkg/opt/NX/lib 

  cd $startdir/src/nxcomp
  ./configure --prefix=/opt/NX
  make || return 1
  cp -a libXcomp.so.* $startdir/pkg/opt/NX/lib
  cd $startdir/pkg/opt/NX/lib
  ln -s libXcomp.so.1 libXcomp.so

  cd $startdir/src/nxssh
  ./configure --prefix=/opt/NX
  make || return 1
  install -D -m755 nxssh $startdir/pkg/opt/NX/bin/nxssh
 
  cd $startdir/src/nxesd
  ./configure --prefix=/opt/NX
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
  # fix libxcomp linking
  cd $startdir/pkg/opt/NX/lib
  ln -s libXcomp.so.3 libXcomp.so.1
}
md5sums=('5ea64a557c770d9f5cc4b9a7a9d1343c'
         '6d4955376ea1dfcb6971b2b46d31ece1'
         '4a239b52e5bcf6efb2e7f33ebcd24188')

nxserver:

# $Id$
# Maintainer Tobias Powalowski <tpowa@archlinux.org>
# Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org>
pkgname=nxserver
pkgver=3.2.0
pkgrel=1
pkgdesc="NoMachine NX is the next-generation X compression and roundtrip suppression scheme."
arch=(i686)
url="http://nomachine.com/"
license=('GPL')
depends=('nx-common>=3.2.0' 'libxaw' 'libxrender' 'libxp' 'gcc-libs' 'libjpeg' \
     'libxpm' 'libpng' 'libxdamage' 'libxrandr' 'libxcomposite' 'libxtst' 'freetype2')
makedepends=('imake')
source=(\
#X11 support programs and libraries
http://64.34.161.181/download/3.2.0/sources/nx-X11-3.2.0-2.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxwin-3.2.0-4.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxauth-3.2.0-1.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxcomp-3.2.0-7.tar.gz \
#X11 Agent sources
http://64.34.161.181/download/3.2.0/sources/nxagent-3.2.0-8.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxcompsh-3.2.0-1.tar.gz \
#Compression libs and proxy sources
http://64.34.161.181/download/3.2.0/sources/nxproxy-3.2.0-1.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxcompext-3.2.0-1.tar.gz \
http://64.34.161.181/download/3.2.0/sources/nxcompshad-3.2.0-3.tar.gz \
# gcc 4.3.1 fixes
nxcompsh-3.2.0-1.gcc431.patch \
)
options=(!libtool)

build() {
  cd $startdir/src
  mkdir -p $startdir/pkg/opt/NX/bin
  mkdir -p $startdir/pkg/opt/NX/lib 

  cd $startdir/src/nxcomp
  ./configure --prefix=/opt/NX
  make || return 1

  cd $startdir/src/nxcompshad
  ./configure --prefix=/opt/NX
  make || return 1
  cp -a libXcompshad.so* $startdir/pkg/opt/NX/lib

  cd $startdir/src/nxcompsh
  patch -Np0 -i ../nxcompsh-3.2.0-1.gcc431.patch || return 1
  ./configure --prefix=/opt/NX
  make || return 1
  cp -a libXcompsh.so* $startdir/pkg/opt/NX/lib

  cd $startdir/src/nxproxy
  ./configure --prefix=/opt/NX
  make || return 1
  make prefix=$startdir/pkg/opt/NX install || return 1

  cd $startdir/src/nx-X11
  make World || return 1
  cp -a lib/X11/libX11.so* $startdir/pkg/opt/NX/lib
  cp -a lib/Xext/libXext.so* $startdir/pkg/opt/NX/lib
  cp -a lib/Xrender/libXrender.so* $startdir/pkg/opt/NX/lib
  install -D -m755 programs/Xserver/nxagent $startdir/pkg/opt/NX/bin/nxagent
  install -D -m755 programs/nxauth/nxauth $startdir/pkg/opt/NX/bin/nxauth

  cd $startdir/src/nxcompext 
  ./configure --prefix=/opt/NX
  make || return 1
  cp -a libXcompext.so* $startdir/pkg/opt/NX/lib

  # fix libXcompext linking
  cd $startdir/pkg/opt/NX/lib
  ln -s libXcompext.so.3 libXcompext.so.1
}

md5sums=('0a969199c77a604a488794c56176000f'
         '3a96ece73da0699f1e6eb7165b16d141'
         '18519f2bcf30b10b766a60926fbe1017'
         '5ea64a557c770d9f5cc4b9a7a9d1343c'
         'ab4f771bc522caa0a86317dc882679e8'
         '57cc9cb3acebf792383bfcc50e715d48'
         'ac31e8f2f112e3720f3c00cec67c0734'
         'cd1296ebd24b1d7c4f82537a395ad6e8'
         '6edfa4f65f579306f05af2451249c2bf'
         '53f5475258e69a2889de2f30ca434b86')

nxcompsh-3.2.0-1.gcc431.patch:

--- Misc.h~    2008-07-23 11:59:58.000000000 -0600
+++ Misc.h    2008-07-23 12:00:16.000000000 -0600
@@ -18,7 +18,8 @@
 #ifndef Misc_H
 #define Misc_H
 
-#include <iostream.h>
+#include <iostream>
+using namespace std;
 
 #include <errno.h>
 #include <string.h>

Offline

#7 2008-07-23 18:40:10

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: freenx

freenx-server:

pkgname=freenx-server
pkgver=0.7.2
pkgrel=1
pkgdesc="Free Software (GPL) Implementation of the NX Server"
arch=(i686 x86_64)
url="http://freenx.berlios.de"
license=('GPL')
depends=('nxserver' 'gnu-netcat' 'openssh' 'expect' 'xorg-xauth' 'xorg-apps' 'xorg-fonts-misc' 'coreutils')
backup=(opt/NX/etc/node.conf)
install=freenx.install
source=(http://download.berlios.de/freenx/$pkgname-$pkgver.tar.gz nscd-fix.patch)

build() {
  # patch and install nxserver
  cd $startdir/src/$pkgname-$pkgver
  # patch from inside nx
  patch < gentoo-nomachine.diff || return 1
  # fixed for archlinux
  patch -Np0 -i ../nscd-fix.patch || return 1
  #sed -i -e 's,/usr/NX/bin/nxclient,/opt/NX/bin/nxclient-nomachine,g' nxdialog
  sed -i -e 's,authorized_keys2,authorized_keys,g' nxloadconfig
  sed -i -e 's,/usr/NX,/opt/NX,g' nxloadconfig
  sed -i 's,netcat,nc,g' nxloadconfig
  sed -i 's,/usr/X11R6/bin/xauth,/usr/bin/xauth,g' nxloadconfig
  #sed -i 's,COMMAND_MD5SUM=openssl md5,COMMAND_MD5SUM=md5sum,g' nxloadconfig
  sed -i 's,COMMAND_FOOMATIC="/usr/lib/cups/driver/foomatic-ppdfile",COMMAND_FOOMATIC="/usr/bin/foomatic-ppdfile",g' nxloadconfig
  sed -i 's|AGENT_EXTRA_OPTIONS_X=""|AGENT_EXTRA_OPTIONS_X="-co /usr/share/X11/rgb -fp /usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1 -xkbdir /usr/share/X11/xkb"|g' nxloadconfig
  sed -i 's,/etc/init.d/ssh,/etc/rc.d/sshd,g' nxsetup
  sed -i -e 's,#ENABLE_2_0_0_BACKEND="0",ENABLE_2_0_0_BACKEND="1",g' node.conf.sample 
  # fix key generation
  sed -i -e 's,AUTOMATIC="no",AUTOMATIC="yes",g' nxsetup
  install -D -m755 nxnode $startdir/pkg/opt/NX/bin/nxnode
  install -D -m755 nxserver $startdir/pkg/opt/NX/bin/nxserver
  install -D -m755 nxsetup $startdir/pkg/opt/NX/bin/nxsetup
  install -D -m755 nxkeygen $startdir/pkg/opt/NX/bin/nxkeygen
  install -D -m755 nxnode-login $startdir/pkg/opt/NX/bin/nxnode-login
  install -D -m755 nxloadconfig $startdir/pkg/opt/NX/bin/nxloadconfig
  install -D -m755 nxdialog $startdir/pkg/opt/NX/bin/nxdialog
  install -D -m755 nxviewer_helper $startdir/pkg/opt/NX/bin/nxviever_helper
  install -D -m755 nxcups-gethost $startdir/pkg/opt/NX/bin/nxcups-gethost
  install -D -m755 nxdesktop_helper $startdir/pkg/opt/NX/bin/nxdesktop_helper
  #install -D -m755 nxprint $startdir/pkg/opt/NX/bin/nxprint
  install -D -m755 node.conf.sample $startdir/pkg/opt/NX/etc/node.conf
  # install nxhelper
  cd nxserver-helper
  make
  install -D -m755 nxserver-helper $startdir/pkg/opt/NX/bin/nxserver-helper

  # create nxserver homedir
  mkdir -p $startdir/pkg/opt/NX/home/nx
}
md5sums=('961913bb82ee6e60d8df6f10e647bda9'
         'a5cb0ec561328537fea28abc4e989fd1')

Offline

Board footer

Powered by FluxBB