2

Is it possible to execute Whats app in Ubuntu 12.04?

I executed the command

sudo apt-get install pidgin-whatsapp

and get the following error message

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pidgin-whatsapp

what is the problem with the command.

1
  • But unable to connect with pidgin-whatsapp and getting Server closed the connection error on pidgin, Is there any other client ? Jun 22, 2017 at 10:16

5 Answers 5

4

You need to add its repository before you try to install the plugin.

Execute the following:

sudo add-apt-repository ppa:whatsapp-purple/ppa
sudo apt-get update
sudo apt-get install pidgin-whatsapp
1
  • But unable to connect and getting Server closed the connection error on pidgin, Is there any other client ? Jun 22, 2017 at 10:09
2

How To: Use WhatsApp under Ubuntu

There are many ways to get WhatsApp Messenger to work on Ubuntu, some I have tried, such as a native WhatsApp replacement called WhosThere (Now Discontinued), or via emulator. You can read more about all that here: "WhatsApp and Viber in Ubuntu 13.04". But, we will now get WhatsApp to work using Pidgin, the universal chat client, with a third party plugin called whatsapp-purple. Do note that WhatsApp cannot be activated on your Desktop and phone at the same time.

Yowsup

Yowsup is - simply put - A library to use WhatsApp from Python. Not so simply put:

Yowsup allows you to login and use the Whatsapp service and provides you with all capabilities of an official Whatsapp client, allowing you to create a full-fledged custom Whatsapp client. - About Yowsup, github.com/tgalal/yowsup/

Yowsup depends on some packages, install them as follows:

sudo apt-get install python python-dateutil python-argparse

The commands below will download, unpack, and open the Yowsup config file.

wget https://github.com/tgalal/yowsup/archive/master.zip
unzip master.zip
cd yowsup-master/src
cp config.example yowsup-cli.config
nano yowsup-cli.config

You don't have to use nano, use an editor that you are most comfortable with. As you are editing the yowsup config file: yowsup-cli.config, find the line phone=XXXXXXXXXX, type in you phone number with country code (For example: +31612345678).

When you have done that, we'll have to make the file executable: chmod +x yowsup-cli. When we are able to execute the file, we will request an authorization code:

./yowsup-cli --requestcode sms --config yowsup-cli.config

After you received the code - usually in the following format: "XXX-XXX" - we will register it:

./yowsup-cli --register XXX-XXX --config yowsup-cli.config

It should display the information you need. In my case it displayed it immediately after running the command:

./yowsup-cli --register 503-417 --config yowsup-cli.config
Detected cc: 31
status: ok
kind: paid
pw: EDITED OUT
price: € 0,89
price_expiration: EDITED OUT
currency: EUR
cost: 0.89
expiration: 4444444444.0
login: EDITED OUT
type: existing 

Don't close that terminal window. I could not find the outputted information anywhere. Copy the information from the terminal using Cntrl + Shift + C. Save it somewhere, for example in yosup.txt.

Pidgin

Now, we will install pidgin, and the pidgin-whatsapp plugin:

sudo add-apt-repository ppa:whatsapp-purple/ppa
sudo apt-get update
sudo apt-get install pidgin pidgin-whatsapp

Select the WhatsApp protocol from the drop down menu:

Your user name is your phone number, with country code, and password is in the file you previously copied and saved. pw: longpassword. Copy them both in, click add, then you should get all the groups you're in. Again, remember, this cannot work when you also have it activated on your phone. Either desktop, or phone, but not both at the same time.

Pidgin Account Window

That was it. Hopefully in the future they will change the infrastructure so that both can be activated at the same time. Or even better, follow in the footsteps of Viber, and release a desktop client for Linux.

References:

Source:

Excerpt from:

Which I am the author of.

6
  • Doesn't work. First, there's neither config.example, nor even src dir. But whatever, I found the example here. Second, the command outputs error: ./yowsup-cli --requestcode sms --config config.example Available commands: =================== demos, version, registration
    – Hi-Angel
    May 28, 2016 at 10:35
  • Aha, thanks to this and this, it seems that command line now changed, and the command would look like this ./yowsup-cli registration --requestcode sms --config config.example. But it still outputs error — this time about an index being out of range. Looking at stacktrace, I'd guess that the config file is wrong. It'd be nice now to find the right one.
    – Hi-Angel
    May 28, 2016 at 10:48
  • Okay, I figured it out. No need in whatever config file, the right command to get the code is ./yowsup-cli registration --requestcode sms -C YourContryCode -p YourContryCodeThenPhoneNumber, where YourContryCode to be replaced with the code, and YourContryCodeThenPhoneNumber with the code and following number. E.g. for Russia: ./yowsup-cli registration --requestcode sms -C 7 -p 71234567890. What's worrying me though is that the code still doesn't come… I guess, API broke — yesterday I tried some site to get the code, and that didn't work either.
    – Hi-Angel
    May 28, 2016 at 10:59
  • Yay, sms didn't work, but «voice» worked! Just change sms to voice, they would call you. Note, however, the language is english with disregard to country, so if you don't know it well, you may want to record the call.
    – Hi-Angel
    May 28, 2016 at 11:11
  • @Hi-Angel @all But unable to connect and getting Server closed the connection error on pidgin, Is there any other client ? Jun 22, 2017 at 10:14
0

You can only install whatsapp via an emulator like Bluestacks.

Or check this link: How To: Use WhatsApp under Ubuntu - EuroBytes

0

Mine did work. If anyone is still having this issue here is how i did it;

I first navigated to the folder where my yowsup-master is then I run the following command to get the config example,

    ./yowsup-cli registration --help-config

Then copy the config to your favorite text editor, edit the phone number details, then save the file as yowsup-cli.config, then run the following command;

   ./yowsup-cli registration --requestcode sms --config yowsup-cli.config 

The n they will send you a confirmation code

0

I use Franz a free messaging app that combines chat & messaging services into one application.

Franz currently supports Slack, WhatsApp, WeChat, HipChat, Facebook Messenger, Telegram, Google Hangouts, GroupMe, Skype and many more.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .