Difference between revisions of "HowTo add a PrintServer to the LSPro"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Step-by-step description for adding the printserver to the LSPro)
 
m (Similar to above but using stock firmware 1.15)
 
(19 intermediate revisions by 8 users not shown)
Line 4: Line 4:
 
In fact, one of the differences between the LSPro and the LSLive is, that the LSLive has the mentioned PrintServer. So with these instructions you can add this functionality to your LSPro.
 
In fact, one of the differences between the LSPro and the LSLive is, that the LSLive has the mentioned PrintServer. So with these instructions you can add this functionality to your LSPro.
  
There are mainly two ways have a PrintServer on your Linux Box:
+
There are mainly two ways to have a PrintServer on your Linux Box:
1) By using the LPRng toolset and spooling the raw content from Windows-Machines to the printer (this is the way the other boxes are using)
+
 
2) By using an intelligent printing subsystem like CUPS on your box
+
# By using the LPRng toolset and spooling the raw content from Windows-Machines to the printer (this is the way the other boxes are using)
 +
# By using an intelligent printing subsystem like CUPS on your box
  
 
== Installing and Using LPRng ==
 
== Installing and Using LPRng ==
The following procedures have been tested with the "jytmod5-fixed firmware" but should also work with the stock firmware.
+
{{Postit|jtymod5-fixed recommended |The point here is, that we update the web-interface, as it has been done in the jtymod-version. Therefore it is recommended to have the jtymod5-fixed firmware installed (otherwise the web-interface behaves strange) }}
NOTE: The point here is, that we update the web-interface, as it has been done in the jytmod-version.  
+
The following procedures have been tested with the "jtymod5-fixed firmware" but should also work with the stock firmware.
      Therefore it is recommended to have the jytmod5-fixed firmware installed (otherwise test & report, please)
+
  
The first thing we need to do is, to install a kernel, that has USP-Printing support compiled in:
 
Therefore you need to download a kernel, that has this compile in:
 
You should download the uimage.usb-print.zip file from the following directory (needs to be changed after reorganization):
 
[http://downloads.linkstationwiki.net/Uploads/OldUploads/LS_Pro_temporary/Kernels/uimage.usb-print.zip uimage.usb-print.zip]
 
  
Now you need to put the kernel into the box, by using the Updater, BUT make sure you JUST update the kernel by the following:
+
The first thing we need to do is, to install a kernel, that has USB-Printing support compiled in:
1) Extract the uimage.usb-print kernel to the directory, where the jytmo5 firmware is located (assumind you still have that extracted).
+
2) Modify the linkstation_version.txt file that it reads:
+
  
  "FILE_KERNEL = uimage.usb-print" insted of "FILE_KERNEL = uImage.buffalo"
 
  
3) Start LSUpdater, enter there the Debug-mode (right-click on the task-bar Icon)
 
4) Deselct BOOT, INITRD, ROOTFS, so that ONLY "Update Kernel" is left on the left hand side.
 
5) Update the LS-Pro with this new kernel.
 
  
After a successful reboot we need to modify some things, before installing the package:
 
6) make device node for usblp, by
 
  "mknod /dev/usb/lp0 c 180 0";
 
  "chmod a+w /dev/usb/lp0";
 
  NOTE: make sure it is /dev/usb/lp0, not something else like /dev/usblp0
 
  
7) make the following new directories:
 
  "/mnt/disk1/spool/win"
 
  "/mnt/disk1/spool/tmp"
 
  "/mnt/disk1/spool/samba"
 
  "chmod 777" all of them (including the spool directory [the parent]) and let root own them (chown root:root /mnt/disk1/spool -R)
 
  
8) make /dev/null availabll for all
+
'''''Here you have two ways. Regardless which one you choose, skip the other and move to the main-procedure.'''''
  "chmod 777 /dev/null"
+
  
9) make sure you have in /dev/usb the lp0 node and 'chmod a+w' to it (important, otherwise you can't print)
+
====Download the kernel and put it in the right LSUpdater-Path====
10)Download the LPRng package for LSPro:
+
  Download the package, that includes the LPRng & web-interface:
+
  [http://downloads.linkstationwiki.net/Uploads/OldUploads/LS_Pro_temporary/Tarballs/lprng-withweb_2.01.tgz lprng-withweb_2.01.tgz]
+
   
+
  put the tgz file to "/"
+
  
11)untar the file
+
'''1)''' You should download the uImage.buffalo.print.zip file from the following directory:
  "tar -xzf lprng-withweb_2.01.tgz"
+
[http://downloads.nas-central.org/LSPro_ARM9/Kernel/Kernels/uImage.buffalo.print.zip uImage.buffalo.print.zip]
 +
'''2)''' Now you need to put the kernel into the box, by using the Updater, BUT make sure you JUST update the kernel by the following:
 +
* make a backup-copy of your uImage.buffalo, where the jtymod5 firmware is located (assuming you still have that extracted).
 +
* Extract the uImage.buffalo.print.zip kernel to the directory, where the jtymod5 firmware is located (assuming you still have that extracted).
 +
* you have now extracted a new "uImage.buffalo"
  
12)Get to the Web-Interface (maintenance->printer)
 
13)Share the printer and give a Windows-Share Name for the printer and 'apply'
 
  
This should turn you LSPro into a Print-Server and adds a Share (which you have named in the Web-Interface).
+
 
 +
====Or download the kernel already packed together with the LSUpdater====
 +
 
 +
