<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;A0EASXc8cSp7ImA9WhNbFE8.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072</id><updated>2013-01-17T15:34:08.979+02:00</updated><category term='temperature sensor'/><category term='Raspberry Pi'/><category term='lm95071'/><category term='git'/><category term='java'/><category term='Linux'/><category term='Raspbian'/><category term='RPI'/><category term='touchscreen'/><category term='dropbear'/><category term='mencoder'/><category term='Ubuntu'/><category term='canon'/><category term='Android'/><category term='WUSB54GC'/><category term='Eee PC 901'/><category term='netbeans'/><title>btodorov@blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;Dk4DRX8-fCp7ImA9WhNbEUg.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-2302580912847230925</id><published>2013-01-14T11:16:00.001+02:00</published><updated>2013-01-14T11:16:14.154+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-01-14T11:16:14.154+02:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='WUSB54GC'/><category scheme='http://www.blogger.com/atom/ns#' term='temperature sensor'/><category scheme='http://www.blogger.com/atom/ns#' term='Raspberry Pi'/><category scheme='http://www.blogger.com/atom/ns#' term='lm95071'/><title>Wireless temperature sensor with Raspberry Pi</title><content type='html'>Finally got some time to play with the Raspberry. Behold the wireless temperature sensor :D&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-kLpCfYXp81U/UPMQdoBhgmI/AAAAAAAAAPk/Ky5lPtzKwgE/s1600/IMG_5879.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-kLpCfYXp81U/UPMQdoBhgmI/AAAAAAAAAPk/Ky5lPtzKwgE/s1600/IMG_5879.JPG" height="240" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-OBfIrcNXJaY/UPMQhpsR9oI/AAAAAAAAAPs/JybQdyBW2VU/s1600/IMG_5880.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-OBfIrcNXJaY/UPMQhpsR9oI/AAAAAAAAAPs/JybQdyBW2VU/s1600/IMG_5880.JPG" height="240" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The se&lt;span style="font-family: inherit;"&gt;nsor itself is&amp;nbsp;&lt;span style="background-color: white; color: #222222;"&gt;&lt;a href="http://www.ti.com/product/lm95071"&gt;LM95071&lt;/a&gt;&lt;/span&gt;. &lt;/span&gt;Temperature is read through SPI.&amp;nbsp;The only problem was that after the first read the sensor was put in shutdown mode... I guess this is because the SPI is full duplex and the SI/O pin was left dangling during WR to the sensor (even though I was only reading from it...). The solution was to add pull-down resistor to the SI/O pin (the additional resistor on the picture).&lt;br /&gt;
&lt;br /&gt;
I have Apache web server on the RPi and I'm using&amp;nbsp;&lt;a href="http://btodorov.blogspot.com/2012/08/wifi-dongle-on-raspberry-pi.html"&gt;WUSB54GC wifi dongle&lt;/a&gt; to transmit the&amp;nbsp;temperature over the internet :)&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-ZuOkGnTnj68/UPMShbOuA2I/AAAAAAAAAQE/t9OX2kXKOL0/s1600/ttemp.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-ZuOkGnTnj68/UPMShbOuA2I/AAAAAAAAAQE/t9OX2kXKOL0/s1600/ttemp.png" height="195" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/2302580912847230925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2013/01/wireless-temperature-sensor-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/2302580912847230925?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/2302580912847230925?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2013/01/wireless-temperature-sensor-with.html' title='Wireless temperature sensor with Raspberry Pi'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-kLpCfYXp81U/UPMQdoBhgmI/AAAAAAAAAPk/Ky5lPtzKwgE/s72-c/IMG_5879.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CE4ERHo8eip7ImA9WhJXEko.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-8417509364197143971</id><published>2012-08-06T20:07:00.002+03:00</published><updated>2012-08-06T20:08:25.472+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-08-06T20:08:25.472+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='WUSB54GC'/><category scheme='http://www.blogger.com/atom/ns#' term='Raspbian'/><category scheme='http://www.blogger.com/atom/ns#' term='Raspberry Pi'/><title>WiFi dongle on Raspberry Pi</title><content type='html'>&lt;br /&gt;
A little guide how to use Linksys WUSB54GC WiFi dongle on Raspberry Pi (Raspbian “wheezy” images). The dongle is pretty old but I used it just for the test :)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(1) &lt;/b&gt;You need self-powered USB hub!&lt;br /&gt;
&lt;b&gt;(2) &lt;/b&gt;Plug the dongle in the hub:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ dmesg&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;111.915950] usb 1-1.3.2: new high speed USB device number 5 using dwc_otg&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.216207] usb 1-1.3.2: New USB device found, idVendor=13b1, idProduct=0020&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.216240] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.216261] usb 1-1.3.2: Product: Compact Wireless-G USB Adapter&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.216290] usb 1-1.3.2: Manufacturer: Cisco-Linksys&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.311511] cfg80211: Calling CRDA to update world regulatory domain&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.495964] usb 1-1.3.2: reset high speed USB device number 5 using dwc_otg&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.978042] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.981551] Registered led device: rt73usb-phy0::radio&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.982146] Registered led device: rt73usb-phy0::assoc&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.982727] Registered led device: rt73usb-phy0::quality&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;112.987435] usbcore: registered new interface driver rt73usb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
We can also see the drivers are loaded:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ lsmod&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Module &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &amp;nbsp;Used by&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;rt73usb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23490 &amp;nbsp;0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;rt2x00usb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12077 &amp;nbsp;1 rt73usb&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;rt2x00lib &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;43890 &amp;nbsp;2 rt2x00usb,rt73usb&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;mac80211 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;253889 &amp;nbsp;2 rt2x00lib,rt2x00usb&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;cfg80211 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;180459 &amp;nbsp;2 mac80211,rt2x00lib&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(3) &lt;/b&gt;wlan0 interface is automatically created:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ ifconfig&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;wlan0 &amp;nbsp; &amp;nbsp; Link encap:Ethernet &amp;nbsp;HWaddr 00:1d:7e:11:c4:56&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:0 (0.0 B) &amp;nbsp;TX bytes:0 (0.0 B)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(4) &lt;/b&gt;To connect automatically to WiFi AP add this to &lt;span style="color: blue;"&gt;/etc/network/interfaces&lt;/span&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;auto wlan0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;iface wlan0 inet dhcp&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; wpa-ssid &amp;lt;AP-SSID&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; wpa-psk &amp;lt;KEY&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;(5) &lt;/b&gt;Restart networking:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ sudo /etc/init.d/networking restart&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Copyright 2004-2011 Internet Systems Consortium.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;All rights reserved.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;For info, please visit https://www.isc.org/software/dhcp/&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #3d85c6;"&gt;Listening on LPF/wlan0/00:1d:7e:11:c4:56&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Sending on &amp;nbsp; LPF/wlan0/00:1d:7e:11:c4:56&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;Sending on &amp;nbsp; Socket/fallback&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPREQUEST on wlan0 to 255.255.255.255 port 67&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPOFFER from 192.168.32.1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;DHCPACK from 192.168.32.1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;bound to 192.168.32.104 -- renewal in 32936 seconds.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;done.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Done!&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ dmesg&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;374.243090] wlan0: authenticate with 00:b0:0c:4f:25:10 (try 1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;374.244913] wlan0: authenticated&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;374.307729] wlan0: associate with 00:b0:0c:4f:25:10 (try 1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;374.312512] wlan0: RX AssocResp from 00:b0:0c:4f:25:10 (capab=0x411 status=0 aid=1)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;[ &amp;nbsp;374.312540] wlan0: associated&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ ifconfig&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;wlan0 &amp;nbsp; &amp;nbsp; Link encap:Ethernet &amp;nbsp;HWaddr 00:1d:7e:11:c4:56&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:192.168.32.104 &amp;nbsp;Bcast:192.168.32.255 &amp;nbsp;Mask:255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP BROADCAST RUNNING MULTICAST &amp;nbsp;MTU:1500 &amp;nbsp;Metric:1&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:51 errors:0 dropped:0 overruns:0 frame:0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:37 errors:0 dropped:0 overruns:0 carrier:0&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:1000&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:10652 (10.4 KiB) &amp;nbsp;TX bytes:4726 (4.6 KiB)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Try some ping:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;pi@raspberrypi:~$ ping google.com&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;PING google.com (209.85.148.101) 56(84) bytes of data.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=1 ttl=56 time=34.7 ms&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=2 ttl=56 time=46.4 ms&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;64 bytes from fra07s07-in-f101.1e100.net (209.85.148.101): icmp_req=3 ttl=56 time=45.8 ms&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So for the test I left it pinging for some time. Haven't seen any issues till now :)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Next step:&lt;/b&gt; To&amp;nbsp;avoid using self-powered hub find WiFi dongle with lower power consumption... :/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/8417509364197143971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2012/08/wifi-dongle-on-raspberry-pi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8417509364197143971?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8417509364197143971?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2012/08/wifi-dongle-on-raspberry-pi.html' title='WiFi dongle on Raspberry Pi'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CE4GRnY_eip7ImA9WhJXEEw.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-6286649401716536655</id><published>2012-08-03T19:53:00.002+03:00</published><updated>2012-08-03T19:55:27.842+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-08-03T19:55:27.842+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Raspbian'/><category scheme='http://www.blogger.com/atom/ns#' term='RPI'/><category scheme='http://www.blogger.com/atom/ns#' term='Raspberry Pi'/><title>Raspberry Pi</title><content type='html'>&lt;span style="font-family: inherit;"&gt;My long awaited&amp;nbsp;&lt;a href="http://www.raspberrypi.org/"&gt;Raspberry Pi&lt;/a&gt;&amp;nbsp;finally&amp;nbsp;arrived:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/--eAPhIcSwa4/UBv_019XofI/AAAAAAAAAN4/htOkoD9k5Kw/s1600/IMG_5843.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;img border="0" height="300" src="http://1.bp.blogspot.com/--eAPhIcSwa4/UBv_019XofI/AAAAAAAAAN4/htOkoD9k5Kw/s400/IMG_5843.JPG" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;I tried it with &lt;span style="background-color: white; line-height: 24px;"&gt;Raspbian (wheezy) images:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; font-family: inherit; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-RkP3OW7mvG0/UBwAIw-TGqI/AAAAAAAAAOA/X7q4E80vqFc/s1600/IMG_5845.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: inherit;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-RkP3OW7mvG0/UBwAIw-TGqI/AAAAAAAAAOA/X7q4E80vqFc/s400/IMG_5845.JPG" width="366" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; font-family: inherit; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="line-height: 24px;"&gt;One of the first impressions is that apparently there is absolutelly no power management (PM) - the board generates a lot of heat :(&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;span style="line-height: 24px;"&gt;Should search for images with some PM&amp;nbsp;&lt;/span&gt;&lt;span style="line-height: 24px;"&gt;optimization (hope they exist).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit; line-height: 24px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: justify;"&gt;
&lt;span style="font-family: inherit;"&gt;Hmm...&amp;nbsp;now must think of a good project :D&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/6286649401716536655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2012/08/raspberry-pi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/6286649401716536655?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/6286649401716536655?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2012/08/raspberry-pi.html' title='Raspberry Pi'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/--eAPhIcSwa4/UBv_019XofI/AAAAAAAAAN4/htOkoD9k5Kw/s72-c/IMG_5843.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkIMR38yfCp7ImA9WhdXGEw.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-2041166578690879239</id><published>2011-08-31T21:15:00.001+03:00</published><updated>2011-08-31T21:16:26.194+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-08-31T21:16:26.194+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='touchscreen'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><title>Touchscreen calibration in Android</title><content type='html'>&lt;div style="text-align: justify;"&gt;Another how-to. This time about touchscreen calibration for Android.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;We assume you already have your touchscreen driver for your dev board and you've tested it with Android getevent (or the &lt;a href="http://beagleboard.googlecode.com/files/evtest.c"&gt;evtest&lt;/a&gt; tool) and you're sure it's giving the right coordinates to user space.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Next step before really using it is calibration ... which is real pain in the a** because Android doesn't provide a calibration tool.&amp;nbsp;For the purpose we are going to use ts_lib.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To clone ts_lib package ported for Android use: &lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;$ git clone git://tslibonandroid.git.sourceforge.net/gitroot/tslibonandroid/tslibonandroid&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;i&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Then build it as normal Android package with "mm" (I assume you already know how to build Android... If no checkout this &lt;a href="http://www.omappedia.org/wiki/Android_Getting_Started"&gt;link&lt;/a&gt; for basics).&lt;br /&gt;
Copy all output files from the build to their corresponding places in the target dev board.&lt;br /&gt;
&lt;br /&gt;
To create calibration file for the touchscreen boot the board, export the following environment variables&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt;export TSLIB_TSDEVICE=/dev/input/event1&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt; export TSLIB_CONFFILE=/system/etc/ts.conf&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt; export TSLIB_CALIBFILE=/system/etc/pointercal&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt; export TSLIB_PLUGINDIR=/system/lib&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt; export TSLIB_CONSOLEDEVICE=/dev/tty&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394;"&gt;&lt;i&gt; export TSLIB_FBDEVICE=/dev/graphics/fb0&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;(see also Android.mk in ts_lib sources)&lt;br /&gt;
&lt;br /&gt;
and then run the newly built ts_calibrate tool.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
Now we must apply this&lt;b&gt; &lt;a href="http://bogardan.hit.bg/blg/touchscreen_calibr.patch"&gt;patch&lt;/a&gt;&lt;/b&gt; to make Android use the calibration file we created.&lt;br /&gt;
&lt;br /&gt;
Rebuild Android services and you custom touchscreen must now work properly :) Hope it was useful!&lt;br /&gt;
&lt;br /&gt;
P.S. the above was tested on Android Eclair with resistive touchscreen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/2041166578690879239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/08/touchscreen-calibration-in-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/2041166578690879239?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/2041166578690879239?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/08/touchscreen-calibration-in-android.html' title='Touchscreen calibration in Android'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0QMQnoyeyp7ImA9WhZbGEk.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-19784022606573095</id><published>2011-06-23T20:04:00.005+03:00</published><updated>2011-06-23T20:16:23.493+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-06-23T20:16:23.493+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans'/><title>Java attempt</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Today I made my first java application using NetBeans IDE. Hurray! :)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;It converts Celsius to Fahrenheit and the opposite ... *quite* n00b-ish :D&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;How it looks:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-3w7HAftBHKM/TgNxHNAtouI/AAAAAAAAAHg/uS-sIzJqz9c/s1600/conv.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="85" src="http://2.bp.blogspot.com/-3w7HAftBHKM/TgNxHNAtouI/AAAAAAAAAHg/uS-sIzJqz9c/s200/conv.png" width="200" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;The jar file:&amp;nbsp;&lt;a href="http://bogardan.hit.bg/data/CelsiusConverter.jar"&gt;CelsiusConverter.jar&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;- - -&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/19784022606573095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/06/today-i-made-my-first-java-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/19784022606573095?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/19784022606573095?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/06/today-i-made-my-first-java-application.html' title='Java attempt'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-3w7HAftBHKM/TgNxHNAtouI/AAAAAAAAAHg/uS-sIzJqz9c/s72-c/conv.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ck8ASH44fyp7ImA9WhZXEEU.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-8625976846449334990</id><published>2011-04-29T15:40:00.000+03:00</published><updated>2011-04-29T15:40:49.037+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-29T15:40:49.037+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='git'/><title>Git cheat sheet</title><content type='html'>Yet another git help :)&lt;br /&gt;
This time cheat sheet&amp;nbsp;(mostly for beginners):&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-JFwbxph2zAk/TbqoD1QwfYI/AAAAAAAAAG4/2-ruY14zkU8/s1600/git-cheat-sheet.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="241" src="http://2.bp.blogspot.com/-JFwbxph2zAk/TbqoD1QwfYI/AAAAAAAAAG4/2-ruY14zkU8/s320/git-cheat-sheet.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/8625976846449334990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/git-cheat-sheet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8625976846449334990?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8625976846449334990?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/git-cheat-sheet.html' title='Git cheat sheet'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-JFwbxph2zAk/TbqoD1QwfYI/AAAAAAAAAG4/2-ruY14zkU8/s72-c/git-cheat-sheet.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkMHQ3s8fyp7ImA9WhZXFE8.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-8110256853481074515</id><published>2011-04-28T22:14:00.003+03:00</published><updated>2011-05-03T16:13:52.577+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-05-03T16:13:52.577+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='dropbear'/><category scheme='http://www.blogger.com/atom/ns#' term='Android'/><title>Dropbear sshd on Android device</title><content type='html'>&lt;div style="text-align: justify;"&gt;Recently I needed to have SSH connection with Android development board but since no SSH daemon is included in the official Android release I had some troubles finding the right way to do it.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The following guide was tested on OMAP3 development board with Android Eclair but should be working on any (rooted/unlocked) phone with Android.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;u&gt;Instructions how to run dropbear sshd on Android device:&lt;/u&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;First you fetch the latest Dropbear sources:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;git clone git://android.git.kernel.org/platform/external/dropbear.git&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Since the Android has different paths, no password support, etc. we must fix this in the original sources by applying the patch found here:&amp;nbsp;&lt;a href="http://pastebin.com/f3dedc5e7"&gt;http://pastebin.com/f3dedc5e7&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;...the only problem is that it's for older version of Dropbear so we must try to apply it manually :(&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;After patch was applied build with:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;./configure --host=arm-none-linux-gnueabi --disable-zlib&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;make CC=arm-none-linux-gnueabi-gcc&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In case you're unable to apply the patch correctly or something went wrong with the build here is a archive with prebuilt binaries (dropbear, dropbearkey, dropbearconvert):&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href="http://bogardan.hit.bg/data/dropbear.tar.bz2"&gt;dropbear.tar.bz2&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;(Another guide how to build Dropbear for Android can be found @ &lt;a href="http://teslacoilsw.com/dropbear"&gt;http://teslacoilsw.com/dropbear&lt;/a&gt;)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Install:&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To install dropbear on the desired gadget copy the binaries to some custom dir, e.g. /dropbear.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Setup the Server (Android):&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Generate a RSA server key using dropbearkey:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;dropbearkey -t rsa -f dropbear_rsa_host_key&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Then create a dir /data/dropbear and copy dropbear_rsa_host_key there.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Test dropbear:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;/dropbear/dropbear -r dropbear_rsa_host_key -F -E -v -s&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This should show you the debuglog (the (-F) option means non-daemon mode).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now we need to generate a key-pair for the client to connect with (Dropbear is run with the option -s (no-password) because there is no password support in Android):&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;//generates a private key&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;dropbearkey -t rsa -f /dropbear/id_rsa&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;//extract the public-key:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;dropbearkey -f /dropbear/id_rsa -y &amp;gt; /dropbear/id_rsa.pub&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;We need to create /data/dropbear/.ssh and cat the public-key&amp;nbsp;to authorized_keys:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;mkdir /data/dropbear/.ssh&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;cat /dropbear/id_rsa.pub &amp;gt; /data/dropbear/.ssh/authorized_keys&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;IMPORTATNT: Check the perms of /data/dropbear and make sure they are *only* readable/writable by root!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Setup the Client (Ubuntu):&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;As dropbear and openssh use different key formats we first need to convert id_rsa (private key) to openssh-format:&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;./dropbearconvert dropbear openssh /dropbear/id_rsa /dropbear/id_rsa_openssh&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now move id_rsa and id_rsa_openssh to your desktop (e.g. to&amp;nbsp;your home dir).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Before establishing connection gadget's USB interface should be UP:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;busybox ifconfig usb0 up 192.168.1.2&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;(yes, busybox must be installed on the Android device...)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Finally connect to the device:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;ssh -i id_rsa_openssh &amp;lt;device-ip&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You can use -vv for both the client and&amp;nbsp;the server to see debug info and fix whatever is wrong.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Setup the Client (Windows XP):&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The only difference is that we use different SSH client.&amp;nbsp;I used&amp;nbsp;&lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;PuTTY&lt;/a&gt;.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So...&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- boot the board/phone&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- connect PC with board with USB cable and wait for auto install&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- set IP address (TCP/IP settings) in the automatically created USB Ethernet connection&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- copy auth. keys generated with dropbear&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- convert OpenSSH key to "PuTTY" key (ppk) using &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html"&gt;PuTTYGen&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- open PuTTY and set remote IP/Port to connect to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- use SSH key generated with PuttyGen:&amp;nbsp;&lt;span class="Apple-style-span" style="color: #0b5394;"&gt;Connection -&amp;gt; SSH -&amp;gt; Auth -&amp;gt; select key&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;- connect!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;NOTE:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;The above is extended/edited version of the original guide @ &lt;a href="http://cri.ch/sven/doku.php/blog/running-dropbear-on-android"&gt;http://cri.ch/sven/doku.php/blog/running-dropbear-on-android&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/8110256853481074515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/dropbear-sshd-on-android-device.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8110256853481074515?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/8110256853481074515?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/dropbear-sshd-on-android-device.html' title='Dropbear sshd on Android device'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry gd:etag='W/&quot;Dk4ARHg7fSp7ImA9WhZQGU0.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-3907633577289047782</id><published>2011-04-19T17:39:00.002+03:00</published><updated>2011-04-27T14:49:05.605+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-27T14:49:05.605+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='git'/><title>Useful git commands</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Some git commands that I found useful...&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;To remove all untracked files and dirs (aka "uber clean"):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;$ git clean -f -d -X&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;For more useful/clear git log ouput:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;$ git log --oneline --decorate&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;or &amp;nbsp;better use the following command:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;$ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&amp;lt;%an&amp;gt;%Creset' --abbrev-commit --date=relative&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;You can add it as alias in ~/.gitconfig :&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;[alias]&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #666666;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&amp;lt;%an&amp;gt;%Creset' --abbrev-commit --date=relative&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
More @&amp;nbsp;&lt;a href="http://cheat.errtheblog.com/s/git"&gt;http://cheat.errtheblog.com/s/git&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/3907633577289047782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/useful-git-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3907633577289047782?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3907633577289047782?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/useful-git-commands.html' title='Useful git commands'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkYHQHs4eSp7ImA9WhZXEEw.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-9011388659580183398</id><published>2011-04-18T22:58:00.002+03:00</published><updated>2011-04-28T22:15:31.531+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-28T22:15:31.531+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Eee PC 901'/><title>Eee PC 901 paint job</title><content type='html'>&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;At laaast! The 2-year warranty on my &lt;a href="http://www.asus.com/Eee/Eee_PC/Eee_PC_901/"&gt;Eee PC 901&lt;/a&gt;&amp;nbsp;netbook has expired. Since I bought it its pearl white color was torture to my eyes &lt;span class="Apple-style-span" style="background-color: white;"&gt;&lt;span class="Apple-style-span" style="color: #999999;"&gt;(there were only white ones left at the store)&lt;/span&gt;&lt;/span&gt; but now I can finally &lt;a href="http://www.youtube.com/watch?v=8BhHTA6Gzn0"&gt;pain it BLACK&lt;/a&gt; &amp;gt;:]&lt;/div&gt;&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;The disembowelment was kind of hard but here is the result:&lt;/div&gt;&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Udb0PrY8M6g/TayW3h9nWVI/AAAAAAAAAGs/4ljygGqjLdA/s1600/eeepc901_parts.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-Udb0PrY8M6g/TayW3h9nWVI/AAAAAAAAAGs/4ljygGqjLdA/s320/eeepc901_parts.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: Verdana; margin-bottom: 0px; margin-top: 0px;"&gt;Actually I was a bit surprised by of the assembly quality. Asus did a good job :)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;Next I took all parts of the case, mask all&amp;nbsp;necessary holes with&amp;nbsp;duct tape (the mic, all the LED holes, etc.) and&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;sand the parts a little. Then I removed any grease left and applied three layers of paint (with 2h for drying before applying the next &amp;nbsp;layer).&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;I l&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;eft it for 24h to dry and here is it (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;I spent two hours assembling the damn thing):&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-q-n654LqkBQ/TayXJufKF4I/AAAAAAAAAG0/soQSmbnapCk/s1600/eeepc901_painted.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://4.bp.blogspot.com/-q-n654LqkBQ/TayXJufKF4I/AAAAAAAAAG0/soQSmbnapCk/s320/eeepc901_painted.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;Maybe not quite as I expected but it looks nice. :) Though I *should* have bought more expensive paint.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;I left the battery white but maybe (someday) I'll paint it too. And maybe order some black keyboard &amp;amp; pad from ebay .... :)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/9011388659580183398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/eeepc-901-paint-job.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/9011388659580183398?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/9011388659580183398?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/eeepc-901-paint-job.html' title='Eee PC 901 paint job'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Udb0PrY8M6g/TayW3h9nWVI/AAAAAAAAAGs/4ljygGqjLdA/s72-c/eeepc901_parts.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkUEQH08fCp7ImA9WhZXEEw.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-5217574921178095120</id><published>2011-04-13T22:55:00.003+03:00</published><updated>2011-04-28T22:16:41.374+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-28T22:16:41.374+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='mencoder'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='canon'/><title>Encode/Scale video with MEncoder</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;The only thing I don't like about my old &lt;a href="http://www.canon.co.uk/For_Home/Product_Finder/Cameras/Digital_Camera/PowerShot/PowerShot_S3_IS/"&gt;Canon S3 IS&lt;/a&gt; camera is that it records video without compression. Meaning that 4min 640x480/30fps vid is about 512MB...&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;I spend some time playing with MEncoder ("...a free command line video decoding, encoding and filtering tool released under the GNU General Public License" and a really *great* tool) and found a way to encode (or scale) my videos from Linux command line:&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Encode from Canon RAW (acceptable quality):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ mencoder INPUT.mpeg -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:mbd=2:trell=yes:v4mv=yes -o output.avi&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Scale video:&lt;br /&gt;
$ mencoder INPUT.mpeg -vf scale=320:240 -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o OUTPUT.mpeg&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;More info about MEncoder @&amp;nbsp;&lt;a href="http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html"&gt;http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/5217574921178095120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/encodescale-video-with-mencoder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/5217574921178095120?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/5217574921178095120?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/encodescale-video-with-mencoder.html' title='Encode/Scale video with MEncoder'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEFQ388eCp7ImA9WhZXFE8.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-4484427249402334491</id><published>2011-04-13T10:55:00.004+03:00</published><updated>2011-05-03T16:16:52.170+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-05-03T16:16:52.170+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title>Create swap file in Linux</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;Some time ago when I was working with a &lt;a href="http://beagleboard.org/"&gt;BeableBoard&lt;/a&gt;-like dev board I had troubles creating Linux swap file. After reading some guides over the internet I'd like to share this simple how-to (Ubuntu):&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;1) Create "empty" file (~537 MB):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ dd if=/dev/zero of=/swapfile1 bs=1024 count=524288&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;2) Setup Linux swap area:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ mkswap /swapfile1&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;3) Activate swap space immediately:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ swapon /swapfile1&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;4) Add to fstab (optional):&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;/swapfile1 swap swap defaults 0 0&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;To test:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ free -m&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;To deactivate:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;$ swapoff /swapfile1&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Hope that someone would find it useful :)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/4484427249402334491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/create-swap-file-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/4484427249402334491?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/4484427249402334491?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/create-swap-file-in-linux.html' title='Create swap file in Linux'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkEAQno-eyp7ImA9WhZXFE8.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-3493329418940535107</id><published>2011-04-12T21:57:00.008+03:00</published><updated>2011-05-03T16:17:23.453+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-05-03T16:17:23.453+03:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title>Different look for the Linux console</title><content type='html'>&lt;span class="Apple-style-span" style="color: #999999;"&gt;//lol...first "official" post&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;If you're bored of the default color your Linux console or want to change the look of it checkout the following example (Ubuntu):&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;Edit ~/.bash.rc with:&lt;/div&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;PS1="\n\[\e[32;40m\]| \[\e[31;40m\]\H \[\e[32;20m\]\d \[\e[32;1m\]\t \[\e[1;33m\]\w\[\e[0m\]\[\e[32;40m\]\n| \[\e[37;40m\]\u\[\e[1;37m\] \\$ \[\e[32;1m\]\[\e[0m\]"&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;and&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;force_color_prompt=yes&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
Output:&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;a href="http://3.bp.blogspot.com/-8ZgjUeGmJdM/TaSfx8CIviI/AAAAAAAAAGo/DN8JNHSXv14/s1600/Screenshot.png" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="63" src="http://3.bp.blogspot.com/-8ZgjUeGmJdM/TaSfx8CIviI/AAAAAAAAAGo/DN8JNHSXv14/s320/Screenshot.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana;"&gt;Feel free to modify :)&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/3493329418940535107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/different-look-for-linux-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3493329418940535107?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3493329418940535107?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/different-look-for-linux-console.html' title='Different look for the Linux console'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-8ZgjUeGmJdM/TaSfx8CIviI/AAAAAAAAAGo/DN8JNHSXv14/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ak8CR3Y9cCp7ImA9WhZRFko.&quot;'><id>tag:blogger.com,1999:blog-1053660527720785072.post-3556430895299190354</id><published>2011-04-12T21:18:00.002+03:00</published><updated>2011-04-13T10:14:26.868+03:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-04-13T10:14:26.868+03:00</app:edited><title>Creation!</title><content type='html'>Blog created.&lt;br /&gt;
Purpose yet unknown :)&lt;br /&gt;
Will post random stuff...</content><link rel='replies' type='application/atom+xml' href='http://btodorov.blogspot.com/feeds/3556430895299190354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://btodorov.blogspot.com/2011/04/creation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3556430895299190354?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1053660527720785072/posts/default/3556430895299190354?v=2'/><link rel='alternate' type='text/html' href='http://btodorov.blogspot.com/2011/04/creation.html' title='Creation!'/><author><name>BT</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>