Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to Linux guest via RDP 2

Status
Not open for further replies.

withanh

IS-IT--Management
Dec 17, 2008
221
US
I have searched for and not found any articles on how to set up a Linux (Debian Lenny) guest so I can use RDP to connect.

I know, I know, why would I want to use RDP to connect when I could use VNC or anything else? I've got a Wyse WinTerm 3125 that only knows RDP and the Citrix ICA.

When searching I found plenty of ways for a Linux host to use RDP to connect to a Windows guest, but I want to go the other way around.

I would also be open to using the Citrix ICA to connect to my Linux box if that also works.

Thanks!

h

 
You could always start vnc on port 3389. That'll fool the router. :)
 
Sure, but will VNC answer an RDP request?
 
That won't help since he doesn't have VNC client capability on the terminal. If I am not mistaken you have a web browser built in to the Winterm. You can always install Webmin on your Linux box and then manage it using the browser on the Winterm terminal
 
You are correct about the terminal. It's not about managing the server, but Webmin would be a great option for that.

It's actually a kitchen computer at my house and I want to build a desktop as a VM on my ESXi vSphere host. Then connect to that desktop "in the cloud". That way I don't have to have a noisy PC in my kitchen, just this small and quiet WinTerm tucked away.

 
since the Winterm also supports telnet, have you tried that?
 
I use nomachine, and it's probably the best remote access app out there.

"We can categorically state that we have not released man-eating badgers into the area" - Major Mike Shearer
 
I cant believe I entered "addition" instead of "edition".
I wasnt awake yet.
Sorry
 
If you are going to have a windows VM on the ESX Host, you will use RDP to the WINDOWS VM and not the Linux server... Or am I mis-understanding something?
 
@itsp1965 telnet only gives CLI, I want/need GUI.

@engjohn, I am running a Linux VM that I am trying to connect to from my Winterm. Winterm supports RDP or ICA for connections.

 
Have a look at xrdp.

- xrdp: An open source remote desktop protocol(rdp) server.


- xrdp


xrdp is an open source remote desktop protocol (RDP) server based on the work of rdesktop. The goal of the project is to create a fully functional Linux terminal server, capable of accepting connections from rdesktop and Microsoft's own Terminal Server and Remote Desktop Connection clients.

Joey
CCNA, MCSA 2003, MCP, A+, Network+, Wireless#
 
Yeah, that looks like the ticket. I'll see if I can get it running. It says they got it working under Debian/Lenny which is what I use, so I'm thinking this should be right for me.

Thanks!
 
Well, I think that the xrdp is what I want, but when I start the install, it errors out. I think I'm missing a component, but I am really not sure what is missing.

If someone could look through this and let me know if something is obvious to them that isn't to me. Thanks!

It seems like it's missing something from openssl, but when I
Code:
apt-get install openssl
it tells me
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
which tells me that openssl is installed properly.

