Tech tips: Administering Windows from Linux

Working in a cross-platform data centre is now the rule rather than the exception for the vast majority of administrators, as both Windows and Linux have made inroads into organisations around the world.

But because the two operating systems are so different, allowing fluid communication between them can be a challenge. That's where rdesktop comes in.

Rdesktop is a Linux implementation of Remote Display Protocol (RDP). Windows uses RDP to connect to other Windows computers via Terminal Services. With rdesktop, you can open a remote control session on a Windows NT/2000/XP machine from a Linux box.

Rdesktop lets you pull up a Windows desktop remotely and perform any function just as if you were sitting directly in front of it. For instance, you might set up a Web page on a remote Windows 2000 server or add a user to your NT domain in the data centre. Rdesktop is like PCAnywhere, but with total control of the remote desktop and much better performance.

Because it's released under the GPL open source license, rdesktop has no licensing fees on the client side. But you still need to keep track of how many Terminal Services client licenses are used from your terminal server.

Getting and installing rdesktop
Rdesktop is widely available and is included in packages for most major distributions, such as Mandrake, Red Hat, and Debian. As always, your best bet is to use your distribution's package manager to find and install rdesktop.

You can obtain and install the source code on most any Linux system. Special GUIs are available for rdesktop. For instance, Mandrake offers RFBdrake, which allows you to graphically start rdesktop sessions. RFBdrake lets you connect Linux machines when run in server mode, as well.

The rdesktop program is available for free at rdesktop.org. The source package is only about 80 KB, so it makes for a quick download.

Once you have rdesktop on your system, you just need to uncompress and install the software. Running the following commands should be enough to get you started:


tar xpfz rdesktop-1.1.0.tar.gz
cd rdesktop-1.1.0
./configure
make
make install

This point of the installation is a good time to configure any firewalls that may be in the path of communication. By default, rdesktop will use TCP port 3389 to connect to a Windows machine. You will need to open this port, but limiting access to specific IP addresses or subnets is a good idea. Since this port allows remote access to your server, you'll want to keep it secured. Always make sure that you have rdesktop prompt for a password, especially if the system in question is connected to the Internet.

Rdesktop is easy to use. Let's say you want to log in to the local Exchange server as administrator from your Linux workstation. You would simply type something similar to:

rdesktop -u administrator -g 1024x768+0+0 ex-mail-01.example.com
As you can see, we call the rdesktop command and pass it the username administrator. Then, we specify the desktop geometry to be 1024x768, starting at 0 x and y offsets. You can change this to meet your needs. Next is the hostname of the server we want to connect to, in this case ex-mail-01.example.com. For easier access, you can create a little script or an alias for each remote Windows machine you need to access.

Here are some of the other options you can include:

-u: username
-d: domain
-s: shell
-c: working directory
-p: password (auto logon)
-n: client hostname
-k: keyboard layout (hex)
-g: desktop geometry (WxH)
-f: full-screen mode
-b: force bitmap updates
-e: disable encryption (French TS)
-m: do not send motion events
-l: do not request license

It's also important to remember that rdesktop requires Terminal Services to be running on any machine you need to connect to. Make sure Remote Desktop is enabled on your Windows host if you experience any problems connecting. Again, you may need to check on licensing to ensure that your server will allow the necessary number of connections. Remember that more than one connection can be made to a Terminal Services server. Determine your needs and make sure that your Windows licenses match up.

Rdesktop is capable of operating in full screen or windowed mode. Full screen mode is certainly nice, but you may find better performance operating in a window. In addition, the window approach lets you open multiple connections to remote desktops at the same time. This enables you to connect to a number of different systems simultaneously and is great for troubleshooting cross-platform issues. Whether you're dealing with network connectivity or software development, this type of access can be a tremendous advantage.

Summary
Rdesktop lets a Linux system participate in the remote Windows administration that is available with Terminal Services, allowing for the use of both operating systems simultaneously. This can streamline your administration and development chores, making your job a whole lot easier.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Talkback

What's amazing is that we were doing remote administration and support over ten years ago. The ability to run a remote desktop is not new. Having been in this business for quite some time, I've always urged people I've worked around to explore remote support - and now, after all this time, it's finally making inroads into IT administration. MS didn't create this, *NIX had it all along - granted not with the sophistication that exists today, but *NIX did have the ability first and foremost.

