cups(Common Unix Printing System)�Ƃ́AIPP(Internet Printing Protocol)�ɏ������AIPP��HTTP���g�p���Ĉ���\�ɂ����v���g�R���ŁA����ׂ̈̕W���K�肾���łȂ��A����W���u��v�����^�̊e�I�v�V�����Ȃǂ��K�肵���[�U�[��Web�u���E�U����ăT�[�o�̏�ԊĎ���v�����^�̃W���u�Ǘ����s�Ȃ��܂��B
���T�C�g�ł̓v�����^�h���C�o�̓N���C�A���g�Ɏ������A�T�[�o�͎�����f�[�^�����H�����Ƀv�����^�Ɉ���v�����o���悤�ɂ���ݒ���Љ�܂��B
OS�C���X�g�[�����̃J�X�^���ݒ�Łucups�v�𖢑I���ɂ��Ă��A�f�t�H���g�ŃC���X�g�[�������l�ł��B �C���X�g�[����A�̈ӓI�ɃA���C���X�g�[�������ꍇ�́A�ȉ��̂ŏ��ŃC���X�g�[�����ĉ������B # yum -y install cups |
�o�[�W�����̊m�F # rpm -qa cups cups-1.2.10-10.fc7 ��L�������Acups�̃o�[�W�����ƂȂ� |
�ݒ�t�@�C���̕ҏW # vi /etc/cups/cupsd.conf # # Ports/addresses that we listen to. The default port 631 is reserved # for the Internet Printing Protocol (IPP) and is what we use here. # # You can have multiple Port/Listen lines to listen to more than one # port or address, or to restrict access: # # Port 80 # Port 631 # Listen hostname # Listen hostname:80 # Listen hostname:631 # Listen 1.2.3.4 # Listen 1.2.3.4:631 # # NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades # for encryption. If you want to support web-based encryption you'll # probably need to listen on port 443 (the "https" port...) # # NOTE 2: In order for the command-line and web interfaces to work, you # must have at least one Port or Listen line that allows access from the # local loopback address (localhost). # #Port 80 #Port 443 Port 631�ɂȂ��Ă��鎖���m�F Port 631 <Location /> Order Deny,Allow Deny From All Allow From 127.0.0.1 �v�����^�𗘗p����N���C�A���g�̃l�b�g���[�N��lj� Allow From 192.168.1.0/24 </Location> <Location /admin> # # You definitely will want to limit access to the administration functions. # The default configuration requires a local connection from a user who # is a member of the system group to do any admin tasks. You can change # the group name using the SystemGroup directive. # AuthType Basic AuthClass System ## Restrict access to local domain Order Deny,Allow Deny From All Allow From 127.0.0.1 �u���E�U�o�R�Őݒ���s���N���C�A���g�̃l�b�g���[�N�A�h���X���w�� Allow From 192.168.1.0/24 #Encryption Required </Location> |
�ݒ�t�@�C���̕ҏW # vi /etc/cups/cupsd.conf # Only listen for connections from the local machine. Port631��L���ɂ���B(localhost�̂���ɂ��Ȃ�) Listen localhost:631 �@�@�@�@���@���L�ɕύX Listen 631 # Restrict access to the server... <Location /> Order allow,deny Allow localhost �v�����^�𗘗p����N���C�A���g�̃l�b�g���[�N��lj� Allow 192.168.1.0/24 </Location> # Restrict access to the admin pages... <Location /admin> Encryption Required Order allow,deny Allow localhost �Ǘ��҃y�[�W�𗘗p�ł���N���C�A���g�̃l�b�g���[�N��lj��B(�ł���A���p�ł���IP�����肷�鎖���]�܂���) Allow 192.168.1.0/24 </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Basic Require user @SYSTEM Order allow,deny Allow localhost �Ǘ��҃y�[�W(�ݒ�t�@�C���ւ̃A�N�Z�X����)�𗘗p�ł���N���C�A���g�̃l�b�g���[�N��lj��B(��������A���p�ł���IP�����肷�鎖���]�܂���) Allow 192.168.1.0/24 </Location> �ŏI�s�ֈȉ���lj� �w�ʐM���e�Í���(OpenSSL & mod_SSL) �` Web�y�[�W�ҁ`�x�̃T�[�o�p�u�閧���E���J���v���쐬�����t�@�C�������w�肷�� ServerCertificate /etc/httpd/conf/server.crt ServerKey /etc/httpd/conf/server.key |
�v�����^�h���C�o���g�p���Ȃ��ݒ� # vi /etc/cups/mime.types ######################################################################## # # Raw print file support... # # Uncomment the following type and the application/octet-stream # filter line in mime.convs to allow raw file printing without the # -oraw option. # �擪��"#"���t������Ă��Ȃ�(�L���ɂȂ��Ă���)�����m�F application/octet-stream # vi /etc/cups/mime.convs ######################################################################## # # Raw filter... # # Uncomment the following filter and the application/octet-stream type # in mime.types to allow printing of arbitrary files without the -oraw # option. # �擪��"#"���폜���L���ɂ��� application/octet-stream application/vnd.cups-raw 0 - |
cups���N������ �yFC1 ���� Fedora15 / CentOS4 / CentOS5 �̏ꍇ�z # /etc/rc.d/init.d/cups start �yFedora16 �̏ꍇ�z # systemctl start cups.service |
�N������cups���N������ �yFC1 ���� Fedora15 / CentOS4 / CentOS5 �̏ꍇ�z # chkconfig cups on �ݒ���e���m�F # chkconfig --list cups cups 0:�I�t 1:�I�t 2:�I�� 3:�I�� 4:�I�� 5:�I�� 6:�I�t �yFedora16 �̏ꍇ�z # systemctl enable cups.service �ݒ���e���m�F # systemctl status cups.service cups.service - CUPS Printing Service Loaded: loaded (/lib/systemd/system/cups.service; enabled) Active: active (running) since Thu, 17 Nov 2011 08:57:04 +0900; 17min ago Main PID: 1713 (cupsd) CGroup: name=systemd:/system/cups.service �� 1713 /usr/sbin/cupsd -f |
���F�����܂ł̐ݒ�́A�ȉ��̐ݒ�t�@�C���ɐݒ肳��Ă��܂��B
# cat /etc/cups/printers.conf # Printer configuration file for CUPS v1.1.20 # Written by cupsd on 2004�N10��31�� 12��50��44�b <DefaultPrinter PX-G900> Info EPSON Colorio PX-G900 Location Fedora Connect DeviceURI usb:/dev/usb/lp0 State Idle Accepting Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 </Printer> |