Difference between revisions of "Cups for SME Server 8"
(Created page with "===Maintainer=== [http://www.compsos.com.au CompSOS] ===Support=== For questions or comments regarding this HOWTO, contact [mailto:shiena@compsos.com.au Shiena Tadeo] of [http:/...") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
===Support=== | ===Support=== | ||
− | For questions or comments regarding this HOWTO, contact [mailto:shiena@compsos.com.au Shiena | + | For questions or comments regarding this HOWTO, contact [mailto:shiena@compsos.com.au Shiena] of [http://www.compsos.com.au Computing SOS]. |
===Install Jbig-Kit=== | ===Install Jbig-Kit=== | ||
Line 28: | Line 28: | ||
</pre> | </pre> | ||
</ol> | </ol> | ||
− | ===Install SpliX=== | + | ===Install SpliX if you use Samsung Printer=== |
+ | <p>SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language) printers. If you have such a printer, you need to download and use SpliX. If you're not using Samsung printer, then no need to install SpliX.</p> | ||
<ol> | <ol> | ||
<li>Download SpliX 2.0.0 (latest version at the time of writing)</li> | <li>Download SpliX 2.0.0 (latest version at the time of writing)</li> | ||
Line 47: | Line 48: | ||
</pre> | </pre> | ||
</ol> | </ol> | ||
+ | |||
===Install GhostScript=== | ===Install GhostScript=== | ||
+ | <p>Check if you have GhostScript installed by issuing "rpm -qa | grep ghostscript", if you have then jump to the next step.</p> | ||
<ol> | <ol> | ||
<li>Download and install GhostScript</li> | <li>Download and install GhostScript</li> | ||
Line 55: | Line 58: | ||
</pre> | </pre> | ||
</ol> | </ol> | ||
+ | |||
===Install CUPS=== | ===Install CUPS=== | ||
<ol> | <ol> | ||
− | <li>Install | + | <li>Install CUPS from sme-contribs (version 1.3.7 is the latest version at the time of writing)</li> |
<pre>yum install --enablerepo=smecontribs cups</pre> | <pre>yum install --enablerepo=smecontribs cups</pre> | ||
<li>Update SME</li> | <li>Update SME</li> | ||
<pre>signal-event post-upgrade</pre> | <pre>signal-event post-upgrade</pre> | ||
+ | <li>Start CUPS</li> | ||
+ | <pre>/etc/init.d/cups start</pre> | ||
+ | <li>To start CUPS everytime a server reboots.</li> | ||
+ | <pre>ln -s /etc/init.d/cups /etc/rc7.d/S93cups | ||
+ | ln -s /etc/init.d/cups /etc/rc6.d/K93cups | ||
+ | </pre> | ||
</ol> | </ol> | ||
+ | |||
===Access CUPS Administration Page=== | ===Access CUPS Administration Page=== | ||
<ol> | <ol> | ||
Line 96: | Line 107: | ||
* Now do a test print. | * Now do a test print. | ||
</ol> | </ol> | ||
+ | |||
+ | [[Category: Howto]] | ||
+ | [[Category: Administration:Printing]] |
Latest revision as of 07:30, 22 October 2015
Maintainer
Support
For questions or comments regarding this HOWTO, contact Shiena of Computing SOS.
Install Jbig-Kit
- Download Jbig-Kit.
- Before compiling jbig-kit, make sure gcc is installed to avoid this error make[1]: gcc: Command not found.
- If you only have the libgcc, you still need to install the gcc, here’s how:
- Change directory to your uncompressed jbigkit folder:
cd /tmp/ wget http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-2.0.tar.gz tar -zxvf jbigkit-2.0.tar.gz
rpm –qa | grep gcc
You will have similar output below if it is installed:
libgcc-4.1.2-52.el5_8.1 gcc-4.1.2-52.el5_8.1
yum install gcc
If you will get an error "No package gcc available. Nothing to do" then do this:
wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.7.1/gcc-4.7.1.tar.gz
cd jbigkit make make test make clean
Install SpliX if you use Samsung Printer
SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language) printers. If you have such a printer, you need to download and use SpliX. If you're not using Samsung printer, then no need to install SpliX.
- Download SpliX 2.0.0 (latest version at the time of writing)
- Copy libjbig.a to /usr/lib/folder.
- We can now build the binaries and executable program from the source code.
cd ../ wget http://downloads.sourceforge.net/splix/splix-2.0.0.tar.bz2 tar –jxvf splix-2.0.0.tar.bz2 cd splix-2.0.0
If you will receive this error, /bin/sh: g++: command not found, then issue this command:
yum install gcc-c++
Then you might receive an error, /bin/sh: cups-config: command not found, then issue this command:
yum install cups-devel
cp include/libjbig.a /usr/lib/.
make make install
Install GhostScript
Check if you have GhostScript installed by issuing "rpm -qa | grep ghostscript", if you have then jump to the next step.
- Download and install GhostScript
cd /tmp/ wget http://mirror.contribs.org/contribs/rvandenaker/testing/smeserver-cups/repositories/7.0/RPMS/i386/ghostscript-8.15.2-0.rvda.1.i386.rpm yum localinstall ghostscript-8.15.2-0.rvda.1.i386.rpm
Install CUPS
- Install CUPS from sme-contribs (version 1.3.7 is the latest version at the time of writing)
- Update SME
- Start CUPS
- To start CUPS everytime a server reboots.
yum install --enablerepo=smecontribs cups
signal-event post-upgrade
/etc/init.d/cups start
ln -s /etc/init.d/cups /etc/rc7.d/S93cups ln -s /etc/init.d/cups /etc/rc6.d/K93cups
Access CUPS Administration Page
- On your console, issue this command:
- Go to Administration tab, enable Allow remote administration. Don't forget to click Change Settings.
- Now you can login to server's CUPS thru a web browser using your server's IP address or hostname (https://192.168.100.1:631/admin or https://servername:631/admin)
elinks http://localhost:631
Add a Printer
As an example, we will be adding Samsung SCX-4216f (USB connected to D-Link DP-300u printer server) to CUPS, accessible for Windows 7 64-bit client.
- Go to Administration tab
- Tick the following and make sure to click Change Settings:
- Share published printers connected to this system
- Allow printing from the internet
- Click Add Printer
- Use the following:
Name: SamsungSCX4216f
Location: Office
Description: Samsung SCX-4216f Device: LPD/LPR Host or Printer Device URI: lpd://ps1/usb1 (assuming your D-Link DP-300u hostname is ps1 and the queue name is usb1) Make: Samsung Model: Samsung SCX-4200, SpliX V.2.0.0 (pt_Br) - Now on your Windows 7 computer, go to:
- Start, Devices and Printers, Add Printer
- Select Select a shared printer by name then type http://192.168.100.1:631/printers/SamsungSCX4216f.
- Select Generic from the left side menu, then select MS Publisher Imagesetter
- Now do a test print.
Note: You can see the exact URL of your printer by clicking the printer name while in CUPS administration page as per image below.