thanks for your help. It does work but it doesn't create usr/local/bin.
I'm not so familiar with development maybe there is a easier way to geth rdeskop with smartcard access?
Thanks for your helpa again
I've posted an installer here:
It will place my pre-compiled rdesktop application in your /usr/local/bin/ folder and the pre-compiled keymaps folder in the /usr/local/share/rdesktop/ folder.
You should then be able to run rdesktop from the Terminal application, as long as you have the X11 application installed on your Mac. The most recent Macs do not have X11 installed, so you must install it separately:
I use the macports version for smartcard support. I use it because I use lots of other macports packages, and it is an easy way to get packages that work, usually without any problems. The macports rdesktop may need manual tweaking until the port maintainer fixes bugs in it. Have logged a bug fix request with my tweaks listed in post here of 2nd May. Works fine with smartcard on 10.6.8 and 10.5.8. Current version is 1.7.1 as of last month.
To use macports, read http://www.macports.org/install.php
Then installation of most ports is simply
$ sudo port install <portname>
In this case if it is properly patched,
$ sudo port install rdesktop +smartcard
If it is not patched and generates errors, the fixes are listed in my post of 2nd May. To manually fix, I have used 2 ways.
a. download appropriate source version, unpack and edit the source file, replace macports source file with edited version.
b. use macports to download source, find and edit source file
Either way, run the phases of macports build one at a time:
eg (sudo is not needed for all but makes live easier to leave it in)
$ sudo port fetch rdesktop +smartcard
$ sudo port checksum rdesktop +smartcard
$ sudo port extract rdesktop +smartcard
If errors, then fix as per my listed tweaks. The major part is to locate the source file and delete the listed lines or replace it with an edited version.
$ sudo port configure rdesktop +smartcard
$ sudo port build rdesktop +smartcard
$ sudo port destroot rdesktop +smartcard
Commands I use to connect using ssh tunnel (always recommended for security - requires ssh to be set up on server, preferably with RSA key authentication):
$ ssh <username>@<sshserverexternalIPaddress> -L 3389:<internalipofserver>:3389
$ rdesktop -x m -r scard -r clipboard:"CLIPBOARD" -g 1280x1024 -u<username> localhost
After rdesktop (with smartcard support) has been installed, you need to invoke the smartcard support when you execute it, as indicated by Ian Cheong. When you run rdesktop, just include the "-r scard" option, just like the last line of Ian Cheong's post:
$ rdesktop -r scard REMOTE.SERVER.ADDRESS
(where REMOTE.SERVER.ADDRESS is the address of the terminal you're trying to connect to)
If you just type "rdesktop" in the Terminal application and press "enter", you should get a list of rdesktop options and how to invoke them.