{"id":805,"date":"2012-09-11T17:40:56","date_gmt":"2012-09-11T09:40:56","guid":{"rendered":"http:\/\/cargon.net\/?p=805"},"modified":"2012-09-11T17:40:56","modified_gmt":"2012-09-11T09:40:56","slug":"dd-wrt-saned","status":"publish","type":"post","link":"https:\/\/cargon.net\/?p=805","title":{"rendered":"[DD-WRT] saned"},"content":{"rendered":"<p>mount USB to \/opt<\/p>\n<p>Install ipkg-opt http:\/\/www.dd-wrt.com\/wiki\/index.php\/Optware<\/p>\n<p># wget http:\/\/www.3iii.dk\/linux\/optware\/optware-install-ddwrt.sh<\/p>\n<p># chmod 755 optware-install-ddwrt.sh<\/p>\n<p># .\/optware-install-ddwrt.sh<\/p>\n<p>ipkg-opt works now!!<\/p>\n<p>Install library, xinetd and saned<\/p>\n<p># ipkg-opt install libtiff libjpeg libieee1284\u00a0xinetd sane-backends<\/p>\n<p># vi \/opt\/etc\/xinetd.d\/saned<\/p>\n<pre>service saned \r\n { \r\n type = UNLISTED \r\n port = 6566 \r\n socket_type = stream \r\n server = \/opt\/sbin\/saned \r\n protocol = tcp \r\n user = root \r\n group = root \r\n wait = no \r\n disable = no \r\n }<\/pre>\n<p>fix xinetd startup issue<\/p>\n<p># vi \/opt\/etc\/init.d\/S10xinetd<\/p>\n<p>unset library path before run:<\/p>\n<pre>unset LD_LIBRARY_PATH<\/pre>\n<p>fix saned startup issue<\/p>\n<p># mkdir \/opt\/mnt<\/p>\n<p># cp -a \/etc \/opt\/mnt<\/p>\n<p># vi \/opt\/etc\/init.d\/S01sane-backends<\/p>\n<p>mount rw etc before run:<\/p>\n<pre>mount \/opt\/mnt\/etc \/etc<\/pre>\n<p>fix libusb issue by replace libusb to \/opt\/lib<\/p>\n<p>http:\/\/cargon.net\/linux\/ddwrt\/libusb-0.1.so.4.4.4<\/p>\n<p>http:\/\/www.dd-wrt.com\/phpBB2\/viewtopic.php?t=37104&#038;sid=a8f3e7b641abdf47b28d918ceb1f125a<\/p>\n<p>http:\/\/www.right.com.cn\/forum\/thread-45255-1-1.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mount USB to \/opt Install ipkg-opt http: &hellip; <a href=\"https:\/\/cargon.net\/?p=805\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/posts\/805"}],"collection":[{"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/cargon.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=805"}],"version-history":[{"count":2,"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":807,"href":"https:\/\/cargon.net\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions\/807"}],"wp:attachment":[{"href":"https:\/\/cargon.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cargon.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cargon.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}