install kontalk on debian [debian]

This project is OUTDATED:
try
https://fredfire1.wordpress.com/2016/05/12/install-kontalk-debian-64bit/

this instruction will create a pidgin plugin for kontalk
20.5.16 updated so it works with encryption
based on:
https://github.com/kontalk/client-adapters/wiki/Configure-Pidgin-for-Kontalk

check if gnupg2 version is a least 2.1.3:
gpg2 --version #if you do not have at least 2.1.3 you have to install latest gpg2 from sid

if your gnupg2 is not at least 2.1.3 install latest gnupg2 from sid:
add sid to repos and install latest gnupg2 from sid:
sudo nano /etc/apt/sources.list
and add at the end of the file:
deb http://ftp.de.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib

sudo nano /etc/apt/apt.conf.d/99myDefaultRelease
and copy into the file:
APT::Default-Release "jessie";

sudo apt-get clean
sudo apt update
sudo apt install -t sid gnupg2
sudo apt install -t sid libgpgme11-dev

now remove sid from repo:
sudo nano /etc/apt/sources.list
uncomment the last two lines that are for the source sid with a “#” at the beginning

sudo rm /etc/apt/apt.conf.d/99myDefaultRelease
sudo apt-get clean
sudo apt-get update

install software (pc):
sudo apt-get install pidgin python-twisted git-core pidgin-data libpurple0 libpurple-dev pidgin-dev libgtk2.0-dev -y

that will take some time…

start pidgin once (pc):
cd
pidgin

close pidgin
“ctrl+c” quit it in terminal

create a kontalk directory (pc):
cd
mkdir kontalk
cd ~/kontalk/

export kontalk key (phone):
menu -> settings ->export privat key
and copy that kontalk-key.zip file over to your xxDebian_Userxx-pc into the folder /home/xxDebian_Userxx/kontalk/

unzip the keys (pc):
cd ~/kontalk/
unzip kontalk-keys.zip -d /$HOME/kontalk/
rm kontalk-keys.zip

import certificates and note the key (pc):
cd ~/kontalk/
gpg --import kontalk-private.asc

my output was:
debian@debian:~/kontalk$ gpg --import kontalk-private.asc
gpg: Schlüssel 3F62F5EA: geheimer Schlüssel importiert
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 1
gpg: gelesene geheime Schlüssel: 1
gpg: geheime Schlüssel importiert: 1

so my key is 3F62F5EA
you will have a different key (note your key, you need it later)

cd ~/kontalk/
gpg --import kontalk-public.asc

only for info:
gpg --list-key
gpg --list-secret-key

get the bridge (pc):
cd ~/kontalk/
wget https://raw.githubusercontent.com/kontalk/client-adapters/master/tunnel/ssl_bridge.py
chmod 755 ssl_bridge.py

install build dependencies for pidgin:
sudo apt-get build-dep pidgin

install pidgin-xmpp-receipts (pc):
cd ~/kontalk/
git clone https://github.com/kontalk/pidgin-xmpp-receipts.git
cd ~/kontalk/pidgin-xmpp-receipts
make install

install client-adapters (pc):
cd ~/kontalk/
git clone https://github.com/kontalk/client-adapters.git
cd ~/kontalk/client-adapters/pidgin
make install

activate the pidgin plugins (pc):
open pidgin -> tools -> plugins(ctrl + u) -> activate “Kontalk integration0.1”
on the bottom click on “Configure plugin” and paste the key you noted before (mine was 3F62F5EA)
open pidgin -> tools -> plugins(ctrl + u) -> activate “XMPP Receipts0.6”
Password: anything (and flag remember it)

run the bridge (pc):
(everytime you want to use kontalk in pidgin you have to run the ssl_bridge first)

cd ~/kontalk/
./ssl_bridge.py -d -p 5224 --domain beta.kontalk.net -c kontalk-login.crt -k kontalk-login.key beta.kontalk.net:5222

add a kontalk account in pidgin (pc):
konten -> konten verwalten -> Hinzufügen ->
Protocol: XMPP
Username: chose-your-user
Domain: beta.kontalk.net
Password: anything (and flag remember it)

In the advanced tab:
Security of connection: Use encryption if available
check Allow plaintext auth over unencrypted streams
connect port: 5224
connect server: localhost

remove kontalk (pc):

in pidgin remove the kontalk account

remove the kontalk folder:
cd
sudo rm -r kontalk

remove the kontalk logs:
cd ~/.purple/logs/jabber/
sudo rm -r *@beta.kontalk.net

remove the kontalk plugins:
cd ~/.purple/plugins
sudo rm kontalk.so
sudo rm xmpp-receipts.so

remove all kontalk secret-keys:
get the names of all secret-keys
gpg --list-secret-key
and remove all kontalk related secret-keys
gpg --delete-secret-key xxx

remove all kontalk keys:
get the names of all keys
gpg --list-key
and remove all kontalk related keys
gpg --delete-key xxx

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s