Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Connect to Windows Terminal Servers via X11 UNIX
This hint probably isn't suprising for some of the more UNIX-centric people but it might be useful for students or others who have to work in a windows NT or 2k enviroment.

The CS department at my school requires that all MP's (machine problems) be done in the labs or over a remote connection to a computer in the lab. For the Sun systems, I can SSH in or forward X11, but my most recent CS class required me to do my work on Windows 2K. Remote connecting to these machines meant connecting to a Windows Terminal server (think Timbuktu or Apple Remote Desktop) via RDP (Remote Desktop Protocol).

A Windows client is distributed by Microsoft and there is also an GPL linux client called rdesktop available at www.rdesktop.org. On a whim, I tried installing the linux client and it compiled and installed without a hitch. It requires you to have a X window system installed. In my case the latest public release of the Apple X11 client along with the SDK. I'm not sure if the SDK is necessary, but if you have problems building rdesktop, install the SDK and try again.

Once installed, you can start Terminal sessions from xterm with the command

rdesktop -u <username> -p <password> server[:port]
Include a -f flag to work in full screen mode. I hope this is helpful to somebody.
    •    
  • Currently 1.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[9,778 views]  

Connect to Windows Terminal Servers via X11 | 13 comments | Create New Account
Click here to return to the 'Connect to Windows Terminal Servers via X11' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Connect to Windows Terminal Servers via X11
Authored by: patashnik on Feb 20, '03 10:37:59AM
Microsoft offers a Remote Desktop client for OSX as well. You can find it at http://www.microsoft.com/mac/products/rdc/

[ Reply to This | # ]
Connect to Windows Terminal Servers via X11
Authored by: xpeed on Feb 20, '03 09:29:17PM

i must say, this is running circles around the RDC from ms...
i may be missing some colors, but i can live with that for the sake of speed (in this case, of course ;)

mike



[ Reply to This | # ]
Connect to Windows Terminal Servers via X11
Authored by: hschickel on Feb 20, '03 11:49:12AM

rdesktop is available as source from Fink as well.

Just compiled it and it's quite nice.

Hugh



[ Reply to This | # ]
Fink Command
Authored by: paulio on Feb 21, '03 05:21:13PM
Once you install Fink, go to the terminal and type the command:

fink install rdesktop

and wait for it to compile.

[ Reply to This | # ]
Fink Command
Authored by: paulio on Feb 21, '03 05:21:37PM
Once you install Fink, go to the terminal and type the command:

fink install rdesktop

and wait for it to compile.

[ Reply to This | # ]
Connect to Windows Terminal Servers via X11
Authored by: cynikal on Feb 20, '03 03:59:22PM

if you are compiling anythign X11 related, you will definately need the SDK for X11 from Apple, otherwise you do not have any header files (such as x11.h) which are needed for #include definitions for X11 functions.



[ Reply to This | # ]
Don't forget VNC
Authored by: clarkcb on Feb 20, '03 08:31:16PM

You can accomplish the same by installing and running a VNC server on your Windows machine (this works even if the Windows machine does not have Terminal Services or Remote Desktop Services) and a VNC client on your Mac. TightVNC is a nice server for Windows, and VNCDimension is a pretty good client for OS X. There also a client called VNCThing that I have not tried. Both of the clients are available from Apple's OS X downloads area under the Networking / Security category. TightVNC can be downloaded from tightvnc.com.



[ Reply to This | # ]
Don't forget VNC
Authored by: kerouassady on Feb 20, '03 08:56:35PM

Actually, its not the same thing at all. Windows Terminal services establishes an actual user session under your login through the machine/domain. You are a user on the machine. It is as if you walked up to it and logged in. You get your Documents folder, your desktop, etc. VNC simply gives you remote control over whatever state the machine is in at the time. All you login with is a password. There aren't unique usernames. VNC is great for sysadmins but not for regular users. This is Microsoft's attempt at emulating the remote terminal functionality of XWindows, UNIX, etc. They, like Termical Services, give you your own space to work in. If a VNC server is configured to allow multiple people to login, then you're all fighting over mouse control of the same desktop while whoever is standing next to the actual server is wondering what the heck is going on.



[ Reply to This | # ]
Don't forget VNC
Authored by: kerouassady on Feb 20, '03 09:01:07PM
Also, VNC is much slower that RDC. RDC can be somewhat pokey for me if the server is busy, like our web server (Win2K, I'm ashamed to say). I hope rdesktop is faster.

[ Reply to This | # ]
Connect to Windows Terminal Servers via X11
Authored by: Anonymous on Feb 21, '03 01:30:24PM

M$ actually distributes a Mac OS X app that lets you do the same thing, without requiring VNC or X11. Just download Remote Desktop Connection it from http://www.microsoft.com/mac/DOWNLOAD/MISC/RDC.asp>

For this to work, the target machine be running Terminal Services or Remote Desktop Services, supported on XP Professional, 2000 Server, and NT Server 4.0.

The app works so well that I stopped using Virtual PC altogether: I just use RDC to connect to a Windows box for anything that I need to do in Windows. You can even cut and paste between RDC and Mac OS X.



[ Reply to This | # ]
Connect to Windows Terminal Servers via X11
Authored by: legacyb4 on Feb 26, '03 02:25:34AM

MS's Remote Desktop Client is also easily passed over an SSH tunnel with the -L 3389:your.remote.windows.client:3389 parameter if you have a *Nix box running on the same network.

Either that or simply VPN in over PPTP although SSH is more elegant with less disruption to other network activities.



[ Reply to This | # ]
Conecting to Solaris Boxes?
Authored by: rsnyder on Mar 03, '03 08:35:44PM

I have been looking all over for a straightforward set of instructions for forwarding display from a Sun box to my OS X laptop using Apple X11 via SSH.

I want to be able to display the Solaris Common Desktop Environment so that I can run GUI applications on the Sun box remotely from my OS X powerbook.

Can anyone who has had luck doing this post the instructions as a Hint?

Thanks!



[ Reply to This | # ]
Conecting to Solaris Boxes?
Authored by: andrewrn on Nov 25, '04 01:48:12PM

when you SSH into the server, you need to put the -X flag to automatically forward X windows to your system. Before you do so however, you may need to perform the following (I can't remember if you need to or not)

xhost +yourServerNameHere
but only for the first time on that computer

then just type:

ssh -X yourservernamehere

login and when you run any programs which use X11, they should display in X11 on your mac.



[ Reply to This | # ]