特殊:Badtitle/NS100:Bitlbee/Latest:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Bitlbee/Latest}} {{Languages|UbuntuHelp:Bitlbee/Latest}} == Introduction == This page documents custom compiling the latest Bitlbee release, which... |
小无编辑摘要 |
||
第17行: | 第17行: | ||
We'll need to download the latest release of Bitlbee which supports MUC (multi-user-chat). As of this writing this version is 1.2: | We'll need to download the latest release of Bitlbee which supports MUC (multi-user-chat). As of this writing this version is 1.2: | ||
<pre><nowiki> | <pre><nowiki> | ||
wget -c http://get.bitlbee.org/src/bitlbee-1.2.tar.gz | wget -c http://get.bitlbee.org/src/bitlbee-1.2.1.tar.gz | ||
</nowiki></pre> | </nowiki></pre> | ||
Unarchive this once it is finished downloading: | Unarchive this once it is finished downloading: | ||
<pre><nowiki> | <pre><nowiki> | ||
tar -xf bitlbee- | tar -xf bitlbee-*.tar.gz | ||
cd bitlbee- | cd bitlbee-* | ||
</nowiki></pre> | </nowiki></pre> | ||
At this point we're ready to configure the Bitlbee build and compile the code. | At this point we're ready to configure the Bitlbee build and compile the code. |
2008年10月19日 (日) 04:24的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Bitlbee/Latest }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/af | • {{#if: UbuntuHelp:Bitlbee/Latest|Afrikaans| [[::Bitlbee/Latest/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ar | • {{#if: UbuntuHelp:Bitlbee/Latest|العربية| [[::Bitlbee/Latest/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/az | • {{#if: UbuntuHelp:Bitlbee/Latest|azərbaycanca| [[::Bitlbee/Latest/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/bcc | • {{#if: UbuntuHelp:Bitlbee/Latest|جهلسری بلوچی| [[::Bitlbee/Latest/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/bg | • {{#if: UbuntuHelp:Bitlbee/Latest|български| [[::Bitlbee/Latest/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/br | • {{#if: UbuntuHelp:Bitlbee/Latest|brezhoneg| [[::Bitlbee/Latest/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ca | • {{#if: UbuntuHelp:Bitlbee/Latest|català| [[::Bitlbee/Latest/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/cs | • {{#if: UbuntuHelp:Bitlbee/Latest|čeština| [[::Bitlbee/Latest/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/de | • {{#if: UbuntuHelp:Bitlbee/Latest|Deutsch| [[::Bitlbee/Latest/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/el | • {{#if: UbuntuHelp:Bitlbee/Latest|Ελληνικά| [[::Bitlbee/Latest/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/es | • {{#if: UbuntuHelp:Bitlbee/Latest|español| [[::Bitlbee/Latest/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/fa | • {{#if: UbuntuHelp:Bitlbee/Latest|فارسی| [[::Bitlbee/Latest/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/fi | • {{#if: UbuntuHelp:Bitlbee/Latest|suomi| [[::Bitlbee/Latest/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/fr | • {{#if: UbuntuHelp:Bitlbee/Latest|français| [[::Bitlbee/Latest/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/gu | • {{#if: UbuntuHelp:Bitlbee/Latest|ગુજરાતી| [[::Bitlbee/Latest/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/he | • {{#if: UbuntuHelp:Bitlbee/Latest|עברית| [[::Bitlbee/Latest/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/hu | • {{#if: UbuntuHelp:Bitlbee/Latest|magyar| [[::Bitlbee/Latest/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/id | • {{#if: UbuntuHelp:Bitlbee/Latest|Bahasa Indonesia| [[::Bitlbee/Latest/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/it | • {{#if: UbuntuHelp:Bitlbee/Latest|italiano| [[::Bitlbee/Latest/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ja | • {{#if: UbuntuHelp:Bitlbee/Latest|日本語| [[::Bitlbee/Latest/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ko | • {{#if: UbuntuHelp:Bitlbee/Latest|한국어| [[::Bitlbee/Latest/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ksh | • {{#if: UbuntuHelp:Bitlbee/Latest|Ripoarisch| [[::Bitlbee/Latest/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/mr | • {{#if: UbuntuHelp:Bitlbee/Latest|मराठी| [[::Bitlbee/Latest/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ms | • {{#if: UbuntuHelp:Bitlbee/Latest|Bahasa Melayu| [[::Bitlbee/Latest/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/nl | • {{#if: UbuntuHelp:Bitlbee/Latest|Nederlands| [[::Bitlbee/Latest/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/no | • {{#if: UbuntuHelp:Bitlbee/Latest|norsk| [[::Bitlbee/Latest/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/oc | • {{#if: UbuntuHelp:Bitlbee/Latest|occitan| [[::Bitlbee/Latest/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/pl | • {{#if: UbuntuHelp:Bitlbee/Latest|polski| [[::Bitlbee/Latest/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/pt | • {{#if: UbuntuHelp:Bitlbee/Latest|português| [[::Bitlbee/Latest/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ro | • {{#if: UbuntuHelp:Bitlbee/Latest|română| [[::Bitlbee/Latest/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/ru | • {{#if: UbuntuHelp:Bitlbee/Latest|русский| [[::Bitlbee/Latest/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/si | • {{#if: UbuntuHelp:Bitlbee/Latest|සිංහල| [[::Bitlbee/Latest/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/sq | • {{#if: UbuntuHelp:Bitlbee/Latest|shqip| [[::Bitlbee/Latest/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/sr | • {{#if: UbuntuHelp:Bitlbee/Latest|српски / srpski| [[::Bitlbee/Latest/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/sv | • {{#if: UbuntuHelp:Bitlbee/Latest|svenska| [[::Bitlbee/Latest/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/th | • {{#if: UbuntuHelp:Bitlbee/Latest|ไทย| [[::Bitlbee/Latest/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/tr | • {{#if: UbuntuHelp:Bitlbee/Latest|Türkçe| [[::Bitlbee/Latest/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/vi | • {{#if: UbuntuHelp:Bitlbee/Latest|Tiếng Việt| [[::Bitlbee/Latest/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/yue | • {{#if: UbuntuHelp:Bitlbee/Latest|粵語| [[::Bitlbee/Latest/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/zh | • {{#if: UbuntuHelp:Bitlbee/Latest|中文| [[::Bitlbee/Latest/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/zh-hans | • {{#if: UbuntuHelp:Bitlbee/Latest|中文(简体)| [[::Bitlbee/Latest/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Bitlbee/Latest | UbuntuHelp:Bitlbee/Latest | {{#if: | :}}Bitlbee/Latest}}/zh-hant | • {{#if: UbuntuHelp:Bitlbee/Latest|中文(繁體)| [[::Bitlbee/Latest/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Bitlbee/Latest|:Bitlbee/Latest|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Bitlbee/Latest/zh | | {{#ifexist: Bitlbee/Latest/zh | | {{#ifeq: {{#titleparts:Bitlbee/Latest|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Bitlbee/Latest|1|-1|}} | zh | | }}
Introduction
This page documents custom compiling the latest Bitlbee release, which now supports multi-user-chat support (chat rooms). This document is written as of March 27, 2008 based on Bitlbee 1.2 release and Ubuntu 7.10. It should be noted that any previous installations of bitlbee should be removed
sudo aptitude remove bitlbee
Preparation
Dependencies
To install the latest build of Bitlbee we'll need to compile the source code manually. In order to do so we'll need to install a few packages:
sudo aptitude install build-essential libgnutls-dev libglib2.0-dev xinetd
note: the packages (except for xinetd) can be safely removed once bitlbee has been installed successfully
Get the Source
We'll need to download the latest release of Bitlbee which supports MUC (multi-user-chat). As of this writing this version is 1.2:
wget -c http://get.bitlbee.org/src/bitlbee-1.2.1.tar.gz
Unarchive this once it is finished downloading:
tar -xf bitlbee-*.tar.gz cd bitlbee-*
At this point we're ready to configure the Bitlbee build and compile the code. If you want to simply configure the default client, which supports the main protocols (AIM/ICQ, MSN, Yahoo! and Jabber) do:
./configure
Personally I only use Jabber, so I don't compile AIM/ICQ, Yahoo! or MSN support. If you'd like to only support Jabber do:
./configure --msn=0 --yahoo=0 --oscar=0
If the configure is done properly you should see output similar to:
Configuration done: Debugging disabled. Binary stripping enabled. Using event handler: glib Using SSL library: gnutls Building with these storage backends: text xml Building with these protocols: msn jabber oscar yahoo
You can now make and install the application. The install-etc option installs `motd.txt` and `bitlbee.conf`. It is optional:
make sudo make install sudo make install-etc
Installing with checkinstall
If you wish to create and/or install a `.deb` package from the bitlbee source, you can use checkinstall(1). Since checkinstall doesn't allow you to specify multiple make(1) targets on the commandline, you might want to apply this patch to bitlbee's makefile so that `bitlbee.conf` is included in the `.deb`:
--- Makefile.orig 2008-01-05 23:43:37.000000000 -0500 +++ Makefile 2008-01-05 23:44:53.000000000 -0500 @@ -20,10 +20,10 @@ all: $(OUTFILE) $(MAKE) -C doc -uninstall: uninstall-bin uninstall-doc +uninstall: uninstall-bin uninstall-doc uninstall-etc @echo -e '\nmake uninstall does not remove files in '$(DESTDIR)$(ETCDIR)', you can use make uninstall-etc to do that.\n' -install: install-bin install-doc +install: install-bin install-doc install-etc @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi @echo @@ -65,7 +65,7 @@ install-bin: mkdir -p $(DESTDIR)$(BINDIR) - install -m 0755 $(OUTFILE) $(DESTDIR)$(BINDIR)/$(OUTFILE) + install -m 0755 $(OUTFILE) $(DESTDIR)$(BINDIR)$(OUTFILE) uninstall-bin: rm -f $(DESTDIR)$(BINDIR)/$(OUTFILE)
You might also want to use `--fstrans=no` as an option to checkinstall to avoid file permission warnings.
Installation Tweaks
Because this isn't a fancy Ubuntu package we need to manually create a few things. To make things work we'll do three more things:
Create the variable data folder
sudo mkdir /var/lib/bitlbee sudo chown nobody. /var/lib/bitlbee
Create the xinetd configuration
Since we installed xinetd above we also need to configure it for bitlbee:
sudo gedit /etc/xinetd.d/ircd
Add the following content:
service ircd { socket_type = stream protocol = tcp wait = no user = nobody server = /usr/local/sbin/bitlbee port = 6667 disable = no }
Once you've saved this file you'll need to restart xinetd:
sudo /etc/init.d/xinetd restart
At this point you should be able to connect to your new bitlbee server. w00t!
Connecting to a Jabber Chatroom
You'll need to create a Jabber account as seen on the main Bitlbee page, and then use that to join a public chatroom:
join_chat <account number> [email protected] &localroomname username
Example:
join_chat 0 [email protected] &chatroom ubuntu-user