Install kontalk [debian , ubuntu 64bit]

based on:
https://github.com/kontalk/desktopclient-java
https://github.com/kontalk/desktopclient-java/wiki

add backports, only for debian (so you can install latest software for your system):
sudo nano /etc/apt/sources.list
and add at the end:
deb http://ftp.de.debian.org/debian/ jessie-backports main
update it:
sudo apt-get update

install dependencies:
sudo apt-get install openjdk-8-jdk

maybe you also have to install android-studio (which ships with gradle):
https://fredfire1.wordpress.com/2015/06/13/install-android-studio-ubuntu/

get the sourcecode and run it:
cd ~
git clone https://github.com/kontalk/desktopclient-java.git
cd ~/desktopclient-java
git submodule update --init
cd ~/desktopclient-java/ && ./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64/ run

import your kontalk-keys.zip (the backup you have done from your android-client app)
and paste the password you used for kontalk-keys.zip

activate key-password and create a key password for the it
(you will be always asked for that password when you start kontalk in future)

now you can run it with:
cd ~/desktopclient-java/ && ./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64/ run

create a starter:
mkdir ‐p ~/.local/share/icons/
cd ~/.local/share/icons/
wget -O kontalk.png https://avatars3.githubusercontent.com/u/6746728

cd ~/.local/share/applications
nano kontalk.desktop

[Desktop Entry]
Name=Kontalk
Comment=a messanger app
Exec=sh -c 'cd /home/xxUserxx/desktopclient-java/ && ./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-8-openjdk-amd64/ run'
Icon=/home/xxUserxx/.local/share/icons/kontalk.png
Terminal=false
Type=Application
Categories=Application;Network;Internet;
StartupNotify=true

use the correct username in starter:
cd ~/.local/share/applications
sed -i 's/xxUserxx/'$USER'/' kontalk.desktop

enable emoticons:
based on:
http://www.omgubuntu.co.uk/2014/11/see-install-use-emoji-symbols-ubuntu-linux
sudo apt install ttf-ancient-fonts

install emoji picker(copied to clipboard):
https://github.com/gentakojima/emojione-picker-ubuntu

usage:
downloaded files are located in:
~/.kontalk/attachments

preview images are located in:
~/.kontalk/preview

remove kontalk:
sudo rm -r ~/desktopclient-java
sudo rm -r ~/.kontalk
sudo rm -r ~/.gradle
rm ~/.local/share/applications/kontalk.desktop
rm ~/.local/share/icons/kontalk.png

maybe also remove openjdk 8:
sudo apt-get purge openjdk-8-jdk

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