�͂��߂Ă̎���T�[�o�\�z - Fedora/CentOS -
Last Update 2018/05/30
[ �X�V���� ] [ �T�C�g �}�b�v ] [ ����f���� ] [ �G�k�f���� ] [ �����N ]
�� �g�b�v >> �v�����g�T�[�o >> �v�����g�T�[�o�̍\�z(cups)
����m�F�@[ FC1 / FC2 / FC3 / FC4 / FC5 / FC6 / Fedora7 / Fedora8 / Fedora9 / Fedora10 / Fedora11 / Fedora12 / Fedora13 / Fedora14 / Fedora15 / Fedora16 / CentOS4 / CentOS5 / CentOS6 ] ���Y�y�[�W�͓������܂���
  1. cups�Ƃ́E�E�E
  2. cups�̃C���X�g�[��
  3. cups�̐ݒ�
    cups�̃o�[�W�����m�F
    Ver 1.2�ȉ�( 1.2 > Ver )�̏ꍇ
    Ver 1.2�ȏ�( 1.2 <= Ver )�̏ꍇ
  4. cups�̋N��
  5. OS�̍ċN�����s�Ȃ�������cups�������I�ɋN������悤�ɐݒ肷��
  6. �v�����^�̒lj��E�ݒ�
    Ver 1.2�ȉ�( 1.2 > Ver )�̏ꍇ
    Ver 1.2 ����� 1.3( 1.2 <= Ver <= 1.3)�̏ꍇ
    Ver 1.4�ȏ�( 1.4 <= Ver )�̏ꍇ
  7. �N���C�A���g����̈���ݒ�

�� cups�Ƃ́E�E�E

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

�� cups�̃C���X�g�[��

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

�� cups�̐ݒ�

�� cups�̃o�[�W�����m�F

�o�[�W�����̊m�F
# rpm -qa cups
cups-1.2.10-10.fc7

��L�������Acups�̃o�[�W�����ƂȂ�

�� Ver 1.1�ȉ�( 1.1 >= Ver )�̏ꍇ

�ݒ�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>

�� Ver 1.2�ȏ�( 1.2 <= Ver )�̏ꍇ

�ݒ�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��

cups���N������
�yFC1 ���� Fedora15 / CentOS4 / CentOS5 �̏ꍇ�z
# /etc/rc.d/init.d/cups start

�yFedora16 �̏ꍇ�z
# systemctl start cups.service

�� OS�̍ċN�����s�Ȃ�������cups�������I�ɋN������悤�ɐݒ肷��

�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

�� �v�����^�̒lj��E�ݒ�

�� Ver 1.1�ȉ�( 1.1 >= Ver )�̏ꍇ

  1. �N���C�A���g���[http://�T�[�o�̃A�h���X:631/]�ŃA�N�Z�X���ĉ��L�̗l�ȉ�ʂ��\������܂��B
    (���F631��cups�̃A�N�Z�X����|�[�g�ԍ��ł��B���[�J������̐ݒ�Ȃ̂Ń��[�^�̃|�[�g���J���K�v�͂���܂���)
  2. �wDo Administration Tasks�x��I�����A�|�b�v�A�b�v�E�B���h�E�̓��͉͂��L�̗l�Ɏw�肵�܂��B
    �y���[�U�[���z
    root
    �y�p�X���[�h�z
    root�̃p�X���[�h
  3. �wAdd Printer�x��I�����܂��B
  4. �T�[�o�ɐڑ����ꂽ�v�����^�̏�����͂��܂��B
    (������₷���l�ɐݒ肵�܂��B���ł����܂��܂���B�����������s�B)
    ���͂��I�������wContinue�x�{�^�����N���b�N���܂��B
    �yName�z
    PX-G900
    �yLocation�z
    Fedora Connect
    �yDescription�z
    EPSON Colorio PX-G900
  5. �v�����^�̐ڑ�����h���b�v�_�E�����X�g����I�����A�uContinue�v�{�^�����N���b�N���܂��B
    ���T�[�o��USB�ɐڑ�����Ă���ׁuUSB�v��I�����Ă��܂����A�K���̃|�[�g��I�����Ă��������B
    �yDevice�z
    USB Printer #1
  6. ���[�J���Ȃǂ��\������܂����A���T�C�g�̐ݒ�̓T�[�o�ɒ��ڃf�[�^���o�͂�����ׁuRaw�v��I�����uContinue�v�{�^�����N���b�N���܂��B
  7. �uRaw Queue(en)�v��I�����A�uContinue�v�{�^�����N���b�N���܂��B
  8. �ȉ��̉�ʂ��\������A�ݒ�͊����ł��B
  9. �ݒ���e�̊m�F�ƈ���e�X�g
    �uPrinters�v���N���b�N����ƁA���L��ʂ��\������܂��B�ݒ���e���m�F���Ă��������B
    ����ʓ��́uPrint Test Page�v�{�^�����N���b�N����ƃT�[�o���v�����^�̎������s���܂��B�܂��A������ň���ł��邩�m�F���Ă����܂��傤�B

���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>

�� Ver 1.2 ����� 1.3( 1.2 <= Ver <= 1.3)�̏ꍇ

  1. �N���C�A���g���[https://�T�[�o�̃A�h���X:631/]�ŃA�N�Z�X���ĉ��L�̗l�ȉ�ʂ��\������܂��B
  2. �w�Ǘ��x�^�u���N���b�N����ƁA�T�[�o�ɐڑ�����Ă���v�����^�������I�ɕ\������Ă��܂��B
    �ړI�̃v�����^�ɑ΂��āw���̃v�����^��lj��x���N���b�N���܂��B
  3. �u���f���v�̃��X�g�ꗗ���K�؂ȃh���C�o��I�����āw�v�����^�̒lj��x���N���b�N���܂��B
  4. �|�b�v�A�b�v�E�B���h�E�̓��͉͂��L�̗l�Ɏw�肵�܂��B
    �y���[�U�[���z
    root
    �y�p�X���[�h�z
    root�̃p�X���[�h
  5. �F�؂���������ƁA�v�����^���o�^���ꂽ���Ƃ��\������܂��B
  6. �v�����^�I�v�V�������\�������̂ŁA�K���l��I�т܂��B�i�f�t�H���g�ō\���܂���j�B
  7. �ݒ���e�̊m�F�ƈ���e�X�g
    �w�v�����^�x���N���b�N����ƁA���L��ʂ��\������܂��B�ݒ���e���m�F���Ă��������B

    ����ʓ��́w�e�X�g�y�[�W�̈���x�{�^�����N���b�N����ƃT�[�o���v�����^�̎������s���܂��B�܂��A������ň���ł��邩�m�F���Ă����܂��傤

�� Ver 1.4�ȏ�( 1.4 <= Ver )�̏ꍇ

  1. �N���C�A���g���[https://�T�[�o�̃A�h���X:631/]�ŃA�N�Z�X���ĉ��L�̗l�ȉ�ʂ��\������܂��B
  2. �w�Ǘ��x�^�u���N���b�N���܂��B
  3. �w�v�����^�[�x�́u�v�����^�[�̒lj��v�{�^�����N���b�N����ƁA�T�[�o�ɐڑ�����Ă���v�����^�������I�ɕ\������Ă��܂��B
    �r���ŔF�؉�ʂ��\������܂��̂ŁA���[�U�Ɂuroot�v�p�X���[�h�́uroot�̃p�X���[�h�v�����܂��B

    �ȍ~�̑���́wVer 1.2 ����� 1.3( 1.2 <= Ver <= 1.3)�̏ꍇ�x�Ƃقړ��l�ł��B��ʂɏ]���Đݒ�����������ĉ������B

�� �N���C�A���g����̈���ݒ�

  1. �N���C�A���g(Windows)���y�X�^�[�g�z���y�R���g���[���p�l���z���y�v�����^��FAX�z���y�v�����^�̒lj��z��I�����܂��B
    �\�����ꂽ�u�v�����^�̒lj��E�B�U�[�h�v�Łu���ցv���N���b�N���܂��B
  2. �u�l�b�g���[�N�v�����^�A�܂��͂ق��̃R���s���[�^�ɐڑ�����Ă���v�����^�v��I�����u���ցv���N���b�N���܂��B
  3. �u�C���^�[�l�b�g��܂��͎���/��Ђ̃l�b�g���[�N��̃v�����^�ɐڑ�����v��I�����A
    ���̓{�b�N�X�ɂ́uhttp://�T�[�o�̃A�h���X:631/printers/PX-G900�v���A�u���ցv���N���b�N���܂��B
    (���F631��cups���g�p����|�[�g�ԍ��ł��B�܂��Ō��PX-G900����L�Őݒ肵���v�����^����Name:�œ��͂����l���w�肵�܂��B)
  4. �v�����^�̒lj��E�B�U�[�h��ʂ��\�������̂œK�؂ȃv�����^�h���C�o���N���C�A���g(Windows)�ɃC���X�g�[�����܂��B
  5. �v�����^�h���C�o���C���X�g�[������A�ȉ��̉�ʂ��\�������΃N���C�A���g�̐ݒ�͊����ł��B
  6. �N���C�A���g(Windows)����A�K���ȃh�L�������g����������A����ł��邱�Ƃ��m�F���Ă��������B

�� �R���e���c�֘A

�� ���̑�

�y�[�W�擪��

Copyright(©)2004-2018 First home server construction. All Right Reserved.