stephen.kuhnstephen.kuhn December 5th, 2002
Report offensive content Reply (0) (0)
Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

Terms of Service - As a ZDNet registrant, and by using this service, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy.

ZDNet Australia Live

CIOview Govt CIO praises budget's $1bn IT investment - ZDNet Australia http://t.co/cn11RoxJ

Thanks Nelson, it should be right now.

-Michael.

1 minute ago by Mukimu on Ausgrid network to talk back to operators

Govt CIO praises budget's $1bn IT investment: Despite a tighter 2012-13 Federal Budget, the government's chief i... http://t.co/4sYpLvu8

Govt CIO praises budget's $1bn IT investment http://t.co/2vHl0Q7W

by http://t.co/vmlLt4bh: Govt CIO praises budget's $1bn IT investment: Despite a tighter 2012-13 Federal Budget, ... http://t.co/SBsAK839

Govt CIO praises budget's $1bn IT investment: Despite a tighter 2012-13 Federal Budget, the government's chief i... http://t.co/uB6PeV5e

Govt CIO praises budget's $1bn IT investment http://t.co/VyIAMrNZ

In praise of #Oracle #Virtualbox http://t.co/YokgSTAr -good enough to tide us #microsoft peeps over until #windows8 at least

beats by dre pas cher suisse casque beats by dre beats by dre solo ou studio casque beats by dre beats by dre quality review bea...

15 minutes ago by ichfaheqnbia on Don't add Telstra deal to NBN cost: Quigley

Why don't the underpants of the lover of shock jock Adam Willis fit so well any more? http://t.co/0MHEGxLE

