LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-16-2007, 01:22 AM   #1
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
xrdp authenticates but does not load X server (RDP)


I'm trying out xrdp 0.4.0 on Slackware 12 and currently the Remote Desktop server is not working for me. I see the login screen on my server and choose sesman-X11rdp. It says...

Login successful for window display 10
Started Connecting
Some problem

When I look in the sesman.log file to see what "some problem" is I find...

starting Xrdp session...
starting sessvc - xpid=5451 - wmpid=5450
error starting X server - user **** - pid 5451
errno: 2, description: No such file or directory
execve parameter list: 9
argv[0] = X11rdp
argv[1] = :10
argv[2] = -geometry
argv[3] = 800x600
argv[4] = -depth
argv[5] = 24
argv[6] = -bs
argv[7] = -ac
argv[8] = (null)


I don't know what the first argument is supposed to represent, but if it is the file it is trying to load it makes sense that it cannot find it; it does not exist. It SHOULD be trying to load kde using startkde...

I also wonder if I can change the window display number.

Any xrdp users out there get this working? I appreciate any help.
 
Old 10-30-2007, 09:32 AM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Any XRDP users out there?
 
Old 11-29-2007, 09:20 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
************bump*****************
 
Old 12-04-2007, 11:37 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Solved!

I conversed back and forth via email with xrdp developer Jay Sorg and he helped get this program working! Big thanks to Jay for this project and all his help getting it to work for me!

As I suspected I needed the X11rdp binary. I decided to build from the source.

Code:
svn co svn://server1.xrdp.org/srv/svn/repos/main/x11rdp_xorg71
cd x11rdp_xorg71
Jay put together a nice little build script (buildx.sh) to do most of the building. However, after reading it I noticed that I needed to change an option near the bottom of the script.

In the section that looks like this...
Code:
# xorg-server

  cd xorg-server-X11R7.1-1.1.0
  ./configure --prefix=$PREFIXDIR --with-fontdir=/usr/share/X11/fonts --enable-xglx --with-mesa-source=$BASEDIR/Mesa-6.5
