Discussion:
[Xrdp-devel] Mac OS X 10.5.2 error during compiling xrdp
Snoop1990
2008-04-07 14:59:50 UTC
Permalink
Hey,
I downloaded the source code via cvs but now I do not know what to do !

I extracted the package and entered via terminal !
Then I run "make -o makefile.osx" to compile xrdp but I get:

make -C vnc
gcc -Wall -O2 -I../common -fPIC -c -o vnc.o vnc.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/os_calls.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/d3des.c
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [libvnc.so] Error 1
make: *** [base] Error 2



So I tried "make -C vnc -o makefile.osx" but I still get

gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
Undefined symbols:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libvnc.so] Error 1

I would be very pleased if you can help me to fix this Error ! I do
not understand it !

Thank you very much for help !

Regrades
Snoop 1990

snoop1990.co.cc
***@gmx.net
Devin Smith
2008-04-08 05:37:11 UTC
Permalink
Well, unfortunately xrdp is not entirely fucntional on Mac OSX. You
wont get a traditional
Mac OSX login window using an rdp client right now. You can see the
xrdp login window
and use the included session manager to connect to other RDP servers /
VNC servers but
that's about it. I submitted the Makefile.osx makefiles just to get
xrdp compiling on Mac
OSX. The correct command is:

make -f Makefile.osx

It will take a lot of work to get an RDP server working on Mac OSX
that allows background
quartz/aqua sessions.

Thanks,

Devin
Post by Snoop1990
Hey,
I downloaded the source code via cvs but now I do not know what to do !
I extracted the package and entered via terminal !
make -C vnc
gcc -Wall -O2 -I../common -fPIC -c -o vnc.o vnc.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/os_calls.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/d3des.c
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [libvnc.so] Error 1
make: *** [base] Error 2
So I tried "make -C vnc -o makefile.osx" but I still get
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libvnc.so] Error 1
I would be very pleased if you can help me to fix this Error ! I do
not understand it !
Thank you very much for help !
Regrades
Snoop 1990
snoop1990.co.cc
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xrdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Devin Smith
2008-04-08 18:17:05 UTC
Permalink
Here's hoping that gmail doesn't mess up the tab stops.

The following patch should be applied:

Index: sesman/tools/Makefile.osx
===================================================================
RCS file: /cvsroot/xrdp/xrdp/sesman/tools/Makefile.osx,v
retrieving revision 1.3
diff -u -r1.3 Makefile.osx
--- sesman/tools/Makefile.osx 17 Mar 2008 18:05:05 -0000 1.3
+++ sesman/tools/Makefile.osx 8 Apr 2008 18:12:27 -0000
@@ -1,6 +1,6 @@
# sesman tools makefile
SESTESTOBJ = sestest.o \
- os_calls.o
+ os_calls.o log.o
# d3des.o list.o file.o \
# libscp_v1c.o tcp.o

@@ -33,13 +33,13 @@
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c

#d3des.o: ../../common/d3des.c
-# $(CC) $(C_OS_FLAGS) ../../common/d3des.c
+ $(CC) $(C_OS_FLAGS) ../../common/d3des.c

#list.o: ../../common/list.c
-# $(CC) $(C_OS_FLAGS) ../../common/list.c
+ $(CC) $(C_OS_FLAGS) ../../common/list.c

#file.o: ../../common/file.c
-# $(CC) $(C_OS_FLAGS) ../../common/file.c
+ $(CC) $(C_OS_FLAGS) ../../common/file.c

