<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>An It-Slave in the digital saltmine &#187; english</title>
	<atom:link href="http://www.it-slav.net/blogs/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-slav.net/blogs</link>
	<description>Another Blog from a Geek that has no life</description>
	<lastBuildDate>Fri, 02 Jul 2010 07:33:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Howto use rndis device in Openwrt as a modem, i.e HTC Desire with Android</title>
		<link>http://www.it-slav.net/blogs/2010/07/02/howto-use-rndis-device-in-openwrt-as-a-modem-i-e-htc-desire-with-android/</link>
		<comments>http://www.it-slav.net/blogs/2010/07/02/howto-use-rndis-device-in-openwrt-as-a-modem-i-e-htc-desire-with-android/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 07:33:08 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[htc desire]]></category>
		<category><![CDATA[Linksys WRT160NL]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[rndis]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1840</guid>
		<description><![CDATA[Background
I wanted to use a 3G dongle with a twin SIM&#160;card as my Internet connection when I&#8217;m traveling. I&#160;have earlier decribed howto share the Internet connection and make it more flexible by using an OpenWRT&#160;router with USB&#160;interface as a bridge between Wlan and 3G/GPRS provided internet.
Unfortunatly Tele2s support personel cannot keep track of the unlogical [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>I wanted to use a 3G dongle with a twin SIM&nbsp;card as my Internet connection when I&#8217;m traveling. I&nbsp;have <a href="http://www.it-slav.net/blogs/2010/06/12/howto-use-3g-dongle-huawei-e1750-in-openwrt/">earlier</a> decribed howto share the Internet connection and make it more flexible by using an OpenWRT&nbsp;router with USB&nbsp;interface as a bridge between Wlan and 3G/GPRS provided internet.</p>
<p>Unfortunatly <a href="http://www.tele2.se">Tele2s</a> support personel cannot keep track of the unlogical rules among their different subscriptions so they fouled my to buy a twincard to my regular subscription and use that for data. After a couple of more calls to Tele2, including that they listened to a recording of when I&nbsp;ordered the twincard I&nbsp;have to give up that track because it was not possible. The twincard only works for phone calls, not data connections and especially not when I had a flatrate subscription on my master SIM&nbsp;card.</p>
<p>After some investigation I&nbsp;came to the conclusion that I&nbsp;have to use my Regular phone, a HTC&nbsp;Desire with Android as my connection to internet.</p>
<p>Unfortunatly the work done with getting the USB&nbsp;3G&nbsp;dongle was a waste of time.</p>
<p>&nbsp;<span id="more-1840"></span></p>
<h2>PreReq</h2>
<p>An OpenWRT&nbsp;router with a working USB&nbsp;interface and a rndis enabled modem, I use a HTC&nbsp;Desire.</p>
<p>&nbsp;</p>
<h2>Installation</h2>
<p>root@WRT160NL:~# opkg install kmod-usb-net-rndis</p>
<p>I also installed some USB&nbsp;packages, probably not all of them are necessery:</p>
<pre>
root@WRT160NL:~#opkg install kmod-ar9170 kmod-usb-acm kmod-usb-core kmod-usb-ohci kmod-usb-serial comgt
kmod-usb-serial-option kmod-usb-storage kmod-usb-uhci kmod-usb2&nbsp; usb-switch</pre>
<p>&nbsp;</p>
<p>Add the following to /etc/config/network</p>
<pre>
config 'interface' 'usb0'
    option 'name' 'usb0'
    option 'proto' 'dhcp'
    option 'ifname' 'usb0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
 </pre>
<p>Use the same firewall rules with your 3G connection as your normal WLAN, add the yellow marked line to /etc/config/firewall:</p>
<pre>
config 'zone'
    option 'name' 'wan'
    option 'input' 'REJECT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'
    option 'masq' '1'
    option 'mtu_fix' '1'
<span style="background-color: rgb(255, 255, 0);">    option 'network' 'wan usb0 ppp0'</span></pre>
<p>
Do a reboot<br />
&nbsp;</p>
<h2>Test</h2>
<p>To use your new connection, run ifup</p>
<pre>
root@WRT160NL:~# ifup usb0
udhcpc (v1.15.3) started
root@OpenWrt:~# Sending discover...
Sending select for 192.168.100.100...
Lease of 192.168.100.100 obtained, lease time 864000
udhcpc: ifconfig usb0 192.168.100.100 netmask 255.255.255.0 broadcast +
udhcpc: setting default routers: 192.168.100.254
udhcpc: setting dns servers: 192.168.100.254

root@WRT160NL:~# ping www.google.com
PING www.google.com (74.125.39.104): 56 data bytes
64 bytes from 74.125.39.104: seq=0 ttl=51 time=371.025 ms
64 bytes from 74.125.39.104: seq=1 ttl=51 time=388.617 ms
64 bytes from 74.125.39.104: seq=2 ttl=51 time=316.767 ms
^C
--- www.google.com ping statistics ---
4 packets transmitted, 3 packets received, 25% packet loss
round-trip min/avg/max = 316.767/358.803/388.617 ms
</pre>
<p>Shutdown the connection with ifdown</p>
<pre>
root@WRT160NL:~# ifdown usb0</pre>
<p>
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/07/02/howto-use-rndis-device-in-openwrt-as-a-modem-i-e-htc-desire-with-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>op5 and City Cloud introducing monitoring in the Cloud</title>
		<link>http://www.it-slav.net/blogs/2010/07/01/op5-and-city-cloud-introducing-monitoring-in-the-cloud/</link>
		<comments>http://www.it-slav.net/blogs/2010/07/01/op5-and-city-cloud-introducing-monitoring-in-the-cloud/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 07:19:03 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[cloud]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1884</guid>
		<description><![CDATA[&#160;

&#160;
&#160;

op5 is the leading provider of monitoring  software in Europe. op5 uses Open Source  and their monitoring  services are now available in the Cloud via City Cloud, a cloud  computing service from City Network. By introducing monitoring in a new  business model, customers are now able to get professional monitoring [...]]]></description>
			<content:encoded><![CDATA[<h3>&nbsp;</h3>
<div class="newsdesk_web_image"><img alt="Op5_cloud_monitor_large" src="http://www.mynewsdesk.com/files/05550996bb3bb0bd6d46515f8f4b8633/resources/ResourceWebImage/thumbnails/op5_cloud_monitor_large.png" /></div>
<div class="newsdesk_web_image">&nbsp;</div>
<div class="newsdesk_web_image">&nbsp;</div>
<div class="newsdesk_article_text">
<p>op5 is the leading provider of <a href="http://www.op5.com/op5/products/network-monitor">monitoring  software</a> in Europe. op5 uses Open Source  and their monitoring  services are now available in the Cloud via City Cloud, a cloud  computing service from City Network. By introducing monitoring in a new  business model, customers are now able to get professional monitoring in  the Cloud which is both more cost-efficient and flexible.</p>
<p>By  providing monitoring in the cloud op5 are able to give their existing  customers an external solution to  monitor their web based services,  regardless if they are inside or outside the cloud. This gives the  customer the ability to measure and control the user experience in a  specific service. City Network also benefits from the introduction of  op5 Cloud Monitor. The 500 customers using City Cloud can now create  servers with the sole purpose of monitoring their virtual machines  directly through the service provided by op5.</p>
<p>- The fact that op5  introduces their external monitoring services in the cloud using City  Cloud is a great acknowledgment, not only for City Cloud but also for  cloud computing in general. It&acute;s the beginning of a new era where both  small and enterprise companies can benefit from the cloud and services  within the cloud says Johan Christenson, Chairman at City Cloud.</p>
<p>-  Being the leading provider in any field means that you always need to  be innovative both with your products and your business models.  Providing our monitoring service in City Cloud is a natural step for us  and creates great advantages for our customers. More flexible, installed  and ready within 15 minutes and cost efficient are the key ingredients  that we think makes this solution suitable for everyone in need of  professional monitoring says Jan Josephson, CEO at op5.</p>
<p><span id="more-1884"></span>&nbsp;</p>
<p><span><strong>About  City Network</strong></span><span><span><br />
With more than 10 000  customers in Scandinavia City Network is one of the leading hosting  providers in northern Europe. City Network is the only Scandinavian  hosting provider to offer a full service menu of hosting related  services such as shared hosting to dedicated servers to cloud computing.  In addition City Network is a registrar of many top level domains and  offer a full suite of domain services. Box Hosting, </span></span><a href="http://onlinebackup.se/" target="_blank">onlinebackup.se</a><span><span>  is brands owned by City Network. Visit us at </span></span><a href="http://www.citycloud.eu/">www.citycloud.eu</a><span><span> for  more information on City Cloud and</span></span><a href="http://www.citynetwork.eu/" target="_blank"><span><span><span> </span></span></span></a><a href="http://www.citynetwork.eu/">www.citynetwork.eu</a><span><span> for  corporate information or </span></span><a href="http://www.citycloud.se/">www.citycloud.se</a><span><span> for  Scandinavian version of City Cloud.</span></span></p>
<p>&nbsp;</p>
<p><strong>About  op5<br />
</strong>op5 is a market leading developer of Open Source  Management solutions develops and delivers open source based software  for monitoring and administration of IT systems and networks. The  solutions are built on open source code that op5 extends and markets and  supports as complete systems. The main products are op5 Monitor, op5  Statistics and op5 LogServer. op5 has customers such as Aftonbladet,  Volvo, SAAB, Max Matthiessen, Swedish Wetherservice (SMHI), <span>CrossKey  Banking, SAAB Industries, Bring City Mail, Channel 5 and Swedish  Television (SVT), </span>Swedish Customs and many other State  authorities, local authorities and municipalities. op5 was established  in 2003, has offices in Stockholm and Gothenburg and partners in several  countries. op5 is owned by its founders and employees, Pod Venture  Partners and KTH Chalmers Capital.</p>
<p>More information about op5 can  be found at <a href="http://www.op5.com/">http://www.op5.com</a> </p>
<p>For more  information please contact:<br />
Jan Josephson, CEO at op5 &#8211; <a href="mailto:jan.josephson@op5.com" target="_blank">jan.josephson@op5.com</a><br />
Johan  Christenson, Chairman at City Network Hosting AB &#8211; <a href="mailto:johan@citynetwork.se" target="_blank">johan@citynetwork.se</a></p>
</div>
<div class="newsdesk_related_items">
<h6>Contacts</h6>
<ul class="newsdesk_list">
<li>
<h5><a href="http://www.op5.com/op5/news/press-release?nd_ukey=05550996bb3bb0bd6d46515f8f4b8633&amp;nd_view=view_contact_person&amp;nd_id=4751">Jan  Josephson</a></h5>
<div class="newsdesk_image"><a href="http://www.op5.com/op5/news/press-release?nd_ukey=05550996bb3bb0bd6d46515f8f4b8633&amp;nd_view=view_contact_person&amp;nd_id=4751"><img alt="Jj_2_stor_small" src="http://www.mynewsdesk.com/files/05550996bb3bb0bd6d46515f8f4b8633/resources/ResourceWebImage/thumbnails/jj_2_stor_small.jpg" /></a></div>
</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/07/01/op5-and-city-cloud-introducing-monitoring-in-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install OpenWRT on LaFonera 2.0G router, FON2202</title>
		<link>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/</link>
		<comments>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:18:40 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[2.0G]]></category>
		<category><![CDATA[2202]]></category>
		<category><![CDATA[LaFonera]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1872</guid>
		<description><![CDATA[&#160;
Background
After waiting for the Hummingbird release for the LaFonera 2.0G a long time and discussed with the Fon support team when 3G&#160;dongles will work, I&#160;gave up and installed OpenWRT on my LaFonera 2.0G router.
&#160;
I&#8217;m sorry FON, you have a cool idea and nice routers but your unlogical approach to the users and communtity, finally got [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Background</h2>
<p>After waiting for the <a href="http://blog.fonosfera.org/fly-baby-fly-gari-the-hummingbird-is-born/">Hummingbird</a> release for the LaFonera 2.0G a long time and discussed with the Fon support team when 3G&nbsp;dongles will work, I&nbsp;gave up and installed OpenWRT on my LaFonera 2.0G router.</p>
<p>&nbsp;</p>
<p>I&#8217;m sorry FON, you have a cool idea and nice routers but your unlogical approach to the users and communtity, finally got me to install plain OpenWRT instead.</p>
<p>&nbsp;</p>
<h2>Installation</h2>
<p>After alot of googling and testing and downloading, reading and so on, I&nbsp;finally run into a <a href="http://linwin-solutions.com/index.php?option=com_blog&amp;view=comments&amp;pid=1&amp;Itemid=0" target="_blank">guide</a> that worked for me.</p>
<p>Most of the descriptions and howto assumes that the RedBoot will accept to download a new firmware via TFTP, this is true with the early releases of 2.0G , but the one sold now do not have this feature.</p>
<p>The trick is to install a firmware that allows changing the RedBoot partition of the memory, change the RedBoot parttion and install OpenWRT&nbsp;via TFTP.</p>
<p>&nbsp;</p>
<p>The guide is unfortunatly in French, but google translate helped me to <a href="http://translate.google.se/translate?u=http%3A%2F%2Flinwin-solutions.com%2Findex.php%3Foption%3Dcom_blog%26view%3Dcomments%26pid%3D1%26Itemid%3D0&amp;sl=fr&amp;tl=en&amp;hl=&amp;ie=UTF-8">translate it</a> to English.</p>
<p>
The pitfalls I&nbsp;run into is to reboot the device several timesafter installing the hacked version of FON&nbsp;firmware: FON2202_2.2.5.0_Flipper_RedBootC_VoteGOP.image</p>
<p>The only difference is that I used a later version of <a href="http://www.openwrt.org">OpenWRT</a>. I used Backfire <a href="http://downloads.openwrt.org/backfire/10.03/atheros/">10.03</a> instead of Kamikaze <a href="ftp://downloads.linwin-solutions.com/hxcwyxwr/fonera_openwrt/fon-flash-linux/">8.9.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/06/28/install-openwrt-on-lafonera-2-0g-router-fon2202/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto use 3G dongle Huawei E1750 in OpenWrt</title>
		<link>http://www.it-slav.net/blogs/2010/06/12/howto-use-3g-dongle-huawei-e1750-in-openwrt/</link>
		<comments>http://www.it-slav.net/blogs/2010/06/12/howto-use-3g-dongle-huawei-e1750-in-openwrt/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 18:38:03 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[Linksys]]></category>
		<category><![CDATA[Linksys WRT160NL]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[WRT160NL]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1838</guid>
		<description><![CDATA[Background
After succesfully installed my new Linksys WRT160NL with OpenWrt, the next step is to configure it. As the summer is approaching and my need for Internet access in our summer cottage will arrise. The summer cottage is in the middle of nowhere so it would be handy to put a USB dongle and the Wlan [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>
<p>After <a href="http://www.it-slav.net/blogs/2010/06/04/install-openwrt-on-linksys-wrt160nl/">succesfully</a> installed my new Linksys WRT160NL with OpenWrt, the next step is to configure it. As the summer is approaching and my need for Internet access in our summer cottage will arrise. The summer cottage is in the middle of nowhere so it would be handy to put a USB dongle and the Wlan router in the spot with best 3G field strength and use the WiFi to connect several computers to the router and Internet.</p>
<p>The 3G USB&nbsp;modem is a Huawei modem I&nbsp;bought for 20&nbsp;EUR and unlocked using <a href="http://www.it-slav.net/blogs/2010/05/02/unlock-huawei-modems/">this</a> guide.</p>
<p>I found an excellent <a href="http://josefsson.org/openwrt/dongle.html">guide</a> describing excactly what I&nbsp;wanted todo but it did not work 100%&nbsp;in my environment so I will describe what I did to get it running. Read the <a href="http://josefsson.org/openwrt/dongle.html">guide</a> to get background and deeper explanation of how things are done. This guide assumes that you have read the <a href="http://josefsson.org/openwrt/dongle.html">guide</a>, basic knowledge of OpenWRT, howto edit files in a Linux environment and so on.<span id="more-1838"></span></p>
<p>&nbsp;</p>
<h3>Installation</h3>
<p>The USB&nbsp;hardware and the modem need some extra packages to be installed. I installed the following:</p>
<pre>
root@WRT160NL:~#opkg install kmod-ar9170 kmod-usb-acm kmod-usb-core kmod-usb-ohci kmod-usb-serial comgt
kmod-usb-serial-option kmod-usb-storage kmod-usb-uhci kmod-usb2&nbsp; usb-switch</pre>
<p>Probably not all of them are necessery but during my tests and fiddeling these are the ones I installed.</p>
<p>&nbsp;</p>
<h3>Configuration</h3>
<p>Create /etc/modules.d/60-usb-serial:</p>
<pre>
usbserial vendor=0x12d1 product=0x1446
 </pre>
<p>The vendor and product parameters can be found by attaching the 3G modem and run:</p>
<pre>
root@WRT160NL:~# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 2.06
S:  Manufacturer=Linux 2.6.32.10 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  <span style="background-color: rgb(255, 255, 0);">Vendor=12d1 ProdID=1446</span> Rev= 0.00
S:  Manufacturer=HUAWEI Technology
S:  Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial_generic
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
 </pre>
<p>The parameters are marked in yellow above.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The next step is to configure usb switch. Create /etc/usb-modeswitch.conf</p>
<pre>
########################################################
# Huawei E270+  (HSPA+ modem)

DefaultVendor= 0x12d1
DefaultProduct=0x1446

TargetVendor=  0x12d1
TargetProductList=&quot;1001,1406,140c,14ac&quot;

CheckSuccess=20

MessageContent=&quot;55534243123456780000000000000011060000000000000000000000000000&quot;</pre>
<p>I have no clue of the syntax but I&nbsp;copied it from my Ubuntu machine /etc/usb_modeswitch.d/12d1:1446 and it works:-)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Add the following to /etc/config/network</p>
<pre>
config 'interface' 'ppp0'
    option 'ifname' 'ppp0'
    option 'proto' '3g'
    option 'device' '/dev/ttyUSB0'
    option 'apn' 'internet.tele2.se'
    option 'pincode' '1234'</pre>
<p>The pincode is obvious, the apn is local and given by your local operator. It is handy to configure it to work in Ubuntu and then look at the configuration Ubuntu creates. <br />
&nbsp;</p>
<p>&nbsp;</p>
<p>The firewall rules need to be updated and I added ppp0 to the wan section in /etc/config/firewall</p>
<pre>
config 'zone'
    option 'name' 'wan'
    option 'input' 'REJECT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'
    option 'masq' '1'
    option 'mtu_fix' '1'
    option 'network' 'wan ppp0'</pre>
<p>To make the change to take effect run:</p>
<pre>
root@WRT160NL:~# /etc/init.d/firewall restart
 </pre>
<h3>&nbsp;</h3>
<h3>Start it</h3>
<p>Attach the modem and run:</p>
<pre>
root@WRT160NL:~# usb_modeswitch

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found default devices (1)
Accessing device 002 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
&nbsp;OK, driver found (&quot;usbserial_generic&quot;)
&nbsp;OK, driver &quot;usbserial_generic&quot; detached

SCSI inquiry data (for identification)
-------------------------
&nbsp; Vendor String: HUAWEI&nbsp;
&nbsp;&nbsp; Model String: Mass Storage&nbsp;&nbsp;&nbsp;
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
&nbsp;&nbsp;&nbsp;&nbsp; Product: HUAWEI Mobile
&nbsp; Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Trying to send the message to endpoint 0x01 ...
&nbsp;OK, message successfully sent
&nbsp;Device is gone, skipping any further commands

Checking for mode switch (max. 20 times, once per second) ...
&nbsp;Original device is gone already, not checking
&nbsp;Searching for target devices ...
&nbsp;Searching for target devices ...
&nbsp;Searching for target devices ...
&nbsp;Searching for target devices ...
&nbsp;Searching for target devices ...
&nbsp;Found correct target device

Mode switch succeeded. Bye.
 </pre>
<p>&nbsp;</p>
<p>logread should now give something similiar to:</p>
<pre>
Jun 12 17:29:11 WRT160NL user.info kernel: generic ttyUSB0: generic converter now disconnected from ttyUSB0
Jun 12 17:29:11 WRT160NL user.info kernel: usbserial_generic 1-1:1.0: device disconnected
Jun 12 17:29:11 WRT160NL user.warn kernel: usb 1-1: usbfs: process 1345 (usb_modeswitch) did not claim interface 0 before use
Jun 12 17:29:11 WRT160NL user.info kernel: usb 1-1: USB disconnect, address 2
Jun 12 17:29:11 WRT160NL user.info kernel: generic ttyUSB1: generic converter now disconnected from ttyUSB1
Jun 12 17:29:11 WRT160NL user.info kernel: usbserial_generic 1-1:1.1: device disconnected
Jun 12 17:29:16 WRT160NL user.info kernel: usb 1-1: new high speed USB device using ar71xx-ehci and address 3
Jun 12 17:29:16 WRT160NL user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Jun 12 17:29:16 WRT160NL user.info kernel: option 1-1:1.0: GSM modem (1-port) converter detected
Jun 12 17:29:16 WRT160NL user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Jun 12 17:29:16 WRT160NL user.info kernel: option 1-1:1.1: GSM modem (1-port) converter detected
Jun 12 17:29:16 WRT160NL user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Jun 12 17:29:16 WRT160NL user.info kernel: option 1-1:1.2: GSM modem (1-port) converter detected
Jun 12 17:29:16 WRT160NL user.info kernel: usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Jun 12 17:29:16 WRT160NL user.info kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Jun 12 17:29:16 WRT160NL user.debug kernel: usb-storage: device found at 3
Jun 12 17:29:16 WRT160NL user.debug kernel: usb-storage: waiting for device to settle before scanning
Jun 12 17:29:16 WRT160NL user.info kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Jun 12 17:29:16 WRT160NL user.debug kernel: usb-storage: device found at 3
Jun 12 17:29:16 WRT160NL user.debug kernel: usb-storage: waiting for device to settle before scanning
Jun 12 17:29:21 WRT160NL user.notice kernel: scsi 3:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jun 12 17:29:21 WRT160NL user.debug kernel: usb-storage: device scan complete
Jun 12 17:29:21 WRT160NL user.notice kernel: scsi 4:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Jun 12 17:29:21 WRT160NL user.notice kernel: sd 4:0:0:0: [sda] Attached SCSI removable disk
Jun 12 17:29:21 WRT160NL user.debug kernel: usb-storage: device scan complete
 </pre>
<h3>&nbsp;</h3>
<h3>Using it</h3>
<p>To start using your new configuration:</p>
<pre>
root@WRT160NL:~# ifup ppp0
SIM ready
PIN set successfully
</pre>
<p>And now ping a host on Internet</p>
<pre>
root@WRT160NL:~# ping ftp.sunet.se
PING ftp.sunet.se (194.71.11.69): 56 data bytes
64 bytes from 194.71.11.69: seq=0 ttl=55 time=119.351 ms
64 bytes from 194.71.11.69: seq=1 ttl=55 time=88.978 ms
64 bytes from 194.71.11.69: seq=2 ttl=55 time=88.751 ms
64 bytes from 194.71.11.69: seq=3 ttl=55 time=88.484 ms
64 bytes from 194.71.11.69: seq=4 ttl=55 time=128.257 ms
^C
--- ftp.sunet.se ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 88.484/102.764/128.257 ms
 </pre>
<p>Stop your connection:</p>
<pre>
root@WRT160NL:~# ifdown ppp0</pre>
<p>&nbsp;</p>
<h3>Useful links</h3>
<ul>
<li><a href="http://josefsson.org/openwrt/dongle.html">http://josefsson.org/openwrt/dongle.html </a>The excellent guide that I used as a platform, read it!</li>
<li><a href="http://www.openwrt.org">OpenWrt</a>, Linuxbased firmware for routers</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/06/12/howto-use-3g-dongle-huawei-e1750-in-openwrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install OpenWRT on Linksys WRT160NL</title>
		<link>http://www.it-slav.net/blogs/2010/06/04/install-openwrt-on-linksys-wrt160nl/</link>
		<comments>http://www.it-slav.net/blogs/2010/06/04/install-openwrt-on-linksys-wrt160nl/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 18:37:58 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Linksys WRT160NL]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1825</guid>
		<description><![CDATA[&#160;
Background
After getting fedup with the bad fon support I decided to give a new wireless router a try. After browsing internet and openwrt forums I&#160;thought that a Linksys WRT160NL would fulfill my requirements:
The requrements are:

N
3G USB&#160;dongle
Cheap

&#160;
Packing up
The installation from Linksys is crap, a CD comes with the product and if you want to configure it [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h3>Background</h3>
<p>After getting fedup with the bad fon support I decided to give a new wireless router a try. After browsing internet and openwrt forums I&nbsp;thought that a Linksys WRT160NL would fulfill my requirements:</p>
<p>The requrements are:</p>
<ul>
<li>N</li>
<li>3G USB&nbsp;dongle</li>
<li>Cheap</li>
</ul>
<p>&nbsp;<span id="more-1825"></span></p>
<h3>Packing up</h3>
<p>The installation from Linksys is crap, a CD comes with the product and if you want to configure it you need to install software from the CD. The only supported operating systems are windows or Mac, I&nbsp;run linux.</p>
<p>I skipped the CD&nbsp;and connected my Linux box with a ethernet cable to the router. I tried to connect to http://192.168.1.1 and got a login screen.</p>
<p>After some <a href="http://www.speedguide.net/broadband-view.php?hw=307">googling</a> I&nbsp;found that the default login was blank and the password admin.</p>
<p>I managed to configure my new router after logging in. I&nbsp;do not now the purpose of the CD, real stupid.</p>
<p>&nbsp;</p>
<h3>Install OpenWRT</h3>
<p>I&nbsp;read the <a href="http://wiki.openwrt.org/toh/linksys/wrt160nl.">instructions</a> to get OpenWRT on my Linksys WRT160NL and tried the &quot;OEM&nbsp;easy installation&quot;. According to the instruction <a href="http://downloads.openwrt.org/backfire/10.03/ar71xx/openwrt-ar71xx-wrt160nl-squashfs.bin">openwrt-ar71xx-wrt160nl-squashfs.bin</a> is the image to install. Unfortunatly I get an errormessage &quot; Firmware Upgrade Failed!&quot;</p>
<p>I&nbsp;upgraded the firmware to the latest Linksys firmware and after that tried the OpenWRT&nbsp;firmware with the same error message.</p>
<p>After some bad language and alot of googling I found a <a href="https://dev.openwrt.org/ticket/7300">bug</a> reported that the version I&nbsp;tried to install always gives that message when installed from the Linksys webgui.</p>
<p>So I&nbsp;tried the Beta <a href="http://downloads.openwrt.org/backfire/10.03-beta/ar71xx/openwrt-ar71xx-wrt160nl-squashfs.bin">version</a> instead and finally I success message.</p>
<p>I&nbsp;telneted to 192.168.1.1 and run passwd to change my password.</p>
<p>ssh to 192.168.1.</p>
<p>run:</p>
<pre>
root@OpenWrt:~# opkg update

root@OpenWrt:~# opkg install kmod-ath9k

root@OpenWrt:~# opkg install  hostapd</pre>
<p>And start configure.</p>
<p>&nbsp;</p>
<h3>Update BETA to stable version</h3>
<p>It was a annoying feeling to run beta when a stable version existed.</p>
<p>I&nbsp;used the luci webgui to update the firmware to the stable version and it looked alright. I&nbsp;managed to log in both with ssh and webgui.</p>
<p>But when I&nbsp;tried to install a new package it gave me an error message that there was no free disk, sigh!</p>
<p>I installed the BETA version and it worked, tried RC3 and the same problem with no free disk.</p>
<p>After some bad language and a lot of fiddeling I&nbsp;updated to the stable with the checkbox &quot;Keep configuration files&quot; unchecked and this time it works flawless.</p>
<p>Follow the guidlines above to change root password, update the software package list, install wlansupport, WAP support&nbsp; and start configure.</p>
<p>&nbsp;</p>
<p>A succefull login below:</p>
<pre>
peter@peter-laptop:~$ ssh -l root 192.168.1.1
root@192.168.1.1's password:

BusyBox v1.15.3 (2010-04-06 03:14:11 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 Backfire (10.03, r20728) --------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
</pre>
<pre>
root@WRT160NL:~# uname -a
Linux WRT160NL 2.6.32.10 #20 Tue Apr 6 15:01:26 CEST 2010 mips GNU/Linux
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/06/04/install-openwrt-on-linksys-wrt160nl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Splunk are not open</title>
		<link>http://www.it-slav.net/blogs/2010/05/25/splunk-are-not-open/</link>
		<comments>http://www.it-slav.net/blogs/2010/05/25/splunk-are-not-open/#comments</comments>
		<pubDate>Tue, 25 May 2010 14:02:32 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[splunk]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1806</guid>
		<description><![CDATA[&#160;
I have registred me to attend&#160;the open Splunk event in Stockholm. Within 24 hours I&#160;got an email telling that they do not want competitors at the event and would like to discuss the purpose of me attending.
I&#160;called the Splunk representative and told him that op5 thinks Splunk is a competitor in some cases and in [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I have registred me to attend&nbsp;the open <a href="http://www.splunk.com">Splunk</a> <a href="http://www.splunk.com/goto/SplunkLive_Stockholm_0510">event in Stockholm</a>. Within 24 hours I&nbsp;got an email telling that they do not want competitors at the event and would like to discuss the purpose of me attending.</p>
<p>I&nbsp;called the Splunk representative and told him that op5 thinks Splunk is a competitor in some cases and in some cases we have products that run in parallel at customer sites. We want to integrate <a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> with Splunk because we have got the question a couple of times from customers and potential customers. My intention of attending the meeting is to get a better understanding of Splunk so op5 can integrate our products, so our customers get the products that suits them best. If Splunk wants to be part of the integration, the better.</p>
<p>The Splunk representative still do not want me to attend. At Splunk they will discuss this matter internally but so far, this is their view.</p>
<p>&nbsp;</p>
<p>I&nbsp;would really like to make a parallel with another op5 competitor, W&uuml;rth, at their <a href="http://www.wuerth-phoenix.com/en/company/event/the-agenda/">event</a> they invited op5 as key speaker and I&nbsp;really recommend Splunk to reconsider their decision.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/05/25/splunk-are-not-open/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Unlock Huawei modems</title>
		<link>http://www.it-slav.net/blogs/2010/05/02/unlock-huawei-modems/</link>
		<comments>http://www.it-slav.net/blogs/2010/05/02/unlock-huawei-modems/#comments</comments>
		<pubDate>Sun, 02 May 2010 12:46:06 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Unlock Huawei]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1773</guid>
		<description><![CDATA[&#160;
I&#160;wanted to unlock my operator locked Huawei e1750 modem. After googling I&#160;found this page in swedish.
The unlock code can be calculated by using the IMEI number, the unlock code is sent by using AT&#160;commands.
I&#160;have succesfully tested this on e1750 and e1550.
I&#160;also tried it on e220 and it did not work.

&#160;
1. Get the IMEI number
Normally this [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I&nbsp;wanted to unlock my operator locked Huawei e1750 modem. After googling I&nbsp;found <a href="http://www.mobilabredband.se/forum/viewtopic.php?id=1709">this</a> page in swedish.</p>
<p>The unlock code can be calculated by using the IMEI number, the unlock code is sent by using AT&nbsp;commands.</p>
<p>I&nbsp;have succesfully tested this on e1750 and e1550.</p>
<p>I&nbsp;also tried it on e220 and it did not work.</p>
<p><span id="more-1773"></span></p>
<h2>&nbsp;</h2>
<h2>1. Get the IMEI number</h2>
<p>Normally this is printed on the device put the geek way of getting it is by asking the device:</p>
<pre>
peter@peter-laptop:~/huawei$ cat /dev/ttyUSB0 &amp;
[1] 9378
peter@peter-laptop:~/huawei$ echo -e &quot;ATI\r&quot; &gt; /dev/ttyUSB0
peter@peter-laptop:~/huawei$ ATI
Manufacturer: huawei
Model: E1750
Revision: 11.126.07.04.00
IMEI: 123456789012347
+GCAP: +CGSM,+DS,+ES

OK
</pre>
<p>So the IMEI&nbsp;number is: 123456789012347</p>
<p>&nbsp;</p>
<h2>&nbsp;</h2>
<h2>2. Calculate the unlock code</h2>
<p>The following python script will calculate the unlock code:</p>
<pre>
import hashlib

def getCode(imei, salt):
    digest = hashlib.md5((imei+salt).lower()).digest()
    code = 0
    for i in range(0,4):
        code += (ord(digest[i])^ord(digest[4+i])^ord(digest[8+i])^ord(digest[12+i])) &lt;&lt; (3-i)*8
        code &amp;= 0x1ffffff
        code |= 0x2000000
    return code

# Your IMEI goes here:
imei = &quot;123456789012347&quot;

print &quot;Unlock code: %s&quot; % getCode(imei, &quot;5e8dd316726b0335&quot;)
print &quot;Flash code: %s&quot; % getCode(imei, &quot;97b7bc6be525ab44&quot;)
</pre>
<p>When run:</p>
<pre>
peter@peter-laptop:~/huawei$ python unlock_code.py
Unlock code: 36963763
Flash code: 53969249
</pre>
<h2>&nbsp;</h2>
<h2>3. Use the unlock code</h2>
<pre>
peter@peter-laptop:~/huawei$ echo -e 'AT^CARDLOCK=&quot;36963763&quot;\r' &gt; /dev/ttyUSB0

OK
</pre>
<p>&nbsp;</p>
<p>Congratulations, now your modem is unlocked</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/05/02/unlock-huawei-modems/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Android app for Nagios or op5 Monitor</title>
		<link>http://www.it-slav.net/blogs/2010/05/01/android-app-for-nagios-or-op5-monitor/</link>
		<comments>http://www.it-slav.net/blogs/2010/05/01/android-app-for-nagios-or-op5-monitor/#comments</comments>
		<pubDate>Sat, 01 May 2010 13:30:56 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[NagMonDroid]]></category>
		<category><![CDATA[Nagroid]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1764</guid>
		<description><![CDATA[&#160;
With my new and fancy HTC Desire I wanted to look at my Nagios or op5 Monitor status. I&#160;have found two apps Nagroid and NagMonDroid.
&#160;
NagMonDroid did I&#160;not get working, probably because op5 Monitor only uses https as protocol.
&#160;
Nagroid works like a charm:

&#160;
The configuration is rather straightforward:

]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>With my new and fancy HTC Desire I wanted to look at my <a href="http://www.nagios.org">Nagios</a> or <a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> status. I&nbsp;have found two apps <a href="http://www.kiu.weite-welt.com/de.schoar.android//nagroid/help/">Nagroid</a> and <a href="http://www.simonmclaughlin.co.uk/page/Android_Apps/">NagMonDroid</a>.</p>
<p>&nbsp;<span id="more-1764"></span></p>
<p>NagMonDroid did I&nbsp;not get working, probably because op5 Monitor only uses https as protocol.</p>
<p>&nbsp;</p>
<p>Nagroid works like a charm:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/nagroid.png"><img width="480" height="800" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/nagroid.png" alt="" title="nagroid" class="aligncenter size-full wp-image-1765" /></a></p>
<p>&nbsp;</p>
<p>The configuration is rather straightforward:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/nagroid-settings.png"><img width="480" height="800" class="aligncenter size-full wp-image-1768" title="nagroid-settings" alt="" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/nagroid-settings.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/05/01/android-app-for-nagios-or-op5-monitor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hint: Howto get Android SDK working on Ubuntu</title>
		<link>http://www.it-slav.net/blogs/2010/05/01/hint-howto-get-android-sdk-working-on-ubuntu/</link>
		<comments>http://www.it-slav.net/blogs/2010/05/01/hint-howto-get-android-sdk-working-on-ubuntu/#comments</comments>
		<pubDate>Sat, 01 May 2010 13:14:02 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[screenshoots]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1751</guid>
		<description><![CDATA[&#160;
I wanted to use the Android SDK on my Ubuntu machine, mainly to grab screenshoots but also to play around with it.
&#160;
I followed the guidelines at this guide, but it did not work. DDM just show garbage as the device and when trying to get a screenshoot it complained with:

54:42 W/ddms: Unable to get frame [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>I wanted to use the Android SDK on my Ubuntu machine, mainly to grab screenshoots but also to play around with it.</p>
<p>&nbsp;</p>
<p>I followed the guidelines at <a href="http://www.downloadsquad.com/2008/10/22/taking-screenshots-on-an-android-based-phone/">this</a> guide, but it did not work. DDM just show garbage as the device and when trying to get a screenshoot it complained with:</p>
<pre>
54:42 W/ddms: Unable to get frame buffer: device (????????????)
request rejected: insufficient permissions for device<span id="more-1751"></span>
</pre>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/ddm-fel.png"><img src="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/ddm-fel.png" alt="" title="ddm-fel" class="aligncenter size-full wp-image-1752" style="width: 687px; height: 513px;" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>After some googling i figured out that I had to hack my udev rules.</p>
<p>I added to /etc/udev/rules.d/51-android.rules</p>
<pre>
SUBSYSTEMS==&quot;usb&quot;, ATTRS{idVendor}==&quot;0bb4&quot;, ATTRS{idProduct}==&quot;0c87&quot;, MODE=&quot;0666&quot;
 </pre>
<pre>
and run

reload udev</pre>
<p>&nbsp;</p>
<p>The idVendor and&nbsp; idProduct was found by running lsusb:</p>
<pre>
# lsusb
Bus 002 Device 011: ID 0bb4:0c87 High Tech Computer Corp. 
</pre>
<p>&nbsp;</p>
<p>Now when starting DDM:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/ddm-funkar.png"><img src="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/ddm-funkar.png" alt="" title="ddm-funkar" class="aligncenter size-full wp-image-1753" style="width: 646px; height: 490px;" /></a></p>
<p>&nbsp;</p>
<p>And I&nbsp;can take screenshoots:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/android-screenshoot.png"><img width="480" height="800" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/05/android-screenshoot.png" alt="" title="android-screenshoot" class="aligncenter size-full wp-image-1754" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/05/01/hint-howto-get-android-sdk-working-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally it has arrived, my HTC Desire</title>
		<link>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/</link>
		<comments>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 18:09:22 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[htc desire]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1740</guid>
		<description><![CDATA[After waiting for several weeks, my new phone, a HTC Desire has finally arrived. I have been a heavy cellphone user since started working as a Tivoli consultant in -98. I bought my first cellphone -94 and have had several so called smart phones both from Nokia and Ericsson.
&#160;
For the first time I felt that [...]]]></description>
			<content:encoded><![CDATA[<p>After waiting for several weeks, my new phone, a HTC Desire has finally arrived. I have been a heavy cellphone user since started working as a Tivoli consultant in -98. I bought my first cellphone -94 and have had several so called smart phones both from Nokia and Ericsson.</p>
<p>&nbsp;</p>
<p>For the first time I felt that this is more than a phone, for the first time calender integration works, for the first time I can use the builtin GPS, for the first time accessing the web with a phone works, for the first time downloaded software really works.</p>
<p>&nbsp;<span id="more-1740"></span></p>
<p>&nbsp;</p>
<p>My favorite apps so far is:</p>
<ul>
<li>Nagroid, to be able to view my <a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> status</li>
<li>FONMaps, find hotspots for LaFoneras</li>
<li>Car Cast, listen and download podcasts</li>
<li>MapDroid, to use preloaded OpenStreetmaps and GPS without using any bandwidth. Perfect when abroad because of the crazy price of data roaming outside Sweden.</li>
<li>HTC&nbsp;Facebook, read and post on facebook</li>
<li>FON&nbsp;Access, automatically connect to FON&nbsp;hotspots when traveling.</li>
<li>GPS Logger, logg tracks in gpx format that almost any GPS software understand</li>
<li>Sipdroid, to connect to my Asterisk PBX using 3G or WiFi</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Of&nbsp; cource the device is not perfect, I miss:</p>
<ul>
<li>The phone must be &#8216;rooted&#8217; to be real useful, why? Open the phone so the community and others can develop apps that are real useful. Vendor lock-in always sucks.</li>
<li>IPSec VPN so I&nbsp;can connect to my IPSec based OpenBSD firewall. The IPSec implementation in the phone sucks.</li>
<li>OpenVPN, there exists OpenVPN&nbsp;apps but to use the the phone must be &#8216;rooted&#8217;</li>
<li>Bluetooth modem, it is not possible to use the phone as a modem using bluetooth</li>
<li>Screenshots, the phone must be rooted or using the SDK to take screenshoots. Why?</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I really hope that Google and/or HTC understand and use the power of the community to make the Android even more succesfull by open it even more.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Developer Firmware on Fonera router</title>
		<link>http://www.it-slav.net/blogs/2010/03/29/installing-developer-firmware-on-fonera-router/</link>
		<comments>http://www.it-slav.net/blogs/2010/03/29/installing-developer-firmware-on-fonera-router/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 20:11:39 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1705</guid>
		<description><![CDATA[Background
I bought a Fonera 2.0g WLAN router and I wanted to extend the functionality to have the possibility to add packages from OpenWRT. I also wanted the possibility to manage my new router with ssh.
The way to achive this is by installing developer firmware.

&#160;
&#160;
&#160;
Installing
I followed the instructions at Fons beta/developer wiki.
The image I used can [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>
<p>I bought a Fonera 2.0g WLAN router and I wanted to extend the functionality to have the possibility to add <a href="http://downloads.openwrt.org/kamikaze/8.09/atheros/packages/">packages</a> from OpenWRT. I also wanted the possibility to manage my new router with ssh.</p>
<p>The way to achive this is by installing developer firmware.</p>
<h3><span id="more-1705"></span></h3>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3>Installing</h3>
<p>I followed the instructions at Fons beta/developer <a href="http://wiki.fon.com/wiki/Fon-ng:_Get_Involved">wiki</a>.</p>
<p>The image I used can be found <a href="http://download.fonosfera.org/RC/20090713_FON2202_2.2.6.0_rc5_DEV.tar.gz">here</a>.</p>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3>&nbsp;&nbsp;</h3>
<h3>Test</h3>
<p>I try to connect by using ssh</p>
<pre>
peter@peter-laptop:~$ ssh -l root 192.168.10.1
root@192.168.10.1's password: 

BusyBox v1.11.1 (2009-04-17 12:45:57 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

                                        __
                                    _.-~  )
                         _..--~~~~,'   ,-/     _
                      .-'. . . .'   ,-','    ,' )
                    ,'. . . _   ,--~,-'__..-'  ,'
                  ,'. . .  (@)' ---~~~~      ,'
                 /. . . . '~~             ,-'
                /. . . . .             ,-'
               ; . . . .  - .        ,'
              : . . . .       _     /
             . . . . .          `-.:
            . . . ./  - .          )
           .  . . |  _____..---.._/ ____ Seal _
     ~---~~~~----~~~~             ~~                

                      Flipper                       

--------  Fonera 2.0 Firmware (v2.2.5.0) -----------
      * Based on OpenWrt - http://openwrt.org
      * Powered by FON - http://www.fon.com
----------------------------------------------------</pre>
<div>&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/03/29/installing-developer-firmware-on-fonera-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install SNMP on OpenWRT</title>
		<link>http://www.it-slav.net/blogs/2010/03/23/install-snmp-on-openwrt/</link>
		<comments>http://www.it-slav.net/blogs/2010/03/23/install-snmp-on-openwrt/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 20:30:47 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[LaFonera]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1686</guid>
		<description><![CDATA[&#160;
When using a cool router software like OpenWRT it is a good idea to monitor the network usage. This article describe howto get SNMP&#160;on your OpenWRT&#160;based router.
&#160;
&#160;
1. Install
The easiest way is to use the webgui, http://&#60;your router ip&#62;

Log in as root/-&#60;your password&#62;
Click on Adminstrator to enable the Advnced menues
System-&#62;Software
Click on &#34;Update Package List&#34; (this require [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>When using a cool router software like OpenWRT it is a good idea to monitor the network usage. This article describe howto get SNMP&nbsp;on your OpenWRT&nbsp;based router.</p>
<h2>&nbsp;<span id="more-1686"></span></h2>
<h2>&nbsp;</h2>
<h2>1. Install</h2>
<p>The easiest way is to use the webgui, http://&lt;your router ip&gt;</p>
<ol>
<li>Log in as root/-&lt;your password&gt;</li>
<li>Click on Adminstrator to enable the Advnced menues</li>
<li>System-&gt;Software</li>
<li>Click on &quot;Update Package List&quot; (this require Internet access).</li>
<li>Install snmpd-static</li>
</ol>
<p>&nbsp;</p>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3>2. Configure</h3>
<p>Log in to the La Fonera using ssh:</p>
<pre>
peter@peter-laptop:~$ ssh -l root 192.168.0.159
root@192.168.0.159's password:

BusyBox v1.11.2 (2009-12-02 11:25:47 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09.2, r18961) -------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@fon:~#
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Start snmpd</p>
<pre>
root@fon:~# /etc/init.d/snmpd start
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Make it start when rebooted:</p>
<pre>
root@fon:~# /etc/init.d/snmpd enable
</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>If you want to change your SNMP configuration the configuration is located in:</p>
<pre>
/etc/config/snmpd
</pre>
<p>&nbsp;</p>
<h3>&nbsp;</h3>
<h3>3. Monitor</h3>
<p>Now you can get the SNMP&nbsp;data and use your favorite Monitor tool, i.e. Nagios or op5 Monitor.</p>
<p>Below a screenshoot from op5 Monitor:</p>
<p>&nbsp;<a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/fon-traffic.png"><img width="603" height="195" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/fon-traffic.png" alt="" title="fon-traffic" class="aligncenter size-full wp-image-1690" /></a></p>
<p>&nbsp;</p>
<h3>&nbsp;</h3>
<h3>&nbsp;</h3>
<h3>Useful links</h3>
<ul>
<li><a href="http://www.openwrt.org">OpenWRT</a>, an OpenSource router software</li>
<li><a href="http://www.net-snmp.org/">Net-SNMP</a>, an SNMP implementation</li>
<li><a href="http://nagios.org">Nagios</a>, an OpenSource Monitoring software</li>
<li><a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a>, an Enterprise Class Monitoring software based on Nagios</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/03/23/install-snmp-on-openwrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install OpenWRT on LaFonera router</title>
		<link>http://www.it-slav.net/blogs/2010/03/21/install-openwrt-on-lafonera-router/</link>
		<comments>http://www.it-slav.net/blogs/2010/03/21/install-openwrt-on-lafonera-router/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 15:33:37 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[La Fonera]]></category>
		<category><![CDATA[openwrt]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1667</guid>
		<description><![CDATA[

&#160;Background
I got an unused La Fonera router by a collegue. They can be bought from http://www.fon.com for approximately 40 Euro including freight. The purpose of the Fon community is to build a community of hotspots around the world so every owner of a La Fonera could use any other La Fonera router in the world.
&#160;
I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/fon.png"><br />
</a></p>
<h2>&nbsp;Background</h2>
<p>I got an unused La Fonera router by a collegue. They can be bought from <a href="http://www.fon.com">http://www.fon.com</a> for approximately 40 Euro including freight. The purpose of the Fon community is to build a community of hotspots around the world so every owner of a La Fonera could use any other La Fonera router in the world.</p>
<p>&nbsp;</p>
<p>I am curios about the legal aspect if someone in the Fon community uses my internet connection to do something bad, like download copyrighted software, hack CIA or whatever.</p>
<p>&nbsp;</p>
<p>The La Fonera router is real cool because:</p>
<ul>
<li>Looks good so it has a high wife acceptance factor</li>
<li>Hackable, the firmware could be replaced with for example <a href="http://www.openwrt.org">OpenWRT</a>, <a href="http://dd-wrt.com">DD-WRT</a>, <a href="http://www.digininja.org/jasager/">Jasager</a> and others&#8230;</li>
<li>Even more hackable, there are several guides and howtos to modify the La Fonera hardware.</li>
<li>Cheap, in the good old days it was possible to get one for free.<span id="more-1667"></span></li>
</ul>
<h2>&nbsp;</h2>
<h2>Install OpenWRT</h2>
<p>I&nbsp;followed this <a href="http://wiki.cuwin.net/index.php?title=Flashing_the_La_Fonera_with_OpenWRT">guide</a>, the only exception was that I used the latest OpenWRT in &quot;Phase C&quot;:</p>
<p>&nbsp;# ./ap51-flash-1.0-42 eth0 openwrt-atheros-root.squashfs openwrt-atheros-vmlinux.lzma</p>
<p>The files can be downloaded from <a href="http://www.openwrt.org">OpenWRTs</a> <a href="http://downloads.openwrt.org/">download section</a> for <a href="http://downloads.openwrt.org/kamikaze/8.09.2/atheros/">atheros platform</a>.</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/fon2.png"><img width="640" height="480" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/fon2.png" alt="" title="fon" class="aligncenter size-full wp-image-1675" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/03/21/install-openwrt-on-lafonera-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor HP Proliant with Nagios or Op5 Monitor</title>
		<link>http://www.it-slav.net/blogs/2010/03/02/monitor-hp-proliant-with-nagios-or-op5-monitor/</link>
		<comments>http://www.it-slav.net/blogs/2010/03/02/monitor-hp-proliant-with-nagios-or-op5-monitor/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 20:38:52 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[HP SIM]]></category>
		<category><![CDATA[Insight Manager]]></category>
		<category><![CDATA[SIM]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1644</guid>
		<description><![CDATA[&#160;
Background
It is always a good idea to monitor the server hardware, in many cases the root cause of the probblem is hardware related like: a fan stops and the temperature gets to high, dust in the machine makes it to hot, disks that fails, memory corruption and so on.&#160; This article will describe howto enable [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Background</h2>
<p>It is always a good idea to monitor the server hardware, in many cases the root cause of the probblem is hardware related like: a fan stops and the temperature gets to high, dust in the machine makes it to hot, disks that fails, memory corruption and so on.&nbsp; This article will describe howto enable hardware monitoring on a HP&nbsp;Proliant running CentOS Linux and then howto collect the data with Nagios or op5 Monitor. The procedure is the same with RedHat Enterprise Linux and similiar with Suse Enterprise server.</p>
<p>The HP&nbsp;manuals and information is bloated with irrelevant information and I&nbsp;had to struggle several hours, ask collegues to get it running. I&nbsp;hope this blog article will help others to get monitoring of HP Proliant using HP Insight Manager easier to setup.</p>
<h2>&nbsp;<span id="more-1644"></span></h2>
<p>&nbsp;</p>
<h2>Installing the software on the target system</h2>
<p>You need two packages from HP and can be downloaded from <a href="http://www.hp.com">hp.com</a> under &quot;Support &amp; Drivers&quot;. Search your hardware plattform and correct operating system:</p>
<ul>
<li>ProLiant Support Pack for Red Hat Enterprise Linux 5 (i686)&nbsp; The latest Proliant Support Package 2010-03-02 name is psp-8.25.rhel5.i686.en.tar.gz</li>
<li>HP System Health Application and Insight Management Agents for Red Hat Enterprise Linux 5 (x86). The latest name is hpasm-8.0.0-173.rhel5.i386.rpm</li>
</ul>
<p>&nbsp;</p>
<p>Install kernel source code and rpm tools:</p>
<pre>
# yum install kernel-devel rpm-build rpm-devel
 </pre>
<p>&nbsp;</p>
<p>Proliant Support Package is not supported on CentOS so you have to let the installer think it is a RedHat system. If you have a RHEL&nbsp;system skip the next steps.</p>
<pre>
# cp /etc/redhat-release /etc/redhat-release.backup

# echo &quot;Red Hat Enterprise Linux Server release 5.4 (Tikanga)&quot;&gt;/etc/redhat-release</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Untar the Proliant Support Package</p>
<pre>
 # tar xzvf psp-8.25.rhel5.i686.en.tar.gz</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Install the  Proliant Support Package</p>
<pre>
# cd compaq/csp/linux/

# ./install825.sh</pre>
<p>alot of text appears and some questions, answer them.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Install HP System Health Application and Insight Management Agents, and for some stupid reason it is in conflict with some other packages just installed. I solved it in a dirty way:</p>
<pre>
# rpm -i --force  --replacefiles --nodeps hpasm-8.0.0-173.rhel5.i386.rpm</pre>
<p>Configure by running:</p>
<pre>
# hpa/etc/init.d/hpasm configure</pre>
<p>and answer the questions.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Do not forget to restore /etc/redhat-release</p>
<pre>
# cp /etc/redhat-release.backup /etc/redhat-release</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I&nbsp;did modify my /etc/snmp/snmp.conf to:</p>
<pre>
dlmod cmaX /usr/lib/libcmaX.so
rocommunity public
trapsink 10.1.1.20
syscontact peter@it-slav.net
syslocation PDC, Peters DataCenter</pre>
<p>&nbsp;</p>
<p>To test that you have installation and configuration work, run a snmpwalk from your Nagios or op5 Monitor host:</p>
<pre>
# snmpwalk -c public -v1  &lt;ip-adress of your proliant box&gt; 1.3.6.1.4.1.232

SNMPv2-SMI::enterprises.232.1.1.1.0 = INTEGER: 1
SNMPv2-SMI::enterprises.232.1.1.2.0 = INTEGER: 23
SNMPv2-SMI::enterprises.232.1.1.3.0 = INTEGER: 2
SNMPv2-SMI::enterprises.232.1.2.1.4.1.0 = INTEGER: 30
SNMPv2-SMI::enterprises.232.1.2.1.4.2.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.232.1.2.1.4.2.1.2.1 = STRING: &quot;Compaq Standard Equipment Agent for Linux&quot;
SNMPv2-SMI::enterprises.232.1.2.1.4.2.1.3.1 = &quot;&quot;
SNMPv2-SMI::enterprises.232.1.2.1.4.2.1.4.1 = Hex-STRING: 00 00 00 00 00 00 00
SNMPv2-SMI::enterprises.232.1.2.1.4.2.1.5.1 = STRING: &quot;To gather Standard Equipment data for Linux.&quot;

...
 </pre>
<h2>&nbsp;</h2>
<h2>Install check_hpasm on the Nagios or op5 Monitor host</h2>
<p>The <a href="http://labs.consol.de/lang/en/nagios/check_hpasm/">check_hpasm</a> can be downloaded from <a href="http://labs.consol.de/">Console Labs</a>.</p>
<p>Unpack the tarball</p>
<pre>
# tar xzvf check_hpasm-4.1.2.tar.gz</pre>
<p>&nbsp;</p>
<pre>
Configure and compile

# ./configure --prefix=/opt/plugins/custom/hp-insight --with-nagios-user=monitor --with-nagios-group=users --enable-perfdata

...

# make

...

# make install</pre>
<p>&nbsp;</p>
<p>Test</p>
<pre>
# /opt/plugins/custom/hp-insight/libexec/check_hpasm -H  -C public

OK - System: 'proliant dl360 g3', S/N: '7J31LMW6N01D', ROM: 'P31 01/28/2004', hardware working fine, da: 1 logical drives, 1 physical drives | fan_1=50% fan_2=50% temp_1_cpu=16;50;50 temp_2_cpu=15;65;65 temp_3_ioBoard=21;56;56 temp_4_cpu=20;65;65
</pre>
<p>Congratulations your plugin and hw monitoring works!</p>
<p>&nbsp;</p>
<h2>Configure Nagios or op5 Monitor<br />
&nbsp;</h2>
<p>checkcommands.cfg</p>
<pre>
# command 'check_hpasm'
define command{
    command_name                   check_hpasm
    command_line                   $USER1$/custom/libexec/check_hpasm -H $HOSTADDRESS$ -C $ARG1$
    }</pre>
<p>&nbsp;</p>
<p>services.cfg</p>
<pre>
# service 'Insight Manager'
define service{
    use                            default-service
    host_name                      humpa
    service_description            Insight Manager
    check_command                  check_hpasm!public
    contact_groups                 call_it-slav,it-slav_jabber,it-slav_mail
    }</pre>
<h2>&nbsp;</h2>
<p>Screenshoot, using ninja</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/hpinsightmgr.png"><img width="1242" height="182" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/03/hpinsightmgr.png" alt="" title="hpinsightmgr" class="aligncenter size-full wp-image-1658" /></a></p>
<p>&nbsp;</p>
<h2>&nbsp;Useful links</h2>
<ul>
<li><a href="http://www.op5.com">op5</a>, a systems and network management company</li>
<li><a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a>, an enterpise monitor system based on Nagios</li>
<li><a href="http://www.op5.org/community/projects/ninja">Ninja</a>, Nagios is now just awesome</li>
<li><a href="http://www.nagios.org">Nagios</a>, enterprise monitoring based on opensource</li>
<li><a href="http://welcome.hp.com/country/us/en/support.html">Hp support &amp; drivers</a>, a place to start looking for the HP software used in this article</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/03/02/monitor-hp-proliant-with-nagios-or-op5-monitor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>op5 Monitor 5.0 Beta</title>
		<link>http://www.it-slav.net/blogs/2010/02/26/op5-monitor-5-0-beta/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/26/op5-monitor-5-0-beta/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:58:49 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[op5 Monitor]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1626</guid>
		<description><![CDATA[The release of the next generation Open Source Network Monitoring Software is only weeks away with the release of op5 Monitor 5. Here you can download a Beta version of the sofware intended for testing och evaluation or try it at a live demo.

op5 Monitor Beta, virtual image in ovf format
Try op5 Monitor Beta

The op5 [...]]]></description>
			<content:encoded><![CDATA[<p>The release of the next generation Open Source Network Monitoring Software is only weeks away with the release of op5 Monitor 5. Here you can download a Beta version of the sofware intended for testing och evaluation or try it at a live demo.</p>
<ul>
<li><a href="http://www.op5.com/op5/products/network-monitor/download-50-beta#">op5 Monitor Beta, virtual image in ovf format</a></li>
<li><a href="https://beta.op5.com/ninja">Try op5 Monitor Beta</a></li>
</ul>
<p>The op5 Monitor Beta use <a href="http://www.op5.org/community/projects/ninja">Ninja</a> as GUI and <a href="http://www.op5.org/community/projects/merlin">Merlin</a> as a databasebackend.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/26/op5-monitor-5-0-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rockbox makes your media player much better</title>
		<link>http://www.it-slav.net/blogs/2010/02/19/rockbox-makes-your-media-player-much-better/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/19/rockbox-makes-your-media-player-much-better/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 17:31:58 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[mp3 player]]></category>
		<category><![CDATA[RockBox]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1616</guid>
		<description><![CDATA[I have an old iPod G3 player that I haven&#8217;t used for several years. The main reason is that it is full of Apple vendor lock-in &#34;features&#34;. The most annoying issues are:

Hard to manage without iTunes
iTunes is crap
Cannot play ogg and flac
I&#160;just want to attach it and it should popup like a USB disk, drop [...]]]></description>
			<content:encoded><![CDATA[<p>I have an old <a href="http://en.wikipedia.org/wiki/File:Ipod_backlight_transparent.png" target="_blank">iPod G3</a> player that I haven&#8217;t used for several years. The main reason is that it is full of Apple vendor lock-in &quot;features&quot;. The most annoying issues are:</p>
<ul>
<li>Hard to manage without iTunes</li>
<li>iTunes is crap</li>
<li>Cannot play ogg and flac</li>
<li>I&nbsp;just want to attach it and it should popup like a USB disk, drop the files into it, detach and play the songs.</li>
</ul>
<p>I got a hint from a friend that I should try <a href="http://www.rockbox.org" target="_blank">RockBox</a>, so I&nbsp;download it and used the very simple installer on linux and it works perfectly well. All the drawbacks mentioned above are solved and&nbsp; as a bonus the gui is much better.</p>
<p>&nbsp;</p>
<p>Now I&nbsp;can:</p>
<ul>
<li>Play ogg</li>
<li>Play flac</li>
<li>Customize the GUI</li>
<li>Change myriads of settings</li>
<li>Throw away mysterious sync software like iTunes and others.</li>
<li>Attach it as a USB&nbsp;disk, drop my media files into it, detach and play them</li>
</ul>
<p>If you are lucky and owns a <a href="http://www.rockbox.org/wiki/TargetStatus" target="_blank">Rockbox supported</a> media player, update it. You will not regret it.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/19/rockbox-makes-your-media-player-much-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review: AsteriskNow</title>
		<link>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:29:45 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1576</guid>
		<description><![CDATA[
&#160;
I&#160;have read the book Asterisk now by Nir Simionovich,&#160;published in March 2008.&#160;The book was a big disappointment, the reason is that the book do not cover the software used in AsteriskNOW today. The book cover the Asterisk GUI but AsteriskNOW is using FreePBX instead which is totally different. One main reason to use AsteriskNow is [...]]]></description>
			<content:encoded><![CDATA[<p><img width="540" height="666" alt="asterisknow" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/02/asterisknow.jpg" title="asterisknow" class="aligncenter size-full wp-image-1608" /></p>
<p>&nbsp;</p>
<p>I&nbsp;have read the book Asterisk now by Nir Simionovich,&nbsp;published in March 2008.&nbsp;The book was a big disappointment, the reason is that the book do not cover the software used in AsteriskNOW today. The book cover the Asterisk GUI but AsteriskNOW is using FreePBX instead which is totally different. One main reason to use AsteriskNow is to avoid the sometimes cumbersome task to install Linux or a similair operating system, download, compile and configure Asterisk using cryptic text files. So an accurate description of the GUI used is essential for a book like this and unfortunatly the book is to old.  I&nbsp;do not intend to install an old version of AsteriskNOW just for a bookreview so I cannot tell how accurate the book is.  So my recommendation is to wait for an updated version of AsteriskNow book.</p>
<h3>&nbsp;</h3>
<h3>Links</h3>
<ul>
<li>A sample chapter <a href="http://www.packtpub.com/files/AsteriskNOW-Sample-Chapter-Chapter-7-For-Annoyance-Press-1-Voice-Menus-and-IVR.pdf">Chapter-7-For-Annoyance-Press-1-Voice-Menus-and-IVR</a></li>
<li>Link to the book <a href="http://www.packtpub.com/asterisknow/mid/261109epn4y0?utm_source=it-slav.net&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_001634">AsteriskNow</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Merlin and Ninja roadmap</title>
		<link>http://www.it-slav.net/blogs/2010/02/17/merlin-and-ninja-roadmap/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/17/merlin-and-ninja-roadmap/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:24:38 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[op5 Monitor]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1598</guid>
		<description><![CDATA[An email sent to op5-users from op5s CTO, Peter &#214;stlin.
&#8211;cut&#8211;
Hi All,
The op5 devel team has been kind of quiet on the list lately. The
reason for this is that we have been working very hard to complete the
next release of Merlin and Ninja. The result of this will be the
release of op5 Monitor 5.0 scheduled for [...]]]></description>
			<content:encoded><![CDATA[<p>An email sent to op5-users from op5s CTO, Peter &Ouml;stlin.</p>
<p>&#8211;cut&#8211;</p>
<address>Hi All,</address>
<address>The op5 devel team has been kind of quiet on the list lately. The<br />
reason for this is that we have been working very hard to complete the<br />
next release of Merlin and Ninja. The result of this will be the<br />
release of op5 Monitor 5.0 scheduled for public availability April 13.<br />
In this release Merlin and Ninja will be version 1.0 which mean all<br />
our customers and users will benefit from production quality tools.<br />
<span id="more-1598"></span><br />
Compared to the currently released versions, Merlin v0.6.6 and Ninja<br />
v0.3.6, the release include for example:</address>
<ul>
<li>Implementation of the missing Nagios cgi&#8217;s. (showlog, history,trends, notifications etc)</li>
<li>Include Avail/SLA reports in Ninja&nbsp; (Avail reports are an improved version of the Nagios avail reports and SLA is a new report type)</li>
<li>Lots of bugfixes</li>
</ul>
<address>&nbsp;</address>
<address>&nbsp;</address>
<address>The schedule for the release of op5 Monitor 5.0 (as well as Merlin 1.0<br />
and Ninja 1.0) is as follow:</address>
<address>2010-02-26 &#8211; Beta release<br />
2010-03-12 &#8211; Release candidate 1<br />
2010-03-26 &#8211; Stable release is tagged and build<br />
2010-04-13 &#8211; op5 Monitor 5.0 General Availability</address>
<address>&nbsp;</address>
<address>&nbsp;</address>
<address>As always, this is a plan and might change slightly. There might be<br />
need for extra beta/rc builds for example. We will keep you posted<br />
regarding the progress.</address>
<address>Cheers,<br />
Peter &Ouml;stlin<br />
op5 AB</address>
<p>&#8211;cut&#8211;</p>
<h2>Links</h2>
<ul>
<li><a href="http://www.op5.org/community/projects/ninja">Ninja</a>, Nagios Is Now Just Awesome</li>
<li><a href="http://www.op5.org/community/projects/merlin">Merlin</a>, Module for Endless Redundacy and Loadbalancing In Nagios</li>
<li><a href="http://www.op5.com">op5</a>, a company with enterprise network- and systems management based on OpenSource.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/17/merlin-and-ninja-roadmap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share your internet connection</title>
		<link>http://www.it-slav.net/blogs/2010/02/12/share-your-internet-connection/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/12/share-your-internet-connection/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 18:32:06 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1592</guid>
		<description><![CDATA[&#160;
Background
I&#160;was with my geekfriends at a ski resort and I&#160;managed to get an Internet connection using a cellphone. Of course I&#160;wanted to share it with my friends. As geeks we brought a switch and a couple of ethernetcables.
&#160;
Solution
Using this script on a Ubuntu 9.10 I&#160;managed to share my connection:

sudo ifconfig eth0 10.8.16.1
sudo sysctl -w net.ipv4.ip_forward=1
sudo [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Background</h2>
<p>I&nbsp;was with my geekfriends at a ski resort and I&nbsp;managed to get an Internet connection using a cellphone. Of course I&nbsp;wanted to share it with my friends. As geeks we brought a switch and a couple of ethernetcables.</p>
<p>&nbsp;</p>
<h2>Solution</h2>
<p>Using this script on a Ubuntu 9.10 I&nbsp;managed to share my connection:</p>
<pre>
sudo ifconfig eth0 10.8.16.1
sudo sysctl -w net.ipv4.ip_forward=1
sudo sysctl -w net.ipv4.conf.default.forwarding=1
sudo sysctl -w net.ipv4.conf.all.forwarding=1
sudo iptables -P FORWARD ACCEPT
sudo iptables --table nat -A POSTROUTING -o ppp0 -j MASQUERADE</pre>
<p>Conmnect everymachine with the switch and the clients just needed to use a 10.0.0.0/8 network adress and add 10.8.16.1 as default gateway and it works!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/12/share-your-internet-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring BizTalk with Nagios or op5 Monitor</title>
		<link>http://www.it-slav.net/blogs/2010/02/05/monitoring-biztalk-with-nagios-or-op5-monitor/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/05/monitoring-biztalk-with-nagios-or-op5-monitor/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 19:39:55 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[Biztalk]]></category>
		<category><![CDATA[biztalk monirtoring]]></category>
		<category><![CDATA[biztalk nagios]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1581</guid>
		<description><![CDATA[&#160;
Background
At op5 we often run into BizTalk at customer sites as a business critical application. We have done an investigation and come up with a plugin&#160; to monitor BizTalk.
To fully understand this document BizTalk knowledge is necessary.

&#160;
Solution
op5 has developed a plugin that can monitor the following at a BizTalk server:

Recieve locations &#8211; Verify that they [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>Background</h2>
<p>At op5 we often run into <a href="http://en.wikipedia.org/wiki/Biztalk" target="_blank">BizTalk</a> at customer sites as a business critical application. We have done an investigation and come up with a plugin&nbsp; to monitor BizTalk.</p>
<p>To fully understand this document BizTalk knowledge is necessary.</p>
<p><span id="more-1581"></span></p>
<p>&nbsp;</p>
<h2>Solution</h2>
<p>op5 has developed a plugin that can monitor the following at a BizTalk server:</p>
<ul>
<li>Recieve locations &#8211; Verify that they are enabled.</li>
<li>Send Ports &#8211; Verify that they are in Started state</li>
<li>Group Overview &#8211; Catch messages in the message queue that are in state Suspended. The different type of messages are:
<ul>
<li>Dehydrated</li>
<li>Suspended</li>
<li>Queue</li>
</ul>
</li>
</ul>
<p>The plugin license is GPLv3 so it is free for any one to use and enhance.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>Links</h2>
<ul>
<li><a href="http://git.op5.org/git/?p=nagios/op5plugins.git;a=blob;f=check_biztalk.pl">check_biztalk</a> the plugin that monitors BizTalk</li>
<li><a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> Monitor solution based on Nagios</li>
<li><a href="http://www.nagios.org">Nagios</a> free enterprise monitor software</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/05/monitoring-biztalk-with-nagios-or-op5-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using OpenStreetMap to point out your location on a webpage</title>
		<link>http://www.it-slav.net/blogs/2010/01/25/using-openstreetmap-to-point-out-your-location-on-a-webpage/</link>
		<comments>http://www.it-slav.net/blogs/2010/01/25/using-openstreetmap-to-point-out-your-location-on-a-webpage/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:45:35 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1546</guid>
		<description><![CDATA[After fiddeling with my Bluetooth GPS reciever I wanted my friends and my wife to keep track of me. I&#160;wanted to use OpenStreetMap because I&#160;really like the idea of free and open maps instead of the unintelligible Google Maps licenses. The result can be seen here where I&#160;show the op5 office location outside Stockholm, Sweden.
&#160;
&#160;
Pre [...]]]></description>
			<content:encoded><![CDATA[<p>After <a target="_blank" href="http://www.it-slav.net/blogs/2009/05/26/gpsdrive-a-fancy-gps-navigation-for-linux/">fiddeling</a> with my Bluetooth GPS reciever I wanted my friends and my wife to keep track of me. I&nbsp;wanted to use <a target="_blank" href="http://www.openstreetmaps.org">OpenStreetMap</a> because I&nbsp;really like the idea of free and open maps instead of the unintelligible Google Maps licenses. The result can be seen <a target="_blank" href="http://www.it-slav.net/~peter/gps/">here</a> where I&nbsp;show the <a target="_blank" href="http://www.op5.com">op5</a> office location outside Stockholm, Sweden.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>Pre req</h3>
<ul>
<li>a GPS reciever</li>
<li>gpsd</li>
<li>gpsd-client</li>
</ul>
<p>In my setup I&nbsp;have the GPS reciever attached to my laptop which I travel around with. On my webserver I&nbsp;have gpsd-client and a script that generates the webpage. I use a VPN&nbsp;connection to allow my webserver to communicate with the laptop gpsdaemon. On the roads I&nbsp;use 3G attached cellphone and when I&nbsp;have an internet connection via cable or wifi I use that.</p>
<h3><span id="more-1546"></span></h3>
<h3>&nbsp;</h3>
<h3>The script</h3>
<pre>
#!/bin/sh
GPSPIPE=/usr/bin/gpspipe
OUTFILE=/home/peter/public_html/my_position.html
#GPSDIP=10.8.0.10
GPSDIP=192.168.0.153
while true
do
        GPSDATA=`$GPSPIPE -w -n 10 $GPSDIP |grep O=`
        if [ &quot;$?&quot; ]
        then
                LON=`echo $GPSDATA| awk '{ print $5 }'`
                LAT=`echo $GPSDATA| awk '{ print $4 }'`
        	echo &quot;LON=$LON LAT=$LAT&quot;
		cat &gt; $OUTFILE &lt;&lt;EOF
&lt;html&gt;
&lt;head&gt;
        &lt;title&gt;Last know It-slav location&lt;/title&gt;
        &lt;!-- bring in the OpenLayers javascript library
                 (here we bring it from the remote site, but you could
                 easily serve up this javascript yourself) --&gt;
        &lt;script src=&quot;http://www.openlayers.org/api/OpenLayers.js&quot;&gt;&lt;/script&gt;
        &lt;!-- bring in the OpenStreetMap OpenLayers layers.
                 Using this hosted file will make sure we are kept up
                 to date with any necessary changes --&gt;
        &lt;script src=&quot;http://www.openstreetmap.org/openlayers/OpenStreetMap.js&quot;&gt;&lt;/script&gt;

        &lt;script type=&quot;text/javascript&quot;&gt;
                // Start position for the map (hardcoded here for simplicity,
                // but maybe you want to get from URL params)
EOF
echo &quot;var lat=$LAT&quot; &gt;&gt;$OUTFILE
echo &quot;var lon=$LON&quot; &gt;&gt;$OUTFILE
cat &gt;&gt; $OUTFILE &lt;&lt;EOF
                var zoom=13

                var map; //complex object of type OpenLayers.Map

                function init() {
                        map = new OpenLayers.Map (&quot;map&quot;, {
                                controls:[
                                        new OpenLayers.Control.Navigation(),
                                        new OpenLayers.Control.PanZoomBar(),
                                        new OpenLayers.Control.LayerSwitcher(),
                                        new OpenLayers.Control.Attribution()],
                                maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
                                maxResolution: 156543.0399,
                                numZoomLevels: 19,
                                units: 'm',
                                projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),
                                displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;)
                        } );

                        // Define the map layer
                        // Note that we use a predefined layer that will be
                        // kept up to date with URL changes
                        // Here we define just one layer, but providing a choice
                        // of several layers is also quite simple
                        // Other defined layers are OpenLayers.Layer.OSM.Mapnik, OpenLayers.Layer.OSM.Maplint and OpenLayers.Layer.OSM.CycleMap
                        layerMapnik = new OpenLayers.Layer.OSM.Mapnik(&quot;Mapnik&quot;);
                        map.addLayer(layerMapnik);
                        layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender(&quot;Osmarender&quot;);
                        map.addLayer(layerTilesAtHome);
                        layerCycleMap = new OpenLayers.Layer.OSM.CycleMap(&quot;CycleMap&quot;);
                        map.addLayer(layerCycleMap);
                        layerMarkers = new OpenLayers.Layer.Markers(&quot;Markers&quot;);
                        map.addLayer(layerMarkers);

                        // Add the Layer with GPX Track
                        //var lgpx = new OpenLayers.Layer.GML(&quot;MB Bruderholz&quot;, &quot;mb_bruderholz.GPX&quot;, {
                        //    format: OpenLayers.Format.GPX,
                        //    style: {strokeColor: &quot;green&quot;, strokeWidth: 5, strokeOpacity: 0.5},
                        //    projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;)
                        //});
                        //map.addLayer(lgpx);
                        var lonLat = new OpenLayers.LonLat(lon, lat).transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;), map.getProjectionObject());
                        map.setCenter (lonLat, zoom);

                        var size = new OpenLayers.Size(21,25);
                        var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
                        var icon = new OpenLayers.Icon('http://www.openstreetmap.org/openlayers/img/marker.png',size,offset);
                        layerMarkers.addMarker(new OpenLayers.Marker(lonLat,icon));
                }
        &lt;/script&gt;

&lt;/head&gt;
&lt;!-- body.onload is called once the page is loaded (call the 'init' function) --&gt;
&lt;body onload=&quot;init();&quot;&gt;
        &lt;!-- define a DIV into which the map will appear. Make it take up the whole window --&gt;
        &lt;div style=&quot;width:90%; height:90%&quot; id=&quot;map&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
EOF
	else
		echo &quot;No GPS data&quot;
	fi
	sleep 10
done
</pre>
<h3>&nbsp;</h3>
<h3>Gpsdaemon</h3>
<p>To enable the gpsdameon to allow another host to attach to it start it with -g i.e.</p>
<pre>
sudo gpsd -N -n -D 3 -G /dev/rfcomm1</pre>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>The result</h3>
<p>The result can be found <a href="http://www.it-slav.net/~peter/gps/" target="_blank">here</a> or a screenshot below:</p>
<p><img width="636" height="476" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/01/op5position2.png" alt="op5position" title="op5position" class="aligncenter size-full wp-image-1557" /></p>
<p>&nbsp;</p>
<h3>Links</h3>
<ul>
<li><a href="http://gpsd.berlios.de/" target="_blank">gpsd</a></li>
<li>how to <a href="http://www.linux-gps.org/index.php5?title=Holux_M-1000" target="_blank">attach</a> the bluetooth GPS reciever</li>
<li><a href="http://www.openstreetmaps.org" target="_blank">OpenStreetMaps</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/01/25/using-openstreetmap-to-point-out-your-location-on-a-webpage/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hint: USB PATA/SATA interface</title>
		<link>http://www.it-slav.net/blogs/2010/01/18/hint-usb-patasata-interfac/</link>
		<comments>http://www.it-slav.net/blogs/2010/01/18/hint-usb-patasata-interfac/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 19:28:42 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1541</guid>
		<description><![CDATA[Every computer geek ends up with a bunch of disks with unknown status in the drawer. It can be rather cumbersome to put them in a machine and check the status especially if some are SATA and others are PATA, it gets even more complicated if they are mixed 3.5&#34; and 2.5&#34;.
In situations like this [...]]]></description>
			<content:encoded><![CDATA[<p>Every computer geek ends up with a bunch of disks with unknown status in the drawer. It can be rather cumbersome to put them in a machine and check the status especially if some are SATA and others are PATA, it gets even more complicated if they are mixed 3.5&quot; and 2.5&quot;.</p>
<p>In situations like this I recommend a USB SATA/PATA interface i.e. <a href="http://www.kjell.com/content/templates/shop_main_details.aspx?item=68225&amp;path=97000000,119000000,149500000,154000000" target="_blank">Plexgear</a> at <a href="http://www.kjell.com/" target="_blank">Kjell&amp;Company</a>, the adapter looks like it is OEM:ed so there probably several with different brands.</p>
<p>Features:</p>
<ul>
<li>USB-SATA</li>
<li>USB-PATA 2.5&quot;</li>
<li>USB-PATA 3.5&quot;</li>
<li>Power Supply for normal devices and SATA devices</li>
</ul>
<p>The only thing I miss is that it does not contain a SCSI interface aswell <img src='http://www.it-slav.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I have used it to backup files on a LVM disk, transfer files from old disk to a new when upgrading, reinitialize a disk that refused to install Windows 7, attach a DVD-Rom to a blade server and so on.</p>
<p>In my opinion every geek and sysadmin should have one.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/01/18/hint-usb-patasata-interfac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PSP update makes it finally useful</title>
		<link>http://www.it-slav.net/blogs/2009/12/24/psp-update-makes-it-finally-useful/</link>
		<comments>http://www.it-slav.net/blogs/2009/12/24/psp-update-makes-it-finally-useful/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 11:00:24 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1534</guid>
		<description><![CDATA[I have owned a PSP for several years. It is a fabulous machine with real impressive hardware and possibilities. The big problem is that Sony tries to look in the owners so the potential of the hardware is not there. There has been way around that by installing cracked firmware. The main obstacle has been [...]]]></description>
			<content:encoded><![CDATA[<p>I have owned a PSP for several years. It is a fabulous machine with real impressive hardware and possibilities. The big problem is that Sony tries to look in the owners so the potential of the hardware is not there. There has been way around that by installing cracked firmware. The main obstacle has been the boundaries around video. It has not been possible to look at full resolution videos without running third part software which requires a cracked firmware, i.e. using&nbsp;<a target="_blank" href="http://jonny.leffe.dnsalias.com/">http://jonny.leffe.dnsalias.com/</a></p>
<p>Now I have upgraded my PSP to firmware 5.50 GEN-D and finally I can drop movies into the /VIDEO folder and look at them in full resolution. So finally I can look at mythtv recordings on my way to the work or my kids can look at movies in the back of the car when we are travelling. Now it time to buy a second PSP.</p>
<p>&nbsp;</p>
<p>Converting movies into a PSP accepted format is rather painful. I have not find any good solution running on linux. I have fiddled several hours with <a target="_blank" href="http://handbrake.fr/">handbrake</a>, <a target="_blank" href="http://fixounet.free.fr/avidemux/">avidemux</a>, commandline driven <a target="_blank" href="http://ffmpeg.org/">ffmepg</a> and <a target="_blank" href="https://help.ubuntu.com/community/PSP#PSPVC">PSPVC</a>. The only program that makes the converting somewhat painless, just time consuming, is <a target="_blank" href="http://pspvc.nswardh.com/">PSPVC</a> on windows. The main problem on linux seems to be that ffmpeg is broken and need to be recompiled.</p>
<p>&nbsp;</p>
<p>My recommendation to Sony is to open up their excellent solutions. Right of my mind I know four failures Sony have made because of their vendor look in strategy:</p>
<ul>
<li>Betamax video format, technically much better then VHS but closed. Betamax died and crappy VHS conquered the world.</li>
<li>MiniDisc, an excellent technology which Sony refused to open up until it was to late. If they would have opened it would replaced floppys and killed Compact Cassets much earlier. Probably portable MP3 players would be postponed a year or two.</li>
<li>PSP, if Sony would have opened it with SDKs and open APIs Apples POD products would not exist or be a margin product.</li>
<li>PS3, with a open hardware platform so a real Linux solution could run, not the hybrid they have now, Sony would own the HTPC market. With the power of the PS3 and possibility to install for example mythtv, XBMC and other media solutions they would sell alot more PS3 and when the PS3 is there, several games would be sold aswell.&nbsp;</li>
</ul>
<p>So Sony if you want to get richer, open up!</p>
<p>&nbsp;</p>
<h2>Merry Christmas and a Happy New Year</h2>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/12/24/psp-update-makes-it-finally-useful/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Book review &#8220;FreePBX 2.5, Powerful Telephony Solutions&#8221;</title>
		<link>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/</link>
		<comments>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 11:42:16 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[FreePBX]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1494</guid>
		<description><![CDATA[&#160;
&#160;
I have finished reading the great book &#34;FreePBX 2.5 Powerful Telephony Solutions&#34;, by Alex Robar and it is 277 pages.
&#160;
The intended target audience for this book are system administrators who want to get started with Asterisk and FreePBX.&#160; It is perfect for administrators who want to reduce costs by replacing a proprietary PBX with a [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<a target="_blank" href="http://www.packtpub.com/freepbx-2-5-powerful-telephony-solutions/mid/230909otf457?utm_source=It-Slav.net&amp;utm_medium=affiliate&amp;utm_content=other&amp;utm_campaign=mdb_000778"><img width="500" height="617" class="aligncenter size-full wp-image-1500" title="freepbx" alt="freepbx" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/11/freepbx.jpg" /></a></p>
<p>&nbsp;</p>
<p>I have finished reading the great book &quot;FreePBX 2.5 Powerful Telephony Solutions&quot;, by Alex Robar and it is 277 pages.</p>
<p>&nbsp;<span id="more-1494"></span></p>
<p>The intended target audience for this book are system administrators who want to get started with Asterisk and FreePBX.&nbsp; It is perfect for administrators who want to reduce costs by replacing a proprietary PBX with a PBX that runs on open source packages. The pre required knowledge is basic knowledge of Linux and telephony, though neither is strictly required.</p>
<p>&nbsp;</p>
<p>I find the targeted audience and the pre required knowledge correct, however I&nbsp;think the Linux knowledge is an absolute demand or at least have someone to ask. A basic knowledge of Telephony is also more or less required.</p>
<p>&nbsp;</p>
<p>The book cover installation on CentOS&nbsp;and Ubuntu Server, configuration, adding handset, trunk setup, call routing, voicemail, digital receptionist, music-on-hold, call recording, maintenance, backups and much more.</p>
<p>&nbsp;</p>
<p>I find the book very valuable and I really like the concept of FreePBX. When starting with Asterisk the myriads of parameters are overwhelming. FreePBX makes the approach to Asterisk easier and makes the startup much faster then go to the Asterisk config via textfiles. FreePBX comes with many modules that should be enough for most demands and if needed it is still possible to use configuration using config files.</p>
<p>&nbsp;</p>
<p>The book describes the most important modules in FreePBX in a structured and pedagogic way with many screenshoots and figures. I really likes the examples in the end of the book with trunk configuration to some big SIP providers. Even if none of them is valid in Sweden it gives you an idea what parameters to start with when configure trunks.</p>
<p>&nbsp;</p>
<p>When it comes to trouble shooting I&nbsp;think the book should have contained a chapter about that. In many cases the way of trouble shoot is to use the Asterisk CLI, read logs and in some cases use a network analyser like WireShark. I think the book should have contained an introduction to trouble shooting and the different tools available.</p>
<p>Some of the script examples contain some typos but with basic scripting knowledge it is easy to fix.</p>
<p>&nbsp;</p>
<p>I reccomend this book for anyone interested in FreePBX, FreePBX admins and Asterisk newbies. This book makes the start with FreePBX much faster compared to&nbsp; trying to collect the information from the web and other sources. The FreePBX website is a great as a reference, however this book makes it easy and fast to get started with FreePBX and Asterisk.</p>
<p>&nbsp;</p>
<h2>Links:</h2>
<ul>
<li>More info about&nbsp; the book <a href="http://www.packtpub.com/freepbx-2-5-powerful-telephony-solutions/mid/230909otf457?utm_source=It-Slav.net&amp;utm_medium=affiliate&amp;utm_content=other&amp;utm_campaign=mdb_000778" target="_blank">&quot;FreePBX 2.5 Powerful Telephony Solutions&quot;</a></li>
<li>Example <a href="http://www.packtpub.com/files/4725-freepbx-sample-chapter-8-recording-calls.pdf" target="_blank">chapter 8 Recording calls</a></li>
<li>FreePBX <a href="http://www.freepbx.org" target="_blank">homepage</a></li>
<li>Asterisk <a href="http://www.asterisk.org" target="_blank">homepage</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Keep track of unused switch ports with Nagios or op5 Monitor</title>
		<link>http://www.it-slav.net/blogs/2009/11/24/keep-track-of-unused-switch-ports-with-nagios-or-op5-monitor/</link>
		<comments>http://www.it-slav.net/blogs/2009/11/24/keep-track-of-unused-switch-ports-with-nagios-or-op5-monitor/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:12:02 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[unused switch ports]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1485</guid>
		<description><![CDATA[Background
I&#160;was reading the Swedish computer magazine, Tech World. There was an article about an appliance solution that could give a report about unused switch ports. The box PortIQ from Infoblox costs approximatly 10.000 Euro.
op5 has developed this feature at a customer site and is included with op5 Monitor, op5 has published the code as opensource.
This [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>I&nbsp;was reading the Swedish computer magazine, <a target="_blank" href="http://techworld.idg.se/">Tech World</a>. There was an article about an appliance solution that could give a report about unused switch ports. The box <a target="_blank" href="http://www.infoblox.com/products/portiq-appliances.cfm">PortIQ</a> from Infoblox costs approximatly 10.000 Euro.</p>
<p><a target="_blank" href="http://www.op5.com">op5</a> has developed this feature at a customer site and is included with <a target="_blank" href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a>, op5 has published the code as <a target="_blank" href="http://git.op5.org/git/">opensource</a>.</p>
<p>This guide will describe howto get it running in op5 Monitor. op5 Monitor is vanilla Nagios with some addons so it should be no problem to follow this guide in a Nagios environment</p>
<p>&nbsp;</p>
<p><span id="more-1485"></span>&nbsp;</p>
<h2>Installation</h2>
<p>1. Update your op5 Monitor or <a href="http://git.op5.org/git/?p=nagios/op5plugins.git;a=tree;f=check_portstatus;h=120bf07e50d72c1a1beb0a8963cd45a5341e7727;hb=5759746d3bcd457d344c21d9befa5611515a9acb" target="_blank">download</a> the plugin and report script.</p>
<p>&nbsp;</p>
<p>2. Create metadata for check_portstatus as $USER1$/check_portstatus -H  $HOSTADDRESS$</p>
<p>in checkcommands.cfg:</p>
<p><code># command 'check_portstatus'<br />
define command{<br />
&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_portstatus<br />
&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $USER1$/check_portstatus -H $HOSTADDRESS$<br />
&nbsp;&nbsp;&nbsp; }</code><br />
&nbsp;</p>
<p>3. mkdir /var/spool/check_portstatus</p>
<p>&nbsp;</p>
<p>4. chown monitor:apache /var/spool/check_portstatus</p>
<p>&nbsp;</p>
<p>5. cp /opt/monitor/op5/portstatus/portstatus.php  /var/www/html/portstatus.php</p>
<p>&nbsp;</p>
<p>6. Define your service i.e. services.cfg:</p>
<p><code># service 'Portstatus'<br />
define service{<br />
&nbsp;&nbsp;&nbsp; use&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default-service<br />
&nbsp;&nbsp;&nbsp; host_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gw<br />
&nbsp;&nbsp;&nbsp; service_description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Portstatus<br />
&nbsp;&nbsp;&nbsp; check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_portstatus<br />
&nbsp;&nbsp;&nbsp; }</code><br />
&nbsp;</p>
<h2>&nbsp;</h2>
<h2>The result</h2>
<p>The screenshot below shows a Cisco switch with alot of unused ports.</p>
<p><img width="692" height="713" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/11/portstatus1.png" alt="portstatus" title="portstatus" class="aligncenter size-full wp-image-1488" /></p>
<p>&nbsp;</p>
<h2>&nbsp;</h2>
<h2>Conclusions</h2>
<p>This article shows how easy it is to modify Nagios and other opensource tools to give you what you want. Do not hesitate to contact <a href="javascript:location.href='mailto:'+String.fromCharCode(112,101,116,101,114,64,105,116,45,115,108,97,118,46,110,101,116)+'?'">me</a> or <a target="_blank" href="http://www.op5.com">op5</a> to help you enhance you Nagios or op5 installation.</p>
<h2>&nbsp;</h2>
<h2>Links</h2>
<ul>
<li><a target="_blank" href="http://www.op5.com">op5</a></li>
<li><a target="_blank" href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a></li>
<li><a target="_blank" href="http://www.nagios.org">Nagios</a></li>
<li><a target="_blank" href="http://www.infoblox.com/products/portiq-appliances.cfm">PortIQ</a> appliance box from Infoblox</li>
<li><a target="_blank" href="http://techworld.idg.se/">Tech world</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/11/24/keep-track-of-unused-switch-ports-with-nagios-or-op5-monitor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
