source: skype/README @ 2a8d790

Last change on this file since 2a8d790 was 2a8d790, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-06T01:57:22Z

add python-gnutls install instructions

  • Property mode set to 100644
File size: 10.6 KB
RevLine 
[0c60f96]1= Skype plugin for BitlBee
[7f1cf70]2Miklos Vajna <vmiklos-at-vmiklos-dot-hu>
[afe221f]3
[56e4ac4]4== Status
5
[9f829c4]6[quote, Wilmer van der Gaast (author of BitlBee)]
[4eaadf6]7____
8Okay, this exists now, with lots of thanks to vmiklos for his *excellent*
9work!!
10
11It's not in the main BitlBee and it'll never be for various reasons, but
12because it's a plugin that shouldn't be a problem.
13____
14
[56e4ac4]15One day I browsed the BitlBee bugtracker and found
16http://bugs.bitlbee.org/bitlbee/ticket/82[this] ticket. Then after a while I
[1138b25]17returned and saw that it was still open. So I wrote it.
[56e4ac4]18
[15e2200]19It's pretty stable (one day I wanted to restart it because of an upgrade
20and just noticed it was running for 2+ months without crashing), I use
21it for my daily work. Being a plug-in, no patching is required, you can
22just install it after installing BitlBee itself.
[75742cc]23
[4c3a4c8]24NOTE: You will see that this implementation of the Skype plug-in still requires
[54c269d]25a Skype instance to be running. This is because I'm not motivated to reverse
26engineer Skype's
27http://en.wikipedia.org/wiki/Skype_Protocol#Obfuscation_Layer[obfuscation
28layer]. (Not mentioning that you should ask your lawyer about if it is legal or
29not..)
30
[22d97b4]31== Requirements
32
[75d5e71]33* Skype >= 1.4.0.99. The latest version I've tested is 2.0.0.72.
[1f59f2f]34* BitlBee >= @BITLBEE_VERSION@. Use old versions (0.5.1 or earlier) if
35  you have older BitlBee installed.
[eb39102]36* Skype4Py >= 0.9.28.7. Previous versions won't work due to API changes.
[d276c9a]37
[59bf24f]38NOTE: 1.x just does not work for me. I mailed the author but did not
39receive any answer so far.
[d276c9a]40
[c60b864]41* Python >= 2.5. Skype4Py does not work with 2.4.
[e49da25]42* PyGObject >= 2.8.0. Older versions are part of PyGTK. (And you don't want to
43  install GTK for nothing, right?)
[b0d40f5]44* pyopenssl or python-gnutls.
[22d97b4]45
[df1a59d4]46`bitlbee-skype` has been tested under Linux and Mac OS X. Skype and Skype4py is
47available under Windows, too, so it probably works, but this has not been tested.
[760ed1f]48
[9e03e55]49== How to set it up
[afe221f]50
[751b149]51Before you start. The setup is the following: BitlBee can't connect directly to
52Skype servers (the company's ones). It needs a running Skype client to do so.
53In fact BitlBee will connect to `skyped` (a tcp server, provided in this
[4c3a4c8]54package) and `skyped` will connect to to your Skype client.
[751b149]55
[d0a6a8c]56The benefit of this architecture is that you can run Skype and `skyped`
57on a machine different to the one where you run BitlBee (it can be even
58a public server) and/or your IRC client.
[7e4f0ca1]59
[d0a6a8c]60NOTE: The order is important. First `skyped` starts Skype. Then `skyped`
61connects to Skype, finally BitlBee can connect to `skyped`.
62
63=== Installing under Frugalware
64
65- Install the necessary packages:
[11eed8f]66
[36fbaa0]67----
[1d14818]68# pacman-g2 -S bitlbee-skype
[36fbaa0]69----
70
[4966d841]71and you don't have to compile anything manually.
72
[d0a6a8c]73=== Installing under Debian
74
75- Install the necessary development package:
[4966d841]76
77----
[2a8d790]78# apt-get install bitlbee-dev python-gnutls
[4966d841]79----
80
[5293707]81and you have to install `bitlbee-skype` and `skype4py` from source.
[4966d841]82
[d0a6a8c]83=== Installing from source
84
[56d88ba]85NOTE: bitlbee-skype by default builds and installs skyped and the
86plugin. In case you just want to install the plugin for a public server
87or you want to use skyped with a public server, you don't need both.
88
89- You need the latest stable BitlBee release (unless you want to use a
90  public server):
[afe221f]91
[0c60f96]92----
[1f59f2f]93$ wget http://get.bitlbee.org/src/bitlbee-@BITLBEE_VERSION@.tar.gz
94$ tar xf bitlbee-@BITLBEE_VERSION@.tar.gz
95$ cd bitlbee-@BITLBEE_VERSION@
[0c60f96]96----
[afe221f]97
98- Now compile and install it:
99
[0c60f96]100----
[ccb50f5]101$ ./configure
102$ make
103# make install install-dev
[0c60f96]104----
[afe221f]105
[56d88ba]106- To install http://skype4py.sourceforge.net/[Skype4Py] from source
107  (unless you want to install the plugin for a public server):
108
109----
110$ tar -zxvf Skype4Py-x.x.x.x.tar.gz
111$ cd Skype4Py-x.x.x.x
112# python setup.py install
113----
114
[2a8d790]115- To install http://pypi.python.org/pypi/python-gnutls[python-gnutls] from source
116  (unless you want to install the plugin for a public server):
117
118----
119$ tar -zxvf python-gnutls-x.x.x.tar.gz
120$ cd python-gnutls-x.x.x
121# python setup.py install
122----
123
[21a387fd]124- Get the plugin code (in an empty dir, or whereever you want, it does
125  not matter):
[afe221f]126
[0c60f96]127----
[3b495c0]128$ wget http://vmiklos.hu/project/bitlbee-skype/bitlbee-skype-@VERSION@.tar.gz
129$ tar xf bitlbee-skype-@VERSION@.tar.gz
130$ cd bitlbee-skype-@VERSION@
[0c60f96]131----
[afe221f]132
133- Compile and install it:
134
[0c60f96]135----
[ccb50f5]136$ ./configure
137$ make
138# make install
[0c60f96]139----
[afe221f]140
[21a387fd]141This will install the plugin to where BitlBee expects them, which is
142`/usr/local/lib/bitlbee` if you installed BitlBee from source.
143
[d0a6a8c]144=== Configuring
145
[52d377d]146- Edit `/usr/local/etc/skyped/skyped.conf`: adjust `username` and `password`. The
[e65ceaa]147  `username` should be your Skype login and the `password` can be whatever you
148  want, but you will have to specify that one when adding the Skype account to
149  BitlBee (see later).
150
[52d377d]151NOTE: Here, and later - `/usr/local/etc` can be different on your installation
152if you used the `--sysconfdir` switch when running bitlbee-skype's `configure`.
153
154- Generate the SSL pem files:
155
156----
[ccb50f5]157# cd /usr/local/etc/skyped
158# openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \
[52d377d]159        -keyout skyped.key.pem
160----
161
[ccb50f5]162NOTE: Maybe you want to adjust the permissions in the `/usr/local/etc/skyped`
163dir. For example make it readable by just your user.
164
[b0d40f5]165- If both pyopenssl and python-gnutls are available, then python-gnutls
166  will be used. This behaviour can be overwritten by:
167
168----
169$ export SKYPED_NO_GNUTLS=1
170----
171
[833eaee]172- Start `skyped` (the tcp server):
[afe221f]173
[0c60f96]174----
[ccb50f5]175$ skyped
[0c60f96]176----
[ba20c39]177
[4c3a4c8]178- Start your `IRC` client, connect to BitlBee and add your account:
[7338d59]179
180----
[789d055]181account add skype <user> <pass>
182account set skype/server localhost
[7338d59]183----
184
[e65ceaa]185<user> should be your Skype account name, <pass> should be the one you declared
[10a42d9]186in `skyped.conf`. If you want to run skyped on a remote machine, replace
187`localhost` with the name of the machine.
[7338d59]188
[9ace502]189If you are running skyped on a custom port:
190
191----
192account set skype/port <port>
193----
194
[7996794]195If you want to set your full name (optional):
196
197----
198account set skype/display_name "John Smith"
199----
200
201If you want to see your skypeout contacts online as well (they are
202offline by default):
203
204----
205account set skype/skypeout_offline false
206----
207
[23b84e1]208== Setting up Skype in a VNC server (optional)
209
210Optionally, if you want to run Skype on a server, you might want to setup up
[4c3a4c8]211a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will
[23b84e1]212work, too.
213
214First run
215
216----
[ccb50f5]217$ vncpasswd ~/.vnc/passwd
[23b84e1]218----
219
220and create a password. You will need it at least once.
221
222Now create `~/.vnc/xstartup` with the following contents:
223
224----
225#!/bin/sh
226
[2dbb768]227twm
[23b84e1]228----
229
[57087df]230Adjust the permissions:
231
232----
[ccb50f5]233$ chmod +x ~/.vnc/xstartup
[57087df]234----
235
[23b84e1]236Then start the server:
237
238----
[ccb50f5]239$ vncserver
[23b84e1]240----
241
[ece66da]242Then connect to it, start an `xterm`, set up Skype (username, password,
243enable X11 API and allow the `Skype4Py` client), quit from Skype, and
244start `skyped`. If you want to watch its traffic, enable debug messages
245and foreground mode:
[23b84e1]246
[ece66da]247----
248$ skyped -n -d
249----
[dffa24f]250
[123e45a]251== Features
[b6d26ac]252
[adce2de]253- Download nicks and away statuses from Skype
[b6d26ac]254
[39a0d64]255- Noticing joins / parts while we're connected
256
[93ece66]257- Sending messages
258
[8dd21bb]259- Receiving messages
260
[72f697b]261- Receiving away status changes
262
[62bb4e4]263- `skyped` (the tcp daemon that is a gateway between Skype and tcp)
[ed2e37f]264
[62bb4e4]265- Error handling when `skyped` is not running and when it exits
[afe221f]266
[62bb4e4]267- Marking received messages as seen so that Skype won't say there are unread messages
[440665b]268
[6627d92]269- Adding / removing contacts
270
[23411c6]271- Set away state when you do a `/away`.
272
[d3cbd17]273- When you `account off`, Skype will set status to `Offline`
[348a3a2]274
[d3cbd17]275- When you `account on`, Skype will set status to `Online`
[348a3a2]276
[d3cbd17]277- Detect when somebody wants to add you and ask for confirmation
[8dd21bb]278
[df9255d]279- Detect when somebody wants to transfer a file
280
[d6a371e]281- Group chat support:
282
283  * Detect if we're invited
284
285  * Send / receive group chat messages
[93ece66]286
[ff58445]287  * Invite others (using `/invite <nick>`)
[c5dd164]288
[d6a371e]289  * Part from group chats
[c5dd164]290
[ff58445]291  * Starting a group chat (using `/j #nick`)
292
[e103e73]293- Topic changes in group chats:
294
295  * Show the current topic (if any) on join
296
297  * Notice when someone changes the topic
298
299  * Support changing the topic using `/topic`
300
[fb36492]301- Viewing the profile using the `info` command.
302
[a06a0a5]303- Handling skype actions (when the `CHATMESSAGE` has `EMOTED` type)
304
[6b266f6]305- Setting your display name using the `nick` command.
[a06a0a5]306
[ccb50f5]307- Running Skype on a machine different to BitlBee is possible, the
308  communication is encrypted.
309
[9aed2f1]310- Managing outgoing calls (with call duration at the end, including
311  SkypeOut calls if you use a phone number instead of a nick):
[2eb4b1f]312
313  * `account set skype/call nick`
314  * `account set -del skype/call`
[123e45a]315
[e0074cb]316- Managing incoming calls via questions, just like when you add / remove
317  contacts.
[c5dd164]318
[9aed2f1]319- Querying the current SkypeOut balance:
320
321  * `account set skype/balance query`
322
[e0074cb]323== What needs to be done (aka. TODO)
[846ceffb]324
[d6a371e]325- Notice if foo invites bar. Currently you can see only that bar joined.
326
[6344674]327- Public chats. See
328  link:https://developer.skype.com/jira/browse/SCL-381[this feature
329  request], this is because it is still not possible (under Linux) to
330  `join_chat` to a public chat..
[d6a371e]331
[0c60f96]332== I would like to have support for ...
333
[23b84e1]334If something does not work and it's not in the TODO section, then please
[e72d869]335contact me! Please also try the link:HACKING[git version] before reporting a bug, your
[80d9004]336problem may be already fixed there.
[23b84e1]337
338In fact, of course, I wrote this documentation after figured out how to do this
339setup, so maybe I left out some steps. If you needed 'any' additional tricks,
340then it would be nice to include them here.
[afe221f]341
[f78f949]342== Known bugs
343
[5652d43]344- None at this time.
[f78f949]345
[0c60f96]346== Screenshots
347
[668a122]348You can reach some screenshots link:shot[here].
[ddd3502]349
[25d87e4]350== Additional resources
[a60c3c2]351
[25d87e4]352You can reach the Changelog link:Changelog[here], and a gitweb interface
[6f01885]353http://vmiklos.hu/gitweb/?p=bitlbee-skype.git[here].
[a60c3c2]354
[c09f90f]355The Skype API documentation is
356https://developer.skype.com/Docs/ApiDoc[here] if you're interested.
357
[ceee9c7]358
359== Testimonials
360
361----
36200:56 < scathe> vmiklos: I like your skype plugin :)
363----
364
[6774d83]365----
366It's really working great so far.
367
368Good Job and thank you!
369Sebastian
370----
371
[587a921]372----
373Big respect for your work, i really appreciate it.
374
375Martin
376----
377
[93264f0]378----
379Thanks for bitlbee-skype. As a blind Linux user, I cannot use the
380skype GUI client because qt apps ar not accessible yet with the
381available screen readers. bitlbee-skype allows me to make use of skype
382without having to interact much with the GUI client, which helps me a
383lot.
384
385Lukas
386----
387
[e3d0b10]388----
38902:12 < newton> i must say, i love this little bee ;)
39002:15 < newton> tried it out today with the skype plugin, good work!
391----
392
[df482d4]393----
39418:10 < miCSu> it works fine
395----
396
[65e4020]397== Thanks
398
399for the following people:
400
[e49da25]401* Wilmer van der Gaast, for answering questions about the BitlBee plugin interface
[65e4020]402
[56a3616]403* Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped
[65e4020]404
[9834597]405* Gabor Adam Toth (tg), for noticing extra code is needed to handle multiline
406  messages
407
408* Cristobal Palmer (tarheelcoxn), for helping to testing the plugin in a
409  timezone different to mine
[65e4020]410
[4834307]411* Risko Gergely, for his SkypeOut ideas
412
[437ddf5]413* people on `#bitlbee` for feedback
414
[eb9cbb8]415Back to my link:/projects[projects page].
416
[0c60f96]417// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.