- 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
- TensorFlow與自然語言處理應用
- AI繪畫教程:Midjourney關鍵詞靈感手冊
- 剪映專業版(電腦版)視頻剪輯全攻略:音效添加+轉場特效+視頻制作
- 改變思維:菜鳥也能做出震撼PPT(全彩版)
- Creo Parametric 5.0中文版從入門到精通
- R Graph Cookbook
- 中文版Illustrator CC基礎培訓教程(移動學習版)
- 中文版Photoshop CS6平面設計實用教程(第2版)
- Photoshop網店美工實例教程(第2版 全彩微課版)
- Flash CC動畫制作與應用(第3版)
- Illustrator平面設計應用教程
- Cinema 4D R20完全學習手冊
- Joomla! 1.5 Top Extensions Cookbook
- 玩轉國潮:Procreate插畫創作及實例教程
- 深度學習之圖像識別:核心技術與案例實戰