I guess the mouse was a necessary evil at the time. I mean, yes, keyboard shortcuts in the right hands are faster than any mouse action (...

18 minutes ago by techkid on Microsoft admits Vista was 'cheesy'

Govt CIO praises budget's $1bn IT investment: Despite a tighter 2012-13 Federal Budget, the government's chief i... http://t.co/qTAJGRTl

fyi google may always lie

24 minutes ago by rt luvs youh on Google shows we're killing our language

they probaly always lie about in4mation bout people

25 minutes ago by rt luvs youh on Google shows we're killing our language

Despite a tighter 2012 Budget, the Federal Govt CIO has said IT is still an important factor, making up $1.5 billion. http://t.co/Qz5xuGu5

クリスチャンルブタンの靴は、ルブタン靴は以下から入手できます。香港から世界中ブティックや小...

29 minutes ago by Zimernereen on Reservoir blogs: Fan fakes Tarantino diary

Govt CIO praises budget's $1bn IT investment - ZDNet Australia: Govt CIO praises budget's $1bn IT investmentZDNe... http://t.co/Co3DkOE8

Despite a tighter 2012 Budget, the Federal Govt CIO has said IT is still an important factor, making up $1.5 billion. http://t.co/idcuxOua

RT @zdnetaustralia: Now that Google has closed its acquisition of Motorola Mobility, what's next? http://t.co/er8mBa4g

by http://t.co/vmlLt4bh: Ausgrid network to talk back to operators: Ausgrid is rolling out upgrades to the electr... http://t.co/GWTVbrJH

The Ark Group Australia Daily is out! http://t.co/oIk1F9iK ▸ Top stories today via @SmartCompany @harleyw @zdnetaustralia

RT @johnW3LLS: #NSW Govt announces shopfront in Silicon Valley + 7 consortia to dev #mobile for public sector http://t.co/daWWcUAw #gov2au #govcampNSW

Ausgrid network to talk back to operators http://t.co/iInEt1Tb

Ausgrid network to talk back to operators: Ausgrid is rolling out upgrades to the electricity grid in Port Steph... http://t.co/ildzefOl

$6.7million, now we know the price to the tax payer of a government IT project clean up. You've got to ask the question don't you: why o...

1 hour ago by Takenforgranted on Vic scraps HealthSMART system

Ausgrid network to talk back to operators http://t.co/bUNLQq7t

Ausgrid network to talk back to operators - Hardware - News - ZDNet Australia | @scoopit http://t.co/skOaWNt0

#NSW Govt announces shopfront in Silicon Valley + 7 consortia to dev #mobile for public sector http://t.co/daWWcUAw #gov2au #govcampNSW

VMware nabs turnkey desktop cloud provider Wanova: VMware is building out its end user product portfolio with th... http://t.co/9pzyjSBE

RT @johnW3LLS: #NSW Govt announces shopfront in Silicon Valley + 7 consortia to dev #mobile for public sector http://t.co/daWWcUAw #gov2au #govcampNSW

why some mp4 files with higher frame width can not be played in my 3m mp180??

1 hour ago by cyrusmann_ymail.com on 3M MP180 Pocket Projector

Fed Govt steps up on shared cloud plan http://t.co/u3CLkHwm via @zdnetaustralia

Unfortunately there is NO such place as Nelson's Bay. It's Nelson Bay!! Probably not your fault for the error, as your Media Release prob...

1 hour ago by Nelson on Ausgrid network to talk back to operators

Ausgrid is trialling tech that allows the electricity grid to report back on what might be wrong. http://t.co/vSqIh8Gm ^ML

Ausgrid network to talk back to operators http://t.co/LiC0teCs

It's taken some time, but Ausgrid is sticking some better smarts on the electricity network. The EE in me says yay. http://t.co/oHbr82y2

Ausgrid network to talk back to operators: Ausgrid is rolling out upgrades to the electricity grid in Port Steph... http://t.co/vGZcsoGQ

BYOD too immature for us: Human Services http://t.co/tv0quX47 via @zdnetaustralia #byod #CoIT #gov2au

RT @zdnetaustralia: Westpac: knowing the device and a user's behaviour is key to developing a good app: http://t.co/j3NHTZpQ ^LH

Westpac board goes paperless with iPads http://t.co/yjHQdKkC via @zdnetaustralia

Research key to good apps: Westpac CIO - ZDNet Australia http://t.co/VGC3yM9H #mobilebanking

Interesting >>> Research key to good apps: Westpac CIO http://t.co/iFsyOZtI

Research key to good apps: Westpac CIO - ZDNet Australia: Research key to good apps: Westpac CIOZDNet AustraliaT... http://t.co/WgGub8dg

Research key to good apps: Westpac CIO - Business - News - ZDNet Australia http://t.co/lcKCZKgf

@Wow - thats one of the benefits of the iPad (and tablets in general). They are one of the most generation neutral products ever made. ...

3 hours ago by Gav on Westpac board goes paperless with iPads

and why is this such a super idea? http://www.itnews.com.au/News/301778,thousands-affected-in-billing-cloud-breach.aspx oh, yeah, right...

4 hours ago by btone on Fed Govt steps up on shared cloud plan

Wow, seems like a fantastic initiative that helps to save the environment. It must have taken a lot of convincing to get the Board to mov...

4 hours ago by Wow on Westpac board goes paperless with iPads

I'm a payed up lib member who has voted Labor in the last 2 federal elections. I had the previlege of speaking to Mr Turnball 3 months ag...

5 hours ago by spazmanaught on NBN contracts may be left alone: Turnbull

Good to see Westpac's concentrating on the real IT issues !

5 hours ago by jeff_syd on Westpac board goes paperless with iPads

I am not sure how this issue becomes an attack on Mr Turnbull. But I guess he is fair game. In any event I would have thought a Ddos woul...

15 hours ago by Doubt on National Botnet Network coming: Earthwave

I still use 98SE. Windows ME was an abortion in a bucket and Vista was ME without the bucket. My screen may look boring, but I jumped str...

16 hours ago by Treknology on Microsoft admits Vista was 'cheesy'

This story has been voted 10 times in the last 24 hours!

16 hours ago, CeBIT 2012 opens: photos

This story has been voted 15 times in the last 24 hours!

16 hours ago, Lenovo ThinkPad 3G tablet (32GB)

Well I don't know what they have done with their EFTPOS machines, local one in WA Coles Express I used this morning and I normally do "ch...

16 hours ago by harryinthesoup on Coles ditches PINs in payment pilot

6.7 M last ditch attempt - interesting - The Auckland region (population 1.4 mil) has estimated to have spent less than this in total ...

20 hours ago by debsteele on Vic scraps HealthSMART system

Interesting - no mention of Win 98/ME/2000 ... which heralded Internet access for millions of users ? I thought Win 98/ME would be the mo...

21 hours ago by gouranga on Microsoft admits Vista was 'cheesy'

An Application like Good from Good Technologies does the same thing, working with the enterprise email server and is off the shelf.

21 hours ago by Helpdesk123 on Westpac board goes paperless with iPads

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar