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
Line 
1= Skype plugin for BitlBee
2Miklos Vajna <vmiklos-at-vmiklos-dot-hu>
3
4== Status
5
6[quote, Wilmer van der Gaast (author of BitlBee)]
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
15One day I browsed the BitlBee bugtracker and found
16http://bugs.bitlbee.org/bitlbee/ticket/82[this] ticket. Then after a while I
17returned and saw that it was still open. So I wrote it.
18
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.
23
24NOTE: You will see that this implementation of the Skype plug-in still requires
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
31== Requirements
32
33* Skype >= 1.4.0.99. The latest version I've tested is 2.0.0.72.
34* BitlBee >= @BITLBEE_VERSION@. Use old versions (0.5.1 or earlier) if
35  you have older BitlBee installed.
36* Skype4Py >= 0.9.28.7. Previous versions won't work due to API changes.
37
38NOTE: 1.x just does not work for me. I mailed the author but did not
39receive any answer so far.
40
41* Python >= 2.5. Skype4Py does not work with 2.4.
42* PyGObject >= 2.8.0. Older versions are part of PyGTK. (And you don't want to
43  install GTK for nothing, right?)
44* pyopenssl or python-gnutls.
45
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.
48
49== How to set it up
50
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
54package) and `skyped` will connect to to your Skype client.
55
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.
59
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:
66
67----
68# pacman-g2 -S bitlbee-skype
69----
70
71and you don't have to compile anything manually.
72
73=== Installing under Debian
74
75- Install the necessary development package:
76
77----
78# apt-get install bitlbee-dev python-gnutls
79----
80
81and you have to install `bitlbee-skype` and `skype4py` from source.
82
83=== Installing from source
84
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):
91
92----
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@
96----
97
98- Now compile and install it:
99
100----
101$ ./configure
102$ make
103# make install install-dev
104----
105
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
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
124- Get the plugin code (in an empty dir, or whereever you want, it does
125  not matter):
126
127----
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@
131----
132
133- Compile and install it:
134
135----
136$ ./configure
137$ make
138# make install
139----
140
141This will install the plugin to where BitlBee expects them, which is
142`/usr/local/lib/bitlbee` if you installed BitlBee from source.
143
144=== Configuring
145
146- Edit `/usr/local/etc/skyped/skyped.conf`: adjust `username` and `password`. The
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
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----
157# cd /usr/local/etc/skyped
158# openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \
159        -keyout skyped.key.pem
160----
161
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
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
172- Start `skyped` (the tcp server):
173
174----
175$ skyped
176----
177
178- Start your `IRC` client, connect to BitlBee and add your account:
179
180----
181account add skype <user> <pass>
182account set skype/server localhost
183----
184
185<user> should be your Skype account name, <pass> should be the one you declared
186in `skyped.conf`. If you want to run skyped on a remote machine, replace
187`localhost` with the name of the machine.
188
189If you are running skyped on a custom port:
190
191----
192account set skype/port <port>
193----
194
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
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
211a `VNC` server as well. I used `tightvnc` but probably other `VNC` servers will
212work, too.
213
214First run
215
216----
217$ vncpasswd ~/.vnc/passwd
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
227twm
228----
229
230Adjust the permissions:
231
232----
233$ chmod +x ~/.vnc/xstartup
234----
235
236Then start the server:
237
238----
239$ vncserver
240----
241
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:
246
247----
248$ skyped -n -d
249----
250
251== Features
252
253- Download nicks and away statuses from Skype
254
255- Noticing joins / parts while we're connected
256
257- Sending messages
258
259- Receiving messages
260
261- Receiving away status changes
262
263- `skyped` (the tcp daemon that is a gateway between Skype and tcp)
264
265- Error handling when `skyped` is not running and when it exits
266
267- Marking received messages as seen so that Skype won't say there are unread messages
268
269- Adding / removing contacts
270
271- Set away state when you do a `/away`.
272
273- When you `account off`, Skype will set status to `Offline`
274
275- When you `account on`, Skype will set status to `Online`
276
277- Detect when somebody wants to add you and ask for confirmation
278
279- Detect when somebody wants to transfer a file
280
281- Group chat support:
282
283  * Detect if we're invited
284
285  * Send / receive group chat messages
286
287  * Invite others (using `/invite <nick>`)
288
289  * Part from group chats
290
291  * Starting a group chat (using `/j #nick`)
292
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
301- Viewing the profile using the `info` command.
302
303- Handling skype actions (when the `CHATMESSAGE` has `EMOTED` type)
304
305- Setting your display name using the `nick` command.
306
307- Running Skype on a machine different to BitlBee is possible, the
308  communication is encrypted.
309
310- Managing outgoing calls (with call duration at the end, including
311  SkypeOut calls if you use a phone number instead of a nick):
312
313  * `account set skype/call nick`
314  * `account set -del skype/call`
315
316- Managing incoming calls via questions, just like when you add / remove
317  contacts.
318
319- Querying the current SkypeOut balance:
320
321  * `account set skype/balance query`
322
323== What needs to be done (aka. TODO)
324
325- Notice if foo invites bar. Currently you can see only that bar joined.
326
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..
331
332== I would like to have support for ...
333
334If something does not work and it's not in the TODO section, then please
335contact me! Please also try the link:HACKING[git version] before reporting a bug, your
336problem may be already fixed there.
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.
341
342== Known bugs
343
344- None at this time.
345
346== Screenshots
347
348You can reach some screenshots link:shot[here].
349
350== Additional resources
351
352You can reach the Changelog link:Changelog[here], and a gitweb interface
353http://vmiklos.hu/gitweb/?p=bitlbee-skype.git[here].
354
355The Skype API documentation is
356https://developer.skype.com/Docs/ApiDoc[here] if you're interested.
357
358
359== Testimonials
360
361----
36200:56 < scathe> vmiklos: I like your skype plugin :)
363----
364
365----
366It's really working great so far.
367
368Good Job and thank you!
369Sebastian
370----
371
372----
373Big respect for your work, i really appreciate it.
374
375Martin
376----
377
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
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
393----
39418:10 < miCSu> it works fine
395----
396
397== Thanks
398
399for the following people:
400
401* Wilmer van der Gaast, for answering questions about the BitlBee plugin interface
402
403* Arkadiusz Wahlig, author of skype4py, for making suggestions to skyped
404
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
410
411* Risko Gergely, for his SkypeOut ideas
412
413* people on `#bitlbee` for feedback
414
415Back to my link:/projects[projects page].
416
417// vim: ft=asciidoc
Note: See TracBrowser for help on using the repository browser.