change the with-fontdir option to point to /usr/share/fonts (or if you aren't on Slackware change it to the directory where the misc, Type1, 100dpi, and other similar font folders are).

Please note that Jay may change his script so this may not be necessary in the future. Check the script yourself.

OK so now let's build
Code:
sh buildx.sh
This is a good time to have lunch as it will take some time.

Somewhere towards the end of this process you should see how X11 is being configured.
Code:
X11 will be built with the following settings:
 Loadable i18n module support:            no
 Loadable xcursor library support:        yes
 Threading support:                       yes
 Use Threads safe API:                    yes
 Threads stubs in libX11:                 no
 XCMS:                                    yes
 Internationalization support:            yes
 XF86BigFont support:                     yes
 XKB support:                             yes
 XLOCALEDIR environment variable support: yes
 Manual pages installed:
If no errors then cd into the rdp dir
Code:
cd xorg-server-X11R7.1-1.1.0/hw/rdp
and make our little X11rdp server
Code:
make
then strip the binary
Code:
strip X11rdp
and finally, copy it to somewhere useful. I chose to put it in /usr/bin because that is where Xvnc is (installed from tightvnc slackbuild).
Code:
cp X11rdp /usr/bin
You can test the X11rdp server by itself by (as normal user)
Code:
X11rdp :12
I get something like...
Code:
screen width 800 height 600 depth 8 bpp 8
dpix 100 dpiy 100
buffer size 480000
error opening security policy file /etc/X11/xserver/SecurityPolicy
hi rdpMouseProc
hi PtrDeviceInit
hi PtrDeviceControl
hi rdpKeybdProc
hi KbdDeviceInit
hi rdpMouseProc
hi PtrDeviceOn
hi rdpKeybdProc
hi KbdDeviceOn
Could not init font path element /usr/include/X11/fonts/CID/, removing from list!
If it doesn't crash then it is probably working fine. You won't really see anything else, so you can just kill it for now.

Note that if you had not specified the correct font directory there would be more font warnings and the server would likely crash!

I am not sure at this point if I really need the CID fonts, but the SecurityPolicy error may need attention. I am not sure how to make the server look in the correct place (/usr/lib/xserver/SecurityPolicy), but perhaps I could create a simlink to help it along.

At any rate, this was the final piece of the puzzle that I needed to get the xrdp server working. The great thing about this server is that most machines don't need to download a client (like NX server needs) as most boxes already have rdesktop or mstsc.exe. It acts very similar to the RDP server on Windows.

For those wondering how I compiled xrdp itself...
I don't have pam so I compiled with the nopam option. For making a package I would suggest either using gnashley's src2pkg program or modify the Makefile (super-easy to do) to point to your build directory. Note that the install routine places a file in /etc/pam.d if that directory exists. This isn't affected by the variables (such as DESTDIR) at the top of the Makefile.

I'll probably put together a slackware 12 package soon that may or may not include X11rdp with it (probably better to have a separate package for X11rdp).

I'm hoping that I can talk Jay into changing his buildx.sh script and Makefile a little so that I can write a slackware buildscript for both X11rdp and the xrdp.

I'll post back here with any updates. I may also start a new thread that goes into more detail about the whole setup process as this thread is mostly about getting X11rdp to work.

I'd like to get some feedback from people first.
 
Old 02-28-2008, 04:39 PM   #5
PhilLello
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Cool

I've been looking into this same issue building the 0.4.0 tarball on Ubuntu - nice to know I'm not alone in expirimenting with xrdp

The build script wants to create some output in /opt/X11rdp, which can be changed by editing PREFIXDIR in the script. If you do change this, you'll need to edit xorg-server-X11R7.1-1.1.0/hw/rdp/Makefile to reflect this, as that Makefile isn't generated by automake.

I had a problem with the font path, which isn't set at all in the current script. I've tried adding --with-fontdir /usr/share/fonts, and I'm waiting on the build atm. It built fine without this, but running Xrdp :1 exited as it couldn't load any fonts.

Hope this helps someone.

Phil
 
Old 02-29-2008, 02:22 PM   #6
PhilLello
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Talking

The change for Ubuntu 7.10 should have read --with-fontdir=/usr/share/fonts/X11

The X11rdp binary needs to be copied somewhere where xrdp/sesman can find it - I've used /usr/bin, so that I don't have to mess around with changing paths.

It works pretty well, the only problem I've found so far is that GUI Admin tools run via gksu don't work, due to a problem with the Xauthorization file.
 
Old 08-25-2008, 04:22 AM   #7
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
When I run the script unedited I get this series of errors:
Code:
In file included from xprint.c:87:
/usr/include/X11/extensions/Printstr.h:761: error: expected specifier-qualifier-list before 'PrivateRec'
xprint.c: In function 'ProcXpGetPageDimensions':
xprint.c:761: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:762: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:765: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:769: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpSetImageResolution':
xprint.c:823: error: 'struct _XpContext' has no member named 'imageRes'
xprint.c:824: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:825: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpGetImageResolution':
xprint.c:874: error: 'struct _XpContext' has no member named 'imageRes'
xprint.c: In function 'ProcXpCreateContext':
xprint.c:979: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:980: error: 'struct _XpContext' has no member named 'imageRes'
xprint.c:982: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:983: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:984: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:985: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:986: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:987: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:988: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:989: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:990: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:991: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:992: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:993: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:994: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:995: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:996: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:997: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'XpFreeContext':
xprint.c:1218: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1227: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1232: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1234: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1245: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1246: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'XpFreePage':
xprint.c:1368: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1369: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'InitContextPrivates':
xprint.c:1399: error: 'struct _XpContext' has no member named 'devPrivates'
xprint.c: At top level:
xprint.c:1427: warning: no previous prototype for 'XpAllocateContextPrivateIndex'
xprint.c:1433: warning: no previous prototype for 'XpAllocateContextPrivate'
xprint.c: In function 'ProcXpStartJob':
xprint.c:1520: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1521: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpEndJob':
xprint.c:1569: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1570: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1584: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1585: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1592: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1593: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'DoStartDoc':
xprint.c:1619: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:1624: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1625: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpEndDoc':
xprint.c:1707: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1708: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1723: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1724: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'DoStartPage':
xprint.c:1756: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:1764: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1765: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1814: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1815: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpEndPage':
xprint.c:1897: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1898: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpPutDocumentData':
xprint.c:1969: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:1971: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpGetDocumentData':
xprint.c:2006: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2019: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2042: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:2044: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:2045: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c:2046: error: 'struct _XpContext' has no member named 'clientSlept'
xprint.c: In function 'ProcXpGetAttributes':
xprint.c:2089: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2091: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpSetAttributes':
xprint.c:2161: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2183: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2185: error: 'struct _XpContext' has no member named 'funcs'
xprint.c: In function 'ProcXpGetOneAttribute':
xprint.c:2241: error: 'struct _XpContext' has no member named 'funcs'
xprint.c:2243: error: 'struct _XpContext' has no member named 'funcs'
make[1]: *** [xprint.lo] Error 1
make[1]: Leaving directory `/home/gonzo/dl/x11rdp_xorg71/xorg-server-X11R7.1-1.1.0/Xext'
make: *** [all-recursive] Error 1
error make xorg-server
When I add the /usr/share/fonts bit using nano I get 2 errors saying that that directory and Mesa-6.5 don't exist (they clearly do).
 
Old 08-27-2008, 04:01 AM   #8
Stuart P. Bentley
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
For reference, the section of the header where the first error originates:

Code:
/*
 * Each print context is represented by one of the following structs
 * associated with a resource ID of type RTcontext .  A pointer to
 * the context is placed in the Xp extension's devPrivates
 * element in each client * which establishes a context via
 * either initContext or setContext.
 * The context pointer is also placed in the struct indicated by the
 * RTpage resource associated with each StartPage'd window.
 */
typedef struct _XpContext {
        XID contextID;
        char *printerName;
        int screenNum;          /* screen containing the printer */
        struct _XpClient *clientHead; /* list of clients */
        CARD32 state;
        VisualID pageWin;
        PrivateRec *devPrivates;
        XpDriverFuncs funcs;
        ClientPtr clientSlept;
        int imageRes;
} XpContextRec, *XpContextPtr;

#include <X11/fonts/fontstruct.h>       /* FontResolutionPtr */
/usr/include/X11/extensions/Printstr.h lines 745-767/781 98%

Last edited by Stuart P. Bentley; 08-27-2008 at 04:02 AM. Reason: codify
 
Old 09-16-2008, 11:53 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Stuart,

sorry for the long overdue response. I was hoping to have some time to rebuild X11rdp and see what changes have been made to the scripts before responding, but this has not been the case. I'll try to test this out as soon as I can. In the meantime, if you want, I can offer you my binary (19MB), though I do not know if I have tested it with Slackware 12.1 (I built it with Slackware 12.0). Also, I would highly recommend that you contact Jay Sorg or post to the Xrdp mailing list or forums about your problem.

What Distro/Version are you trying to run Xrdp on?

By the way, for Slackware users, there is a Xrdp SlackBuild at SBo. This does not include the X11rdp binary of course. Looks like I need to update the SlackBuild for the latest version...

Hopefully the Xrdp site, docs, and general organization of things will improve in the near future. From reading some forum messages it sounds like this is happening.

Update
My old X11rdp binary still works with Slackware 12.1. I started working on overhauling the xrdp SlackBuild. The old one still works with the new version, but I'm adding some nice improvements to the script. As soon as that is done and submitted to SBo, taking a look at this X11rdp business will be next on my Slackware ToDo list...

Last edited by shadowsnipes; 09-22-2008 at 04:17 PM. Reason: Update
 
Old 01-15-2009, 02:11 PM   #10
cboese
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Question compile on ubuntu

Thank you shadowsnipes, for the explanations.
One thing is not clear to me:
how exactly did you compile it?
the command is
Code:
./buildx.sh <directory>
What would I use as <directory> (on ubuntu 8.10)
 
Old 12-06-2010, 03:53 PM   #11
bdiez
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Compiling X11rdp on openSUSE 11.3

Hi all.

I know this is a pretty old post, but I think is a good place to explain how I was able to compile and install the X11rdp Server and the xrdp “Gateway” (let me call it this way) in a brand new openSUSE 11.3 installation.

First of all, I work in networking and also I’ve some skills in programming and administering different systems, but I’m very newbie on Linux and I’m an absolutely rookie with xrdp, so I apologize if I say a lot. Only want to share my experience hoping this helps anyone to get this excellent tool working, to save some time and to not to get frustrated.

I downloaded the latest versions I've been able to find. On today (December 2010) they can be found here:

http://server1.xrdp.org/xrdp/xrdp-5.0.tar.gz

http://server1.xrdp.org/xrdp/x11rdp_xorg71.tar.gz


To compile them it is also required to have the modules “openssl-devel”, “pam-devel” and “gcc” installed. I did this task using YaST.


The installation of the xrdp-5.0 module was very easy. Simply to untar it in a temporary directory, and to follow the instructions on the readme.txt file, ie from this temporary folder and as root execute the following commands to compile the modules:

Code:
./bootstrap
./configure
make
…and finally to execute the following one to install each file the corresponding folder:

Code:
make install
This installs some xrdp files and libraries in the following directories:

Code:
/usr/local/share/xrdp
/usr/local/lib/xrdp
…the xrdp executables in the following one:

Code:
/usr/local/sbin
…and some scripts, ini files and keyboard layouts at:

Code:
/etc/xrdp
In this folder is located the “xrdp.sh” script. And also the “xrdp.ini” and “sesman.ini” files are here. The ini defaults are ok by the moment, and with the script you can start or stop the xrdp server with the commands:

Code:
/etc/xrdp/xrdp.sh start
/etc/xrdp/xrdp.sh stop
(note: I think in older versions of xrdp this script was called “xrdp_control.sh”)


It’s a good idea to start it automatically as a service when the system starts. To do this step I follow the instructions I found in different posts to create a service called xrdp_control:

Code:
cp /etc/xrdp/xrdp.sh  /etc/init.d/xrdp_control  
chkconfig -add xrdp_control  
chkconfig -level 35 xrdp_control on  
service xrdp_control start
Well, if all was OK at this point we should be able to connect to our Linux system from a MS Windows machine using Remote Desktop. When connecting the xrdp service will offer us a “sessman” login window on which we can select between different session modules like “sesman-Xvnc”, “console”, ”vnc-any”, etc.

The configuration for the six default session modules resides in the “xrdp.ini” file. The first five are “VNC” sessions (they use lib=libvnc.so) and the last one, “sesman-X11rdp”, is a “X11 RDP Server” session (it uses lib=libxup.so), but it is not yet available because we have not yet installed the X11rdp Server, only the xrdp "VNC to RDP gateway".

I’m not an expert, but it seems that this "VNC" gateway module works opening an internal VNC session between our Linux machine and the xrdp service, and then this xrdp service “translates” the session content to our Windows client, dumping it as graphic content via the rdp protocol.

This may be enough for many people, as it works fine in LAN environments, but consumes some server resources and the performance decreases noticeably when the bandwidth and latency conditions are not so good.




At this point it may be interesting to install the “X11 RDP Server”, as it seems to use some native rdp functions, consuming fewer resources and giving better performance.

But the installation was a little bit tricky, and I get the same error Stuart was:

Code:
/usr/include/X11/extensions/Printstr.h:761: error: expected specifier-qualifier-list before 'PrivateRec'
The “Printstr.h” is part of the xorg-x11-proto-devel source files, so not so much to do…

But after some googling and reading I found a different definition for the offending function (in the _XpContext structure) on which the line all wasthe same except thta the line “PrivateRec *devPrivates;” appears as “DevUnion *devPrivates;”. Not sure of what I was doing but I edited the file, change this line, tried to install again and… tadaaa, it woks!


To facilitate the work here they're steps I did:

- They’re some required modules to compilethe X11rdp server, like “xorg-x11-proto-devel”, “openssl-devel”, “pam-devel” or “gcc” (don’t remember if they’re more modules required, experiment by yourself…). As before I did this task using YaST.

- Untar the server source file (x11rdp_xorg71.tar.gz) in a temporary folder.

- Not sure if at this time this step is still required, but I follow the recommendations from shadowsnipes to add the “--with-fontdir=” parameter to the “./configure” command to recompile the X11 server in the buildx.sh script file (line 815). In my case the correct directory is “/usr/share/fonts”:

Code:
# xorg-server
if ! test -f $PCFILEDIR/xorg-server.pc
then
  cd xorg-server-X11R7.1-1.1.0
  ./configure --prefix=$PREFIXDIR --with-fontdir=/usr/share/fonts --enable-xglx
--with-mesa-source=$SRCDIR/Mesa-6.5 --disable-dmx
  if ! test $? -eq 0
  then
    …
    …
- The next step is to edit the /usr/include/X11/extensions/Printstr.h and change it as follows (line 761):

Code:
typedef struct _XpContext {
        XID contextID;
        char *printerName;
        int screenNum;          /* screen containing the printer */
        struct _XpClient *clientHead; /* list of clients */
        CARD32 state;
        VisualID pageWin;
        /*PrivateRec *devPrivates;*/
        DevUnion *devPrivates;
        XpDriverFuncs funcs;
        ClientPtr clientSlept;
        int imageRes;
} XpContextRec, *XpContextPtr;
- Next one is easy. Simply execute as root the “buildx.sh” script with the required parameter (the build directory). In my case “/usr” is the correct one:

Code:
sh buildx.sh /usr
- As shadowsnipes says is a good time to do other things, as it is a time consuming process, but if all goes OK it is the last step and there is nothing else to do. The current version of the script takes care of all the compiling process and executes all the required configure, make and make install commands.

- At the end all the modules will be installed in the correct places and you only need to start your rdp client and connect to the “sesman-X11rdp” session module.

- Finally, I prefer to have this session as the default one, so as a final step I edited the “/etc/xrdp/xrdp.ini” file and move the “sesman-X11rdp” session to the first place.



Hope this helps others to have X11 RDP Server up and running. I’m delighted with mine


Bernardo.
 
Old 12-11-2010, 10:06 PM   #12
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
@bdiez

I am glad to hear that you have xrdp working on your system! Seeing your post prompted me to look back at the project again. I noticed that the newest version, however, is 0.4.2 dated 2010-11-24.

I am going to update my SlackBuild (buildscript) for this new version. It looks like the changes I need to make will be trivial.

The link you provided for the x11rdp sources is interesting. I had originally built my x11rdp from svn sources as described in my previous post. I might take a look at the source you pointed out.

One thing I recommend that you look into is if you inadvertently modified any of your system files outside of your x11rdp build environment. Check and see what the buildx.sh script does. I know at least with the svn the script had undergone some changes since I first worked with it. The last time I worked with the sources, they wouldn't build properly within a contained build folder (as you would using a SlackBuild for instance).
 
Old 12-12-2010, 11:29 AM   #13
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Updated SlackBuild for xrdp 0.4.2 submitted. I just changed the version numbers and the md5sum.

I looked into building x11RDP again. The problem I had with building it in a contained build environment is that I was building the entire X server first. You also have to install pieces along the way or the build won't complete due to dependency issues. This is completely unnecessary, however. Rather than modifying the entire buildx.sh script to build each piece in a contained environment, I modified it to just simply build x11rdp in a contained folder. This way I can build it as a normal user. All the other dependencies are already included in a default Slackware installation.

However, it doesn't build on Slackware 13.1 properly because xextproto 7.1.1's API is different than previous versions (Slackware 13.0 has an older version that should work). I'm trying to figure out how to modify the x11rdp code to build properly with the newer xextproto.

Update
Looking at the Makefile for the x11rdp component, it apparently looks for libs under the xorg server directory. If course, these are not there unless you build everything else. Oh well, it looks as though you have to install over the top of your current X install in order to build x11rdp. Doing this in a virtual machine or on an install you don't care about would be fine. You could then use the resulting x11rdp binary on your main install.

bdiez,

did you see any components skipped when you ran buildx.sh?

Last edited by shadowsnipes; 12-12-2010 at 01:37 PM. Reason: update
 
Old 12-13-2010, 03:38 AM   #14
bdiez
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Some skip messages, as far as I remember...

Hello shadowsnipes.

Good news you're hands on over this project again. Sure many people will be grateful.

I think the xrdp project in sourceforge is not updated too often and seems that in the http://server1.xrdp.org are the most up to date sources. In any case my goal was not to have the very new version running but a functional and stable one.

It's hard to remember if I got skipped elements when ran buildx.sh. You know, the process takes near to one hour to complete and the output was quite long. Unfortunately I didn't keep the installation log, but as far as I remember I'd several warnings and some skip messages. But the important thing is that at the end I didn't got any error message (like it was before editing the Printstr.h) and the x11rdp modules were correctly generated.

As you say, for me it wasn't painfull to execute the script,as I was working over a virtual machine non in production yet. But probably I would not have been so unwise if it had been a production system.

I'll digg a little in my server to try to find if the build log is hidden at any place and will post it if found.

Have good luck and much fun with your project.

Bernardo.
 
Old 12-13-2010, 04:47 PM   #15
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by bdiez View Post
I think the xrdp project in sourceforge is not updated too often and seems that in the http://server1.xrdp.org are the most up to date sources. In any case my goal was not to have the very new version running but a functional and stable one.
You are correct that the sourceforge project files are not updated too often. However, they are still the newest sources (see my post above) other than what is in svn. I have never had any issues with xrdp, but rather building x11rdp. I think you would be fine building xrdp 0.4.2 as it is stable AFAIK.

Quote:
Originally Posted by bdiez View Post
I'll digg a little in my server to try to find if the build log is hidden at any place and will post it if found.
It won't be unless you told it to throw the output somewhere. The script is pretty simple. You will have to rebuild it on a clean build environment if you want to capture the output. However, you can tell what was built by looking in the folders under the source. If you see a bunch of object (*.o) files and hidden folders like .libs/ then Make was run on those sources.

Regardless, I think the conclusion will be the same. If people want to build x11rdp they should use a system where they don't care about overwriting their X install (or don't have a complete one). I think that is the way it was intended to be built anyways. Perhaps in the future Jay and the rest of the team will change the code so that the x11rdp module can be built using the devel files from an existing X install. For now, it does not appear to be that way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xlock - Never authenticates first try kellinjar Linux - Software 3 07-08-2008 05:58 PM
any MAC users out there to help with RDP server for an iMAC? Lleb_KCir General 0 08-31-2005 04:23 PM
CVS how-to --- xrdp paul_mat Linux - Newbie 8 06-27-2005 05:09 PM
RDP installed but can't be a server? jsbmw Slackware 3 04-22-2005 04:37 PM
Secure server that allows for rdp redogre82 Linux - Software 1 09-04-2004 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration