Skip to content
Steve Phillips edited this page Aug 16, 2015 · 7 revisions

Table of Contents

Library

There's some documentation here generated automagically by godoc based on the comments in the source code: https://godoc.org/github.com/janimo/textsecure

Client

Usage and installation instructions

The client has been built successfully on the following platforms:

  • Ubuntu 14.10
  • Arch Linux

Obtaining Dependencies

Debian based Distributions

Install dependencies:

  aptitude install golang mercurial

Arch Linux

Install dependencies:

  pacman -S go mercurial

Building the Project

You can technically put your GOPATH whereever you like as long as you like, we use ~/go/bin as an example:

  mkdir ~/go/bin; export GOPATH=~/go; export PATH=$PATH:$GOPATH
  go get github.com/janimo/textsecure/
  cd ~/go/src/github.com/janimo/textsecure/cmd/textsecure
  go build

Adjust the config file in `~/go/src/github.com/janimo/textsecure/cmd/textsecure/.config/config.yml`, e.g. adjust your phone number (or change verificationType to voice for landline numbers):

  tel: "+49174XXX"

Now start registration on the WhisperSystem server

  ./textsecure

Input the numer you recieved on your mobile phone via SMS

  Enter verification number (without the '-')>427-741
  2014/12/21 15:59:25 Registration done

After the successfull response, close the application. To send a message, create a contact in `~/go/src/github.com/janimo/textsecure/cmd/textsecure/.config/contacts.yml` and use this command:

  ./textsecure -to="Simon" -message="Secret Hello World"

you can also send attachments, e.g.

  ./textsecure -to="Simon" -message="Secret Hello World" -attachment="~/mypicture.png"