blog.dataforce.org.uk Dataforce's Blog

20Apr/125

Microsoft Lync on Linux

Lync on Linux

Update: This post still gets a lot of search traffic hits, but is now over a year old, and I no longer have a need to use lync, so haven't needed to keep this working.

I believe that the ubuntu repos now contain new enough versions of SIPE that the deb mentioned here shouldn't be needed anymore, but that the rest of the instructions should still be valid.


Recently at work we have started using Lync internally. Whilst this is great for the Windows and Mac users among us, not so much for those of us running on linux.

However, it turns out that it is possible to get basic lync support working quite easily. I can see people, talk to people, people can talk to me – I can send files to people, but people can't send file to me. I've not tried any video/voice stuff but I suspect it doesn't work.

It’s done using "sipe" – basically an open source implementation of the Extended SIP/SIMPLE protocol lync uses for chat.

The basic steps on Ubuntu are:

  • Install the latest pidgin from pidgin devs ppa apt-get install pidgin pidgin-sipe
  • Download sipe
  • Compile it
  • Connect to lync.

The compiling step is required because we use Office365 for lync which needs the latest version os SIPE for which a deb does not yet appear to exist. However, I have uploaded my compiled deb which can be found below.

Instructions for Ubuntu (using a precompiled deb I've uploaded):

sudo apt-add-repository ppa:pidgin-developers/ppa
sudo apt-get update
sudo apt-get install pidgin
wget http://www.myfileservice.net/pidgin-sipe_1.13.1-2_i386.deb
sudo dpkg -i pidgin-sipe_1.13.1-2_i386.deb


Once this is done you can then open pidgin, and add an "Office Communicator" account, using the following settings:

First tab (Basic)
Login: email address
Username: email address
Password: password

Second tab (Advanced)
Server/port: blank
Connection Type: Auto
User Agent: UCCAPI/4.0.7577.314 OC/4.0.7577.314
Auth Scheme: TLS-DSK

Untick Use single sign on, leave everything below it blank

Ignore the other 2 tabs

Done. Connect, see buddies :)

Amusingly, at home, I’ve actually had more success on linux than windows! On my windows machine, opening LyncSetup.exe seems to just do nothing at all, the process appears to be running, but no setup window appears.

Issues encountered:

  • The version of pidgin-sipe currently in Ubuntu repos is too old to work with Office 365 (needs 1.13.0, hence compiling myself)
  • Version of pidgin in ubuntu was old, I installed a new version to be sure
  • A colleague of mine seems to have had no success with these steps - pidgin seems to crash immediately after trying to connect

The pidgin-sipe deb above also builds the required "telepathy" binaries – so I’m gonna have a go at getting it working with KDE’s native messenging client rather than pidgin, but for now for IM at least, pidgin is quite useable. (As I no longer need to use Lync, I never did get round to trying this)

Posted by Dataforce

Filed under: General Leave a comment