- 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
- —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
- 自己動手寫分布式搜索引擎
- Adobe創意大學After Effects CS5 影視特效師標準實訓教材
- Beginning Swift
- 中文版AutoCAD 2016從入門到精通
- 架構之美
- Microsoft BizTalk Server 2010 Patterns
- Solid Works 2021產品設計標準教程
- 中文版Photoshop CS6平面設計實例教程(第2版)
- 音樂日記:Logic Pro X場景x風格編曲實用教程
- Photoshop+CorelDRAW平面設計實例教程(第4版)
- AI繪畫實戰:Midjourney從新手到高手
- Mastering phpMyAdmin 3.1 for Effective MySQL Management
- 學摳圖:Photoshop專業摳圖技法案例教程
- SVG動畫
- 7小時精通剪映:短視頻剪輯/調色/特效/字幕(手機版+電腦版)