Last active
November 9, 2024 10:22
-
-
Save angeloreale/f891cc50f0c8464e242d57641e800b66 to your computer and use it in GitHub Desktop.
Integrating Weechat IRC client with Facebook via Bitlbee, Freenode and Gitter using a VPS and Tmux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Integrating Weechat IRC client with Facebook via Bitlbee, Freenode and Gitter using a VPS and Tmux. | |
# Installing Weechat and Bitlbee. | |
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E | |
$ sudo apt-get install apt-transport-https | |
$ echo "deb https://weechat.org/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/weechat.list | |
$ echo "deb-src https://weechat.org/ubuntu bionic main" | sudo tee -a /etc/apt/sources.list.d/weechat.list | |
$ echo "deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_18.04 ./" | sudo tee -a /etc/apt/sources.list.d/weechat.list | |
$ echo "deb http://code.bitlbee.org/debian/master/bionic/amd64/ ./" | sudo tee -a /etc/apt/sources.list.d/weechat.list | |
$ wget -O- https://code.bitlbee.org/debian/release.key | sudo apt-key add - | |
$ wget -O- https://jgeboski.github.io/obs.key | sudo apt-key add - | |
$ sudo apt-get update | |
$ sudo apt-get install weechat-curses weechat-plugins weechat-python weechat-perl bitlbee-facebook | |
# Setting up Bitlbee | |
$ tmux | |
$ weechat | |
######################################### | |
## on weechat | |
/server add im localhost/6667 -autoconnect | |
/server add freenode chat.freenode.net/6697 -autoconnect | |
/server add gitter irc.gitter.im/6697 -autoconnect | |
### add SSL on freenode and gitter, add token password on gitter | |
/set irc.server.freenode.ssl on | |
/set irc.server.gitter.ssl on | |
/set irc.server.gitter.password ****************************************** | |
/connect im | |
/connect freenode | |
/connect gitter | |
######################################### | |
## on 2. &bitlbee | |
register <password> | |
account add facebook <email> <password> | |
account facebook on | |
### auto login to facebook | |
account facebook set auto_connect on | |
/set irc.server.im.command "/msg &bitlbee identify <password>" | |
### join fb group chats using the id on the facebook chat link (open facebook chat in browser and fetch the number after the last slash) | |
chat add facebook <123456789> #some-channel | |
/join #some-channel | |
### auto-join chats | |
channel <channel> set auto_join true | |
### rename contacts | |
rename oldnick newnick | |
### remove away devoices (less clutter) | |
channel set show_users online,away | |
###! save bitlbeeconfigs | |
save | |
####################################### | |
# register nick on freenode | |
# (Ctrl+x until your on the freenode server inside the buffer 1.) | |
/msg nickserv register your_password your_email_address | |
### get the command that arrived at your email address and issue it. | |
### setup auto login on freenode | |
/set irc.server.freenode.command "/msg nickserv identify Your-Nick Your-Password" | |
######################################## | |
# setup gitter (Ctrl+x until your on the gitter server inside the buffer 1.) | |
/nick <your-gitter-user> | |
######################################## | |
#filter join,part and quit annoying messages | |
/filter add joinquit * irc_join,irc_part,irc_quit * | |
######################################## | |
# save general weechat configs and layout | |
/save | |
/layout store <layout> #leave <layout> empty for default | |
# open layout | |
/layout apply <layout> | |
######################################## | |
# leave Tmux session open while returning to VPS ssh session | |
# Ctrl+b , d | |
# reopen Tmux session after ssh session opened in VPS | |
$ tmux attach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment