{"id":56,"date":"2010-01-18T01:37:21","date_gmt":"2010-01-18T06:37:21","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=56"},"modified":"2010-02-13T15:31:33","modified_gmt":"2010-02-13T20:31:33","slug":"in-the-land-of-nokia-n810","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=56","title":{"rendered":"In the land of Nokia N810"},"content":{"rendered":"<p>Last December I acquired a Nokia N810 internet tablet. Now for those of you who aren&#8217;t familiar with this device, the Nokia N810 is an internet tablet that you can use for web browsing, listening to music, reading e-books, VOIP calls or what have you. In the end it&#8217;s basically a pocket sized computer.<\/p>\n<p>For more detailed information please view: <a title=\"http:\/\/en.wikipedia.org\/wiki\/Nokia_N810\" href=\"http:\/\/en.wikipedia.org\/wiki\/Nokia_N810\" target=\"_blank\">http:\/\/en.wikipedia.org\/wiki\/Nokia_N810<\/a><\/p>\n<p>The main reason why I had interest in this device, was due to a certain time when I was browsing the web, and I stumbled upon this <a title=\"http:\/\/www.irongeek.com\/i.php?page=maemo\/nokia-770-800-hacking-pen-testing\" href=\"http:\/\/www.irongeek.com\/i.php?page=maemo\/nokia-770-800-hacking-pen-testing\" target=\"_blank\">Irongeek<\/a> page.<\/p>\n<p>I thought to myself, &#8220;Well how cool is that? This is essentially a poor man&#8217;s Iphone that has a keyboard and is Linux based. Also, getting one used on Ebay would cost &lt; 200 dollars.&#8221;<\/p>\n<p>After making the final decision and purchasing one for a mere $176, I quickly turned it into a portable pentesting machine!<\/p>\n<p>To gain root is trivial, just install this:<\/p>\n<p><a title=\"http:\/\/maemo.org\/downloads\/product\/OS2008\/rootsh\/\" href=\"http:\/\/maemo.org\/downloads\/product\/OS2008\/rootsh\/\" target=\"_blank\">http:\/\/maemo.org\/downloads\/product\/OS2008\/rootsh\/<\/a><\/p>\n<p>Here&#8217;s a list of some of the applications that I&#8217;ve put on my Nokia N810:<\/p>\n<p>aircrack-ng<br \/>\nbtaudit<br \/>\nbtscanner<br \/>\nettercap<br \/>\nhcitool<br \/>\nkismet<br \/>\nl2ping<br \/>\nminicom<br \/>\nncat<br \/>\nncftp<br \/>\nndiff<br \/>\nnetcat<br \/>\nnikto (downloaded from cirt.net)<br \/>\nnmap<br \/>\npython<br \/>\nrdesktop<br \/>\nrfcomm<br \/>\nroxterm<br \/>\nruby<br \/>\nsdptool<br \/>\nsocat<br \/>\nssh (client)<br \/>\nsshfs<br \/>\ntcpdump<br \/>\ntelnet<br \/>\ntraceroute<br \/>\nvncviewer<br \/>\nwget<\/p>\n<p>This device though, hasn&#8217;t been without its headaches. I remember reading a warning on a website, that warned about installing duplicate repositories on your OS2008 (Diablo). Also here&#8217;s a link to a huge list of repositories that have these oh so useful tools (which has the warning):<\/p>\n<p><a title=\"http:\/\/www.gronmayer.com\/it\/\" href=\"http:\/\/www.gronmayer.com\/it\/\" target=\"_blank\">http:\/\/www.gronmayer.com\/it\/<\/a><\/p>\n<p>By mistake at a later time, I eventually did install a duplicate repository. After doing so, I wasn&#8217;t able to install anything and performing an &#8216;apt-get update&#8217;, would yield errors that pointed towards having duplicate repositories being installed. Along with that, the application manager and apt were incredibly slow to the point where I lost patience. It was time to take a peak at the sources.list and do some Googling.<\/p>\n<p>Firstly, if you&#8217;re use to Debian based Linux distributions, you can find the sources.list file in \/etc\/apt\/sources.list , but for Maemo, the path to the sources.list file is: \/etc\/apt\/sources.list.d\/hildon-application-manager.list<\/p>\n<p>I also noticed that repository.maemo.org was not responding at all what so ever. Even now, you can&#8217;t resolve the host name. After some searching I found:<\/p>\n<p><a title=\"http:\/\/talk.maemo.org\/showthread.php?t=13721\" href=\"http:\/\/talk.maemo.org\/showthread.php?t=13721\" target=\"_blank\">http:\/\/talk.maemo.org\/showthread.php?t=13721<\/a><\/p>\n<p>It seems silly, but to get respository.maemo.org to respond you have to do the following as <strong>root <\/strong>on your Nokia N810:<\/p>\n<pre lang=\"bash\">echo \"62.61.85.32 repository.maemo.org\" >> \/etc\/hosts<\/pre>\n<p>I also, noticed that a bunch of repositories were timing out when I would run &#8216;apt-get update&#8217;. So to do a quick test on the repository lists I wrote a very small one liner to ping each repository.<\/p>\n<pre lang=\"bash\">for i in $(cat \/etc\/apt\/sources.list.d\/hildon-application-manager.list | awk '{print $2}' | cut -d'\/' -f3); do ping -c1 $i 2>&1; done  >> repfix.log<\/pre>\n<p>I then, used &#8216;grep&#8217; to look through &#8216;repfix.log&#8217; and searched for &#8216;bad&#8217;, which revealed domain names that responded in the manner of &#8216;ping: bad address&#8217;. This gave me a list of repositories that were no longer up.<\/p>\n<p>I used vi as <strong>root <\/strong>to remove the repositories that were no longer up in \/etc\/apt\/sources.list.d\/hildon-application-manager.list.<\/p>\n<p>Lastly, I ran &#8216;apt-get update&#8217; as <strong>root<\/strong> and I no longer had any issues. Along with that, I could install applications again!<\/p>\n<p>Here&#8217;s a list of the repositories that are working for me, hopefully this might save you a head ache or two, if you&#8217;re a tweaker of the Nokia N810:<\/p>\n<pre lang=\"bash\">deb http:\/\/catalogue.tableteer.nokia.com\/certified\/ diablo user\r\ndeb http:\/\/catalogue.tableteer.nokia.com\/non-certified\/ diablo user\r\ndeb http:\/\/catalogue.tableteer.nokia.com\/updates\/diablo-2\/ .\/\r\ndeb http:\/\/repository.maemo.org\/extras\/ diablo free non-free\r\ndeb http:\/\/repository.maemo.org\/extras chinook free non-free\r\ndeb http:\/\/www.fbreader.org\/maemo diablo user\r\ndeb http:\/\/p.quinput.eu\/debfarm chinook user\r\ndeb http:\/\/qole.org\/repository maemo main\r\ndeb http:\/\/www.mulliner.org\/nokia770\/repository\/ chinook free\r\ndeb http:\/\/browser-extras.garage.maemo.org\/browser-extras\/ chinook browser-extras\r\ndeb http:\/\/sanker.info\/mend0za\/maemo\/tkabber bora tkabber\r\ndeb http:\/\/maemo.shmuma.ru\/repo\/ chinook free\r\ndeb http:\/\/repository.maemo.org\/ chinook free non-free\r\ndeb http:\/\/packages.gizmoproject.com\/chinook chinook user\r\ndeb http:\/\/reg.fring.com\/repository\/ chinook release\r\ndeb http:\/\/repository.maemo.org\/extras\/ diablo free\r\ndeb http:\/\/stage.maemo.org\/extras\/ chinook free non-free\r\ndeb http:\/\/stage.maemo.org\/ chinook free non-free<\/pre>\n<p>Also, here&#8217;s a copy of my \/etc\/hosts file:<\/p>\n<pre lang=\"bash\">127.0.0.1 Nokia-N810-43-7 localhost\r\n62.61.85.32 repository.maemo.org\r\n\r\n<\/pre>\n<p>Feb 13, 2010: UPDATE!:<\/p>\n<p>Now it is <strong>unnecessary<\/strong> to edit your hosts file to mend the respository.maemo.org resolution issue.<\/p>\n<pre lang=\"bash\">\r\nhost repository.maemo.org\r\nrepository.maemo.org is an alias for repository.maemo.org.edgesuite.net.\r\nrepository.maemo.org.edgesuite.net is an alias for a515.g.akamai.net.\r\na515.g.akamai.net has address 198.63.194.139\r\na515.g.akamai.net has address 198.63.194.161\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Last December I acquired a Nokia N810 internet tablet. Now for those of you who aren&#8217;t familiar with this device, the Nokia N810 is an internet tablet that you can use for web browsing, listening to music, reading e-books, VOIP calls or what have you. In the end it&#8217;s basically a pocket sized computer. For &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=56\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">In the land of Nokia N810<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-posts","tag-nokia-n810"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=56"}],"version-history":[{"count":16,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":63,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/56\/revisions\/63"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}