How can I set up routes on my Droid

Discussion in 'Android Hacks and Help' started by Chris.Nelson, Aug 10, 2011.

  1. Chris.Nelson

    Chris.Nelson Member

    Joined:
    Dec 29, 2009
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Clifton Park, NY
    Ratings:
    +0
    I have CM7 and OpenVPN installed on my Droid. I can establish a VPN tunnel and get an IP address from my office. In a terminal emulator, I can do
    Code:
    ssh user@10.x.x.x
    and log into my server. What I want to be able to do is
    Code:
    ssh user@host
    and also to click through links in e-mail notifications from our Trac system (e.g.,
    Code:
    https://trac.example.com/trac/ticket/1234
    ). I tried editing /etc/hosts but it seems to be on a read-only file system. How can I make my Droid know my hosts by name?
     
  2. harrumph

    harrumph New Member

    Joined:
    Aug 13, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I think you are on the right track with /etc/hosts, it is just not letting you edit the file because /etc is mounted Read Only. You can su to root in Terminal then cp /etc/hosts /sdcard, then edit the /sdcard/hosts file with your internal info and save the file back to /etc/sdcard. Now use Root Explorer to mount /etc/hosts RW and copy your new hosts over.

    It may be easier to just edit your hosts file with a root enabled file explorer like Root Explorer depending upon how big your hosts file is.