NSLU2-Linux
view · edit · print · history

OpenSlug.InstallCups History

Hide minor edits - Show changes to markup

January 16, 2008, at 01:17 AM by Jeremy Jefferson -- added notes about runlevel and command for symlink
Changed lines 61-62 from:

Then place the init script next to the others in /etc/init.d and create symlinks in the /etc/rcX.d directory for each runlevel you want cups to run under.

to:

Then place the init script next to the others in /etc/init.d and create symlinks in the /etc/rcX.d directory for each runlevel you want cups to run under. (Note: rc3.d is the normal run level) To create the symbolic link for runlevel 3: ln -s /etc/init.d/S88cups /etc/rc3.d/S88cups

November 13, 2007, at 10:37 AM by Caysho --
Changed lines 73-75 from:

$ls /dev/usb/lp* -la crw-rw---- 1 root lp 180, 0 Nov 13 19:23 /dev/usb/lp0

to:
  $ls /dev/usb/lp* -la
  crw-rw----    1 root     lp       180,   0 Nov 13 19:23 /dev/usb/lp0
November 13, 2007, at 10:36 AM by Caysho -- Added a detail about device node ownership
Deleted line 62:
Added lines 72-80:

After printer insertion, the created device node could be owned by root: $ls /dev/usb/lp* -la crw-rw---- 1 root lp 180, 0 Nov 13 19:23 /dev/usb/lp0

If this is the case, it may be necessary to add

  chown lp:users /dev/usb/lp0

to a script to get the printer responding. [I have found this to be true of cups 1.3.3-1; I haven't needed to do this before - Caysho]

November 13, 2007, at 08:55 AM by Glen Harris -- Add link to optware shortcut rather than manual download
Changed line 12 from:

As there are some dependencies, you need to get the following packages from unslung (i.e. using wget):

to:

Easiest way to do this is to follow the instructions on bootstrapping optware at http://www.nslu2-linux.org/wiki/Optware/Slugosbe. Alternatively, because there are some dependencies, you need to get the following packages from unslung (i.e. using wget):

April 02, 2007, at 06:22 AM by Jan Alonzo -- added openssl and dependencies and added 3.10 beta notes
Changed lines 20-28 from:
  • libssl0.9.7
to:
  • libssl0.9.7 (if you need to generate certificates, install the openssl package instead)

If you installed openssl, you might need other packages like

  • openldap-libs
  • libdb
  • gdbm
  • cyrus-sasl-libs
Changed lines 33-34 from:

Note: I replaced libssl with openssl from the unslung feed and it worked fine. There may be other dependencies for your system, just follow the instructions and install all of them. After you install, follow the directions from the HowTo.AddPrinter page to generate certificates. I had to run this from /opt/bin to get openssl to run.

to:

After you install, follow the directions from the HowTo.AddPrinter page to generate certificates. I had to run this from /opt/bin to get openssl to run.

Added lines 71-72:

N.B. You don't need to chmod cupsd if you are an openslug 3.10 beta user.

March 12, 2007, at 11:28 PM by ML --
Changed lines 73-75 from:

ln -s /opt/bin/lp /bin/lp ln -s /opt/bin/lpstat /bin/lpstat ln -s /opt/bin/lpr /bin/lpr

to:
ln -s /opt/bin/lp /bin/lp
ln -s /opt/bin/lpstat /bin/lpstat
ln -s /opt/bin/lpr /bin/lpr
March 12, 2007, at 11:28 PM by ML --
Changed line 71 from:

6. Samba Share

to:

6. Samba Share

March 12, 2007, at 11:27 PM by ML --
Changed lines 69-76 from:

This assumes you had spindown working before ;-), i.e. by having persistant ram disks at least for /var/log and /var/run and your hd being mounted noatime.

to:

This assumes you had spindown working before ;-), i.e. by having persistant ram disks at least for /var/log and /var/run and your hd being mounted noatime.

6. Samba Share If you want to share the printer over samba, follow the directions in the standard printing over Samba howto. Then Samba should automatically find your printer. You then have to simlink to the binaries in /opt/bin like follows: ln -s /opt/bin/lp /bin/lp ln -s /opt/bin/lpstat /bin/lpstat ln -s /opt/bin/lpr /bin/lpr Then you should be able to print over the share using your client driver.

March 01, 2007, at 09:28 PM by ML -- Additions to text
Added lines 25-26:

Note: I replaced libssl with openssl from the unslung feed and it worked fine. There may be other dependencies for your system, just follow the instructions and install all of them. After you install, follow the directions from the HowTo.AddPrinter page to generate certificates. I had to run this from /opt/bin to get openssl to run.

Changed lines 59-62 from:
to:

Note: I had to setup cups to use parallel:/dev/usb/lp0 as default to print, as openslug 3.1 puts the usb devices in a folder. I also had to issue the command: chmod u+s /opt/sbin/cupsd as discussed in HowTo.AddPrinter.

December 17, 2006, at 10:11 AM by mathieu_xwave --
Changed lines 1-2 from:

As there is no cups (yet?) compiled for openslug, I installed the version from the unslung feed, which works quite well. You could also compil cups package with a woriking OE environment using the command "bb cups" and take the build packages in your deploy/ dir. See section "Build a package" here: http://www.nslu2-linux.org/wiki/Development/MasterMakefile

to:

As there is no cups (yet?) compiled for openslug, I installed the version from the unslung feed, which works quite well. You could also compile cups package with a working OE environment using the command "bb cups" and take the build packages in your deploy/ dir. See section "Build a package" here: http://www.nslu2-linux.org/wiki/Development/MasterMakefile

December 17, 2006, at 10:11 AM by mathieu_xwave --
Changed lines 1-2 from:

As there is no cups (yet?) compiled for openslug, I installed the version from the unslung feed, which works quite well.

to:

As there is no cups (yet?) compiled for openslug, I installed the version from the unslung feed, which works quite well. You could also compil cups package with a woriking OE environment using the command "bb cups" and take the build packages in your deploy/ dir. See section "Build a package" here: http://www.nslu2-linux.org/wiki/Development/MasterMakefile

December 13, 2006, at 12:15 AM by Spook --
Changed lines 29-30 from:

note: it may be necessary to run depmod -a for modprobe to find usblp

to:

Note: it may be necessary to run depmod -a for modprobe to find usblp

December 13, 2006, at 12:14 AM by Spook --
Added lines 29-30:

note: it may be necessary to run depmod -a for modprobe to find usblp

December 13, 2006, at 12:12 AM by Spook -- it was necessary for me to run depmod -a for modprobe to find usblp
October 12, 2006, at 08:20 PM by pbgonlinehomede -- added a missing dependency
Added line 20:
  • libssl0.9.7
September 30, 2005, at 09:56 PM by bofh_omega -- added init script modification
Added lines 39-47:

also change the following line. (At least in Openslug 2.7)

Original: /bin/killall cupsd 2>/dev/null

Modified: /usr/bin/killall cupsd 2>/dev/null

August 31, 2005, at 01:21 PM by mbanditt -- Add mods for allowing disk spindown
Added lines 46-52:

5. Allowing for disk spindown

Normally, cups prevents disks from spindown as it generates new root certificates every 5 minutes. With the following changes, disk spindown is possible again:

  • edit /opt/etc/cups/cupsd.conf and change all three logfile destinations towards a persistant ramdisk location (e.g. to /var/log/cups/...)
  • mv /opt/etc/cups/certs /var/run/ ; ln -s /var/run/certs /opt/etc/cups/certs

This assumes you had spindown working before ;-), i.e. by having persistant ram disks at least for /var/log and /var/run and your hd being mounted noatime.

August 16, 2005, at 04:32 PM by Joschi --
Changed lines 39-40 from:

Then place the init script next to the others in /etc/init.d

to:

Then place the init script next to the others in /etc/init.d and create symlinks in the /etc/rcX.d directory for each runlevel you want cups to run under.

August 11, 2005, at 09:40 PM by Joschi --
Added lines 1-44:

As there is no cups (yet?) compiled for openslug, I installed the version from the unslung feed, which works quite well.

Necessary steps:

  1. Download and install packages from unslung-feed manually
  2. Install usb printer kernel module
  3. adapt cups init script
  4. configure cups

Here comes the detail:

1. Download necessary packages

As there are some dependencies, you need to get the following packages from unslung (i.e. using wget):

  • cups
  • cups-doc
  • libjpeg
  • libpng
  • libstdc++
  • libtiff
  • zlib

After downloading, you can install do a

ipkg install *.ipk
in the folder where you saved the packages.

2. Kernel printer module

This is available from the openslug feed:

ipkg install kernel-module-usblp

3. Adapt init script

The cups init script can be found in /opt/doc/cups/S88cups. You just have to alter 2 lines:

Original:

if ( !(lsmod | grep "^printer" -q) ); then
insmod /opt/lib/modules/printer.o

Modified:

if ( !(lsmod | grep "^usblp" -q) ); then
modprobe usblp

Then place the init script next to the others in /etc/init.d

4. Configuration

Normally, no additional configuration should be necessary, /dev/lp0 is by default configured as a raw printer named hp990c. For addition information see HowTo.AddPrinter.

view · edit · print · history · Last edited by Jeremy Jefferson.
Based on work by Caysho, Glen Harris, Jan Alonzo, ML, mathieu_xwave, Spook, pbgonlinehomede, bofh_omega, mbanditt, and Joschi.
Originally by Joschi.
Page last modified on January 16, 2008, at 01:17 AM