<?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>Rolling shells &#187; USB</title>
	<atom:link href="http://shell.burgas.org/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://shell.burgas.org</link>
	<description>All the things i find useful for linux and network.</description>
	<lastBuildDate>Thu, 09 Sep 2010 06:18:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>linux disk statistics with dstat and disk device names</title>
		<link>http://shell.burgas.org/2009/06/linux-disk-statistics-with-dstat-and-disk-device-names/</link>
		<comments>http://shell.burgas.org/2009/06/linux-disk-statistics-with-dstat-and-disk-device-names/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 16:22:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://shell.burgas.org/?p=97</guid>
		<description><![CDATA[Something interesting i spotted on Karansbir&#8217;s blog: Running dstat normally gives you something like this : # dstat --nocolor ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system-- usr sys idl wai hiq siq&#124; read writ&#124; recv send&#124; in out &#124; int csw 3 0 97 0 0 0&#124; 820k 456k&#124; 0 0 &#124; 800B 866B&#124;1054 255 And you [...]]]></description>
			<content:encoded><![CDATA[<p>Something interesting i spotted on Karansbir&#8217;s blog:</p>
<p>Running dstat normally gives you something like this :</p>
<blockquote>
<pre># dstat --nocolor
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
  3   0  97   0   0   0| 820k  456k|   0     0 | 800B  866B|1054   255</pre>
</blockquote>
<p>And you can split the disk metrics up based on devices using something like this :</p>
<blockquote>
<pre># dstat -D sda,sdb,total --nocolor
----total-cpu-usage---- --dsk/sda-- --dsk/sdb-- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read  writ: read  writ: read  writ| recv  send|  in   out | int   csw
  1   1  97   0   0   0| 176k   77k:  30k  162k: 411k  478k|   0     0 |3608B 4005B|1447  1458
 33   2  63   0   1   2|   0     0 :   0   216k:   0   432k|2470k 1611k|   0     0 |2915  6967
 31   2  65   0   1   1|   0     0 :   0     0 :   0     0 |2210k 1338k|   0     0 |2866  6051</pre>
</blockquote>
<p>But you can also get deeper level device names / nodes to measure &#8211; which is required in many cases if you have drivers for storage creating nodes further down the tree than /dev. Eg. I have a setup where there are four mysql instances running, each with its own dedicated storage :</p>
<blockquote>
<pre># mount | grep srv
/dev/cciss/c0d1 on /var/lib/mysql/node1 type ext3 (rw)
/dev/cciss/c0d2 on /var/lib/mysql/node2 type ext3 (rw)
/dev/cciss/c0d3 on /var/lib/mysql/node3 type ext3 (rw)
/dev/cciss/c0d4 on /var/lib/mysql/node4 type ext3 (rw)
/dev/cciss/c0d5 on /srv/wal type ext3 (rw)</pre>
</blockquote>
<p>so in this case, to get dstat reporting working you need to mention just the component level, like this :</p>
<blockquote>
<pre># dstat -D cciss/c0d1,cciss/c0d2,cciss/c0d3 --nocolor
----total-cpu-usage---- dsk/cciss/c dsk/cciss/c dsk/cciss/c -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read  writ: read  writ: read  writ| recv  send|  in   out | int   csw
  3   0  97   0   0   0| 209k   89k: 201k   86k: 204k   85k|   0     0 | 799B  865B|1055   256
 90   1   8   1   0   0|3196k   68k: 764k    0 : 816k   24k|1067k 1650k|   0     0 |1999   609
 95   1   3   1   0   0|2548k    0 :   0  4084k:2448k 5700k| 660k  791k|   0     0 |1611   571
 96   1   2   1   0   0|2628k    0 : 808k    0 :1620k    0 | 352k  798k|   0     0 |1835  1605</pre>
</blockquote>
<p>And you get the details, for each block device.</p>
]]></content:encoded>
			<wfw:commentRss>http://shell.burgas.org/2009/06/linux-disk-statistics-with-dstat-and-disk-device-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making HP 1018 USB printer work on Debian linux</title>
		<link>http://shell.burgas.org/2009/01/making-a-hp-1018-usb-printer-work-on-debian-linux/</link>
		<comments>http://shell.burgas.org/2009/01/making-a-hp-1018-usb-printer-work-on-debian-linux/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 14:32:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Printer]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://shell.burgas.org/?p=40</guid>
		<description><![CDATA[First we will install build-essential, foomatic-filters, cupsys with the following commands:         $ su # apt-get install build-essential # apt-get install foomatic-filters # apt-get install cupsys     Then we have to get the necessary firmware and software.  $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz $ tar zxf foo2zjs.tar.gz $ cd foo2zjs $ make $ ./getweb 1018 $ [...]]]></description>
			<content:encoded><![CDATA[<p>First we will install build-essential, foomatic-filters, cupsys with the following commands:<br />
       </p>
<p>$ su<br />
# apt-get install build-essential<br />
# apt-get install foomatic-filters<br />
# apt-get install cupsys<br />
   </p>
<p>Then we have to get the necessary firmware and software. <br />
$ wget -O foo2zjs.tar.gz <a href="http://foo2zjs.rkkda.com/foo2zjs.tar.gz" target="_blank"><span style="text-decoration: underline;">http://foo2zjs.rkkda.com/foo2zjs.tar.gz</span></a><br />
$ tar zxf foo2zjs.tar.gz<br />
$ cd foo2zjs<br />
$ make<br />
$ ./getweb 1018<br />
$ su<br />
# make install install-hotplug cups</p>
<p> </p>
<p>Than we open it with Firefox web browser</p>
<p>$ firefox <a href="http://localhost:631/" target="_blank"><span style="text-decoration: underline;">http://localhost:631</span></a></p>
<p>Ако пуснем Линукса и принтера е пуснат чрез USB,  можем да го накараме да си свали автоматично firmware като извършим една стъпка:</p>
<p>Now if we start linux with the usb printer plugged in, we can make it automatically download and apply it new firmware. This is done via:</p>
<p># make install-hotplug</p>
<p>Reset the printer.</p>
<p>The printer will load every time with the init during the printer device scan.</p>
<p>Credits for this one to masteryt from linux-bg</p>
]]></content:encoded>
			<wfw:commentRss>http://shell.burgas.org/2009/01/making-a-hp-1018-usb-printer-work-on-debian-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
