-
Notifications
You must be signed in to change notification settings - Fork 1
Configure Pidgin for Kontalk
To make Pidgin running on the Kontalk network you need the following prerequisites: a mobile with Kontalk Messenger installed and configured for sending messages[1]; Pidgin installed on your GNU/Linux machine[2]. If you don't have one or both of this prerequisites please refer to the following websites:
Export the Kontalk keys. Open Kontalk Messenger in your mobile then go to the Settings menu and chose Export your personal key. This will save in your SD card the file kontalk-keys.zip which contains your personal key and login certificates. Transfer the file kontalk-keys.zip to your GNU/Linux machine.
Start the SSL tunnel bridge. Create the folder "kontalk" in your home directory (it does not matter the name of the folder), extract from the file kontalk-keys.zip the files kontalk-login.crt and kontalk-login.key and place theme into the folder kontalk. Download the file ssl_bridge.py into the kontalk folder and make it executable for your Linux user:
chmod 755 ssl_bridge.py
Now that you should have the files ssl_bridge.py, kontalk-login.crt and kontalk-login.key you are ready to run the SSL tunnel bridge with the following command:
./ssl_bridge.py -d -p 5224 --domain beta.kontalk.net -c kontalk-login.crt -k kontalk-login.key beta.kontalk.net:5222
This will start to listen on port 5224 which will be forwarded to beta.kontalk.net:5222 after STARTTLS have been negotiated.
Open Pidgin in the Account menu chose Manage your account, then create a new XMPP account with the following parameters:
- Protocol: XMPP
- Username: chose-your-user
- Domain: beta.kontalk.net
- Password: Chose your password (and flag remember it)
In the advanced tab chose:
- Security of connection: Use encryption if available
- check Allow plaintext auth over unencrypted streams
- connect port: 5224
- connect server: localhost
Compile and install the Kontalk plugin for Pidgin. Download the Kontalk plugin for Pidgin to your computer and compile it with:
make
Then install the plugin in the folder ~/.purple/plugins with the command
make install
Compile and install the pidgin-xmpp-receipts. Download the pidgin-xmpp-receipts to your computer and compile it.
make
Then install the plugin in the folder ~/.purple/plugins with the command
make install
Import your private key. Extract the file kontalk-private.asc from the file kontalk-keys.zip and import it in your gpg keyring:
gpg --import kontalk-private.asc
Now you need to know which is the ID of your private key. Run
gpg --list-key
and look for a key with you Kontalk's name and something like <long-hash@beta.kontalk.net>.
Configure the Kontalk plugin for Pidgin*. Copy the ID of the key then go to Pidgin > Tools > Plugin, select "Kontalk integration" then chose Configure and paste the ID of your private key. Then activate the plugins Kontalk integration and XMPP Receips 0.6.
Now you can start the XMPP account for Kontalk.
When you start or receive new messages form your Kontalk contact you will only see the hash instead of the name of the contacts, unfortunately you should rename the contact's hash with the name.