Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Use HTC Magic as modem

  1. #11
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Use HTC Magic as modem

    Is there no way to create an Azinet opvn profile for network manager? This way all of the copying and pasting would be eliminated.

    I get this error if I try to import the Azilink profile:

    The file 'azilink.ovpn' could not be read or does not contain recognized VPN connection information

    Error: The file to import wasn't a valid OpenVPN client configuration..

  2. #12
    Join Date
    Jul 2008
    Beans
    21

    Re: Use HTC Magic as modem

    Quote Originally Posted by hotweiss View Post
    Is there no way to create an Azinet opvn profile for network manager? This way all of the copying and pasting would be eliminated.

    I get this error if I try to import the Azilink profile:
    I will try to look on it, I think you need first to make a fake interface and then try it. problem is that azilink bypasses encryption. I will try to ask ubuntudevs list later.

  3. #13
    Join Date
    Jul 2008
    Beans
    21

    Re: Use HTC Magic as modem

    Well
    if you make this file and then let it make the work for you you are no more in need of running commands in terminal.
    you need to change the XXX to exact path to your files, you can make a smarter script , but I am a lazy and bad programmer for that .
    Code:
    nano /home/XXX/resolv_azilink.conf
    and paste :
    
    domain lan
    search lan
    nameserver 192.168.56.1
    
    now save it and then : 
    
    sudo nano /usr/bin/azilink_vpn
    
    and paste this, and change XXX to your patches : 
    
    #! /bin/sh
    /home/XXX/adb forward tcp:41927 tcp:41927
    /etc/init.d/NetworkManager stop
    cp /home/XXX/resolv_azilink.conf /etc/resolv.conf
    openvpn --config /home/XXX/azilink.ovpn
    /etc/init.d/NetworkManager start
    
    then you can just run :
    sudo azilink_vpn
    and then you have you internet working to stop use ctrl+c
    
    you can make a launcher as application in terminal and ask it to run the same command.
    Last edited by Shwan.c; July 3rd, 2009 at 10:16 PM.

  4. #14
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Use HTC Magic as modem

    Quote Originally Posted by Shwan.c View Post
    Well
    if you make this file and then let it make the work for you you are no more in need of running commands in terminal.
    you need to change the XXX to exact path to your files, you can make a smarter script , but I am a lazy and bad programmer for that .
    Code:
    nano /home/XXX/resolv_azilink.conf
    and paste :
    
    domain lan
    search lan
    nameserver 192.168.56.1
    
    now save it and then : 
    
    sudo nano /usr/bin/azilink_vpn
    
    and paste this, and change XXX to your patches : 
    
    #! /bin/sh
    /home/XXX/adb forward tcp:41927 tcp:41927
    /etc/init.d/NetworkManager stop
    cp /home/XXX/resolv_azilink.conf /etc/resolv.conf
    openvpn --config /home/XXX/azilink.ovpn
    /etc/init.d/NetworkManager start
    
    then you can just run :
    sudo azilink_vpn
    and then you have you internet working to stop use ctrl+c
    
    you can make a launcher as application in terminal and ask it to run the same command.
    Thanks, I will try it

  5. #15
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Use HTC Magic as modem

    Quote Originally Posted by Shwan.c View Post
    Well
    if you make this file and then let it make the work for you you are no more in need of running commands in terminal.
    you need to change the XXX to exact path to your files, you can make a smarter script , but I am a lazy and bad programmer for that .
    Code:
    nano /home/XXX/resolv_azilink.conf
    and paste :
    
    domain lan
    search lan
    nameserver 192.168.56.1
    
    now save it and then : 
    
    sudo nano /usr/bin/azilink_vpn
    
    and paste this, and change XXX to your patches : 
    
    #! /bin/sh
    /home/XXX/adb forward tcp:41927 tcp:41927
    /etc/init.d/NetworkManager stop
    cp /home/XXX/resolv_azilink.conf /etc/resolv.conf
    openvpn --config /home/XXX/azilink.ovpn
    /etc/init.d/NetworkManager start
    
    then you can just run :
    sudo azilink_vpn
    and then you have you internet working to stop use ctrl+c
    
    you can make a launcher as application in terminal and ask it to run the same command.
    The only problem here is that adb has to be run as root. How do you run an application as root in a shell script?

    Edit: Nevermind, I just added echo "password" and it worked
    Last edited by hotweiss; July 5th, 2009 at 03:46 PM.

  6. #16
    Join Date
    Sep 2007
    Location
    Warsaw, Poland
    Beans
    629
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Use HTC Magic as modem

    Quote Originally Posted by hotweiss View Post
    The only problem here is that adb has to be run as root. How do you run an application as root in a shell script?

    Edit: Nevermind, I just added echo "password" and it worked
    Actually here are the instructions that I used to get it working:

    1)
    sudo nano /home/name/azilink/resolv_azilink.conf
    2) Paste the following:

    domain lan
    search lan
    nameserver 192.168.56.1
    3) CTRL-O, then CTR-X

    4)
    sudo nano /usr/bin/azilink_vpn
    5) Paste the following:

    #! /bin/sh
    sudo /home/XXX/adb forward tcp:41927 tcp:41927
    echo "password"
    /etc/init.d/NetworkManager stop
    cp /home/XXX/resolv_azilink.conf /etc/resolv.conf
    openvpn --config /home/XXX/azilink.ovpn
    /etc/init.d/NetworkManager start
    Please note that you have to enter the correct path of where adb is, and enter you real password (keep quotation marks) after echo.

    6) CTRL-O, then CTR-X

    7)
    chmod +x /usr/bin/azilink_vpn
    Thank-you Shawn.c.

  7. #17
    Join Date
    Jan 2008
    Beans
    42

    Re: Use HTC Magic as modem

    perfect. your udev lines got me going. this is working on the new t-mobile mytouch.

    -t-mobile mytouch
    -dell mini 9
    -ubuntu 9.04 (2.6.28-14)
    -eclipse 3.4 (ganymede)
    -android sdk 1.5 r3
    -adt 0.9
    -network-manager-openvpn 0.7.1~rc4
    -openvpn 2.1~rc11
    -azilink 2.0.2

  8. #18
    Join Date
    Apr 2006
    Beans
    21

    Re: Use HTC Magic as modem

    I would also be interested to have network-manager deal with the ovpn connexion with HTC/Android/Azilink... I'm pretty sure that it's just a mather of taking the content of the azilink.ovpn file and puting it at the right place in the network-manager vpn config dialog box...

    Someone knows how to do it?

  9. #19
    Join Date
    Nov 2005
    Location
    Uithoorn, The Netherlands
    Beans
    85
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: I have done it!

    Quote Originally Posted by hotweiss View Post
    Thanks for the instructions they worked. I noticed that the new Hero ROM has USB tethering enabled in the menu. Have you figured out how to use the Hero's built-in tethering? I am hoping that tethering could be a plug-n-play event...
    I am typing this on a Ubuntu Hardy 64 bit machine with the HTC Hero for the internet access.
    If you connect the USB cable and enable the internet sharing in the wireless settings menu of the Hero you will find a "unknown usb communications interface" in network manager of your ubuntu desktop.
    If you select that it will connect and voila.
    Plug and play (for once...)
    Help Conquer Cancer!
    Donate your idle processor time

  10. #20
    Join Date
    Jul 2008
    Beans
    21

    Re: I have done it!

    Quote Originally Posted by kingcharles1666 View Post
    I am typing this on a Ubuntu Hardy 64 bit machine with the HTC Hero for the internet access.
    If you connect the USB cable and enable the internet sharing in the wireless settings menu of the Hero you will find a "unknown usb communications interface" in network manager of your ubuntu desktop.
    If you select that it will connect and voila.
    Plug and play (for once...)
    We use Hero rom on magic and then The old Magic kernel ... so it will not work for us Plug and PLay , waitng for HTC to release source code first , until they do so , azilink is good .

    we can't use networkmanager-openvpn because the encryption is off using azilink.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •