source: skype/README @ c49820d

Last change on this file since c49820d was c49820d, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-24T09:03:55Z

add yasrd to todo

  • Property mode set to 100644
File size: 11.2 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
[720ae58]83=== Installing under OS X
84
85- Install the necessary packages from ports:
86
87NOTE: You have to edit the Portfile manually to include the install-dev target,
88just append install-dev after install-etc.
89
90----
91# port -v install bitlbee
92# port -v install py25-gobject
93----
94
95and you have to install `bitlbee-skype`, `skype4py` and `python-gnutls` from
96source.
97
[d0a6a8c]98=== Installing from source
99
[56d88ba]100NOTE: bitlbee-skype by default builds and installs skyped and the
101plugin. In case you just want to install the plugin for a public server
102or you want to use skyped with a public server, you don't need both.
103
104- You need the latest stable BitlBee release (unless you want to use a
105  public server):
[afe221f]106
[0c60f96]107----
[1f59f2f]108$ wget http://get.bitlbee.org/src/bitlbee-@BITLBEE_VERSION@.tar.gz
109$ tar xf bitlbee-@BITLBEE_VERSION@.tar.gz
110$ cd bitlbee-@BITLBEE_VERSION@
[0c60f96]111----
[afe221f]112
113- Now compile and install it:
114
[0c60f96]115----
[ccb50f5]116$ ./configure
117$ make
118# make install install-dev
[0c60f96]119----
[afe221f]120
[56d88ba]121- To install http://skype4py.sourceforge.net/[Skype4Py] from source
122  (unless you want to install the plugin for a public server):
123
124----
125$ tar -zxvf Skype4Py-x.x.x.x.tar.gz
126$ cd Skype4Py-x.x.x.x
127# python setup.py install
128----
129
[2a8d790]130- To install http://pypi.python.org/pypi/python-gnutls[python-gnutls] from source
131  (unless you want to install the plugin for a public server):
132
133----
134$ tar -zxvf python-gnutls-x.x.x.tar.gz
135$ cd python-gnutls-x.x.x
136# python setup.py install
137----
138
[720ae58]139NOTE: On OS X you will need the following hacks first:
140
141----
142$ export LD_LIBRARY_PATH=/opt/local/lib
143$ export CFLAGS="-I/opt/local/include"
144$ export LDFLAGS="-L/opt/local/lib"
145----
146
[21a387fd]147- Get the plugin code (in an empty dir, or whereever you want, it does
148  not matter):
[afe221f]149
[0c60f96]150----
[3b495c0]151$ wget http://vmiklos.hu/project/bitlbee-skype/bitlbee-skype-@VERSION@.tar.gz
152$ tar xf bitlbee-skype-@VERSION@.tar.gz
153$ cd bitlbee-skype-@VERSION@
[0c60f96]154----
[afe221f]155
156- Compile and install it:
157
[0c60f96]158----
[ccb50f5]159$ ./configure
160$ make
161# make install
[0c60f96]162----
[afe221f]163
[21a387fd]164This will install the plugin to where BitlBee expects them, which is
165`/usr/local/lib/bitlbee` if you installed BitlBee from source.
166
[d0a6a8c]167=== Configuring
168
[52d377d]169- Edit `/usr/local/etc/skyped/skyped.conf`: adjust `username` and `password`. The
[e65ceaa]170  `username` should be your Skype login and the `password` can be whatever you
171  want, but you will have to specify that one when adding the Skype account to
172  BitlBee (see later).
173
[52d377d]174NOTE: Here, and later - `/usr/local/etc` can be different on your installation
175if you used the `--sysconfdir` switch when running bitlbee-skype's `configure`.
176
177- Generate the SSL pem files:
178
179----
[ccb50f5]180# cd /usr/local/etc/skyped
181# openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \
[52d377d]182        -keyout skyped.key.pem
183----
184
[ccb50f5]185NOTE: Maybe you want to adjust the permissions in the `/usr/local/etc/skyped`
186dir. For example make it readable by just your user.
187
[b0d40f5]188- If both pyopenssl and python-gnutls are available, then python-gnutls
189  will be used. This behaviour can be overwritten by:
190
191----
192$ export SKYPED_NO_GNUTLS=1
193----
194
[833eaee]195- Start `skyped` (the tcp server):
[afe221f]196
[0c60f96]197----
[ccb50f5]198$ skyped
[0c60f96]199----
[ba20c39]200
[4c3a4c8]201- Start your `IRC` client, connect to BitlBee and add your account:
[7338d59]202
203----
[789d055]204account add skype <user> <pass>
205account set skype/server localhost
[7338d59]206----
207
[e65ceaa]208<user> should be your Skype account name, <pass> should be the one you declared
[10a42d9]209in `skyped.conf`. If you want to run skyped on a remote machine, replace
210`localhost` with the name of the machine.
[7338d59]211
[9ace502]212If you are running skyped on a custom port:
213
214----
215account set skype/port <port>
216----
217
[7996794]218If you want to set your full name (optional):
219
220----
221account set skype/display_name "John Smith"
222----
223
224If you want to see your skypeout contacts online as well (they are
225offline by default):
226
227----
228account set skype/skypeout_offline false
229----
230
[23b84e1]231== Setting up Skype in a VNC server (optional)
232
233Optionally, if you want to run Skype on a server, you might want to setup up
[4c3a4c8]234a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will
[23b84e1]235work, too.
236
237First run
238
239----
[ccb50f5]240$ vncpasswd ~/.vnc/passwd
[23b84e1]241----
242
243and create a password. You will need it at least once.
244
245Now create `~/.vnc/xstartup` with the following contents:
246
247----
248#!/bin/sh
249
[2dbb768]250twm
[23b84e1]251----
252
[57087df]253Adjust the permissions:
254
255----
[ccb50f5]256$ chmod +x ~/.vnc/xstartup
[57087df]257----
258
[23b84e1]259Then start the server:
260
261----
[ccb50f5]262$ vncserver
[23b84e1]263----
264
[ece66da]265Then connect to it, start an `xterm`, set up Skype (username, password,
266enable X11 API and allow the `Skype4Py` client), quit from Skype, and
267start `skyped`. If you want to watch its traffic, enable debug messages
268and foreground mode:
[23b84e1]269
[ece66da]270----
271$ skyped -n -d
272----
[dffa24f]273
[123e45a]274== Features
[b6d26ac]275
[adce2de]276- Download nicks and away statuses from Skype
[b6d26ac]277
[39a0d64]278- Noticing joins / parts while we're connected
279
[93ece66]280- Sending messages
281
[8dd21bb]282- Receiving messages
283
[72f697b]284- Receiving away status changes
285
[62bb4e4]286- `skyped` (the tcp daemon that is a gateway between Skype and tcp)
[ed2e37f]287
[62bb4e4]288- Error handling when `skyped` is not running and when it exits
[afe221f]289
[62bb4e4]290- Marking received messages as seen so that Skype won't say there are unread messages
[440665b]291
[6627d92]292- Adding / removing contacts
293
[23411c6]294- Set away state when you do a `/away`.
295
[d3cbd17]296- When you `account off`, Skype will set status to `Offline`
[348a3a2]297
[d3cbd17]298- When you `account on`, Skype will set status to `Online`
[348a3a2]299
[d3cbd17]300- Detect when somebody wants to add you and ask for confirmation
[8dd21bb]301
[df9255d]302- Detect when somebody wants to transfer a file
303
[d6a371e]304- Group chat support:
305
306  * Detect if we're invited
307
308  * Send / receive group chat messages
[93ece66]309
[ff58445]310  * Invite others (using `/invite <nick>`)
[c5dd164]311
[d6a371e]312  * Part from group chats
[c5dd164]313
[ff58445]314  * Starting a group chat (using `/j #nick`)
315
[e103e73]316- Topic changes in group chats:
317
318  * Show the current topic (if any) on join
319
320  * Notice when someone changes the topic
321
322  * Support changing the topic using `/topic`
323
[fb36492]324- Viewing the profile using the `info` command.
325
[a06a0a5]326- Handling skype actions (when the `CHATMESSAGE` has `EMOTED` type)
327
[6b266f6]328- Setting your display name using the `nick` command.
[a06a0a5]329
[ccb50f5]330- Running Skype on a machine different to BitlBee is possible, the
331  communication is encrypted.
332
[9aed2f1]333- Managing outgoing calls (with call duration at the end, including
334  SkypeOut calls if you use a phone number instead of a nick):
[2eb4b1f]335
336  * `account set skype/call nick`
337  * `account set -del skype/call`
[123e45a]338
[e0074cb]339- Managing incoming calls via questions, just like when you add / remove
340  contacts.
[c5dd164]341
[9aed2f1]342- Querying the current SkypeOut balance:
343
344  * `account set skype/balance query`
345
[e0074cb]346== What needs to be done (aka. TODO)
[846ceffb]347
[d6a371e]348- Notice if foo invites bar. Currently you can see only that bar joined.
349
[6344674]350- Public chats. See
351  link:https://developer.skype.com/jira/browse/SCL-381[this feature
352  request], this is because it is still not possible (under Linux) to
353  `join_chat` to a public chat..
[d6a371e]354
[c49820d]355- Add yasrd (Yet Another Skype-Related Daemon) to allow using a public
356  server for users who are behind NAT.
357
[0c60f96]358== I would like to have support for ...
359
[23b84e1]360If something does not work and it's not in the TODO section, then please
[e72d869]361contact me! Please also try the link:HACKING[git version] before reporting a bug, your
[80d9004]362problem may be already fixed there.
[23b84e1]363
364In fact, of course, I wrote this documentation after figured out how to do this
365setup, so maybe I left out some steps. If you needed 'any' additional tricks,
366then it would be nice to include them here.
[afe221f]367
[f78f949]368== Known bugs
369
[5652d43]370- None at this time.
[f78f949]371
[0c60f96]372== Screenshots
373
[668a122]374You can reach some screenshots link:shot[here].
[ddd3502]375
[25d87e4]376== Additional resources
[a60c3c2]377
[25d87e4]378You can reach the Changelog link:Changelog[here], and a gitweb interface
[6f01885]379http://vmiklos.hu/gitweb/?p=bitlbee-skype.git[here].
[a60c3c2]380
[c09f90f]381The Skype API documentation is
382https://developer.skype.com/Docs/ApiDoc[here] if you're interested.
383
[ceee9c7]384
385== Testimonials
386
387----
38800:56 < scathe> vmiklos: I like your skype plugin :)
389----
390
[6774d83]391----
392It's really working great so far.
393
394Good Job and thank you!
395Sebastian
396----
397
[587a921]398----
399Big respect for your work, i really appreciate it.
400
401Martin
402----
403
[93264f0]404----
405Thanks for bitlbee-skype. As a blind Linux user, I cannot use the
406skype GUI client because qt apps ar not accessible yet with the
407available screen readers. bitlbee-skype allows me to make use of skype
408without having to interact much with the GUI client, which helps me a
409lot.
410
411Lukas
412----
413
[e3d0b10]414----
41502:12 < newton> i must say, i love this little bee ;)
41602:15 < newton> tried it out today with the skype plugin, good work!
417----
418
[df482d4]419----
42018:10 < miCSu> it works fine
421----
422
[65e4020]423== Thanks
424
425for the following people:
426
[e49da25]427* Wilmer van der Gaast, for answering questions about the BitlBee plugin interface
[65e4020]428
[56a3616]429* Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped
[65e4020]430
[9834597]431* Gabor Adam Toth (tg), for noticing extra code is needed to handle multiline
432  messages
433
434* Cristobal Palmer (tarheelcoxn), for helping to testing the plugin in a
435  timezone different to mine
[65e4020]436
[4834307]437* Risko Gergely, for his SkypeOut ideas
438
[437ddf5]439* people on `#bitlbee` for feedback
440
[eb9cbb8]441Back to my link:/projects[projects page].
442
[0c60f96]443// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.