MJ...ATA...UBUNTU

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
joefayez77
MagicJack Newbie
Posts: 4
Joined: Thu Feb 12, 2009 2:57 am

MJ...ATA...UBUNTU

Post by joefayez77 »

Hello,

Anyone know how can i run the MJMD5 on the Ubuntu 9.0 , i run the MJMDM5 on the windows xp very succesfully .....but don;t know how can i do this on the UBUNTU
asragov
MagicJack Newbie
Posts: 6
Joined: Thu Apr 03, 2008 7:13 pm

Will not run (yet) in Linux

Post by asragov »

I tried running a MagicJack on the latest Ubuntu release (Lucid Lynx 10.04) - no dice.

Using WINE (the Windows emulator) only gets you as far as the "plug the MagicJack into the USB port" error image.

There has always been a lot of hope that there would be Linux software - that would make it easy to plug into a very small Linux thin client of some sort and use on our Linux machines.

But not yet....
newtoncd
Dan isn't smart enough to hire me
Posts: 216
Joined: Fri Jan 09, 2009 12:52 am

Re: Will not run (yet) in Linux

Post by newtoncd »

I haven't tried this, but at the following link, it says the source code can be compiled on any version of Linux.

http://www.phoneservicesupport.com/post42750.html#42750
-Curt
--magicJack user since Oct 08 w/magicFeatures
--D-Link DIR-655
-NetTalk DUO since Dec 10
newtoncd
Dan isn't smart enough to hire me
Posts: 216
Joined: Fri Jan 09, 2009 12:52 am

Re: Will not run (yet) in Linux

Post by newtoncd »

I just got it working .... it was pretty easy.

If you have an ATA and have your SIP credentials, follow the steps from digital offensive (pasted below):

1. Install the c compiler: yum –y install gcc or apt-get install gcc
2. Download mjproxy source: wget http://www.digitaloffensive.com/mjproxy.c.tar.gz
3. Extract the mjproxy source and libraries: tar –zxvf mjproxy.c.tar.gz
4. Compile the mjproxy source to an executable: gcc -o mjproxy md5.c mjproxy.c
5. Give it rights to run and execute: chmod 777 mjproxy
6. Run the mjproxy: ./mjproxy 0.0.0.0 5070 proxy01.yoursite.talk4free.com 5070 your_password
7. Issue a ps –wuax to make sure the mjproxy process is running
8. Plug in your ATA and set the proxy to the computer running mjproxy, enter your SIP credentials on the ATA config screen and when you hit save, the green light will come on.

Any questions, let me know.
-Curt
--magicJack user since Oct 08 w/magicFeatures
--D-Link DIR-655
-NetTalk DUO since Dec 10
Polydwarf
MagicJack Newbie
Posts: 4
Joined: Sun May 09, 2010 2:07 pm

Post by Polydwarf »

I just did this this morning, and in addition to all that, I made a quick'n'dirty script that checks to see if mjproxy is running, and if it isn't, starts it up:

Code: Select all

#!/bin/sh

theExist=`pidof mjproxy`;

if test -z "$theExist"; then
        /misc/magicjack/mjproxy 0.0.0.0 5070 <your proxy server goes here> 5070 <your password goes here>
fi;
(obviously, change /misc/magicjack/mjproxy to whatever is appropriate for your system).

From there, set up a cron job to run at whatever interval you like (I have it going every minute), and you're good to go.

The cron job starts it up on machine reboots, so no need to mess with init scripts, or rc.local, or anything like that. And, in case it ever crashes, it gets automatically restarted.
joefayez77
MagicJack Newbie
Posts: 4
Joined: Thu Feb 12, 2009 2:57 am

Post by joefayez77 »

Thank you for your reply newbie, but i discover somthing in the new Ubuntu , is called Startup application, all you need just add the Mjproxy Command and it will run with the startup ....easy enough :)
Post Reply