(HowTo) Alix / PC Engine Printer Sharing Support (v24SP1)

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 basierende Hardware
Author Message
Shade.sh
DD-WRT Novice


Joined: 15 Jan 2009
Posts: 9
Location: Munich

PostPosted: Thu Jan 15, 2009 17:57    Post subject: (HowTo) Alix / PC Engine Printer Sharing Support (v24SP1) Reply with quote
Hallo Zusammen,

ich bin seit kurzem stolzer Besitzer eines Alix 2D3 Boards und hatte vorher einen Asus Wl-500GP Router. Ich habe in der X86 Version den Printer Sharing Support vermisst, über USB. Leider hat im Webinterface der "USB Printer Support" keine Wirkung gezeigt, also hab ich mich rangemacht das selber zu erledigen.

Für alle die den gewohnten Printer Support auf ihrem X86 Board (i386) wie auf dem Asus WL-500GP haben möchten.

1. Die 3. Partition auf dem Router ReadWrite mounten:

Code:
mount -o rw,remount /dev/discs/disc0/part3 /usr/local


2. Wir brauchen dieses Packet:
Code:
cd /usr/local/ ; wget http://www.shade.sh/alix_printer.tar.bz2


3. Den Inhalt der runtergeladenen Datei entpacken:
Code:
bunzip2 alix_printer.tar.bz2 ; tar -xvf alix_printer.tar


4. Danach sollte der Verzeichnisinhalt von /usr/local/ so aussehen:

Code:
drwxr-xr-x    5 root     root         1024 Jan 15 17:41 .
drwxr-xr-x    3 root     root         1024 Jan 15 17:40 rc_startup
drwxr-xr-x    8 root     root           86 Jul 26 09:41 ..
drwx------    2 root     root        12288 Jan  1  1970 lost+found
drwxr-xr-x    2 root     root         1024 Jan  1  1970 nvram

./rc_startup:
-rwxr-xr-x    1 root     root          193 Jan 15 18:27 printer.startup
drwxr-xr-x    5 root     root         1024 Jan 15 17:41 ..
-rwxr-xr-x    1 root     root           84 Jan 15 17:40 rc_init.sh
drwxr-xr-x    3 root     root         1024 Jan 15 17:40 .
drwxr-xr-x    2 root     root         1024 Jan 15 17:37 printer

./rc_startup/printer:
drwxr-xr-x    3 root     root         1024 Jan 15 17:40 ..
drwxr-xr-x    2 root     root         1024 Jan 15 17:37 .
-rwxr-xr-x    1 root     root        57693 Jan 15 17:19 p910nd

./lost+found:
drwxr-xr-x    5 root     root         1024 Jan 15 17:41 ..
drwx------    2 root     root        12288 Jan  1  1970 .

./nvram:
drwxr-xr-x    5 root     root         1024 Jan 15 17:41 ..
-rw-r--r--    1 root     root        24704 Jan  1  1970 nvram.db
-rw-r--r--    1 root     root          232 Jan  1  1970 offsets.db
drwxr-xr-x    2 root     root         1024 Jan  1  1970 .

5. Es muss nun die nvram Variable angepasst werden:
Code:
nvram set rc_startup="/usr/local/rc_startup/rc_init.sh"

6. Das ganze muss noch bestätigt werden:
Code:
nvram commit

7. Den Router rebooten und wieder über den Router / Gateway drucken!

Config Hinweise:

Der Printserver bindet sich an 192.168.1.1 falls andere IP's gewünscht sind, einfach die Datei
Code:

/usr/local/rc_startup/printer.startup

editieren und die IP anpassen:

Code:

/usr/local/rc_startup/printer/p910nd -f /dev/usb/usblp0 -i 192.168.1.1 &

Hinweis: Der Drucker sollte noch vor dem ersten Punkt in diesem HowTo an den USB Port angeschlossen werden. Ausserdem muss USB Support im Webinterface unter Services eingeschaltet werden.

Es können weitere Startupdienste so konfiguriert werden. Das Startupsript sucht nach Scripte unterhalb von /usr/local/rc_startup/ mit der Endung *.startup und startet diese automatisch.

Grüße + HaveFun!

Shade

PS: Danke DD-WRT Team! Eure Software ist echt genial Very Happy
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu Jan 15, 2009 21:09    Post subject: Reply with quote
nice

waer cool wenn du das ncoh als wiki artikel verfassen koenntest

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Shade.sh
DD-WRT Novice


Joined: 15 Jan 2009
Posts: 9
Location: Munich

PostPosted: Fri Jan 16, 2009 7:09    Post subject: Reply with quote
Alles klar, packe ich euch noch ins Wiki Wink
_________________
It's all about Unix!
----------------------------------
-> Alix 2D3 + GN-WI01HT
-> Asus WL500GP + Serial Console
-> DD-WRT V23SP3 / V24SP1
Shade.sh
DD-WRT Novice


Joined: 15 Jan 2009
Posts: 9
Location: Munich

PostPosted: Fri Jan 16, 2009 13:42    Post subject: Wiki eintrag Reply with quote
Ich bin nicht so der Wiki'aner daher verzeiht mir das Layout:

http://www.dd-wrt.com/wiki/index.php/Drucker_Sharing_X86_Based

Grüße

Shade

_________________
It's all about Unix!
----------------------------------
-> Alix 2D3 + GN-WI01HT
-> Asus WL500GP + Serial Console
-> DD-WRT V23SP3 / V24SP1
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 basierende Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum