Logo

www.cloudinto.com


DD-WRT shared printer (print server) and complete tutorial - birch logs ...

Using the latest version of USB-dd-v24-9856_VINT_mini_usb. .


http://www。.right。.com。.cn/forum/viewthread。.php?tid=17207&extra=page%3D1。.


Just read the forums on the printer's paper. Did so I can not be enabled after the printer. So I refer to the official Wiki http://www. . Dd-wrt. .com / wiki / index. .php / Printer_Sharing, re-configure it again, everything is normal. .


Found that there is no coincidence that in the altar on the support USB device versions of dd tutorial. The Wiki tutorial make above Mbjarland translation and join their own experiences.


(Dd without USB support only need to copy the appropriate driver file and modify the startup script on the page, you can refer to http://www.. Right.. Com. .cn / Forum / viewthread.. Php? Tid = 12148) . .


New v24 stable version (Note: not a RC version) on a Web service interface in the control panel contains a printer share and USB support, I just make my printer runs successfully, so I thought I should share my experience might save you some time.


Has been tested successfully:. .


1. HP LaserJet 3020 + Stable + Asus DD-WRT v24 WL-500g Premium (Mbjarland).


2. . HP DeskJet 3325 + DD-WRT v24 (07/03/08) mini - build 9856M TNG Eko (latest version) + Belkin 7231-4p (I). .


Specific methods are as follows.


1. . JFFS2 support in the management interface open. .


2. In the service interface to open SSH.


3. . In the service interface to open. .


"Core USB Support", 。.


"USB 1. .1 Support (UHCI)",. .


"USB 1。.1 Support (OHCI)", 。.


"USB 2. .0 Support" (7231-4p do not need to open this),. .


"USB Printer Support",。.


(If you're like me, add the EXT2 with USB HUB, U disk, please open an extra "USB Storage Support" and "ext2 / ext3 File System Support"..


screen。.width*0。.7) {this。.resized=true; this。.width=screen。.width*0。.7; this。.style。.cursor='hand'; this。.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this。. resized) (return true;) else (window. . Open (this.. Src);) "alt =" Click here to open new window &10; CTRL + Mouse wheel to zoom in / out "src =" http://cospo. . Kilu. .de/blog/wp-content/uploads/2008/07/USB. .JPG" width=716 onload="if(this。.width>screen。.width*0。.7) {this。.resized=true; this。.width=screen。.width*0。.7; this。. alt = 'Click here to open new window \ nCTRL + Mouse wheel to zoom in / out';) "border = 0 zmxid =" zoomXimageId6 "resized =" true ">)。.


Note: Although the printer supports USB 2. .0, but Asus WL-500g in select USB 2. .0 support also must select USB support in .1 1., otherwise the router does not recognize the printer.


4. . Connect the printer to the router. .


5. Reboot the router.


6. . Telnel on the router, confirm that the printer is recognized:. .


Enter a command.


[Copy to clipboard] [-] CODE:. .


ls -la /dev/usb/。.


Be:. .


QUOTE:。.


drwxr-xr-x 1 root root 0 Jan 1 1970. .


drwxr-xr-x 1 root root 0 Jan 1 1970 。.


crw-rw ---- 1 root root 180, 0 Jan 1 1970 lp0. .


If none of the files under/dev/usb, you may need for your printer to install other drivers.


7. . Installation p910nd. .


Steps: Telnet on the router, do one of the first statement.


[Copy to clipboard] [-] CODE:. .


ipkg update。.


, Then. .


[Copy to clipboard] [ - ] CODE:。.


ipkg install p910nd. .


8. Confirm that the contents of the file (you can use the vi command, use the file name of "vi", you need to modify the file, point I, save and exit by pressing ESC and enter: wq carriage returns):.


/ Jffs/etc/default/p910nd contains the print server startup configuration file. .


/Jffs/etc/init. .d/p910nd contains a boot print server used by the startup scripts.


Dd in the v24 version, the startup script (/ jffs / etc / init. .d/p910nd) The third line of the default as follows:. .


[Copy to clipboard] [ - ] CODE:。.


DEFAULT = / etc/default/p910nd. .


The default configuration for Mbjarland and my printer will not be able to take effect.


We need him to change to. .


[Copy to clipboard] [ - ] CODE:。.


DEFAULT = / jffs/etc/default/p910nd. .


There are two commands you can run to check your print server is operational:.


Order 1. .


[Copy to clipboard] [ - ] CODE:。.


netstat-an. .


Returns the following information:.


QUOTE:. .


Active Internet connections (servers and established)。.


Proto Recv-Q Send-Q Local Address Foreign Address State. .


tcp 0 0 0。.0。.0。.0:9100 0。.0。.0。.0:* LISTEN。.


Order 2. .


[Copy to clipboard] [ - ] CODE:。.


ps | grep p9100d. .


Returns the following information:.


QUOTE:. .


561 root 680 S p9100d -b -f /dev/usb/lp0 0。.


If you return the information in the netstat port and you see the 91XX information returned in the ps see p9100d is running, your print server should have been run successfully. .


If your server does not run successfully.


(1). . Try to manually run the code:. .


[Copy to clipboard] [ - ] CODE:。.


/ Jffs / etc / init. .d/p910nd start. .


And then once again confirmed the above two commands return information, manual start is still unable to run because you need the above article 8 .d/p910nd/jffs/etc/init. According to the aforementioned content.


(2). . May you need to remove / jffs/etc/default/p910nd the-b parameter. Modify the file delete the-b parameter and try again. .


Now, you already can print successfully.


9. . To. .


[Copy to clipboard] [ - ] CODE:。.


/ Jffs / etc / init. .d/p910nd start. .


This line is added to the manage-> diagnostic input box and click Save startup command (English: Administration-> edit box Commands and click "Save Startup").


This makes every post you do not need to manually run this command to open the print server. .


XP configuration (other workstations Ubuntu Linux, Mac OS X please reference http://www. .dd-wrt. .com/wiki/index. g#Workstation_setup) 。.


First connect the printer directly to your computer and install a good driver. Then plug the printer back to the router. .


In Control Panel-Printers and faxes, find your installed printer. Right-properties-port.


Click Add Port - Standard TCP / IP Port and then click on the new port, the next step, enter the IP address of the router, wait a moment after the next point. .


Select custom settings, verify that the Protocol-is RAW and RAW port 9100 is determined-next-finish.


Sure you have chosen the new port and then you just determined. .


About wireless:.


If you need a wireless network to share your printer. .


In the Web interface into management-diagnosis (English: Administration-Commands) in a entry box type.


[Copy to clipboard] [-] CODE:. .


/usr/sbin/iptables -I INPUT 1 -p tcp --dport 9100:9102 -j logaccept。.


Then click Save Firewall command (in English: Save Firewall). .


Your router will now reboot, and then you can use your wireless network printer.


Note: If your wireless network can directly access to the Internet, so security is not recommended based on this, but in the company or school to do so within the private subnet useful. .


Want to help.


Cospo 7 21. .


&& 。.


Mbjarland 07:33, 27 June 2008 (CEST). .


Ming, see ASUS's can print sharing functions, the belkin, that cannot be used to study the very bad mood for two hours, did your print driver.


Reference linked to this post kasimir Moderator tutorial u disk, change the next, become linked to the printer, this tutorial is based on mini version of dd-wrt. .


Routing client settings:.


First of all, make sure your dd's SSH management opened, and to open the jffs2 function, make sure your flash enough free space. .


Open SSH menu has two offices:.


1) Services -> Secure Shell -> SSHd open -> Password Login opened, you can choose the default port 22, if that risk, you can choose another, but Winscp in to set up the corresponding port. .


2) menu--> Remote Administration-->--> SSH Access Management.


I brush the rc4 mini, there are about 700KB of space, enough to drive the equipment. .


Open the menu JFFS2--> Administration > JFFS2--Support--> JFFS2 selected Enable/Clear first use after you selected selected Enable, Disable (like automatically Disable).


Then install a software called Winscp to directly access ddwrt the jffs system. .


Download address: http://veronica. .9966. .org/software/winscp370setup. .exe.


Figure:. .


screen。.width*0。.7) {this。.resized=true; this。.width=screen。.width*0。.7; this。.style。.cursor='hand'; this。.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this。. resized) (return true;) else (window. . Open (this.. Src);) "alt =" "src =" http://veronica. .9966. .org / otherfile / winscp. . PNG "onload =" if (this.. Width> screen.. Width * 0. .7) (This. . Resized = true; this. .width=screen。.width*0。.7; this。.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>。.


Settings shown below, where username is root, IP routing, depending on their own to change the password is the password from the set, the connection after several warnings and errors Group, etc., not to him. .


screen。.width*0。.7) {this。.resized=true; this。.width=screen。.width*0。.7; this。.style。.cursor='hand'; this。.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this。. resized) (return true;) else (window. . Open (this.. Src);) "alt =" "src =" http://veronica. .9966. .org / otherfile / winscpsetting. . PNG "onload =" if (this.. Width> screen.. Width * 0. .7) (This. . Resized = true; this. .width=screen。.width*0。.7; this。.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>。.