You should download the Firmware_1.03_printing_kernel.zip file from the following directory:
 +
  [http://downloads.nas-central.org/LSPro_ARM9/Kernel/Kernels/Firmware_1.03_printing_kernel.zip Firmware_1.03_printing_kernel.zip]
 +
 
 +
 
 +
 
 +
===Main Procedure===
 +
Extract the archive and follow the steps below:
 +
 
 +
'''1)''' Start LSUpdater, enter there the Debug-mode (right-click on the task-bar Icon)
 +
 
 +
'''2)''' Deselect BOOT, INITRD, ROOTFS, so that ONLY "Update Kernel" is left on the left hand side.
 +
 
 +
'''3)''' Update the LS-Pro with this new kernel.
 +
 
 +
After a successful reboot we need to install the package. Therefore telnet into the box (or ssh) and login as root:
 +
 
 +
'''4)''' Download the LPRng package for LSPro:
 +
  [http://downloads.nas-central.org/LSPro_ARM9/Packages/lprng-withweb_2.04.tgz lprng-withweb_2.04.tgz]
 +
This package includes the LPRng & the changes to the web-interface.
 +
 
 +
put it anywhere on the LSPro.
 +
 
 +
'''5)''' untar the file
 +
  tar -C / -xzf lprng-withweb_2.04.tgz
 +
The "-C /" makes sure that it is untared to "/"
 +
 
 +
'''6)''' run the following script, that has been extracted to "/":
 +
  /lprng-enable.sh
 +
It will modify permissions and will add the needed device node.
 +
 
 +
'''7)''' remove the script and the archive from "/":
 +
  rm /lprng*
 +
 
 +
'''8)''' Get to the Web-Interface (maintenance->printer)
 +
 
 +
'''9)'''Share the printer and give a Windows-Share Name for the printer and 'apply'
 +
 
 +
This should turn you LSPro into a Print-Server and adds a Share (which you have named in the Web-Interface)!
  
 
----
 
----
  
 +
== Similar to above but using stock firmware 1.15 ==
 +
 +
See [[USB printer on LS Pro V2 with 1.15 firmware]]
  
 
== CUPS for LSPro ==
 
== CUPS for LSPro ==
 
*to be added*
 
*to be added*
 +
 +
[[Category:LSPro]]
 +
[[Category:Software]]
 +
[[Category:Printing]]

Latest revision as of 22:14, 16 June 2009

HowTo add a PrintServer to the LSPro

Due to the fact, that the LSPro has no PrintServer on board, like the other boxes so far, here are two ways to add a PrintServer to your box. In fact, one of the differences between the LSPro and the LSLive is, that the LSLive has the mentioned PrintServer. So with these instructions you can add this functionality to your LSPro.

There are mainly two ways to have a PrintServer on your Linux Box:

  1. By using the LPRng toolset and spooling the raw content from Windows-Machines to the printer (this is the way the other boxes are using)
  2. By using an intelligent printing subsystem like CUPS on your box

Contents

Installing and Using LPRng

jtymod5-fixed recommended
Bar.png
The point here is, that we update the web-interface, as it has been done in the jtymod-version. Therefore it is recommended to have the jtymod5-fixed firmware installed (otherwise the web-interface behaves strange)


The following procedures have been tested with the "jtymod5-fixed firmware" but should also work with the stock firmware.


The first thing we need to do is, to install a kernel, that has USB-Printing support compiled in:



Here you have two ways. Regardless which one you choose, skip the other and move to the main-procedure.

Download the kernel and put it in the right LSUpdater-Path

1) You should download the uImage.buffalo.print.zip file from the following directory:

uImage.buffalo.print.zip

2) Now you need to put the kernel into the box, by using the Updater, BUT make sure you JUST update the kernel by the following:

  • make a backup-copy of your uImage.buffalo, where the jtymod5 firmware is located (assuming you still have that extracted).
  • Extract the uImage.buffalo.print.zip kernel to the directory, where the jtymod5 firmware is located (assuming you still have that extracted).
  • you have now extracted a new "uImage.buffalo"


Or download the kernel already packed together with the LSUpdater

You should download the Firmware_1.03_printing_kernel.zip file from the following directory:

 Firmware_1.03_printing_kernel.zip


Main Procedure

Extract the archive and follow the steps below:

1) Start LSUpdater, enter there the Debug-mode (right-click on the task-bar Icon)

2) Deselect BOOT, INITRD, ROOTFS, so that ONLY "Update Kernel" is left on the left hand side.

3) Update the LS-Pro with this new kernel.

After a successful reboot we need to install the package. Therefore telnet into the box (or ssh) and login as root:

4) Download the LPRng package for LSPro:

  lprng-withweb_2.04.tgz

This package includes the LPRng & the changes to the web-interface.

put it anywhere on the LSPro.

5) untar the file

  tar -C / -xzf lprng-withweb_2.04.tgz

The "-C /" makes sure that it is untared to "/"

6) run the following script, that has been extracted to "/":

  /lprng-enable.sh

It will modify permissions and will add the needed device node.

7) remove the script and the archive from "/":

  rm /lprng*

8) Get to the Web-Interface (maintenance->printer)

9)Share the printer and give a Windows-Share Name for the printer and 'apply'

This should turn you LSPro into a Print-Server and adds a Share (which you have named in the Web-Interface)!


Similar to above but using stock firmware 1.15

See USB printer on LS Pro V2 with 1.15 firmware

CUPS for LSPro

  • to be added*