<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A Slick USB Over IP Solution That I use Every Day</title>
	<atom:link href="http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/</link>
	<description>a technology blog with a focus on virtualization and cloud computing</description>
	<lastBuildDate>Tue, 07 Sep 2010 16:40:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: exitdevice</title>
		<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/comment-page-1/#comment-1981</link>
		<dc:creator>exitdevice</dc:creator>
		<pubDate>Mon, 19 Oct 2009 08:42:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtualinsanity.com/?p=261#comment-1981</guid>
		<description>i really need this type info who solved my problem because i am really much more used the USB device and i never live that because it&#039;s very helpful to me. please find the solution. i am waiting your next info.</description>
		<content:encoded><![CDATA[<p>i really need this type info who solved my problem because i am really much more used the USB device and i never live that because it&#39;s very helpful to me. please find the solution. i am waiting your next info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Sweemer</title>
		<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/comment-page-1/#comment-1980</link>
		<dc:creator>Aaron Sweemer</dc:creator>
		<pubDate>Sun, 21 Dec 2008 23:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtualinsanity.com/?p=261#comment-1980</guid>
		<description>I&#039;ve been so busy the past few weeks, I haven&#039;t had much of a chance to update the blog.  Sorry for the delay.  The script is below.  I&#039;m not a bash expert, so I&#039;m sure there&#039;s a better way to do it, but this seems to work well for me.&lt;br&gt;&lt;br&gt;Here are the quick and dirty instructions&lt;br&gt;&lt;br&gt;1)  [optional] Add your username to the /etc/sudoers file with the &lt;strong&gt;NOPASSWD:  ALL&lt;/strong&gt;  option set for your username&lt;br&gt;2)  Make sure your usb server is running an SSH server and that you can connect to it as root.  [optional] It&#039;s also helpful if you have your SSH keys properly configured so the SSH server doesn&#039;t prompt you for a password.&lt;br&gt;3) Copy the text below and save it in your ~/bin directory as connect_usb (or whatever filename you&#039;d like).  Don&#039;t forget to make the file executable (chmod 755 ~/bin/connect_usb)&lt;br&gt;4) Change the IP address of USBSRV to the IP address of your server.&lt;br&gt;5) Once you&#039;ve configured your IncentivesPro software properly, run sudo ~/bin/connect_usb.&lt;br&gt;&lt;br&gt;Let me know if you have any questions.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Aaron&lt;br&gt;&lt;br&gt;&lt;br&gt;#!/bin/bash&lt;br&gt;&lt;br&gt;USBSRV=&quot;1.2.3.4&quot;&lt;br&gt;CLIENT=`which usbclnt`&lt;br&gt;&lt;br&gt;success () { echo &quot;Success!&quot;; sleep 2; }&lt;br&gt;fail () { echo &quot;Failed!&quot;; exit; }&lt;br&gt;&lt;br&gt;echo -n &quot;Restarting USB Server on $USBSRV ...&quot;&lt;br&gt;if `ssh $USBSRV &#039;/etc/init.d/rc.usbsrvd restart &#124; grep &quot;usbsrvd&quot; &amp;&gt;/dev/null&#039;`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Restarting USB Server on localhost ... &quot;&lt;br&gt;if `/etc/init.d/rc.usbsrvd restart &#124; grep &quot;usbsrvd&quot; &amp;&gt;/dev/null`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Connecting to USB Server on $USBSRV ... &quot;&lt;br&gt;if `$CLIENT -a USBSRV:32032 &#124; grep &quot;Operation is not completed!&quot; &amp;&gt;/dev/null`&lt;br&gt;        then fail&lt;br&gt;        else success&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Looking for USB Devices on $USBSRV ...&quot;&lt;br&gt;if `$CLIENT -l &#124; grep &quot;[device is available for connection]&quot; &amp;&gt;/dev/null`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo &quot;Found the following USB Devices on $USBSRV ...&quot;&lt;br&gt;$CLIENT -l &#124; awk &#039;$0 == &quot;&quot; {sw=0} $7 == &quot;[connected]&quot; {sw=1} sw == 1 {print $0}&#039;&lt;br&gt;&lt;br&gt;a=`$CLIENT -l &#124; awk &#039;$7 == &quot;[connected]&quot; {print substr($0,1,1)}&#039;`&lt;br&gt;for b in `$CLIENT -l &#124; awk &#039;$1 ~ /--&gt;/ {print substr($0,8,1)}&#039;`&lt;br&gt;do&lt;br&gt;        if `usbclnt -c $a-$b &#124; grep &quot;Operation is not completed&quot; &amp;&gt;/dev/null`&lt;br&gt;                then echo &quot;Could not connect to device $b on $USBSRV&quot;&lt;br&gt;                else echo &quot;Connected to device $b on $USBSRV&quot;&lt;br&gt;        fi&lt;br&gt;done</description>
		<content:encoded><![CDATA[<p>I&#39;ve been so busy the past few weeks, I haven&#39;t had much of a chance to update the blog.  Sorry for the delay.  The script is below.  I&#39;m not a bash expert, so I&#39;m sure there&#39;s a better way to do it, but this seems to work well for me.</p>
<p>Here are the quick and dirty instructions</p>
<p>1)  [optional] Add your username to the /etc/sudoers file with the <strong>NOPASSWD:  ALL</strong>  option set for your username<br />2)  Make sure your usb server is running an SSH server and that you can connect to it as root.  [optional] It&#39;s also helpful if you have your SSH keys properly configured so the SSH server doesn&#39;t prompt you for a password.<br />3) Copy the text below and save it in your ~/bin directory as connect_usb (or whatever filename you&#39;d like).  Don&#39;t forget to make the file executable (chmod 755 ~/bin/connect_usb)<br />4) Change the IP address of USBSRV to the IP address of your server.<br />5) Once you&#39;ve configured your IncentivesPro software properly, run sudo ~/bin/connect_usb.</p>
<p>Let me know if you have any questions.</p>
<p>Thanks,<br />Aaron</p>
<p>#!/bin/bash</p>
<p>USBSRV=&#8221;1.2.3.4&#8243;<br />CLIENT=`which usbclnt`</p>
<p>success () { echo &#8220;Success!&#8221;; sleep 2; }<br />fail () { echo &#8220;Failed!&#8221;; exit; }</p>
<p>echo -n &#8220;Restarting USB Server on $USBSRV &#8230;&#8221;<br />if `ssh $USBSRV &#39;/etc/init.d/rc.usbsrvd restart | grep &#8220;usbsrvd&#8221; &&gt;/dev/null&#39;`<br />        then success<br />        else fail<br />fi</p>
<p>echo -n &#8220;Restarting USB Server on localhost &#8230; &#8220;<br />if `/etc/init.d/rc.usbsrvd restart | grep &#8220;usbsrvd&#8221; &&gt;/dev/null`<br />        then success<br />        else fail<br />fi</p>
<p>echo -n &#8220;Connecting to USB Server on $USBSRV &#8230; &#8220;<br />if `$CLIENT -a USBSRV:32032 | grep &#8220;Operation is not completed!&#8221; &&gt;/dev/null`<br />        then fail<br />        else success<br />fi</p>
<p>echo -n &#8220;Looking for USB Devices on $USBSRV &#8230;&#8221;<br />if `$CLIENT -l | grep &#8220;[device is available for connection]&#8221; &&gt;/dev/null`<br />        then success<br />        else fail<br />fi</p>
<p>echo &#8220;Found the following USB Devices on $USBSRV &#8230;&#8221;<br />$CLIENT -l | awk &#39;$0 == &#8220;&#8221; {sw=0} $7 == &#8220;[connected]&#8221; {sw=1} sw == 1 {print $0}&#39;</p>
<p>a=`$CLIENT -l | awk &#39;$7 == &#8220;[connected]&#8221; {print substr($0,1,1)}&#39;`<br />for b in `$CLIENT -l | awk &#39;$1 ~ /&#8211;&gt;/ {print substr($0,8,1)}&#39;`<br />do<br />        if `usbclnt -c $a-$b | grep &#8220;Operation is not completed&#8221; &&gt;/dev/null`<br />                then echo &#8220;Could not connect to device $b on $USBSRV&#8221;<br />                else echo &#8220;Connected to device $b on $USBSRV&#8221;<br />        fi<br />done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Sweemer</title>
		<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/comment-page-1/#comment-1856</link>
		<dc:creator>Aaron Sweemer</dc:creator>
		<pubDate>Sun, 21 Dec 2008 15:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtualinsanity.com/?p=261#comment-1856</guid>
		<description>I&#039;ve been so busy the past few weeks, I haven&#039;t had much of a chance to update the blog.  Sorry for the delay.  The script is below.  I&#039;m not a bash expert, so I&#039;m sure there&#039;s a better way to do it, but this seems to work well for me.&lt;br&gt;&lt;br&gt;Here are the quick and dirty instructions&lt;br&gt;&lt;br&gt;1)  [optional] Add your username to the /etc/sudoers file with the &lt;strong&gt;NOPASSWD:  ALL&lt;/strong&gt;  option set for your username&lt;br&gt;2)  Make sure your usb server is running an SSH server and that you can connect to it as root.  [optional] It&#039;s also helpful if you have your SSH keys properly configured so the SSH server doesn&#039;t prompt you for a password.&lt;br&gt;3) Copy the text below and save it in your ~/bin directory as connect_usb (or whatever filename you&#039;d like).  Don&#039;t forget to make the file executable (chmod 755 ~/bin/connect_usb)&lt;br&gt;4) Once you&#039;ve configured your IncentivesPro software properly, run sudo ~/bin/connect_usb.&lt;br&gt;&lt;br&gt;Let me know if you have any questions.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Aaron&lt;br&gt;&lt;br&gt;&lt;br&gt;#!/bin/bash&lt;br&gt;&lt;br&gt;USBSRV=&quot;1.2.3.4&quot;&lt;br&gt;CLIENT=`which usbclnt`&lt;br&gt;&lt;br&gt;success () { echo &quot;Success!&quot;; sleep 2; }&lt;br&gt;fail () { echo &quot;Failed!&quot;; exit; }&lt;br&gt;&lt;br&gt;echo -n &quot;Restarting USB Server on $USBSRV ...&quot;&lt;br&gt;if `ssh $USBSRV &#039;/etc/init.d/rc.usbsrvd restart &#124; grep &quot;usbsrvd&quot; &amp;&gt;/dev/null&#039;`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Restarting USB Server on localhost ... &quot;&lt;br&gt;if `/etc/init.d/rc.usbsrvd restart &#124; grep &quot;usbsrvd&quot; &amp;&gt;/dev/null`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Connecting to USB Server on $USBSRV ... &quot;&lt;br&gt;if `$CLIENT -a USBSRV:32032 &#124; grep &quot;Operation is not completed!&quot; &amp;&gt;/dev/null`&lt;br&gt;        then fail&lt;br&gt;        else success&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo -n &quot;Looking for USB Devices on $USBSRV ...&quot;&lt;br&gt;if `$CLIENT -l &#124; grep &quot;[device is available for connection]&quot; &amp;&gt;/dev/null`&lt;br&gt;        then success&lt;br&gt;        else fail&lt;br&gt;fi&lt;br&gt;&lt;br&gt;echo &quot;Found the following USB Devices on $USBSRV ...&quot;&lt;br&gt;$CLIENT -l &#124; awk &#039;$0 == &quot;&quot; {sw=0} $7 == &quot;[connected]&quot; {sw=1} sw == 1 {print $0}&#039;&lt;br&gt;&lt;br&gt;a=`$CLIENT -l &#124; awk &#039;$7 == &quot;[connected]&quot; {print substr($0,1,1)}&#039;`&lt;br&gt;for b in `$CLIENT -l &#124; awk &#039;$1 ~ /--&gt;/ {print substr($0,8,1)}&#039;`&lt;br&gt;do&lt;br&gt;        if `usbclnt -c $a-$b &#124; grep &quot;Operation is not completed&quot; &amp;&gt;/dev/null`&lt;br&gt;                then echo &quot;Could not connect to device $b on $USBSRV&quot;&lt;br&gt;                else echo &quot;Connected to device $b on $USBSRV&quot;&lt;br&gt;        fi&lt;br&gt;done</description>
		<content:encoded><![CDATA[<p>I&#39;ve been so busy the past few weeks, I haven&#39;t had much of a chance to update the blog.  Sorry for the delay.  The script is below.  I&#39;m not a bash expert, so I&#39;m sure there&#39;s a better way to do it, but this seems to work well for me.</p>
<p>Here are the quick and dirty instructions</p>
<p>1)  [optional] Add your username to the /etc/sudoers file with the <strong>NOPASSWD:  ALL</strong>  option set for your username<br />2)  Make sure your usb server is running an SSH server and that you can connect to it as root.  [optional] It&#39;s also helpful if you have your SSH keys properly configured so the SSH server doesn&#39;t prompt you for a password.<br />3) Copy the text below and save it in your ~/bin directory as connect_usb (or whatever filename you&#39;d like).  Don&#39;t forget to make the file executable (chmod 755 ~/bin/connect_usb)<br />4) Once you&#39;ve configured your IncentivesPro software properly, run sudo ~/bin/connect_usb.</p>
<p>Let me know if you have any questions.</p>
<p>Thanks,<br />Aaron</p>
<p>#!/bin/bash</p>
<p>USBSRV=&#8221;1.2.3.4&#8243;<br />CLIENT=`which usbclnt`</p>
<p>success () { echo &#8220;Success!&#8221;; sleep 2; }<br />fail () { echo &#8220;Failed!&#8221;; exit; }</p>
<p>echo -n &#8220;Restarting USB Server on $USBSRV &#8230;&#8221;<br />if `ssh $USBSRV &#39;/etc/init.d/rc.usbsrvd restart | grep &#8220;usbsrvd&#8221; &&gt;/dev/null&#39;`<br />        then success<br />        else fail<br />fi</p>
<p>echo -n &#8220;Restarting USB Server on localhost &#8230; &#8220;<br />if `/etc/init.d/rc.usbsrvd restart | grep &#8220;usbsrvd&#8221; &&gt;/dev/null`<br />        then success<br />        else fail<br />fi</p>
<p>echo -n &#8220;Connecting to USB Server on $USBSRV &#8230; &#8220;<br />if `$CLIENT -a USBSRV:32032 | grep &#8220;Operation is not completed!&#8221; &&gt;/dev/null`<br />        then fail<br />        else success<br />fi</p>
<p>echo -n &#8220;Looking for USB Devices on $USBSRV &#8230;&#8221;<br />if `$CLIENT -l | grep &#8220;[device is available for connection]&#8221; &&gt;/dev/null`<br />        then success<br />        else fail<br />fi</p>
<p>echo &#8220;Found the following USB Devices on $USBSRV &#8230;&#8221;<br />$CLIENT -l | awk &#39;$0 == &#8220;&#8221; {sw=0} $7 == &#8220;[connected]&#8221; {sw=1} sw == 1 {print $0}&#39;</p>
<p>a=`$CLIENT -l | awk &#39;$7 == &#8220;[connected]&#8221; {print substr($0,1,1)}&#39;`<br />for b in `$CLIENT -l | awk &#39;$1 ~ /&#8211;&gt;/ {print substr($0,8,1)}&#39;`<br />do<br />        if `usbclnt -c $a-$b | grep &#8220;Operation is not completed&#8221; &&gt;/dev/null`<br />                then echo &#8220;Could not connect to device $b on $USBSRV&#8221;<br />                else echo &#8220;Connected to device $b on $USBSRV&#8221;<br />        fi<br />done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Sweemer</title>
		<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/comment-page-1/#comment-112</link>
		<dc:creator>Aaron Sweemer</dc:creator>
		<pubDate>Thu, 20 Nov 2008 13:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtualinsanity.com/?p=261#comment-112</guid>
		<description>Sure thing.  I&#039;ll scrub the script for security reasons (e.g. remove usernames/passwords/ip address/etc.) and post the script later this evening.</description>
		<content:encoded><![CDATA[<p>Sure thing.  I&#39;ll scrub the script for security reasons (e.g. remove usernames/passwords/ip address/etc.) and post the script later this evening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bubbix</title>
		<link>http://www.virtualinsanity.com/index.php/2008/11/20/a-slick-usb-over-ip-solution-that-i-use-every-day/comment-page-1/#comment-111</link>
		<dc:creator>Bubbix</dc:creator>
		<pubDate>Thu, 20 Nov 2008 13:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtualinsanity.com/?p=261#comment-111</guid>
		<description>Please post the bash script.. This is exactly what I was looking for. Thanks for posting.</description>
		<content:encoded><![CDATA[<p>Please post the bash script.. This is exactly what I was looking for. Thanks for posting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