log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
_main in sestest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [stest] Error 1
make[1]: *** [tools] Error 2
make: *** [kerberos] Error 2
(This is what I get when using "make -f Makefile.osx" )
Post by Devin Smith
Well, unfortunately xrdp is not entirely fucntional on Mac OSX. You
wont get a traditional
Mac OSX login window using an rdp client right now. You can see the
xrdp login window
and use the included session manager to connect to other RDP servers /
VNC servers but
that's about it. I submitted the Makefile.osx makefiles just to get
xrdp compiling on Mac
make -f Makefile.osx
It will take a lot of work to get an RDP server working on Mac OSX
that allows background
quartz/aqua sessions.
Thanks,
Devin
Post by Snoop1990
Hey,
I downloaded the source code via cvs but now I do not know what to do !
I extracted the package and entered via terminal !
make -C vnc
gcc -Wall -O2 -I../common -fPIC -c -o vnc.o vnc.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/os_calls.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/d3des.c
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [libvnc.so] Error 1
make: *** [base] Error 2
So I tried "make -C vnc -o makefile.osx" but I still get
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libvnc.so] Error 1
I would be very pleased if you can help me to fix this Error ! I do
not understand it !
Thank you very much for help !
Regrades
Snoop 1990
snoop1990.co.cc
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Post by Devin Smith
Post by Snoop1990
_______________________________________________
xrdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Snoop 1990
snoop1990.co.cc
Devin Smith
2008-04-08 18:43:58 UTC
Permalink
I've attached a gzipped copy of that Makefile.osx.
make -C tools -f Makefile.osx
Makefile.osx:4: *** missing separator. Stop.
make[1]: *** [tools] Error 2
I understand there is a missing seperator in line four but I do not
know how to change ...
Post by Devin Smith
# sesman tools makefile
SESTESTOBJ = sestest.o \
- os_calls.o
+ os_calls.o log.o
# d3des.o list.o file.o \
# libscp_v1c.o tcp.o
@@ -33,13 +33,13 @@
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
#d3des.o: ../../common/d3des.c
-# $(CC) $(C_OS_FLAGS) ../../common/d3des.c
+ $(CC) $(C_OS_FLAGS) ../../common/d3des.c
#list.o: ../../common/list.c
-# $(CC) $(C_OS_FLAGS) ../../common/list.c
+ $(CC) $(C_OS_FLAGS) ../../common/list.c
#file.o: ../../common/file.c
-# $(CC) $(C_OS_FLAGS) ../../common/file.c
+ $(CC) $(C_OS_FLAGS) ../../common/file.c
log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
And just to be sure I did not mix it up. I just replaced the code in
the makefile.osx (in the /sensman/tools directory) with the extract
above. Right ?
Sorry I am a for my bad english and my low skills but I am just a
german student. I have done some webdevelopment (with ruby on rails
and django (python))
but I have not yet developed any software for unix or mac os. ...
regrades Snoop1990
Snoop1990
2008-04-08 19:19:36 UTC
Permalink
Thank you very much for doing all those things to me, but there is
still some error.
I was able to compile it without any further errors.

Last two lines:

