Changes

From SME Server
Jump to navigationJump to search
4,064 bytes added ,  07:04, 24 October 2012
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:/..."
===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://www.compsos.com.au Computing SOS].

===Install Jbig-Kit===
<ol>
<li>Download Jbig-Kit.</li>
<pre>cd /tmp/
wget http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-2.0.tar.gz
tar -zxvf jbigkit-2.0.tar.gz
</pre>
<li>Before compiling jbig-kit, make sure '''gcc''' is installed to avoid this error '''make[1]: gcc: Command not found'''.</li>
<pre>rpm –qa | grep gcc</pre>
You will have similar output below if it is installed:
<pre>libgcc-4.1.2-52.el5_8.1
gcc-4.1.2-52.el5_8.1</pre>
<li>If you only have the libgcc, you still need to install the gcc, here’s how:</li>
<pre>yum install gcc</pre>
If you will get an error "No package gcc available. Nothing to do" then do this:
<pre>wget ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.7.1/gcc-4.7.1.tar.gz</pre>
<li>Change directory to your uncompressed jbigkit folder:</li>
<pre>cd jbigkit
make
make test
make clean
</pre>
</ol>
===Install SpliX===
<ol>
<li>Download SpliX 2.0.0 (latest version at the time of writing)</li>
<pre>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
</pre>
If you will receive this error, '''/bin/sh: g++: command not found''', then issue this command:
<pre>yum install gcc-c++</pre>
Then you might receive an error, ''/bin/sh: cups-config: command not found'', then issue this command:
<pre>yum install cups-devel</pre>
<li>Copy ''libjbig.a'' to /usr/lib/folder.</li>
<pre>cp include/libjbig.a /usr/lib/.</pre>
<li>We can now build the binaries and executable program from the source code.</li>
<pre>make
make install
</pre>
</ol>
===Install GhostScript===
<ol>
<li>Download and install GhostScript</li>
<pre>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
</pre>
</ol>
===Install CUPS===
<ol>
<li>Install cups from sme-contribs</li>
<pre>yum install --enablerepo=smecontribs cups</pre>
<li>Update SME</li>
<pre>signal-event post-upgrade</pre>
</ol>
===Access CUPS Administration Page===
<ol>
<li>On your console, issue this command:</li>
<pre>elinks http://localhost:631</pre>
<li>Go to '''Administration''' tab, enable '''Allow remote administration'''. Don't forget to click '''Change Settings'''.</li>
<li>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)</li>
</ol>
===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.
<ol>
<li>Go to '''Administration''' tab</li>
<li>Tick the following and make sure to click '''Change Settings''':</li>
* ''Share published printers connected to this system''
* ''Allow printing from the internet''
[[File:CUPS-administration.jpg]]
<li>Click '''Add Printer'''</li>
<li>Use the following:<br/>
Name: SamsungSCX4216f<br/>
Location: Office<br/>
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)</li>
<li>Now on your Windows 7 computer, go to:</li>
*'''Start''', '''Devices and Printers''', '''Add Printer'''
* Select '''Select a shared printer by name''' then type '''http://192.168.100.1:631/printers/SamsungSCX4216f'''.<br/>
[[File:CUPS-Win7-shared-printer-by-name.jpg]]<br/><br/>
'''Note:''' You can see the exact URL of your printer by clicking the printer name while in CUPS administration page as per image below.<br/>
[[File:CUPS-printer.jpg]]<br/>
* Select '''Generic''' from the left side menu, then select '''MS Publisher Imagesetter'''
[[File:CUPS-Win7-generic-driver.jpg]]
* Now do a test print.
</ol>
75

edits

Navigation menu