Code:
make -C vnc
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/vnc'
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/vnc'
make -C libxrdp
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/libxrdp'
gcc -Wall -O2 -I../common -fPIC -DXRDP_CFG_FILE=\"/etc/xrdp/xrdp.ini\" -DXRDP_KEY_FILE=\"/etc/xrdp/rsakeys.ini\" -c ../common/ssl_calls.c
../common/ssl_calls.c:24:25: error: openssl/rc4.h: No such file or directory
../common/ssl_calls.c:25:25: error: openssl/md5.h: No such file or directory
../common/ssl_calls.c:26:25: error: openssl/sha.h: No such file or directory
../common/ssl_calls.c:27:24: error: openssl/bn.h: No such file or directory
../common/ssl_calls.c: In function âssl_rc4_info_createâ:
../common/ssl_calls.c:39: error: âRC4_KEYâ undeclared (first use in this function)
../common/ssl_calls.c:39: error: (Each undeclared identifier is reported only once
../common/ssl_calls.c:39: error: for each function it appears in.)
../common/ssl_calls.c: In function âssl_rc4_set_keyâ:
../common/ssl_calls.c:53: warning: implicit declaration of function âRC4_set_keyâ
../common/ssl_calls.c:53: error: âRC4_KEYâ undeclared (first use in this function)
../common/ssl_calls.c:53: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_rc4_cryptâ:
../common/ssl_calls.c:60: warning: implicit declaration of function âRC4â
../common/ssl_calls.c:60: error: âRC4_KEYâ undeclared (first use in this function)
../common/ssl_calls.c:60: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_sha1_info_createâ:
../common/ssl_calls.c:69: error: âSHA_CTXâ undeclared (first use in this function)
../common/ssl_calls.c: In function âssl_sha1_clearâ:
../common/ssl_calls.c:83: warning: implicit declaration of function âSHA1_Initâ
../common/ssl_calls.c:83: error: âSHA_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:83: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_sha1_transformâ:
../common/ssl_calls.c:90: warning: implicit declaration of function âSHA1_Updateâ
../common/ssl_calls.c:90: error: âSHA_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:90: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_sha1_completeâ:
../common/ssl_calls.c:97: warning: implicit declaration of function âSHA1_Finalâ
../common/ssl_calls.c:97: error: âSHA_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:97: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_md5_info_createâ:
../common/ssl_calls.c:106: error: âMD5_CTXâ undeclared (first use in this function)
../common/ssl_calls.c: In function âssl_md5_clearâ:
../common/ssl_calls.c:120: warning: implicit declaration of function âMD5_Initâ
../common/ssl_calls.c:120: error: âMD5_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:120: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_md5_transformâ:
../common/ssl_calls.c:127: warning: implicit declaration of function âMD5_Updateâ
../common/ssl_calls.c:127: error: âMD5_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:127: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_md5_completeâ:
../common/ssl_calls.c:134: warning: implicit declaration of function âMD5_Finalâ
../common/ssl_calls.c:134: error: âMD5_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:134: error: expected expression before â)â token
../common/ssl_calls.c: In function âssl_mod_expâ:
../common/ssl_calls.c:162: error: âBN_CTXâ undeclared (first use in this function)
../common/ssl_calls.c:162: error: âctxâ undeclared (first use in this function)
../common/ssl_calls.c:163: error: âBIGNUMâ undeclared (first use in this function)
../common/ssl_calls.c:163: error: expected â;â before âlmodâ
../common/ssl_calls.c:164: error: expected â;â before âlexpâ
../common/ssl_calls.c:165: error: expected â;â before âlinâ
../common/ssl_calls.c:166: error: expected â;â before âloutâ
../common/ssl_calls.c:183: warning: implicit declaration of function âBN_CTX_newâ
../common/ssl_calls.c:184: warning: implicit declaration of function âBN_initâ
../common/ssl_calls.c:184: error: âlmodâ undeclared (first use in this function)
../common/ssl_calls.c:185: error: âlexpâ undeclared (first use in this function)
../common/ssl_calls.c:186: error: âlinâ undeclared (first use in this function)
../common/ssl_calls.c:187: error: âloutâ undeclared (first use in this function)
../common/ssl_calls.c:188: warning: implicit declaration of function âBN_bin2bnâ
../common/ssl_calls.c:191: warning: implicit declaration of function âBN_mod_expâ
../common/ssl_calls.c:192: warning: implicit declaration of function âBN_bn2binâ
../common/ssl_calls.c:202: warning: implicit declaration of function âBN_freeâ
../common/ssl_calls.c:206: warning: implicit declaration of function âBN_CTX_freeâ
make[1]: *** [ssl_calls.o] Error 1
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/libxrdp'
make: *** [base] Error 2

 
You probably need the openssl-devel package which would include the headers that allow you to compile SSL programmes; openssl on its own would only contain the library for use with precompiled programmes.

Annihilannic.
 
Excellent, I'll install that and see what happens.

Much appreciated!

h
 
Turns out the package is called libssl-dev, not openssl-dev. But that still doesn't help. Ugh!
 
It's called openssl-devel on Red Hat-like systems, which is all I have access to right now; does libssl-dev include the file /usr/include/openssl/rc4.h for example?

If you can't locate a suitable package, perhaps downloading the OpenSSL source and pulling out the required header files would be a viable workaround, but it could be a little fiddly.

Annihilannic.
 
Here's my current result from running make (this is after libssl-dev has been installed)

