true-binary.com – code is poetry…

HOME

tor (the onion router) on meego harmattan

19.12.2012 (9:50 pm) – Filed under: Uncategorized, meego

tor-170x170

here’s a quick and dirty howto run the tor-service on your meego/harmattan device for anonymous internet traffic:

pre-dependencies:

  • inception
  • opensh_1.00_armel (incept the package … you need it to gain more rights)

after the inception of opensh, you can try to check if it worked:

~ $ id
uid=29999(user) gid=29999(users) groups=0(root),20(dialout),44(video),670(pulse-access),29999(users),30011(metadata-users),30016(gallerycoredata-users),30019(calendar),9990210,9990276,9990277,9990279,9990281, 9990282,9990284,9990285,9990286,9990287,9990288,9990289,9990609
~ $ opensh

/home/user # id
uid=0(root) gid=0(root) groups=0(root),1(daemon),2(bin),3(sys),4(adm),5(tty),6(disk),7(lp),8(mail), 9(news),10(uucp),12(man),13(proxy),15(kmem),20(dialout),21(fax),22(voice), 24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),33(www-data),34(backup),37(operator),38(list),39(irc),40(src),41(gnats),42(shadow), 43(utmp),44(video),45(sasl),46(plugdev),50(staff),60(games),100(libuuid), 101(debian-tor),669(pulse),670(pulseaccess),671(pulsert),29996(cal), 29999(users),30002(input),30003(i2c),30004(adc),30005(upstart),30010(crypto), 30011(metadatausers),30012(phonet),30013(signon),30014(csd), 30015(messagebus),30016(gallerycoredatausers),30017(acm), 30018(osa),30019(calendar),30020(libaccountsnoa),30021(lpm), 30022(visualreminder),30023(nfc),30024(location),30025(slpgwd), 30026(haldaemon),30027(powerdev),30028(developer),30029(ssh),65100(spool), 65534(nogroup),9990001,9990004,9990245,9990256,9990257,9990258,9990259, 9990260,9990261,9990262,9990263,9990264,9990265,9990266,9990270,9990276, 9990277,9990279,9990281,9990282,9990284,9990285, 9990286,9990287,9990288,9990289,9990294,9990297,9990298,9990300, 9990301,9990302,9990306,9990307,9990308,9990309,9990313,9990314, 9990315,9990316,9990317,9990320,9990326,9990327, 9990330,9990331,9990332,9990334,9990337,9990346,9990352,9990353, 9990355,9990356,9990361,9990367,9990368,9990374,9990376,9990377, 9990381,9990382,9990384,9990385,9990387,9990388, 9990390,9990391,9990393,9990394,9990396,9990397,9990401,9990402, 9990403,9990404,9990405,9990406,9990407,9990408,9990409,9990410, 9990413,9990414,9990415,9990416,9990417,9990418, 9990419,9990420,9990421,9990422,9990423,9990424,9990427,9990430, 9990433,9990438,9990439,9990440,9990442,9990448,9990453,9990454, 9990466,9990478,9990482,9990483,9990491,9990492, 9990493,9990494,9990497,9990500,9990501,9990508,9990511,9990512, 9990521,9990526,9990534,9990536,9990547,9990574,9990575,9990577, 9990578,9990588,9990590,9990594,9990649

whooop … looks good!

now we come to some tricky stuff:

  1. enable rzr’s repository (setup repository)
  2. install tor through command line: apt-get install tor

… apt will now go crazy with alot of permission errors:

  • chown: /var/lib/tor: Operation not permitted

to fix this – change the ownership for all the errors manually (through opensh):

  • chown debian-tor:debian-tor /var/lib/tor
  • chown debian-tor:debian-tor /var/run/tor

… now we have to check if we use our phone as dns-server …

the file “/etc/resolv.conf” should contain the following string:

nameserver 127.0.0.1

… the next step is to configure the torrc file “/etc/tor/torrc”

mine looks like this:

SocksPort 9050 # what port to open for local application connections
SocksListenAddress 127.0.0.1 # accept connections only from localhost
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
DNSPort 53
RunAsDaemon 1

… tor should be staring up as a daemon now! :)

to make things easier, I packed some scripts together to handle tor through 3 desktop icons:

  1. to start tor for all traffic
  2. to start tor in background (for example: in fennec/firefox set socks proxy to localhost:9050)
  3. to stop tor and unset system-wide proxy settings

