source: skype/README @ 1138b25

Last change on this file since 1138b25 was 1138b25, checked in by Miklos Vajna <vmiklos@…>, at 2007-11-24T19:32:23Z

do not refer to the empty known bugs section

  • Property mode set to 100644
File size: 6.5 KB
RevLine 
[0c60f96]1= Skype plugin for BitlBee
[668a122]2Miklos Vajna <vmiklos@vmiklos.hu>
[afe221f]3
[56e4ac4]4== Status
5
6One day I browsed the BitlBee bugtracker and found
7http://bugs.bitlbee.org/bitlbee/ticket/82[this] ticket. Then after a while I
[1138b25]8returned and saw that it was still open. So I wrote it.
[56e4ac4]9
[1138b25]10It's pretty stable, I use it for my daily work.
[75742cc]11
[4c3a4c8]12NOTE: You will see that this implementation of the Skype plug-in still requires
[54c269d]13a Skype instance to be running. This is because I'm not motivated to reverse
14engineer Skype's
15http://en.wikipedia.org/wiki/Skype_Protocol#Obfuscation_Layer[obfuscation
16layer]. (Not mentioning that you should ask your lawyer about if it is legal or
17not..)
18
[22d97b4]19== Requirements
20
[6adca511]21* Skype >= 1.4.0.99. (1.4.0.74 did not work for me, 1.4.0.118 seems to be OK.)
[d044a5a]22* bitlbee 1.1.1dev. (This is the latest version I've tested, probably
[9fcaedc0]23  newer versions probably will work, too.)
[7e66424]24* Skype4Py >= 0.9.28.1. Previous versions uses `DBus` by default. The latest version I've tested is 0.9.28.3.
[22d97b4]25* Python 2.5. Skype4Py does not work with 2.4.
26* pygobject
27
[760ed1f]28`bitlbee-skype` has been tested under Linux and Windows. Skype is available
29under OSX, too, so it probably works, but this has not been tested.
30
[9e03e55]31== How to set it up
[afe221f]32
[751b149]33Before you start. The setup is the following: BitlBee can't connect directly to
34Skype servers (the company's ones). It needs a running Skype client to do so.
35In fact BitlBee will connect to `skyped` (a tcp server, provided in this
[4c3a4c8]36package) and `skyped` will connect to to your Skype client.
[751b149]37
[7e4f0ca1]38NOTE: The order is important. First you have to start Skype. Then `skyped` can
[64f8b8ea]39connect to it, finally BitlBee can connect to `skyped`. (In fact `skyped`
40automatically reconnect if you restart Skype.)
[7e4f0ca1]41
[11eed8f]42- If you happen to be a happy Frugalware user, you can install the `bitlbee`
43  and `bitlbee-skype` packages from
44  http://ftp.frugalware.org/pub/other/people/vmiklos/bmf/[my repo].
45
[d044a5a]46- You need the BitlBee testing/development version:
[afe221f]47
[0c60f96]48----
[d044a5a]49wget http://get.bitlbee.org/src/bitlbee-1.1.1dev.tar.gz
50tar xf bitlbee-1.1.1dev.tar.gz
51cd bitlbee-1.1.1dev
[0c60f96]52----
[afe221f]53
[d044a5a]54NOTE: You no longer need additional patches, as of version 1.1.1dev.
[b8b0bfd]55
[afe221f]56- Now compile and install it:
57
[0c60f96]58----
[8e3058b]59./configure
[afe221f]60make
61make install install-dev
[0c60f96]62----
[afe221f]63
64- Get the plugin code:
65
[0c60f96]66----
[668a122]67git clone git://vmiklos.hu/~vmiklos/pyrssi
[0c60f96]68----
[afe221f]69
[b8351a2]70(Or you can use the tarballs below, see the Changelog about what
71features/bugfixes will you miss in this case).
72
[afe221f]73- Compile and install it:
74
[0c60f96]75----
[8e3058b]76make prepare
77./configure
[afe221f]78make
[8e3058b]79make install
[0c60f96]80----
[afe221f]81
[c15f71a]82- Install http://skype4py.sourceforge.net/[Skype4Py].
83
84(You may remember that previous versions of `skyped` did not require this
85package. This because it now uses the X11 interface of Skype (because the
[4c3a4c8]86previously used `DBus` interface had
[c15f71a]87http://forum.skype.com/index.php?s=&showtopic=94545&view=findpost&p=431710[known
88problems]), but I wanted to prevent a large code duplication from that project.
89In addition it then no longer requires the `dbus-python` package, just
90`pygobject`.)
91
[2fcad6e]92- Start Skype and `skyped` (the tcp server):
[afe221f]93
[0c60f96]94----
[2fcad6e]95skype
96skyped
[0c60f96]97----
[ba20c39]98
[4c3a4c8]99NOTE: It's important to start `skyped` on the same machine and using the same
[7e66424]100user!
[afe221f]101
[4c3a4c8]102- Start your `IRC` client, connect to BitlBee and add your account:
[7338d59]103
104----
105account add skype <user> <pass>
106account set 0/server localhost
107----
108
[4c3a4c8]109IMPORTANT: <user> should be your Skype account name. This way you won't see
[7338d59]110yourself joining to `&bitlbee`.
111
112NOTE: the <pass> option is not used currently.
113
[23b84e1]114== Setting up Skype in a VNC server (optional)
115
116Optionally, if you want to run Skype on a server, you might want to setup up
[4c3a4c8]117a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will
[23b84e1]118work, too.
119
120First run
121
122----
123vncpasswd ~/.vnc/passwd
124----
125
126and create a password. You will need it at least once.
127
128Now create `~/.vnc/xstartup` with the following contents:
129
130----
131#!/bin/sh
132
[19b805c]133sleep 1
134skype &
135sleep 5
136skyped
[23b84e1]137----
138
[57087df]139Adjust the permissions:
140
141----
142chmod +x ~/.vnc/xstartup
143----
144
[23b84e1]145Then start the server:
146
147----
148vncserver
149----
150
[4c3a4c8]151Then connect to it, and set up Skype (username, password, enable auto-login, and
[23b84e1]152allow the `SkypeApiPythonShell` client when Skype asks about it).
153
[dffa24f]154Please be aware about that Skype has serious memory leak issues. After running
155with for a few weeks it may eat >300 MB of memory. Just don't forget to restart
156your VNC server regularly. (How ugly.)
157
[9e03e55]158== What works
[b6d26ac]159
[adce2de]160- Download nicks and away statuses from Skype
[b6d26ac]161
[39a0d64]162- Noticing joins / parts while we're connected
163
[93ece66]164- Sending messages
165
[8dd21bb]166- Receiving messages
167
[72f697b]168- Receiving away status changes
169
[62bb4e4]170- `skyped` (the tcp daemon that is a gateway between Skype and tcp)
[ed2e37f]171
[62bb4e4]172- Error handling when `skyped` is not running and when it exits
[afe221f]173
[62bb4e4]174- Marking received messages as seen so that Skype won't say there are unread messages
[440665b]175
[6627d92]176- Adding / removing contacts
177
[23411c6]178- Set away state when you do a `/away`.
179
[d3cbd17]180- When you `account off`, Skype will set status to `Offline`
[348a3a2]181
[d3cbd17]182- When you `account on`, Skype will set status to `Online`
[348a3a2]183
[d3cbd17]184- Detect when somebody wants to add you and ask for confirmation
[8dd21bb]185
[df9255d]186- Detect when somebody wants to transfer a file
187
[d6a371e]188- Group chat support:
189
190  * Detect if we're invited
191
192  * Send / receive group chat messages
[93ece66]193
[ff58445]194  * Invite others (using `/invite <nick>`)
[c5dd164]195
[d6a371e]196  * Part from group chats
[c5dd164]197
[ff58445]198  * Starting a group chat (using `/j #nick`)
199
[e103e73]200- Topic changes in group chats:
201
202  * Show the current topic (if any) on join
203
204  * Notice when someone changes the topic
205
206  * Support changing the topic using `/topic`
207
[d6a371e]208== What needs to be done (aka. TODO)
[c5dd164]209
[846ceffb]210- Add a question callback for calls.
211
[d6a371e]212- Notice if foo invites bar. Currently you can see only that bar joined.
213
[4285920]214- Public chats. See link:http://forum.skype.com/index.php?showtopic=98872[this
215  forum thread], it is still unclear how could it be done for you to be able to
216  `/join` to a public chat..
[d6a371e]217
[0c60f96]218== I would like to have support for ...
219
[23b84e1]220If something does not work and it's not in the TODO section, then please
[80d9004]221contact me! Please also try the git version before reporting a bug, your
222problem may be already fixed there.
[23b84e1]223
224In fact, of course, I wrote this documentation after figured out how to do this
225setup, so maybe I left out some steps. If you needed 'any' additional tricks,
226then it would be nice to include them here.
[afe221f]227
[f78f949]228== Known bugs
229
[5652d43]230- None at this time.
[f78f949]231
[0c60f96]232== Screenshots
233
[668a122]234You can reach some screenshots link:shot[here].
[ddd3502]235
[25d87e4]236== Additional resources
[a60c3c2]237
[25d87e4]238You can reach the Changelog link:Changelog[here], and a gitweb interface
[3d73b02]239http://repo.or.cz/w/bitlbee-skype.git[here].
[a60c3c2]240
[65e4020]241== Thanks
242
243for the following people:
244
245* Wilmer van der Gaast, for answering questions about the bitlbee plugin interface
246
[56a3616]247* Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped
[65e4020]248
249* Gabor Adam TOTH, for usable bugreports
250
[eb9cbb8]251Back to my link:/projects[projects page].
252
[0c60f96]253// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.