Next, the left is the file on your computer, the right is the folder on your DD, if the jffs2 installed correctly, should have to / jffs directory to write something, well, the annex to the compression of my things inside the solution package pressure, written into the / jffs. .


(Only two directories, etc and lib).


Next, the start up in the dd command which, by adding the following statement. .


Note that the red font based in part on the router models. My only supports USB1. .1, so only the drivers loaded usb-ohci.


In general, USB1. .1 Chip, do not have to load the ehci driver, but the specific needs of uhci and ohci loaded which, on a different machine to see it instead. .


Printer driver is if you want to print. .o loaded u disk storage device that you want to join the appropriate file system driver.


I only use the printer, so other drivers are not loaded. .


insmod /jffs/lib/modules/2。.4。.30/usbcore。.o。.


insmod / jffs/lib/modules/2. .4. .30/usb-ohci. . O. .


insmod /jffs/lib/modules/2。.4。.30/scsi_mod。.o。.


insmod / jffs/lib/modules/2. .4. .30/usb-storage. . O. .


insmod /jffs/lib/modules/2。.4。.30/sd_mod。.o。.


# Insmod / jffs/lib/modules/2. .4. .30/ext2. . O. .


#insmod /jffs/lib/modules/2。.4。.30/ext3。.o。.


# Insmod / jffs/lib/modules/2. .4. .30/fat. . O. .


#insmod /jffs/lib/modules/2。.4。.30/vfat。.o。.


insmod / jffs/lib/modules/2. .4. .30/printer. . O. .


/jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0。.


Last telnet into the route, the implementation of these two statements. .


ipkg update。.


ipkg install p910nd. .


After you are done, restart the routing.


In the telnet inside, enter the dmesg, the following should be able to see the words:. .


hub。.c: new USB device 00:04。.0-1, assigned address 5。.


printer. . C: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x4348. .


pid 0x5584。.


Represents the system has identified your USB printer. .


Use the shared printer computer settings:.


To XP Professional, for example, go to Control Panel, printers and fax machines, select Add Printer, select "Local printer attached to this computer." .


Removed automatic detection, select next, create a new port, choose Standard TCP/IP Port, next, next, first row, enter the IP address of the route.


Next, select Custom, click Settings, and ensure that the protocol is RAW, the port is 9100, the next step to complete. .


Then select your USB printer models, complete the installation.


At this point, USB printers can be used. .


This situation should be printer driver problem, my workaround is to first put the printer into the usb port on your computer, and then run the official Installer driver, the driver installation is ready to ensure that you can print a single machine, and then set the printer up to routing, the printer properties to change the port. Method is to right-click a printer, select Properties, select the ports tab bar.


[Attach] 10400 [/ attach]. .


Click Add port.


[Attach] 10401 [/ attach]. .


Select Standard TCP/IP Port, next, next, first row, enter the IP address of the route.


Next, select Custom, click Settings, and ensure that the protocol is RAW, the port is 9100, the next step to complete. .


The printer port is then converted to the new increase in determines the port.


These operations together in the HP PSC 1400 series machines successfully tested, to be honest, so far I have not run into the printer does not take, including one machine, including the parallel port printer switch usb port. .