2012-12-19_20-28-47

here you can download torswitch0.1

cheers!

22 Responses to “tor (the onion router) on meego harmattan”

  1. The Onion Router (TOR) for the Nokia N9 - Everything N9 Says:

    [...] The official website, to check out TOR for the Nokia N9, is located here: http://www.true-binary.com/?p=316 [...]

  2. Red TOR en Nokia N9 | El Blog de Negu Says:

    [...] FUENTE: http://www.true-binary.com/?p=316 [...]

  3. mexicanitch Says:

    Hi,

    i tried to install tor, but eventually something went wrong while doing that. I would like to remove it and set back everything to the original. now i cannot connect to facebook through the built in app, only via the browser, and also have some problem with tor while installing libpcap0.8. Any idea for the solution?
    many thanks.

  4. chaos Says:

    hi mexicanitch!

    note: you should run these commands in a privileged shell ( devel-su ) – I would also gain all user and group rights before ( opensh )

    the command to remove tor and torswitch completely is:

    apt-get remove –purge tor torswitch

    to set back the the command is:

    gconftool-2 -u /system/proxy/socks_host && gconftool-2 -u /system/proxy/socks_port

    … to your libpcap problem – could you please try to install it through command line with the following command and post your output:

    dpkg -i /location/to/libpcap0.8.deb

    or if you are working in open mode:

    AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i /location/to/libpcap0.8.deb

    cheers,
    chaos

  5. mexicanitch Says:

    Hi Chaos,
    thanks for help,
    here is the output:
    Is there anything I’m not doing right?
    many thanks.

    login as: user
    user@192.168.0.100’s password:

    BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    ~ $ devel-su
    Password:

    BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    ~ # apt-get remove .purge tor torswitch
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package .purge
    ~ # ariadne sh
    Password for ‘root’:

    BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    ~ # apt-get remove .purge tor torswitch
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Couldn’t find package .purge
    ~ # gconftool-2 -u /system/proxy/socks_host && gconftool-2 -u /system/proxy/sock
    s_port
    ~ # AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i /location/to/libpcap0.8.deb
    AEGIS_FIXED_ORIGIN override only allowed in OPEN MODE device
    Aegis rejecting /location/to/libpcap0.8.deb: Could not open debian archive
    aegis aborting dpkg — all listed package files rejected
    Compilation failed in require.
    ~ # dpkg -i /location/to/libpcap0.8.deb

    Aegis rejecting /location/to/libpcap0.8.deb: Could not open debian archive
    aegis aborting dpkg — all listed package files rejected
    Compilation failed in require.

  6. mexicanitch Says:

    So thats what I get when I try to install libcap0.8

    ~ # dpkg -i /to/libpcap0.8.deb
    Aegis rejecting /to/libpcap0.8.deb: Could not open debian archive
    aegis aborting dpkg — all listed package files rejected
    Compilation failed in require.
    ~ # apt-get install tcpdump libpcap0.8
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    tcpdump is already the newest version.
    libpcap0.8 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up tor (0.2.1.30-1) …
    chown: /var/lib/tor: Operation not permitted
    dpkg: error processing tor (–configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    tor
    Updating desktop entries… Done
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    ~ #

  7. mexicanitch Says:

    Likely I’m doing something that is not quite correct…

    ~ $ devel-su
    Password:

    BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    ~ # ariadne sh
    Password for ‘root’:

    BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
    Enter ‘help’ for a list of built-in commands.

    ~ # dpkg -i /to/libpcap0.8.deb
    Aegis rejecting /to/libpcap0.8.deb: Could not open debian archive
    aegis aborting dpkg — all listed package files rejected
    Compilation failed in require.
    ~ #

  8. chaos Says:

    sorry for my delay, …

    … please check the code i’ve posted again! … it looks like u made a copy and paste and the symbols changed from “–” to “”..”
    … i do have an other encoding-type than you have!

    and “dpkg -i /to/libpcap0.8.deb” wont work. dpkg tells you the reason why:
    “Aegis rejecting /to/libpcap0.8.deb: Could not open debian archive

    that means that you habe to point to the libpcap0.8.deb file after “dpkg -i ”
    for example:

    if your libpcap0.8.deb file is under “/home/user/ MyDocs/Downloads/” your command would look like this:

    dpkg -i /home/user/MyDocs/Downloads/libpcap0.8.deb

    cheers

  9. playstation games Says:

    My brother recommended I would possibly like this web site. He was totally right. This post actually made my day. You cann’t believe simply how a lot time I had spent for this information! Thanks!

  10. Santiago Says:

    Hi chaos, great tutorial. I did everything you said but when starting tor (all traffic) going to “myIP” like sites, show me the same IP as un-routed, so tor routing is not working. i tried to turn routing off and then on, but still the same. The least clear of the steps for me is the torrc file. Should i change something there? Dunno what these lines do exactly, can you help me?

    VirtualAddrNetwork 10.192.0.0/10
    AutomapHostsOnResolve 1
    TransPort 9040
    DNSPort 53

  11. Santiago Says:

    I think the problem would be the command “chown debian-tor:debian-tor /var/lib/tor” because when installing something else or entering “dpkg –configure -a” it complains about dpkg encountwered an error processing tor, and got the error code 1

    any ideas?

  12. coat sale toronto Says:

    ugg shoes dublin ugg driving shoes ugg infant boots sale shop cheap uggs shoes fashion 2008 spring bailey button uggs fall 2012 colors ugg auatralia uggs shoes and boots womens alloway glitter in red light by ugg authentic classic short black ugg boot ugg australia cheap online store baby blue uggs kids kids pink cardy uggs uggs 41 official ugg site cheap ugg boots at discount ugg ultra tall black boots for girls bfree returns on ugg australia ugg snow boots 007 make up bcheap chestnut rylan uggs 1871 discount ugg dakota slippers
    coat sale toronto http://www.jonesimage.com/internal/canada-goose-sale/c9coat-sale-toronto$04bp.asp

  13. wholesale authentic soccer jerseys Says:

    My programmer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year and am worried about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any help would be really appreciated!

  14. ohio state football jersey authentic Says:

    The other day, while I was at work, my sister stole my iphone and tested to see if it can survive a forty foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone!

  15. ugg womens maylin Says:

    My programmer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using WordPress on various websites for about a year and am worried about switching to another platform. I have heard good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any kind of help would be greatly appreciated!
    ugg womens maylin http://belsoggiornohotel.com/easyUp/events/UGG/@026xuugg-womens-maylin@728ga.asp

  16. uggs for men fashion Says:

    First of all I want to say wonderful blog! I had a quick question which I’d like to ask if you do not mind. I was interested to know how you center yourself and clear your head before writing. I have had trouble clearing my thoughts in getting my ideas out. I do enjoy writing however it just seems like the first 10 to 15 minutes are generally lost simply just trying to figure out how to begin. Any suggestions or tips? Kudos!
    uggs for men fashion http://enettechnologies.com/fckeditor/userfiles/media/UGG/0@05gmuggs-for-men-fashion3@76zn.asp

  17. cheap michael kors Says:

    cheap michael kors…

    true-binary.com…

  18. cheap online jerseys china Says:

    This design is wicked! You most certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you presented it. Too cool!

  19. ysl shoulder bag Says:

    Greetings from Florida! I’m bored to tears at work so I decided to browse your website on my iphone during lunch break. I love the knowledge you provide here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my phone .. I’m not even using WIFI, just 3G .. Anyways, fantastic blog!

  20. v2 cigs review 2014 Says:

    This of course a kind electronic cigarette of
    amount of nicotine to smokers who have never tried to quit tobacco and menthol and distinctive
    brand flavors. That’s very straightforward and you won’t have a savings of
    $869 per year.

  21. hulu arrow Says:

    WOW just what I was looking for. Came here by searching for lotus elise

  22. 16 ounce blue Says:

    Nice post. I learn something new and challenging on blogs I
    stumbleupon everyday. It’s always exciting to read content from other authors and use a little something from their web sites.

Leave a Comment
(All comments are moderated before they appear on the site.)


 
buy autodesk revit 2015 buy adobe after effects cc buy corel pdf fusion buy rosetta stone dutch buy autodesk autocad mechanical 2014 buy adobe dreamweaver cs5 buy microsoft onenote 2010 buy microsoft office 2013 professional buy adobe captivate 5 buy autodesk 3ds max 2013