- CUPS Administrative Guide
- Ankur Shah
- 862字
- 2021-04-25 17:30:56
Installing a Binary Distribution
You can also build binary packages that can be installed on other machines using the RPM spec file (packaging/cups.spec
) or EPM list file (packaging/cups.list
). The latter also supports building of binary RPMs (Red Hat Package Manager), which makes it more convenient to use.
You can find the RPM software at http://www.rpm.org/.
The source distributions include an RPM spec file that can be used to build RPM packages for your Linux distribution. The rpmbuild
command is used to build from the tar files:
#rpmbuild -ta cups-version-source.tar.gz
Or
#rpmbuild -ta cups-version-source.tar.bz2
You will need the gcc, libjpeg, libjpeg-devel, libpng, libpng-devel, libtiff, libtiff-devel, zlib
, and zlib-devel
packages installed to compile CUPS with all the standard functionalities. The krb5-devel
and krb5-libs
packages, openldap
and openldap-devel
packages, openslp
, and openslp-devel
packages will allow support for Kerberos (CUPS 1.3.x only), LDAP, and SLP respectively.
The spec file supports two options, --without php
and --without dbus
, which control whether the PHP and DBUS support is compiled into the packages. For example, if you are compiling CUPS 1.2.4 or earlier on Red Hat Enterprise Linux, you will need to provide the --without dbus
option since that distribution does not have a compatible version of the D-BUS libraries available:
#rpmbuild -ta cups-version-source.tar.gz --without dbus
Similarly, if you don’t have the php-devel
package installed, then you can use the --without
the php
option to omit the PHP support from the generated RPMs.
#rpmbuild -ta cups-version-source.tar.gz --without php
The EPM software is available at http://www.easysw.com/epm/.
The top level makefile supports generation of many types of binary distributions using EPM. To build a binary distribution type:
#make <format>
Or
#gmake <format>
For FreeBSD, NetBSD, and OpenBSD, the <format>
target is one of the following:
- epm—Builds a script + tarfile package
- aix—Builds an AIX package
- bsd—Builds a BSD package
- deb—Builds a Debian package
- depot—Builds a HP-UX package (also swinstall)
- inst—Builds an IRIX package (also tardist)
- osx—Builds a MacOS X package
- pkg—Builds a Solaris package
- rpm—Builds a RPM package
- setld—Build a Tru64 UNIX package
- slackware—Build a Slackware package
- swinstall—Build a HP-UX package (also depot)
- tardist—Builds an IRIX package (also inst)
You can also use Google search engine to find other free binaries:
http://www.google.com/search?q=cups+binary+package&btnG=Search
Installing a Portable Distribution
To install the CUPS software from a portable distribution, you will need to login as root user. You can also use the su
command to login as root user. Once the user is set as root
the shell script should be run:
#./cups.install
After asking you a few yes/no questions, the CUPS software will be installed and the scheduler will be started automatically.
Note
The su(switch user)
can be used to change the ownership of a session to any user. It is most commonly employed to change the ownership from an ordinary user to the root user, thereby providing access to all parts, and all commands on the computer or system. For this reason, it is often referred to (although somewhat inaccurately) as the superuser
command. It is also sometimes called the switch user
command.
Installing an RPM Distribution
To install the CUPS software from an RPM distribution, you will need to be logged in as root user. As discussed earlier, doing a su
login is also good enough. Once this is done, we can use the following commands to start installation:
#rpm -e lpr #rpm -i cups-1.1-linux-M.m.n-intel.rpm
After a short delay, the CUPS software will be installed and the scheduler will be started automatically.
Installing CUPS from a Debian Distribution
To install the CUPS software from a Debian distribution, you will need to be logged in as the root user. Using the su
is not good enough. Once you are logged in as the root user, you may run dpkg
with:
#dpkg -i cups-1.1-linux-M.m.n-intel.deb
After a short delay, the CUPS software will be installed and the scheduler will be started automatically.
Subversion Access
The CUPS source files are managed by the Subversion (SVN) software, available at:
Source files are "checked in" with each change so that modifications can be tracked. The CUPS software is available via Subversion using the following URL:
http://svn.easysw.com/public/cups/
The following command can be used to check the current CUPS 1.3.x source from Subversion:
#svn co http://svn.easysw.com/public/cups/branches/branch-1.3/cups-1.3.x
Similarly, the following command can be used to check the current CUPS 1.4.x source from Subversion:
#svn co http://svn.easysw.com/public/cups/trunk/cups
Running the Software
Once the software is installed, the CUPS server can be started using the following command:
#/usr/sbin/cupsd
You can check whether CUPS is running using the following command:
#service cups status
Or
#ps -ax | grep cups
- Flash CC中文版動(dòng)畫設(shè)計(jì)與制作/微課堂學(xué)電腦
- Sencha Touch Cookbook, Second Edition
- Scratch 1.4: Beginner’s Guide
- 中文版Premiere Pro CC實(shí)用教程
- UG NX 完全實(shí)例解析
- AutoCAD 2018中文版基礎(chǔ)教程
- Premiere Pro影視后期編輯:短視頻制作實(shí)戰(zhàn)寶典
- Photoshop CC摳圖+修圖+調(diào)色+合成+特效實(shí)戰(zhàn)視頻教程
- UI功夫:PC和APP界面設(shè)計(jì)全流程圖解
- Oracle Fusion Middleware Patterns
- Photoshop CC 2018基礎(chǔ)教程(第3版)
- Mastering Zabbix
- Practical Data Analysis and Reporting with BIRT
- Excel數(shù)據(jù)處理與分析:數(shù)據(jù)思維+分析方法+場(chǎng)景應(yīng)用
- WS/BPEL 2.0 for SOA Composite Applications with Oracle SOA Suite 11g