Code:
make -C vnc
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/vnc'
gcc -shared -o libvnc.so vnc.o os_calls.o d3des.o -ldl
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/vnc'
make -C libxrdp
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/libxrdp'
gcc -shared -o libxrdp.so libxrdp.o xrdp_tcp.o xrdp_iso.o xrdp_mcs.o xrdp_sec.o xrdp_rdp.o xrdp_orders.o xrdp_bitmap_compress.o xrdp_channel.o os_calls.o ssl_calls.o file.o -ldl -lcrypto
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/libxrdp'
make -C xrdp
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/xrdp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/xrdp'
make -C rdp
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/rdp'
gcc -shared -o librdp.so ssl_calls.o os_calls.o rdp.o rdp_tcp.o rdp_iso.o rdp_mcs.o rdp_sec.o rdp_orders.o rdp_bitmap.o rdp_rdp.o rdp_lic.o -ldl -lcrypto
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/rdp'
make -C xup
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/xup'
gcc -shared -o libxup.so os_calls.o xup.o -ldl
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/xup'
make -C sesman
make[1]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/sesman'
make -C libscp
make[2]: Entering directory `/home/tsuser/Downloads/xrdp-0.4.1/sesman/libscp'
gcc -shared -L/usr/gnu/lib -L/usr/lib/nptl -lpthread -o libscp.so libscp_vX.o libscp_v0.o libscp_v1s.o libscp_v1c.o libscp_init.o libscp_lock.o libscp_tcp.o os_calls.o
make[2]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/sesman/libscp'
gcc -Wall -O2 -I../common -I/usr/include/nptl -I./libscp -DSESMAN_CFG_FILE=\"/etc/xrdp/sesman.ini\" -DSESMAN_PID_FILE=\"/var/run/sesman.pid\" -DSESMAN_SESSVC_FILE=\"sessvc\"   -c -o verify_user_pam.o verify_user_pam.c
verify_user_pam.c:32:31: error: security/pam_appl.h: No such file or directory
verify_user_pam.c:45: error: field ‘pamc’ has incomplete type
verify_user_pam.c:46: error: expected specifier-qualifier-list before ‘pam_handle_t’
verify_user_pam.c:52: warning: ‘struct pam_response’ declared inside parameter list
verify_user_pam.c:52: warning: its scope is only this definition or declaration, which is probably not what you want
verify_user_pam.c:52: warning: ‘struct pam_message’ declared inside parameter list
verify_user_pam.c: In function ‘verify_pam_conv’:
verify_user_pam.c:58: error: invalid application of ‘sizeof’ to incomplete type ‘struct pam_response’ 
verify_user_pam.c:61: error: dereferencing pointer to incomplete type
verify_user_pam.c:63: error: ‘PAM_PROMPT_ECHO_ON’ undeclared (first use in this function)
verify_user_pam.c:63: error: (Each undeclared identifier is reported only once
verify_user_pam.c:63: error: for each function it appears in.)
verify_user_pam.c:65: error: invalid use of undefined type ‘struct pam_response’
verify_user_pam.c:65: error: dereferencing pointer to incomplete type
verify_user_pam.c:66: error: invalid use of undefined type ‘struct pam_response’
verify_user_pam.c:66: error: dereferencing pointer to incomplete type
verify_user_pam.c:66: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
verify_user_pam.c:68: error: ‘PAM_PROMPT_ECHO_OFF’ undeclared (first use in this function)
verify_user_pam.c:70: error: invalid use of undefined type ‘struct pam_response’
verify_user_pam.c:70: error: dereferencing pointer to incomplete type
verify_user_pam.c:71: error: invalid use of undefined type ‘struct pam_response’
verify_user_pam.c:71: error: dereferencing pointer to incomplete type
verify_user_pam.c:76: error: ‘PAM_CONV_ERR’ undeclared (first use in this function)
verify_user_pam.c: In function ‘auth_userpass’:
verify_user_pam.c:113: warning: implicit declaration of function ‘pam_start’
verify_user_pam.c:113: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:114: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
verify_user_pam.c:116: warning: implicit declaration of function ‘pam_strerror’
verify_user_pam.c:116: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:120: warning: implicit declaration of function ‘pam_authenticate’
verify_user_pam.c:120: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:124: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:128: warning: implicit declaration of function ‘pam_acct_mgmt’
verify_user_pam.c:128: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:132: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c: In function ‘auth_start_session’:
verify_user_pam.c:150: warning: implicit declaration of function ‘pam_set_item’
verify_user_pam.c:150: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:150: error: ‘PAM_TTY’ undeclared (first use in this function)
verify_user_pam.c:151: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
verify_user_pam.c:153: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:156: warning: implicit declaration of function ‘pam_setcred’
verify_user_pam.c:156: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:156: error: ‘PAM_ESTABLISH_CRED’ undeclared (first use in this function)
verify_user_pam.c:159: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:163: warning: implicit declaration of function ‘pam_open_session’
verify_user_pam.c:163: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:167: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c: In function ‘auth_end’:
verify_user_pam.c:185: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:189: warning: implicit declaration of function ‘pam_close_session’
verify_user_pam.c:189: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:193: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:193: error: ‘PAM_DELETE_CRED’ undeclared (first use in this function)
verify_user_pam.c:195: warning: implicit declaration of function ‘pam_end’
verify_user_pam.c:195: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:195: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
verify_user_pam.c:196: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c: In function ‘auth_set_env’:
verify_user_pam.c:220: warning: implicit declaration of function ‘pam_getenvlist’
verify_user_pam.c:220: error: ‘struct t_auth_info’ has no member named ‘ph’
verify_user_pam.c:220: warning: assignment makes pointer from integer without a cast
make[1]: *** [verify_user_pam.o] Error 1
make[1]: Leaving directory `/home/tsuser/Downloads/xrdp-0.4.1/sesman'
make: *** [world] Error 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top