[b7d3cc34] | 1 | INSTALLATION |
---|
| 2 | ============ |
---|
| 3 | |
---|
| 4 | If you installed BitlBee from a .deb or .rpm you probably don't have to do |
---|
| 5 | anything anymore for installation. Just skip this section. |
---|
| 6 | |
---|
| 7 | If you want to compile BitlBee yourself, that's fine. Just run ./configure |
---|
| 8 | to set up the build system. If configure succeeds, run make to build BitlBee. |
---|
| 9 | make install will move all the files to the right places. |
---|
| 10 | |
---|
[42bdeec] | 11 | --- inetd installation |
---|
| 12 | |
---|
[b7d3cc34] | 13 | After installation you have to set up inetd (you got that one running, |
---|
| 14 | right? If not, just take a look at utils/bitlbeed.c) to start BitlBee. You |
---|
| 15 | need to add BitlBee to inetd.conf, like this: |
---|
| 16 | |
---|
| 17 | 6667 stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/bitlbee |
---|
| 18 | |
---|
| 19 | Creating a special BitlBee user and running BitlBee with that UID (instead |
---|
| 20 | of just 'nobody') might be a good idea. |
---|
| 21 | |
---|
[42bdeec] | 22 | *BSD/Darwin/OSX NOTE: Most *BSD inetds are more scrict than the one that |
---|
| 23 | comes with Linux systems. Possibly all non-Linux inetds are like this. They |
---|
| 24 | don't allow you to specify a port number in the inetd.conf entry, instead |
---|
| 25 | you have to put a service name there (one that is also mentioned in |
---|
| 26 | /etc/services). So if there's no line in /services for 6667/tcp (or whatever |
---|
| 27 | you choose), add it and use that name in the inetd.conf entry. |
---|
| 28 | |
---|
| 29 | -- xinetd installation |
---|
| 30 | |
---|
| 31 | Most machines use xinetd instead of inetd these days. If your machine runs |
---|
| 32 | xinetd, you can copy the bitlbee.xinetd file from the doc/ directory to your |
---|
| 33 | xinetd.d/ directory. Most likely you'll have to change a thing or two before |
---|
| 34 | it'll work. |
---|
| 35 | |
---|
| 36 | After configuring your (x)inetd, send the daemon a SIGHUP and things should |
---|
| 37 | work. If not, see your syslogs, since both daemons will complain there when |
---|
| 38 | something's wrong. |
---|
| 39 | |
---|
[b7d3cc34] | 40 | Also, don't forget to create the configuration directory (/var/lib/bitlbee/ |
---|
| 41 | by default) and chown it to the UID BitlBee is running as. Make sure this |
---|
| 42 | directory is read-/writable by this user only. |
---|
| 43 | |
---|
[ed3ae7e] | 44 | --- (Fork)Daemon mode |
---|
| 45 | |
---|
| 46 | If you don't want to run any inetd daemon, you can run BitlBee in Daemon |
---|
| 47 | mode. Right now, daemon mode may be a bad idea on servers with multiple |
---|
| 48 | users, since possible fatal BitlBee bugs will crash the BitlBee process and |
---|
| 49 | disconnect all connected users at once. Instead, you can use ForkDaemon |
---|
| 50 | mode, which serves every user from a separate process, without depending on |
---|
| 51 | an inetd daemon. |
---|
| 52 | |
---|
| 53 | To use BitlBee in daemon mode, just start it with the right flags or enable |
---|
| 54 | it in bitlbee.conf. You probably want to write an init script to start |
---|
| 55 | BitlBee automatically after a reboot. (This is where you realise using |
---|
| 56 | a package from your distro would've been a better idea. :-P) |
---|
| 57 | |
---|
[de8e584] | 58 | Note that the BitlBee code is getting stable enough for daemon mode to be |
---|
| 59 | useful. Some public servers use it, and it saves a lot of memory by serving |
---|
| 60 | tens of users from a single process. One crash affects all users, but these |
---|
| 61 | are becoming quite rare. |
---|
| 62 | |
---|
[b7d3cc34] | 63 | |
---|
| 64 | DEPENDENCIES |
---|
| 65 | ============ |
---|
| 66 | |
---|
| 67 | BitlBee's only real dependency is GLib. This is available on virtually every |
---|
[d4589cb] | 68 | platform. Any recent version of GLib (2.4 or higher) will work. |
---|
[b7d3cc34] | 69 | |
---|
| 70 | These days, MSN Messenger clients have to connect to the MS Passport servers |
---|
[7308b63] | 71 | through HTTPS. BitlBee can use several SSL libraries for this: GnuTLS, NSS |
---|
[b7d3cc34] | 72 | (which comes with Mozilla) and OpenSSL. OpenSSL is not GPL-compatible in some |
---|
| 73 | situations, so using GnuTLS or NSS is preferred. However, especially on *BSD, |
---|
| 74 | OpenSSL can be considered part of the operating system, which eliminates the |
---|
| 75 | GPL incompatibility. |
---|
| 76 | |
---|
| 77 | The incompatibility is also the reason why the SSL library detection code |
---|
| 78 | doesn't attempt to use OpenSSL. If you want to use OpenSSL, you have to |
---|
| 79 | force configure to use it using the --ssl=openssl parameter. For more |
---|
| 80 | information about this problem, see the URL's configure will write to stdout |
---|
| 81 | when you attempt to use OpenSSL. |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | PORTABILITY ISSUES |
---|
| 85 | ================== |
---|
| 86 | |
---|
| 87 | Cygwin NOTE: You'll need a glib installation to run BitlBee. However, Cygwin |
---|
| 88 | doesn't provide a glib package. You can download a binary tar.gz from: |
---|
| 89 | <http://my.dreamwiz.com/jbdoll/>. When you installed it, BitlBee should work |
---|
| 90 | fine. You'll probably like bitlbeed or xinetd to get it running on the |
---|
| 91 | network. |
---|
| 92 | |
---|
| 93 | On some non-Linux systems the program still suffers from some random bugs. |
---|
| 94 | Please do report them, we might be able to fix them if they're not too |
---|
| 95 | mysterious. |
---|
| 96 | |
---|
[42bdeec] | 97 | Also, the configure script is known to not work very well with non-Bash |
---|
| 98 | shells, so if you experience problems, make sure you use bash to run the |
---|
| 99 | script. Same for the Makefile, it only works well with GNU make. (gmake on |
---|
| 100 | most BSD systems) |
---|
| 101 | |
---|
| 102 | If someone can tell us how to write Makefiles that work with both/all |
---|
| 103 | versions of make, we'd love to hear it, but it seems this just isn't |
---|
| 104 | possible. |
---|
| 105 | |
---|
[b7d3cc34] | 106 | |
---|
| 107 | USAGE |
---|
| 108 | ===== |
---|
| 109 | |
---|
| 110 | Not much to say here, it's all documented elsewhere already. Just connect to |
---|
| 111 | the new BitlBee IRC server and the bot (root) will tell you what to do. |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | BACKGROUNDS |
---|
| 115 | =========== |
---|
| 116 | |
---|
| 117 | We are both console lovers. But it is annoying to have a few tty's open with |
---|
| 118 | chat things in them. IRC, ICQ, MSN, AIM, Jabber... For X there is Gaim, which |
---|
| 119 | supports many chatprotocols. Why wasn't there such a thing for the console? |
---|
| 120 | |
---|
| 121 | The idea to port Gaim was easily thought of, of course. But we liked our IRC |
---|
| 122 | clients. And we used it the most, so we used it best. Importing it into the |
---|
| 123 | IRC client was a nice idea. But what if someone liked a different client. |
---|
| 124 | Then (s)he had to duplicate our work. |
---|
| 125 | |
---|
| 126 | That's a shame, we thought. Doing work twice is pointless. So when Wilmer |
---|
| 127 | got the ingenious thought in his mind while farming, to create an IRC to |
---|
| 128 | other chatnetworks gateway, we were both so excited, that we started working |
---|
| 129 | on it almost immediately. And the result is BitlBee. |
---|
| 130 | |
---|
| 131 | |
---|
| 132 | WEBSITE |
---|
| 133 | ======= |
---|
| 134 | |
---|
| 135 | You can find new releases of BitlBee at: |
---|
| 136 | http://www.bitlbee.org/ |
---|
| 137 | |
---|
[bad4a586] | 138 | The bug tracking system: |
---|
| 139 | http://bugs.bitlbee.org/ |
---|
| 140 | |
---|
| 141 | Our version control system is Bazaar-NG. Our repository is at: |
---|
| 142 | http://code.bitlbee.org/ |
---|
| 143 | |
---|
[b7d3cc34] | 144 | |
---|
| 145 | A NOTE ON ENCRYPTION |
---|
| 146 | ==================== |
---|
| 147 | |
---|
[08cdb93] | 148 | There used to be a note here about the simple obfuscation method used to |
---|
| 149 | make the passwords in the configuration files unreadable. However, BitlBee |
---|
| 150 | now uses a better format (and real encryption (salted MD5 and RC4)) to store |
---|
| 151 | the passwords. This means that people who somehow get their hands on your |
---|
| 152 | configuration files can't easily extract your passwords from them anymore. |
---|
| 153 | |
---|
| 154 | However, once you log into the BitlBee server and send your password, an |
---|
| 155 | intruder with tcpdump can still read your passwords. This can't really be |
---|
| 156 | avoided, of course. The new format is a lot more reliable (because it can't |
---|
| 157 | be cracked with just very basic crypto analysis anymore), but you still have |
---|
| 158 | to be careful. The main extra protection offered by the new format is that |
---|
| 159 | the files can only be cracked with some help from the user (by sending the |
---|
| 160 | password at login time). |
---|
| 161 | |
---|
| 162 | So if you run a public server, it's most important that you don't give root |
---|
| 163 | access to people who like to play with tcpdump. Also, it's a good idea to |
---|
| 164 | delete all *.nicks/*.accounts files as soon as BitlBee converted them to the |
---|
| 165 | new format (which happens as soon as the user logs in, it can't be done |
---|
| 166 | automatically because it needs the password for that account). You won't |
---|
| 167 | need them anymore (unless you want to switch back to an older BitlBee |
---|
| 168 | version) and they only make it easier for others to crack your passwords. |
---|
[b7d3cc34] | 169 | |
---|
| 170 | |
---|
| 171 | LEGAL |
---|
| 172 | ===== |
---|
| 173 | |
---|
| 174 | BitlBee is distributed under the GPL (GNU General Public License). See the |
---|
| 175 | file COPYING for this license. |
---|
| 176 | |
---|
[d4589cb] | 177 | The MD5 algorithm code is licensed under the Aladdin license. This license |
---|
| 178 | can be found in the files, to which this applies. The SHA1 algorithm code |
---|
| 179 | is licensed under the Mozilla Public License, see http://www.mozilla.org/MPL/ |
---|
| 180 | for details. |
---|
[b7d3cc34] | 181 | |
---|
| 182 | The Yahoo! library used by BitlBee is libyahoo2 <http://libyahoo2.sf.net/>, |
---|
| 183 | also licensed under the GPL. |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | BitlBee - An IRC to other chat networks gateway |
---|
| 187 | <http://www.bitlbee.org/> |
---|
[d4589cb] | 188 | Copyright (C) 2002-2007 Wilmer van der Gaast <wilmer@gaast.net> |
---|
[b7d3cc34] | 189 | and others |
---|