make -C sesman -f Makefile.osx tools
make[1]: `tools' is up to date.



But then I tried to install and get:

bash-3.2$ sudo make install -f makefile.osx
mkdir -p /usr/local/xrdp
mkdir -p /etc/xrdp
mkdir -p /var/run
mkdir -p /usr/local/man
mkdir -p /usr/doc/xrdp
make -C vnc install
install libvnc.so /usr/local/xrdp/libvnc.so
install: libvnc.so: No such file or directory
make[1]: *** [install] Error 71
make: *** [install] Error 2
Post by Devin Smith
I've attached a gzipped copy of that Makefile.osx.
make -C tools -f Makefile.osx
Makefile.osx:4: *** missing separator. Stop.
make[1]: *** [tools] Error 2
I understand there is a missing seperator in line four but I do not
know how to change ...
Post by Devin Smith
# sesman tools makefile
SESTESTOBJ = sestest.o \
- os_calls.o
+ os_calls.o log.o
# d3des.o list.o file.o \
# libscp_v1c.o tcp.o
@@ -33,13 +33,13 @@
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
#d3des.o: ../../common/d3des.c
-# $(CC) $(C_OS_FLAGS) ../../common/d3des.c
+ $(CC) $(C_OS_FLAGS) ../../common/d3des.c
#list.o: ../../common/list.c
-# $(CC) $(C_OS_FLAGS) ../../common/list.c
+ $(CC) $(C_OS_FLAGS) ../../common/list.c
#file.o: ../../common/file.c
-# $(CC) $(C_OS_FLAGS) ../../common/file.c
+ $(CC) $(C_OS_FLAGS) ../../common/file.c
log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
And just to be sure I did not mix it up. I just replaced the code
in the makefile.osx (in the /sensman/tools directory) with the
extract above. Right ?
Sorry I am a for my bad english and my low skills but I am just a
german student. I have done some webdevelopment (with ruby on rails
and django (python))
but I have not yet developed any software for unix or mac os. ...
regrades Snoop1990
<Makefile.osx.gz>
Snoop 1990

snoop1990.co.cc
***@gmx.net
Snoop1990
2008-04-08 18:38:40 UTC
Permalink
I get :

make -C tools -f Makefile.osx
Makefile.osx:4: *** missing separator. Stop.
make[1]: *** [tools] Error 2

I understand there is a missing seperator in line four but I do not
know how to change ...
Post by Devin Smith
# sesman tools makefile
SESTESTOBJ = sestest.o \
- os_calls.o
+ os_calls.o log.o
# d3des.o list.o file.o \
# libscp_v1c.o tcp.o
@@ -33,13 +33,13 @@
$(CC) $(C_OS_FLAGS) ../../common/os_calls.c
#d3des.o: ../../common/d3des.c
-# $(CC) $(C_OS_FLAGS) ../../common/d3des.c
+ $(CC) $(C_OS_FLAGS) ../../common/d3des.c
#list.o: ../../common/list.c
-# $(CC) $(C_OS_FLAGS) ../../common/list.c
+ $(CC) $(C_OS_FLAGS) ../../common/list.c
#file.o: ../../common/file.c
-# $(CC) $(C_OS_FLAGS) ../../common/file.c
+ $(CC) $(C_OS_FLAGS) ../../common/file.c
log.o: ../../common/log.c
$(CC) $(C_OS_FLAGS) ../../common/log.c
And just to be sure I did not mix it up. I just replaced the code in
the makefile.osx (in the /sensman/tools directory) with the extract
above. Right ?
Sorry I am a for my bad english and my low skills but I am just a
german student. I have done some webdevelopment (with ruby on rails
and django (python))
but I have not yet developed any software for unix or mac os. ...

regrades Snoop1990
Devin Smith
2008-04-08 20:54:50 UTC
Permalink
But I noticed that I have not compiled the Xserver (contained in the
xrdp package) ! And I can not compile it, just errors following
erros ... The readme says "Xserver is the files needed to build an rdp
specific X11 server" so is there any makefile.osx available or is X11
(coming with leopard) already compatible ?
I'm not sure this is needed. xrdp on Mac OSX doesn't need the Xserver
directory.
I have no idea, but I want to learn about xrdp because to me it seems
to be one of the most wonderful technologies at the moment. It allows
me to access my Mac from every windows computer connected to the web.
If it works ...
For now xrdp on Mac OSX will only allow you to connect to other rdp/vnc
servers. There is a lot of work that needs to be done to get to the
functionality that you might expect.

What needs to be done is to look at how to switch xrdp to work with
launchd (this is OSX's version of inetd). You can not launch a program
before Finder/Dock on Mac OSX without using launchd.

Also Mac OSX does not use PAM and I'm not familiar with authentication
through kerberos.
Regrades Snoop1990
Snoop1990
2008-04-08 21:10:58 UTC
Permalink
The Problem is the Error I get during the make install prozess:

make -C vnc install
install libvnc.so /usr/local/xrdp/libvnc.so
install: libvnc.so: No such file or directory
Post by Devin Smith
But I noticed that I have not compiled the Xserver (contained in
the xrdp package) ! And I can not compile it, just errors following
erros ... The readme says "Xserver is the files needed to build an
rdp specific X11 server" so is there any makefile.osx available or
is X11 (coming with leopard) already compatible ?
I'm not sure this is needed. xrdp on Mac OSX doesn't need the Xserver
directory.
I have no idea, but I want to learn about xrdp because to me it
seems to be one of the most wonderful technologies at the moment.
It allows me to access my Mac from every windows computer connected
to the web. If it works ...
For now xrdp on Mac OSX will only allow you to connect to other rdp/
vnc
servers. There is a lot of work that needs to be done to get to the
functionality that you might expect.
What needs to be done is to look at how to switch xrdp to work with
launchd (this is OSX's version of inetd). You can not launch a program
before Finder/Dock on Mac OSX without using launchd.
I found the following, hope this also works with [http://textsnippets.com/posts/show/1293
]
Post by Devin Smith
Also Mac OSX does not use PAM and I'm not familiar with authentication
through kerberos.
But it is possible to run xrdp on Mac OS X ? to me this sounds like it
is impossible.


Snoop 1990

snoop1990.co.cc
***@gmx.net
Snoop1990
2008-04-08 11:36:28 UTC
Permalink
Still a similar error:

Undefined symbols:
"_log_start", referenced from:
_main in sestest.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [stest] Error 1
make[1]: *** [tools] Error 2
make: *** [kerberos] Error 2

(This is what I get when using "make -f Makefile.osx" )
Post by Devin Smith
Well, unfortunately xrdp is not entirely fucntional on Mac OSX. You
wont get a traditional
Mac OSX login window using an rdp client right now. You can see the
xrdp login window
and use the included session manager to connect to other RDP servers /
VNC servers but
that's about it. I submitted the Makefile.osx makefiles just to get
xrdp compiling on Mac
make -f Makefile.osx
It will take a lot of work to get an RDP server working on Mac OSX
that allows background
quartz/aqua sessions.
Thanks,
Devin
Post by Snoop1990
Hey,
I downloaded the source code via cvs but now I do not know what to do !
I extracted the package and entered via terminal !
make -C vnc
gcc -Wall -O2 -I../common -fPIC -c -o vnc.o vnc.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/os_calls.c
gcc -Wall -O2 -I../common -fPIC -c -g ../common/d3des.c
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [libvnc.so] Error 1
make: *** [base] Error 2
So I tried "make -C vnc -o makefile.osx" but I still get
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libvnc.so] Error 1
I would be very pleased if you can help me to fix this Error ! I do
not understand it !
Thank you very much for help !
Regrades
Snoop 1990
snoop1990.co.cc
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xrdp-devel mailing list
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Snoop 1990

snoop1990.co.cc
***@gmx.net
Snoop1990
2008-04-08 19:39:53 UTC
Permalink
Here is the hole install log:

bash-3.2$ sudo make -f makefile.osx
make -C vnc -f Makefile.osx
make[1]: Nothing to be done for `all'.
make -C libxrdp -f Makefile.osx
make[1]: Nothing to be done for `all'.
make -C xrdp -f Makefile.osx
make[1]: Nothing to be done for `all'.
make -C rdp -f Makefile.osx
make[1]: Nothing to be done for `all'.
make -C xup -f Makefile.osx
make[1]: Nothing to be done for `all'.
make -C sesman -f Makefile.osx kerberos
make -C libscp -f Makefile.osx
gcc -dynamiclib -Wl,-flat_namespace -Wl,-undefined -Wl,suppress -
lpthread -o libscp.0.0.dylib libscp_vX.o libscp_v0.o libscp_v1s.o
libscp_v1c.o libscp_init.o libscp_lock.o libscp_tcp.o libscp_session.o
libscp_connection.o os_calls.o
ln -f -s libscp.0.0.dylib libscp.dylib
gcc -L./libscp -lpthread -ldl -lscp -o sesman sesman.o config.o sig.o
session.o env.o os_calls.o d3des.o list.o file.o log.o access.o scp.o
scp_v0.o scp_v1.o thread.o lock.o verify_user_kerberos.o -lkrb5
make -C sesman -f Makefile.osx tools
make[1]: `tools' is up to date.

All ok !

But I noticed that I have not compiled the Xserver (contained in the
xrdp package) ! And I can not compile it, just errors following
erros ... The readme says "Xserver is the files needed to build an rdp
specific X11 server" so is there any makefile.osx available or is X11
(coming with leopard) already compatible ?

I have no idea, but I want to learn about xrdp because to me it seems
to be one of the most wonderful technologies at the moment. It allows
me to access my Mac from every windows computer connected to the web.
If it works ...

Regrades Snoop1990
Snoop1990
2008-04-08 21:34:50 UTC
Permalink
I modified the installer script and got some steps forward:

makefile.osx


DESTDIR = /usr/local/xrdp
CFGDIR = /etc/xrdp
PIDDIR = /var/run
MANDIR = /usr/local/man
DOCDIR = /usr/doc/xrdp

all: kerberos

world: base
$(MAKE) -C sesman

base:
$(MAKE) -C vnc -f Makefile.osx
$(MAKE) -C libxrdp -f Makefile.osx
$(MAKE) -C xrdp -f Makefile.osx
$(MAKE) -C rdp -f Makefile.osx
$(MAKE) -C xup -f Makefile.osx

nopam: base
$(MAKE) -C sesman nopam
$(MAKE) -C sesman tools

kerberos: base
$(MAKE) -C sesman -f Makefile.osx kerberos
$(MAKE) -C sesman -f Makefile.osx tools

clean:
$(MAKE) -C vnc -f Makefile.osx clean
$(MAKE) -C libxrdp -f Makefile.osx clean
$(MAKE) -C xrdp -f Makefile.osx clean
$(MAKE) -C rdp -f Makefile.osx clean
$(MAKE) -C sesman -f Makefile.osx clean
$(MAKE) -C xup -f Makefile.osx clean

install:
mkdir -p $(DESTDIR)
mkdir -p $(CFGDIR)
mkdir -p $(PIDDIR)
mkdir -p $(MANDIR)
mkdir -p $(DOCDIR)
$(MAKE) -C vnc install -f Makefile.osx
$(MAKE) -C libxrdp install -f Makefile.osx
$(MAKE) -C xrdp install -f Makefile.osx
$(MAKE) -C rdp install -f Makefile.osx
$(MAKE) -C sesman install -f Makefile.osx
$(MAKE) -C xup install -f Makefile.osx
$(MAKE) -C docs install -f Makefile.osx
if [ -d /etc/pam.d ]; then install instfiles/pam.d/sesman/etc/pam.d/
sesman; fi
install instfiles/xrdp_control.sh $(DESTDIR)/xrdp_control.sh






I added -f Makefile.osx behind every $(MAKE) -C ... request in the
install procedure.

This worked but then I get the following :

make -C libscp install
install libscp.so.1.0.0 /usr/local/xrdp/libscp.so.1.0.0
install: libscp.so.1.0.0: No such file or directory
make[2]: *** [install] Error 71
make[1]: *** [install] Error 2
make: *** [install] Error 2
Snoop1990
2008-04-08 21:40:10 UTC
Permalink
After fixing some more wrong configurations I get:

if [ -d /etc/pam.d ]; then install instfiles/pam.d/sesman/etc/pam.d/
sesman; fi
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64


I do not understand that part, any idea what to do ?
Where to submit the changes I did to the makefile.osx files ?

Regrades Snoop1990
Snoop1990
2008-04-08 22:28:20 UTC
Permalink
Login failed

After rebooting the mac I get the login failed message. There still
seems to be some problem !

I noticed some error during running the .sh script !

ps: illegal option -- -
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]

please help again.
Regrades Snoop1990
Jay Sorg
2008-04-10 06:52:08 UTC
Permalink
Post by Snoop1990
Login failed
After rebooting the mac I get the login failed message. There still
seems to be some problem !
I noticed some error during running the .sh script !
ps: illegal option -- -
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
xrdp_control.sh uses this function to see if xrdp is running.

is_xrdp_running()
{
ps u --noheading -C $XRDP | grep -q -i $XRDP
if test $? -eq 0
then
return 1;
else
return 0;
fi
}

Its the ps u ... command that must be failing.
Can tell what is causing it to fail.
You can type 'ps u --noheading -C xrdp'
It should return without an error.
Maybe the u should be removed.
What the command should do is print some text if xrdp is running and
print nothing if it is not.

Jay
Snoop1990
2008-04-10 12:18:53 UTC
Permalink
Post by Jay Sorg
Post by Snoop1990
Login failed
After rebooting the mac I get the login failed message. There still
seems to be some problem !
I noticed some error during running the .sh script !
ps: illegal option -- -
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
xrdp_control.sh uses this function to see if xrdp is running.
is_xrdp_running()
{
ps u --noheading -C $XRDP | grep -q -i $XRDP
if test $? -eq 0
then
return 1;
else
return 0;
fi
}
Its the ps u ... command that must be failing.
Can tell what is causing it to fail.
You can type 'ps u --noheading -C xrdp'
It should return without an error.
Maybe the u should be removed.
What the command should do is print some text if xrdp is running and
print nothing if it is not.
Jay
I did ps -c and saw the following:

268 ttys000 0:00.00 ./xrdp
270 ttys000 0:00.01 ./sesman

So both sensman and xrdp are running.

I also did some portscan and saw port 3389 (RDP) is opened as well as
port 3350 (sesman) .

But when I try to connect to xrdp (using rdesktop on the same user or
another user (fast user switching enabled)) I get:

connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login failed

I launched xrdp as root and try to connect to my user interface
(already locked in).

Maybe there is some error between the different Vnc servers, shall I
activate or deactivate the Mac OS X internal vnc server ?



Snoop 1990

snoop1990.co.cc
***@gmx.net
Devin Smith
2008-04-11 16:31:17 UTC
Permalink
Post by Snoop1990
Post by Jay Sorg
Post by Snoop1990
Login failed
After rebooting the mac I get the login failed message. There still
seems to be some problem !
I noticed some error during running the .sh script !
ps: illegal option -- -
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
xrdp_control.sh uses this function to see if xrdp is running.
is_xrdp_running()
{
ps u --noheading -C $XRDP | grep -q -i $XRDP
if test $? -eq 0
then
return 1;
else
return 0;
fi
}
Its the ps u ... command that must be failing.
Can tell what is causing it to fail.
You can type 'ps u --noheading -C xrdp'
It should return without an error.
Maybe the u should be removed.
What the command should do is print some text if xrdp is running and
print nothing if it is not.
Jay
268 ttys000 0:00.00 ./xrdp
270 ttys000 0:00.01 ./sesman
So both sensman and xrdp are running.
I also did some portscan and saw port 3389 (RDP) is opened as well as
port 3350 (sesman) .
But when I try to connect to xrdp (using rdesktop on the same user or
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login failed
I launched xrdp as root and try to connect to my user interface
(already locked in).
Maybe there is some error between the different Vnc servers, shall I
activate or deactivate the Mac OS X internal vnc server ?
Well I never much tested kerberos support on Mac OSX.
All I did was add Makefiles to xrdp so that it would
compile on Mac OSX. What you are getting is
expected behavior on Mac OSX.
Simone Fedele
2008-04-11 11:48:15 UTC
Permalink
Post by Snoop1990
But when I try to connect to xrdp (using rdesktop on the same user or
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to sesman
login failed
what does sesman.log say?
Post by Snoop1990
I launched xrdp as root and try to connect to my user interface
(already locked in).
I assume that you mean "logged in"
Post by Snoop1990
Maybe there is some error between the different Vnc servers, shall I
activate or deactivate the Mac OS X internal vnc server ?
If you're trying to log on your rinning session, then you should not use any
sesman-* connection, for sesman starts it's own session (Xvnc or X11rdp).
you need to edit the connections in xrdp.ini to match your running vnc
server.

S.
--
I'm a rebel - rebel - don't you just know it
I'm a rebel - rebel
And they're all laughing at me

Accept - I'm A Rebel
Snoop1990
2008-04-10 22:29:03 UTC
Permalink
Hey,
I am still unable to login, so my question was if it would be possible
to use another vnc server ? and how to do it.
I also noticed, I am unable to access any other server on my network,
using the options provided on the xrdp interface.
There are other vnc and rdp server around but I can not connect. But I
can connect using my stand alone vnc / rdp client.
I would be very grateful if you can tell me how to solve my issues.

Regrades Snoop1990
Jay Sorg
2008-04-08 06:11:53 UTC
Permalink
Post by Snoop1990
I downloaded the source code via cvs but now I do not know what to do !
I extracted the package and entered via terminal !
Hey Snoop,

I thought it was 'make -f makfile.osx'
Maybe it doesn't matter.
We need in implement the pkg-config system eventually.

Jay
Loading...