Active Topics

 



Notices


Reply
Thread Tools
dadaniel's Avatar
Posts: 20 | Thanked: 46 times | Joined on Apr 2012 @ Austria
#1
hi folks!

i wrote a quick and dirty howto install, run and control the tor service on your meego device:


tor (the onion router) on meego harmattan




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,999 0279,9990281, 9990282,9990284,9990285,9990286,9990287,9990288,99 90289,9990609
~ $ opensh

/home/user # id
uid=0(root) gid=0(root) groups=0(root),1(daemon),2(bin),3(sys),4(adm),5(tt y),6(disk),7(lp),8(mail), 9(news),10(uucp),12(man),13(proxy),15(kmem),20(dia lout),21(fax),22(voice), 24(cdrom),25(floppy),26(tape),27(sudo),29(audio),3 0(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),2999 6(cal), 29999(users),30002(input),30003(i2c),30004(adc),30 005(upstart),30010(crypto), 30011(metadatausers),30012(phonet),30013(signon),3 0014(csd), 30015(messagebus),30016(gallerycoredatausers),3001 7(acm), 30018(osa),30019(calendar),30020(libaccountsnoa),3 0021(lpm), 30022(visualreminder),30023(nfc),30024(location),3 0025(slpgwd), 30026(haldaemon),30027(powerdev),30028(developer), 30029(ssh),65100(spool), 65534(nogroup),9990001,9990004,9990245,9990256,999 0257,9990258,9990259, 9990260,9990261,9990262,9990263,9990264,9990265,99 90266,9990270,9990276, 9990277,9990279,9990281,9990282,9990284,9990285, 9990286,9990287,9990288,9990289,9990294,9990297,99 90298,9990300, 9990301,9990302,9990306,9990307,9990308,9990309,99 90313,9990314, 9990315,9990316,9990317,9990320,9990326,9990327, 9990330,9990331,9990332,9990334,9990337,9990346,99 90352,9990353, 9990355,9990356,9990361,9990367,9990368,9990374,99 90376,9990377, 9990381,9990382,9990384,9990385,9990387,9990388, 9990390,9990391,9990393,9990394,9990396,9990397,99 90401,9990402, 9990403,9990404,9990405,9990406,9990407,9990408,99 90409,9990410, 9990413,9990414,9990415,9990416,9990417,9990418, 9990419,9990420,9990421,9990422,9990423,9990424,99 90427,9990430, 9990433,9990438,9990439,9990440,9990442,9990448,99 90453,9990454, 9990466,9990478,9990482,9990483,9990491,9990492, 9990493,9990494,9990497,9990500,9990501,9990508,99 90511,9990512, 9990521,9990526,9990534,9990536,9990547,9990574,99 90575,9990577, 9990578,9990588,9990590,9990594,9990649
whooop … looks good!

now we come to some tricky stuff:

enable rzr’s repository (setup repository)
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:

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



here you can download torswitch0.1

cheers!
__________________
------------------------------------------------------------------------------
-- www.true-binary.com
------------------------------------------------------------------------------
-- aptitude -vvvvvv moo
-- What is it? It's an elephant being eaten by a snake, of course.
------------------------------------------------------------------------------
 

The Following 14 Users Say Thank You to dadaniel For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#2
Great!!

Could be very handy
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 180 | Thanked: 79 times | Joined on Mar 2012
#3
It tells me that the opensh package is invalid.
 
Posts: 673 | Thanked: 230 times | Joined on Oct 2012 @ Mumbai
#4
root ssh and open sh are same or different
and if diff give me the code to incept open sh
 
dadaniel's Avatar
Posts: 20 | Thanked: 46 times | Joined on Apr 2012 @ Austria
#5
Originally Posted by Vromoth View Post
It tells me that the opensh package is invalid.
... I checked the opensh package again and it looks good to me:


Code:
~ $ dpkg --contents MyDocs/opensh_1.00_armel.deb
drwxr-xr-x 0/0         0 2011-11-21 14:35:09 ./
drwxr-xr-x 0/0         0 2011-11-21 14:35:08 ./usr/
drwxr-xr-x 0/0         0 2011-11-21 14:35:08 ./usr/share/
drwxr-xr-x 0/0         0 2011-11-21 14:35:08 ./usr/share/doc/
drwxr-xr-x 0/0         0 2011-11-21 14:35:09 ./usr/share/doc/opensh/
-rw-r--r-- 0/0       136 2011-11-04 14:51:49 ./usr/share/doc/opensh/changelog.gz
-rw-r--r-- 0/0       756 2011-07-11 10:55:32 ./usr/share/doc/opensh/copyright
drwxr-xr-x 0/0         0 2011-11-21 14:35:09 ./bin/
-rwxr-xr-x 0/0      3308 2011-11-21 14:35:09 ./bin/open-sh
-rwxr-xr-x 0/0      3308 2011-11-21 14:35:09 ./bin/opensh
... how did you incept the package?


-> for me it worked when i was logged in as root:

devel-su first, than develsh, than incept it through "/usr/sbin/incept opensh_1.00_armel.deb"
__________________
------------------------------------------------------------------------------
-- www.true-binary.com
------------------------------------------------------------------------------
-- aptitude -vvvvvv moo
-- What is it? It's an elephant being eaten by a snake, of course.
------------------------------------------------------------------------------
 

The Following User Says Thank You to dadaniel For This Useful Post:
dadaniel's Avatar
Posts: 20 | Thanked: 46 times | Joined on Apr 2012 @ Austria
#6
Originally Posted by zaidk9 View Post
root ssh and open sh are same or different
and if diff give me the code to incept open sh
... never tryed it thourgh rootssh, but you can have a look at the torswitch_*.desktop files, located under /usr/share/applications ... it simple calls a shell script through "opensh"
__________________
------------------------------------------------------------------------------
-- www.true-binary.com
------------------------------------------------------------------------------
-- aptitude -vvvvvv moo
-- What is it? It's an elephant being eaten by a snake, of course.
------------------------------------------------------------------------------
 

The Following User Says Thank You to dadaniel For This Useful Post:
Posts: 69 | Thanked: 37 times | Joined on Oct 2011
#7
Do you think this will help with tetherblocks? Thanks
 
dadaniel's Avatar
Posts: 20 | Thanked: 46 times | Joined on Apr 2012 @ Austria
#8
Originally Posted by spectrax0x View Post
Do you think this will help with tetherblocks? Thanks
tetherblocks?

if you mean tethering, than no, it wont work, because it sets the local gnome proxy through gconftool-2.

you could try and play with iptables when you are tethering your connection.
__________________
------------------------------------------------------------------------------
-- www.true-binary.com
------------------------------------------------------------------------------
-- aptitude -vvvvvv moo
-- What is it? It's an elephant being eaten by a snake, of course.
------------------------------------------------------------------------------
 

The Following 2 Users Say Thank You to dadaniel For This Useful Post:
Posts: 545 | Thanked: 560 times | Joined on Dec 2011 @ lebanon
#9
it didn't work in open mode ( i installed opensh ) tor won't start
 
dadaniel's Avatar
Posts: 20 | Thanked: 46 times | Joined on Apr 2012 @ Austria
#10
Originally Posted by myname24 View Post
it didn't work in open mode ( i installed opensh ) tor won't start
try this steps:

Code:
:~# devel-su
[your root password]
:~# develsh
:~# opensh
:~# tor
whats the error message then?
__________________
------------------------------------------------------------------------------
-- www.true-binary.com
------------------------------------------------------------------------------
-- aptitude -vvvvvv moo
-- What is it? It's an elephant being eaten by a snake, of course.
------------------------------------------------------------------------------
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:22.