{"id":4,"date":"2012-10-25T19:09:08","date_gmt":"2012-10-25T19:09:08","guid":{"rendered":"http:\/\/blog.knofafo.de\/?p=4"},"modified":"2012-11-12T22:34:06","modified_gmt":"2012-11-12T22:34:06","slug":"tp-link-wdr3600-router-print-server","status":"publish","type":"post","link":"https:\/\/blog.knofafo.de\/?p=4","title":{"rendered":"TP-Link WDR3600: Router! Print-Server?"},"content":{"rendered":"<p>I recently bought the TP-Link TL-WDR3600, a router I thought would be very fine as it has two USB ports to attach printers, scanners, external disks, whatever. My officemate told me of routers like this so I got curious.<!--more--><br \/>\nI installed it first lika any simple router which worked quite well of course, but for some reason I did this within Windows 7. There I installed some special tool which seemed to be intended for helping getting a USB printer to work. Again this was quite easy and soon after, the first page came out of the printer.<\/p>\n<p>A bit later I rebooted into Linux (Ubuntu 12.04 at that moment). I just tried to attach the printer as a network printer thinking this was the way to go. But it wasn&#8217;t. On the net I found no howto or something similar, the TP-Link webpage also was quiet about that and their support hasn&#8217;t answered me yet (it&#8217;s six days ago, that I wrote them).<\/p>\n<p>What I found on their webpage was some GPL section where you can download the operating system of the router or at the least all the GPL parts of it. I chose the one for my router, unpacked it, and looked through the folder. See what I found: usbip. Promising, isn&#8217;t it?<\/p>\n<p>Googling for &#8216;usbip ubuntu&#8217; is much more fun than googling for &#8216;linux wdr3600&#8217;.<\/p>\n<p>Let&#8217;s directly go to the result I started with:<br \/>\n<a title=\"http:\/\/www.howtoforge.com\/how-to-set-up-a-usb-over-ip-server-and-client-with-ubuntu-10.04\" href=\"http:\/\/www.howtoforge.com\/how-to-set-up-a-usb-over-ip-server-and-client-with-ubuntu-10.04\" target=\"_blank\">http:\/\/www.howtoforge.com\/how-to-set-up-a-usb-over-ip-server-and-client-with-ubuntu-10.04<\/a><br \/>\nThe usbip project&#8217;s homepage is<br \/>\n<a title=\"http:\/\/usbip.sourceforge.net\/\" href=\"http:\/\/usbip.sourceforge.net\/\" target=\"_blank\">http:\/\/usbip.sourceforge.net\/<\/a><\/p>\n<p>Actually page 2 is the interesting one with instructions for the client installation as the server was already setup. The steps I chose from the tutorial were the following:<br \/>\nInstall usbip (rather simple):<br \/>\n<code>sudo apt-get install usbip<\/code><br \/>\nI went on with loading the Virtual Host Controller Interface<br \/>\n<code>sudo modprobe vhci-hcd<\/code><br \/>\nAnd checking the module loading:<br \/>\n<code>lsmod | grep vhci<\/code><br \/>\nyields:<br \/>\n<code>vhci_hcd 22542 0<br \/>\nusbip_core 15904 1 vhci_hcd<\/code><\/p>\n<p>My router&#8217;s ip is 192.168.1.1, so the important step should be:<br \/>\n<code>sudo usbip -l 192.168.1.1<\/code><br \/>\nwhich results in:<br \/>\n<code>- 192.168.1.1 failed<\/code><\/p>\n<p>WTF. I have to draw breath and rethink. Maybe I have one more look at the sources&#8230;<\/p>\n<p>Ok, started with this one more look. Still a lot to learn about Linux and its available tools. THis is one of the main conclusions of this moment. But ok, I got to know busybox, this is fine, ok <code>ifconfig<\/code> is outdated, <code>ip addr<\/code> is the way to go&#8230;  I mean, I am something like a linux sysadmin for the members of my chair. Fortunately they never come with serious problems and I&#8217;m not involved in problems relevant for security.<\/p>\n<p>But enough self-doubt. What did I find? Someone, who is able to read, clearly has an advantage. There is one more usb-related app. It&#8217;s called kcodes_usbip. So there exist several ones. Fine. Who is kcodes? <a href=\"http:\/\/www.kcodes.com\" title=\"kcodes\" target=\"_blank\">This<\/a> should be the corresponding webpage.<br \/>\nAs soon as the update of my Linux distribution is finished I will go on with this topic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently bought the TP-Link TL-WDR3600, a router I thought would be very fine as it has two USB ports to attach printers, scanners, external disks, whatever. My officemate told me of routers like this so I got curious.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[3,4],"tags":[6,7,38],"_links":{"self":[{"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":10,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.knofafo.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}