Cent_CUPS
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#contents()
*** CPUS パッケージの確認 [#mf42d353]
- Cent OS インストール時に CPUS 関係のプログラムが初期導...
[root@spirit ~]# yum list cups
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Installed Packages
cups.i386 1:1.1.22-0.rc1....
*** &ref(cupsd.conf,center,環境設定ファイル); (/etc/cpus/...
- ローカルネット内からの設定、プリンター利用の許可
(snip)
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.0/24 <---- ローカルネットを指定
(snip)
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.0/24 <---- ローカルネットを指定
(snip)
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
Listen 127.0.0.1:631
Listen 192.168.1.22:631 <------ プリントサーバーの IP...
*** &ref(mime.types,center,環境設定ファイル); (/etc/cpus/...
- RAW Printer の有効化 (Windows 側のドライバーで Binary ...
- 下記の部分の先頭のコメントを削除して octed-stream (無...
application/octet-stream
*** &ref(mime.convs,center,環境設定ファイル); (/etc/cpus/...
- RAW Printer の有効化 (Windows 側のドライバーで Binary ...
- 下記の部分の先頭のコメントを削除して octed-stream (無...
pplication/octet-stream application/vnd.cups-raw 0 -
*** CUPS の起動設定 [#g490b8ea]
- service で CUPS を機動する
[root@spirit ~]# service cups start
cups を起動中: ...
- システム起動時に CUPS が自動起動するように設定する
[root@spirit ~]# chkconfig cups on
[root@spirit ~]# chkconfig --list cups
cups 0:off 1:off 2:on 3:on 4:on ...
*** Printer の接続 (自動認識) [#eb5e19ee]
- CUPS が機動された状態で USB で HP Deskjet 895cxi を接続...
- kundz が自動検出してドライバーのインストールとローカル...
*** CUPS 環境設定 [#h2cca211]
- Browser から [[環境設定プログラム >http://spirit.hmuna....
&ref(win_pri_0.JPG);
~~
- [Do Administration Tasks] を選択し、サーバーの root ユ...
&ref(win_pri_02.JPG);
~~
- [Add Printer] を選択して Printer を追加する~
&ref(win_pri_03.jpg);
~~
- ネットワークから利用するプリンターを設定する~
&ref(win_pri_04.JPG);
-- Name = プリンター識別名(重要)
-- Location = 任意 (サーバーの場所が判る内容)
-- Description = 任意 (プリンターの説明)
~
- Printer の定義を確認
- CENT OS が自動認識したプリンターもリストアップされてい...
&ref(win_pri_01.JPG);
*** Windows 側の設定 [#kc1f72ee]
- [コントロールパネル] → [プリンターその他のハードウエ...
&ref(win_pri_1.JPG);
~~
- 3番目のネットワークプリンターを選択~
&ref(win_pri_2.JPG);
~~
- ネットワークアドレスに &color(red){http://spirit.hmuna....
- 最後の 895cxi は上記の CPUS の Printer 追加時に RAW Pri...
&ref(win_pri_3.JPG);
~~
- Windows のプリンタードライバーをインストールする~
&ref(win_pri_4.JPG);
~~
*** Redhat EL4 (= Cent 4.x)固有の環境自動設定について ←...
- プリンター情報の設定方法 ( [[Redhat EL4 System Administ...
When the printer configuration is saved using the Printer...
its own configuration file that is used to create the fil...
You can use the command line options to save or restore t...
&color(red){If the /etc/cups/ directory is saved and rest...
is not restored because each time the printer daemon is r...
file from the Printer Configuration Tool configuration fi...
configuration files, use the following method to save the...
To save your printer configuration, type this command as ...
/usr/sbin/system-config-printer-tui --Xexport > settings...
Your configuration is saved to the file settings.xml.~
If this file is saved, it can be used to restore the prin...
if the printer configuration is deleted, if Red Hat Enter...
or if the same printer configuration is needed on multipl...
The file should be saved on a different system before rei...
To restore the configuration, type this command as root:
/usr/sbin/system-config-printer-tui --Ximport < settings...
- 変更前の /etc/cups
[root@spirit cups]# ls -tl
合計 136
drwx--x--x 2 root sys 4096 6月 22 22:25 certs
-rw-r--r-- 1 root root 5924 6月 22 21:57 mime.types
-rw-r----- 1 root sys 22280 6月 22 21:56 cupsd.conf
-rw-r--r-- 1 root root 112 6月 22 21:56 lpoptions
drwxr-xr-x 2 root sys 4096 6月 22 21:56 ppd
-rw-r----- 1 root sys 592 6月 22 21:56 printers.conf
-rw-r--r-- 1 root root 5924 6月 22 21:56 mime.types_m...
-rw-r--r-- 1 root root 22280 5月 23 16:20 cupsd.conf.s...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
- system-config-printer-tui の実行 (とりあえず /etc/cu...
[root@spirit cups]# /usr/sbin/system-config-printer-tui ...
- 確かに settings.xml は出来た.....が、 raw printer の設...
[root@spirit cups]# ls -tl
合計 140
-rw-r--r-- 1 root root 2872 6月 22 22:38 settings.xml
drwx--x--x 2 root sys 4096 6月 22 22:35 certs
-rw-r--r-- 1 root root 5924 6月 22 21:57 mime.types
-rw-r----- 1 root sys 22280 6月 22 21:56 cupsd.conf
( snip )
- 再起動してみたが、予想通り raw printer の設定は無効にな...
*** Redhat 版の cups の削除 [#udfdfbcf]
- 既存の Redhat 版 cups の uninstall ( yum remove )
[root@spirit cups-1.3svn-r5675]# yum remove cups
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package cups.i386 1:1.1.22-0.rc1.9.10 set to be era...
--> Running transaction check
Setting up repositories
update 100% |========================...
addons 100% |========================...
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Excluding Packages in global exclude list
Finished
--> Processing Dependency: cups for package: libgnomecups
--> Processing Dependency: /usr/bin/lp for package: redh...
--> Processing Dependency: cups for package: desktop-pri...
--> Processing Dependency: /usr/bin/lpr for package: red...
--> Processing Dependency: cups for package: hal-cups-ut...
--> Processing Dependency: cups >= 1.1.17-4 for package:...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package system-config-printer.i386 0:0.6.116.5-1 se...
---> Package libgnomecups.i386 0:0.1.12-5 set to be erased
---> Package hal-cups-utils.i386 0:0.5.2-8 set to be era...
---> Package redhat-lsb.i386 0:3.0-8.EL set to be erased
---> Package desktop-printing.i386 0:0.17-3.EL.1 set to ...
--> Running transaction check
--> Processing Dependency: libgnomecups-1.0.so.1 for pac...
--> Processing Dependency: libgnomecups >= 0.1.11-2 for ...
--> Processing Dependency: system-config-printer = 0.6.1...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomeprint22.i386 0:2.8.0-3 set to be er...
---> Package system-config-printer-gui.i386 0:0.6.116.5-...
--> Running transaction check
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 >= 2.7.1 for ...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 for package: ...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 >= 2.8.0 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package gtksourceview.i386 0:1.1.0-4 set to be erased
---> Package librsvg2.i386 0:2.8.1-1.el4.1 set to be era...
---> Package libgnomeprintui22.i386 0:2.8.0-1 set to be ...
---> Package libgal2.i386 2:2.2.3-10 set to be erased
---> Package gtkhtml3.i386 0:3.3.2-6.EL set to be erased
---> Package gthumb.i386 0:2.4.2-7 set to be erased
---> Package gpdf.i386 0:2.8.2-7.4 set to be erased
---> Package gedit.i386 1:2.8.1-4 set to be erased
--> Running transaction check
--> Processing Dependency: librsvg-2.so.2 for package: gdm
--> Processing Dependency: librsvg2 = 2.8.1-1.el4.1 for ...
--> Processing Dependency: librsvg2 >= 0:2.0.1 for packa...
--> Processing Dependency: gthumb for package: gnome-vol...
--> Processing Dependency: librsvg2 >= 2.0.1 for package...
--> Processing Dependency: librsvg-2.so.2 for package: n...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package librsvg2-devel.i386 0:2.8.1-1.el4.1 set to ...
---> Package gdm.i386 1:2.6.0.5-7.rhel4.12 set to be era...
---> Package eel2.i386 0:2.8.1-2 set to be erased
---> Package nautilus.i386 0:2.8.1-4 set to be erased
---> Package gnome-volume-manager.i386 0:1.1.0-5 set to ...
--> Running transaction check
--> Processing Dependency: libnautilus.so.2 for package:...
--> Processing Dependency: libnautilus-extension.so.1 fo...
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: gnome-volume-manager for pack...
--> Processing Dependency: librsvg2-devel >= 2.0.1 for p...
--> Processing Dependency: libeel-2.so.2 for package: co...
--> Processing Dependency: libeel-2.so.2 for package: eog
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: eel2 = 2.8.1 for package: eel...
--> Processing Dependency: libnautilus.so.2 for package:...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package control-center.i386 1:2.8.0-12.rhel4.2 set ...
---> Package gnome-session.i386 0:2.8.0-5.centos4 set to...
---> Package nautilus-media.i386 0:0.8.1-3 set to be era...
---> Package eel2-devel.i386 0:2.8.1-2 set to be erased
---> Package eog.i386 0:2.8.1-2 set to be erased
---> Package nautilus-cd-burner.i386 0:2.8.3-6 set to be...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Removing:
cups i386 1:1.1.22-0.rc1.9.10 ...
Removing for dependencies:
control-center i386 1:2.8.0-12.rhel4.2 ...
desktop-printing i386 0.17-3.EL.1 ins...
eel2 i386 2.8.1-2 ins...
eel2-devel i386 2.8.1-2 ins...
eog i386 2.8.1-2 ins...
gdm i386 1:2.6.0.5-7.rhel4.12...
gedit i386 1:2.8.1-4 ins...
gnome-session i386 2.8.0-5.centos4 ins...
gnome-volume-manager i386 1.1.0-5 ins...
gpdf i386 2.8.2-7.4 ins...
gthumb i386 2.4.2-7 ins...
gtkhtml3 i386 3.3.2-6.EL ins...
gtksourceview i386 1.1.0-4 ins...
hal-cups-utils i386 0.5.2-8 ins...
libgal2 i386 2:2.2.3-10 ins...
libgnomecups i386 0.1.12-5 ins...
libgnomeprint22 i386 2.8.0-3 ins...
libgnomeprintui22 i386 2.8.0-1 ins...
librsvg2 i386 2.8.1-1.el4.1 ins...
librsvg2-devel i386 2.8.1-1.el4.1 ins...
nautilus i386 2.8.1-4 ins...
nautilus-cd-burner i386 2.8.3-6 ins...
nautilus-media i386 0.8.1-3 ins...
redhat-lsb i386 3.0-8.EL ins...
system-config-printer i386 0.6.116.5-1 ins...
system-config-printer-gui i386 0.6.116.5-1 ...
Transaction Summary
========================================================...
Install 0 Package(s)
Update 0 Package(s)
Remove 27 Package(s)
Total download size: 0
Is this ok [y/N]:
- 印刷が出来なくても使いたいもの (gedit など)が削除され...
このまま実行するのは悩ましいが、とりあえずこの画面が残...
- えぃ! 一端削除してみよう
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Removing : libgnomecups #############...
Removing : gdm #############...
warning: /etc/alchemist/namespace/printconf/local.adl sa...
Removing : system-config-printer #############...
Removing : librsvg2-devel #############...
Removing : nautilus #############...
Removing : gthumb #############...
Removing : gtksourceview #############...
Removing : eel2 #############...
Removing : control-center #############...
Removing : gpdf #############...
Removing : gnome-session #############...
Removing : hal-cups-utils #############...
Removing : libgnomeprintui22 #############...
Removing : libgnomeprint22 #############...
Removing : nautilus-media #############...
Removing : eel2-devel #############...
Removing : gtkhtml3 #############...
Removing : libgal2 #############...
Removing : eog #############...
Removing : librsvg2 #############...
warning: /etc/xinetd.d/cups-lpd saved as /etc/xinetd.d/c...
Removing : cups #############...
Removing : gedit #############...
Removing : system-config-printer-gui #############...
Removing : redhat-lsb #############...
Removing : gnome-volume-manager #############...
Removing : nautilus-cd-burner #############...
Removing : desktop-printing #############...
Removed: cups.i386 1:1.1.22-0.rc1.9.10
Dependency Removed: control-center.i386 1:2.8.0-12.rhel4...
eel2.i386 0:2.8.1-2eel2-devel.i386 0:2.8.1-2 eog.i386 0:...
gedit.i386 1:2.8.1-4 gnome-session.i386 0:2.8.0-5.centos...
gpdf.i386 0:2.8.2-7.4 gthumb.i386 0:2.4.2-7 gtkhtml3.i38...
hal-cups-utils.i386 0:0.5.2-8 libgal2.i386 2:2.2.3-10 li...
libgnomeprint22.i386 0:2.8.0-3 libgnomeprintui22.i386 0:...
librsvg2-devel.i386 0:2.8.1-1.el4.1 nautilus.i386 0:2.8....
nautilus-media.i386 0:0.8.1-3 redhat-lsb.i386 0:3.0-8.EL...
system-config-printer-gui.i386 0:0.6.116.5-1
Complete!
- 恐れをなして nautilus は再インストール
-&color(red){しかし、ここで cups が必須といわれると何をや...
[root@spirit cups-1.3svn-r5675]# yum install nautilus
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package nautilus.i386 0:2.8.1-4 set to be updated
--> Running transaction check
--> Processing Dependency: eog >= 1.0.0 for package: nau...
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: librsvg-2.so.2 for package: n...
--> Processing Dependency: eel2 >= 2.7.92 for package: n...
--> Processing Dependency: nautilus-cd-burner for packag...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package librsvg2.i386 0:2.8.1-1.el4.1 set to be upd...
---> Package eog.i386 0:2.8.1-2 set to be updated
---> Package nautilus-cd-burner.i386 0:2.8.3-6 set to be...
---> Package eel2.i386 0:2.8.1-2 set to be updated
--> Running transaction check
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprintui-2-2.so.0 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomeprint22.i386 0:2.8.0-3 set to be up...
---> Package libgnomeprintui22.i386 0:2.8.0-1 set to be ...
--> Running transaction check
--> Processing Dependency: libgnomecups-1.0.so.1 for pac...
--> Processing Dependency: libgnomecups >= 0.1.11-2 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomecups.i386 0:0.1.12-5 set to be upda...
--> Running transaction check
--> Processing Dependency: cups for package: libgnomecups
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package cups.i386 1:1.1.22-0.rc1.9.10 set to be upd...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Installing:
nautilus i386 2.8.1-4 bas...
Installing for dependencies:
cups i386 1:1.1.22-0.rc1.9.10 ...
eel2 i386 2.8.1-2 bas...
eog i386 2.8.1-2 bas...
libgnomecups i386 0.1.12-5 bas...
libgnomeprint22 i386 2.8.0-3 bas...
libgnomeprintui22 i386 2.8.0-1 bas...
librsvg2 i386 2.8.1-1.el4.1 bas...
nautilus-cd-burner i386 2.8.3-6 bas...
Transaction Summary
========================================================...
Install 9 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 7.5 M
Is this ok [y/N]:
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: cups #############...
Installing: libgnomecups #############...
Installing: libgnomeprint22 #############...
Installing: libgnomeprintui22 #############...
Installing: librsvg2 #############...
Installing: eel2 #############...
Installing: eog #############...
Installing: nautilus-cd-burner #############...
Installing: nautilus #############...
Installed: nautilus.i386 0:2.8.1-4
Dependency Installed: cups.i386 1:1.1.22-0.rc1.9.10 eel2...
libgnomecups.i386 0:0.1.12-5 libgnomeprint22.i386 0:2.8...
librsvg2.i386 0:2.8.1-1.el4.1 nautilus-cd-burner.i386 0:...
Complete!
- gedit もインストールしておこう
[root@spirit cups-1.3svn-r5675]# yum install gedit
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package gedit.i386 1:2.8.1-4 set to be updated
--> Running transaction check
--> Processing Dependency: gtksourceview >= 1.1 for pack...
--> Processing Dependency: libgtksourceview-1.0.so.0 for...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package gtksourceview.i386 0:1.1.0-4 set to be upda...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Installing:
gedit i386 1:2.8.1-4 bas...
Installing for dependencies:
gtksourceview i386 1.1.0-4 bas...
Transaction Summary
========================================================...
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: gtksourceview #############...
Installing: gedit #############...
Installed: gedit.i386 1:2.8.1-4
Dependency Installed: gtksourceview.i386 0:1.1.0-4
Complete!
*** 最新版の cups を ソースから ビルド [#fce14a35]
[root@spirit Downloads]# ls -l cups-1.3svn-r5675-source....
-rw-r--r-- 1 root root 4026753 6月 22 23:08 cups-1.3sv...
[root@spirit Downloads]# tar xzvf cups-1.3svn-r5675-sour...
[root@spirit Downloads]# cd cups-1.3svn-r5675
[root@spirit cups-1.3svn-r5675]# ./configure
[root@spirit cups-1.3svn-r5675]# make
[root@spirit cups-1.3svn-r5675]# make install
Installing in cups...
Installing in backend...
Installing in berkeley...
Installing in cgi-bin...
Installing in filter...
Installing in locale...
Installing in man...
Converting man pages to HTML...
cancel.1.gz...
cups-config.1.gz...
cupstestdsc.1.gz...
cupstestppd.1.gz...
lp.1.gz...
lpoptions.1.gz...
lppasswd.1.gz...
lpq.1.gz...
lprm.1.gz...
lpr.1.gz...
lpstat.1.gz...
classes.conf.5.gz...
client.conf.5.gz...
cups-snmp.conf.5.gz...
cupsd.conf.5.gz...
mime.convs.5.gz...
mime.types.5.gz...
printers.conf.5.gz...
subscriptions.conf.5.gz...
backend.7.gz...
filter.7.gz...
accept.8.gz...
cupsaddsmb.8.gz...
cups-deviced.8.gz...
cups-driverd.8.gz...
cups-lpd.8.gz...
cups-polld.8.gz...
cupsd.8.gz...
cupsenable.8.gz...
lpadmin.8.gz...
lpinfo.8.gz...
lpmove.8.gz...
lpc.8.gz...
Installing cancel.1.gz in /usr/share/man/man1...
Installing cups-config.1.gz in /usr/share/man/man1...
Installing cupstestdsc.1.gz in /usr/share/man/man1...
Installing cupstestppd.1.gz in /usr/share/man/man1...
Installing lp.1.gz in /usr/share/man/man1...
Installing lpoptions.1.gz in /usr/share/man/man1...
Installing lppasswd.1.gz in /usr/share/man/man1...
Installing lpq.1.gz in /usr/share/man/man1...
Installing lprm.1.gz in /usr/share/man/man1...
Installing lpr.1.gz in /usr/share/man/man1...
Installing lpstat.1.gz in /usr/share/man/man1...
Installing classes.conf.5.gz in /usr/share/man/man5...
Installing client.conf.5.gz in /usr/share/man/man5...
Installing cups-snmp.conf.5.gz in /usr/share/man/man5...
Installing cupsd.conf.5.gz in /usr/share/man/man5...
Installing mime.convs.5.gz in /usr/share/man/man5...
Installing mime.types.5.gz in /usr/share/man/man5...
Installing printers.conf.5.gz in /usr/share/man/man5...
Installing subscriptions.conf.5.gz in /usr/share/man/man...
Installing backend.7.gz in /usr/share/man/man7...
Installing filter.7.gz in /usr/share/man/man7...
Installing accept.8.gz in /usr/share/man/man8...
Installing cupsaddsmb.8.gz in /usr/share/man/man8...
Installing cups-deviced.8.gz in /usr/share/man/man8...
Installing cups-driverd.8.gz in /usr/share/man/man8...
Installing cups-lpd.8.gz in /usr/share/man/man8...
Installing cups-polld.8.gz in /usr/share/man/man8...
Installing cupsd.8.gz in /usr/share/man/man8...
Installing cupsenable.8.gz in /usr/share/man/man8...
Installing lpadmin.8.gz in /usr/share/man/man8...
Installing lpinfo.8.gz in /usr/share/man/man8...
Installing lpmove.8.gz in /usr/share/man/man8...
Installing lpc.8.gz in /usr/share/man/man8...
Installing in monitor...
Installing in notifier...
Installing in pdftops...
Installing in scheduler...
Creating /usr/sbin...
Installing cupsd in /usr/sbin...
Creating /usr/lib/cups...
Creating /usr/lib/cups/daemon...
Installing cups-deviced, cups-driverd, cups-lpd, and cup...
Creating /usr/lib/cups/driver...
Creating /etc/cups...
Creating /etc/cups/interfaces...
Creating /etc/cups/ppd...
Creating /var/run/cups...
Creating /var/run/cups/certs...
Creating /var/log/cups...
Creating /var/spool/cups...
Creating /var/spool/cups/tmp...
Creating /var/cache/cups...
Installing in systemv...
Installing in test...
Installing in conf...
Installing in data...
Installing in doc...
Installing in fonts...
Installing in ppd...
Installing in templates...
Installing cups-config script...
Installing init scripts...
Installing xinetd configuration file for cups-lpd...
Installing desktop icons...
*** X 起動しない対策 [#b85def74]
- yum による大胆なプログラム削除の副作用で X 起動しなくな...
- コンソール起動できないが、リモートでのログインはできた
- 上の削除情報をもとに yum でパッケージを追加していった
- 以下のパッケージリストで
-- * 印は nautilus、gedit のインストールで入っていたもの ...
-- □■ 印は追加でいれたもの ・・・・ ここまで入れたら正常...
LEFT:
|□| control-center i386 1:2.8.0-12.rhel4.2...
| |desktop-printing i386 0.17-3.EL.1 in...
|*| eel2 i386 2.8.1-2 i...
|■| eel2-devel i386 2.8.1-2 i...
|*| eog i386 2.8.1-2 i...
|■| gdm i386 1:2.6.0.5-7.rhel4....
|*| gedit i386 1:2.8.1-4 i...
|□| gnome-session i386 2.8.0-5.centos4 i...
|□| gnome-volume-manager i386 1.1.0-5 i...
|| gpdf i386 2.8.2-7.4 in...
|□| gthumb i386 2.4.2-7 i...
|| gtkhtml3 i386 3.3.2-6.EL in...
|*| gtksourceview i386 1.1.0-4 i...
|| hal-cups-utils i386 0.5.2-8 in...
|■| libgal2 i386 2:2.2.3-10 i...
|*| libgnomecups i386 0.1.12-5 i...
|*| libgnomeprint22 i386 2.8.0-3 i...
|*| libgnomeprintui22 i386 2.8.0-1 i...
|*| librsvg2 i386 2.8.1-1.el4.1 i...
|■| librsvg2-devel i386 2.8.1-1.el4.1 i...
|*| nautilus i386 2.8.1-4 i...
|*| nautilus-cd-burner i386 2.8.3-6 i...
|| nautilus-media i386 0.8.1-3 in...
|| redhat-lsb i386 3.0-8.EL in...
|| system-config-printer i386 0.6.116.5-1 in...
|| system-config-printer-gui i386 0.6.116.5-1 ...
*** 関連ファイルの再設定 [#s24206bc]
+ /etc/cups/cupsd.conf
+ /etc/cups/mime.convs
+ /etc/cups/mime.types
&color(red){CUPS を入れ替えた結果(余計なプログラムが介入...
*** 傷害解析 [#e0797efc]
- Windows からの印刷が出来なくなった
-- http://spirit.hmuna.com:631 へのアクセスが出来なくなっ...
-- 上記サイトへのアクセスはサーバーからも出来なくなっている
-- サーバーから 127.0.0.1:631 へのアクセスは出来る (CUPS...
-- 上記サイトでプリンターを確認すると /usb/lp0 として3番...
追加されている
ー- &color(red){[原因]/etc/cups/cupsd.conf が自動編集さ...
-- &color(red){[対策]/etc/cups/cupsd.conf にアクセス許...
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
Listen 127.0.0.1:631
Listen 192.168.1.22:631
- その後色々やったが、最終的に cupsd.conf には
-- /etc/cups/cupsd.conf の最後の部分の編集はしない
-- <Location /> に Allow From @LOCAL を追加
-- <Location /admin> にも同様に Allow From @LOCAL を追加
-- @LOCAL は
# The @LOCAL address broadcasts to all non point-to-poin...
# For example, if you have a LAN and a dial-up link, @LO...
# send printer updates to the LAN but not to the dial-up...
----
- さらに検証した結果
-- 192.168.1.22:631 のアクセス問題は上記の @LOCAL 設定で...
-- &color(red){サーバー再起動時に /etc/cups/mime.type が...
-- この結果、再起動で windows からのプリントが出来なくな...
-- cups-config-daemon を無効にしてもこの問題は解決しなか...
[root@spirit ~]# ls -tl /etc/cups/
合計 120
-rw-r--r-- 1 root root 112 5月 22 08:51 lpoptions
-rw-r----- 1 root sys 22280 5月 22 08:51 cupsd.conf
-rw-r--r-- 1 root root 5926 5月 22 08:51 mime.types
drwxr-xr-x 2 root sys 4096 5月 22 08:51 ppd
-rw-r----- 1 root sys 538 5月 22 08:51 printers.conf
drwx--x--x 2 root sys 4096 5月 22 08:50 certs
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
- 上記の 上から5つのファイルはサーバー起動時に生成されて...
- chmod で書き込み禁止にしてもワーニングもでないので、誰...
- 同じ問題 → http://www.linuxprinting.org/pipermail/gene...
-- 起動ログの解析で終わっていて解決に至っていない ・・・...
//- 当面の打開策として、rc.local でパッチを当てて自動修正...
//-- パッチの作成
//
// [root@spirit cups]# diff mime.types_auto mime.types > ...
// [root@spirit cups]# cat mime.types_patch
// 158c158
// < # application/octet-stream
// ---
// > application/octet-stream
//-- パッチの適用 ( /etc/rc.local へ追加 )
//
// # Patch /etc/cups/mime.types to enable raw-printer
// echo "Patch to /etc/cups/mime.types"
// cd /etc/cups
// patch < mime.types_patch
// cd
- rc.local で mime.types を書き戻す処理(下記)を入れてみ...
# recover etc/cups/mime.types
echo "resumeautoupdated /etc/cups/mime.types"
cp /etc/cups/mime.types /etc/cups/mime.types_munabackup
cp /etc/cups/mime.types_muna /etc/cups/mime.types
- &color(red){rc.local でファイルを書き戻した後で mime.ty...
- %% &color(black){gnome の起動時に上書きされてしまうよう...
- サーバー側でログインプロンプトが出た時点で別端末からテ...
- &color(red){X は立ち上がっているが、gnome は立ち上がっ...
[root@spirit cups]# ls -l [ ファイル名順 ]
合計 136
drwx--x--x 2 root sys 4096 5月 23 08:14 certs
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
-rw-r----- 1 root sys 22280 5月 23 08:15 cupsd.conf
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
-rw-r--r-- 1 root root 112 5月 23 08:15 lpoptions
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 5926 5月 23 08:15 mime.types
-rw-r--r-- 1 root root 5926 5月 23 00:14 mime.types_a...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
drwxr-xr-x 2 root sys 4096 5月 23 08:15 ppd
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r----- 1 root sys 538 5月 23 08:15 printers.conf
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
[root@spirit cups]# ls -lt [ ファイル更新時間順 ]
合計 136
drwx--x--x 2 root sys 4096 5月 23 08:19 certs --...
-rw-r--r-- 1 root root 112 5月 23 08:15 lpoptions ...
-rw-r----- 1 root sys 22280 5月 23 08:15 cupsd.conf ...
-rw-r--r-- 1 root root 5926 5月 23 08:15 mime.types ...
drwxr-xr-x 2 root sys 4096 5月 23 08:15 ppd ...
-rw-r----- 1 root sys 538 5月 23 08:15 printers.con...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
-rw-r--r-- 1 root root 5926 5月 23 00:14 mime.types_a...
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
[root@spirit cups]#
----
- /etc/cups/mime.types のパーミションを 444 (= root の書...
[root@spirit ~]# ls -l /etc/cups/mime.types
-rw-r--r-- 1 root root 5924 6月 22 21:14 /etc/cups/mim...
[root@spirit ~]# chmod 444 /etc/cups/mime.types
[root@spirit ~]# ls -l /etc/cups/mime.types
-r--r--r-- 1 root root 5924 6月 22 21:14 /etc/cups/mim...
- &color(red){効き目なし、ファイルが上書きされてしまった};
[root@spirit ~]# ls -l /etc/cups/mime.types
-rw-r--r-- 1 root root 5926 6月 22 21:24 /etc/cups/mim...
----
- &color(red){ガーン、[[7.8. Red Hat Enterprise Linux 固...
重要
/etc/printcap ファイル、または/etc/cups/ ディレクトリ内...
プリンタデーモン (cups) が起動/再起動する度に、新しい設...
このファイルは プリンタ設定ツール に変更が適用された時に...
- [[Red Hat Enterprise Linux システム管理ガイド(英文):h...
----
- fuser (ファイルをオープンしているプロセスを調べるコマン...
fuser -a /etc/cups/mime.types
- ファイルオープンの瞬間に情報を表示したい場合、カーネル...
linux/fs/open.c: sys_open()で
if (!strcmp(filename, "/etc/cups/mime.types"))
printk("mime.types ACCESSED!! PID: %d\n", current->p...
----
- GUI の [アプリケーション]−[システム設定]−[印刷]で
-- [操作(A)]−[共有]−[全般] で "LPD プロトコルを有効...
-- [操作(A)]−[共有]−[プリンタ]で"このプリンタは他の...
- GUI の [アプリケーション]−[セキュリティレベルの設定...
-- 他のポートに 515:tcp, 515:udp を追加する
- /etc/xinetd.d/cups-lpd があるか確認
# default: off
# description: Allow applications using the legacy lpd p...
service printer
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
}
*** 参考URL [#qe82e2dc]
- [[はじめての自宅サーバー構築(Print Server 編) >http:/...
- [[Cent OS>http://yap.nucl.ap.titech.ac.jp/~shimada/ja/C...
終了行:
#contents()
*** CPUS パッケージの確認 [#mf42d353]
- Cent OS インストール時に CPUS 関係のプログラムが初期導...
[root@spirit ~]# yum list cups
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Installed Packages
cups.i386 1:1.1.22-0.rc1....
*** &ref(cupsd.conf,center,環境設定ファイル); (/etc/cpus/...
- ローカルネット内からの設定、プリンター利用の許可
(snip)
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.0/24 <---- ローカルネットを指定
(snip)
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.0/24 <---- ローカルネットを指定
(snip)
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
Listen 127.0.0.1:631
Listen 192.168.1.22:631 <------ プリントサーバーの IP...
*** &ref(mime.types,center,環境設定ファイル); (/etc/cpus/...
- RAW Printer の有効化 (Windows 側のドライバーで Binary ...
- 下記の部分の先頭のコメントを削除して octed-stream (無...
application/octet-stream
*** &ref(mime.convs,center,環境設定ファイル); (/etc/cpus/...
- RAW Printer の有効化 (Windows 側のドライバーで Binary ...
- 下記の部分の先頭のコメントを削除して octed-stream (無...
pplication/octet-stream application/vnd.cups-raw 0 -
*** CUPS の起動設定 [#g490b8ea]
- service で CUPS を機動する
[root@spirit ~]# service cups start
cups を起動中: ...
- システム起動時に CUPS が自動起動するように設定する
[root@spirit ~]# chkconfig cups on
[root@spirit ~]# chkconfig --list cups
cups 0:off 1:off 2:on 3:on 4:on ...
*** Printer の接続 (自動認識) [#eb5e19ee]
- CUPS が機動された状態で USB で HP Deskjet 895cxi を接続...
- kundz が自動検出してドライバーのインストールとローカル...
*** CUPS 環境設定 [#h2cca211]
- Browser から [[環境設定プログラム >http://spirit.hmuna....
&ref(win_pri_0.JPG);
~~
- [Do Administration Tasks] を選択し、サーバーの root ユ...
&ref(win_pri_02.JPG);
~~
- [Add Printer] を選択して Printer を追加する~
&ref(win_pri_03.jpg);
~~
- ネットワークから利用するプリンターを設定する~
&ref(win_pri_04.JPG);
-- Name = プリンター識別名(重要)
-- Location = 任意 (サーバーの場所が判る内容)
-- Description = 任意 (プリンターの説明)
~
- Printer の定義を確認
- CENT OS が自動認識したプリンターもリストアップされてい...
&ref(win_pri_01.JPG);
*** Windows 側の設定 [#kc1f72ee]
- [コントロールパネル] → [プリンターその他のハードウエ...
&ref(win_pri_1.JPG);
~~
- 3番目のネットワークプリンターを選択~
&ref(win_pri_2.JPG);
~~
- ネットワークアドレスに &color(red){http://spirit.hmuna....
- 最後の 895cxi は上記の CPUS の Printer 追加時に RAW Pri...
&ref(win_pri_3.JPG);
~~
- Windows のプリンタードライバーをインストールする~
&ref(win_pri_4.JPG);
~~
*** Redhat EL4 (= Cent 4.x)固有の環境自動設定について ←...
- プリンター情報の設定方法 ( [[Redhat EL4 System Administ...
When the printer configuration is saved using the Printer...
its own configuration file that is used to create the fil...
You can use the command line options to save or restore t...
&color(red){If the /etc/cups/ directory is saved and rest...
is not restored because each time the printer daemon is r...
file from the Printer Configuration Tool configuration fi...
configuration files, use the following method to save the...
To save your printer configuration, type this command as ...
/usr/sbin/system-config-printer-tui --Xexport > settings...
Your configuration is saved to the file settings.xml.~
If this file is saved, it can be used to restore the prin...
if the printer configuration is deleted, if Red Hat Enter...
or if the same printer configuration is needed on multipl...
The file should be saved on a different system before rei...
To restore the configuration, type this command as root:
/usr/sbin/system-config-printer-tui --Ximport < settings...
- 変更前の /etc/cups
[root@spirit cups]# ls -tl
合計 136
drwx--x--x 2 root sys 4096 6月 22 22:25 certs
-rw-r--r-- 1 root root 5924 6月 22 21:57 mime.types
-rw-r----- 1 root sys 22280 6月 22 21:56 cupsd.conf
-rw-r--r-- 1 root root 112 6月 22 21:56 lpoptions
drwxr-xr-x 2 root sys 4096 6月 22 21:56 ppd
-rw-r----- 1 root sys 592 6月 22 21:56 printers.conf
-rw-r--r-- 1 root root 5924 6月 22 21:56 mime.types_m...
-rw-r--r-- 1 root root 22280 5月 23 16:20 cupsd.conf.s...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
- system-config-printer-tui の実行 (とりあえず /etc/cu...
[root@spirit cups]# /usr/sbin/system-config-printer-tui ...
- 確かに settings.xml は出来た.....が、 raw printer の設...
[root@spirit cups]# ls -tl
合計 140
-rw-r--r-- 1 root root 2872 6月 22 22:38 settings.xml
drwx--x--x 2 root sys 4096 6月 22 22:35 certs
-rw-r--r-- 1 root root 5924 6月 22 21:57 mime.types
-rw-r----- 1 root sys 22280 6月 22 21:56 cupsd.conf
( snip )
- 再起動してみたが、予想通り raw printer の設定は無効にな...
*** Redhat 版の cups の削除 [#udfdfbcf]
- 既存の Redhat 版 cups の uninstall ( yum remove )
[root@spirit cups-1.3svn-r5675]# yum remove cups
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package cups.i386 1:1.1.22-0.rc1.9.10 set to be era...
--> Running transaction check
Setting up repositories
update 100% |========================...
addons 100% |========================...
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Excluding Packages in global exclude list
Finished
--> Processing Dependency: cups for package: libgnomecups
--> Processing Dependency: /usr/bin/lp for package: redh...
--> Processing Dependency: cups for package: desktop-pri...
--> Processing Dependency: /usr/bin/lpr for package: red...
--> Processing Dependency: cups for package: hal-cups-ut...
--> Processing Dependency: cups >= 1.1.17-4 for package:...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package system-config-printer.i386 0:0.6.116.5-1 se...
---> Package libgnomecups.i386 0:0.1.12-5 set to be erased
---> Package hal-cups-utils.i386 0:0.5.2-8 set to be era...
---> Package redhat-lsb.i386 0:3.0-8.EL set to be erased
---> Package desktop-printing.i386 0:0.17-3.EL.1 set to ...
--> Running transaction check
--> Processing Dependency: libgnomecups-1.0.so.1 for pac...
--> Processing Dependency: libgnomecups >= 0.1.11-2 for ...
--> Processing Dependency: system-config-printer = 0.6.1...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomeprint22.i386 0:2.8.0-3 set to be er...
---> Package system-config-printer-gui.i386 0:0.6.116.5-...
--> Running transaction check
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 >= 2.7.1 for ...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 for package: ...
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprint22 >= 2.8.0 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package gtksourceview.i386 0:1.1.0-4 set to be erased
---> Package librsvg2.i386 0:2.8.1-1.el4.1 set to be era...
---> Package libgnomeprintui22.i386 0:2.8.0-1 set to be ...
---> Package libgal2.i386 2:2.2.3-10 set to be erased
---> Package gtkhtml3.i386 0:3.3.2-6.EL set to be erased
---> Package gthumb.i386 0:2.4.2-7 set to be erased
---> Package gpdf.i386 0:2.8.2-7.4 set to be erased
---> Package gedit.i386 1:2.8.1-4 set to be erased
--> Running transaction check
--> Processing Dependency: librsvg-2.so.2 for package: gdm
--> Processing Dependency: librsvg2 = 2.8.1-1.el4.1 for ...
--> Processing Dependency: librsvg2 >= 0:2.0.1 for packa...
--> Processing Dependency: gthumb for package: gnome-vol...
--> Processing Dependency: librsvg2 >= 2.0.1 for package...
--> Processing Dependency: librsvg-2.so.2 for package: n...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package librsvg2-devel.i386 0:2.8.1-1.el4.1 set to ...
---> Package gdm.i386 1:2.6.0.5-7.rhel4.12 set to be era...
---> Package eel2.i386 0:2.8.1-2 set to be erased
---> Package nautilus.i386 0:2.8.1-4 set to be erased
---> Package gnome-volume-manager.i386 0:1.1.0-5 set to ...
--> Running transaction check
--> Processing Dependency: libnautilus.so.2 for package:...
--> Processing Dependency: libnautilus-extension.so.1 fo...
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: gnome-volume-manager for pack...
--> Processing Dependency: librsvg2-devel >= 2.0.1 for p...
--> Processing Dependency: libeel-2.so.2 for package: co...
--> Processing Dependency: libeel-2.so.2 for package: eog
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: eel2 = 2.8.1 for package: eel...
--> Processing Dependency: libnautilus.so.2 for package:...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package control-center.i386 1:2.8.0-12.rhel4.2 set ...
---> Package gnome-session.i386 0:2.8.0-5.centos4 set to...
---> Package nautilus-media.i386 0:0.8.1-3 set to be era...
---> Package eel2-devel.i386 0:2.8.1-2 set to be erased
---> Package eog.i386 0:2.8.1-2 set to be erased
---> Package nautilus-cd-burner.i386 0:2.8.3-6 set to be...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Removing:
cups i386 1:1.1.22-0.rc1.9.10 ...
Removing for dependencies:
control-center i386 1:2.8.0-12.rhel4.2 ...
desktop-printing i386 0.17-3.EL.1 ins...
eel2 i386 2.8.1-2 ins...
eel2-devel i386 2.8.1-2 ins...
eog i386 2.8.1-2 ins...
gdm i386 1:2.6.0.5-7.rhel4.12...
gedit i386 1:2.8.1-4 ins...
gnome-session i386 2.8.0-5.centos4 ins...
gnome-volume-manager i386 1.1.0-5 ins...
gpdf i386 2.8.2-7.4 ins...
gthumb i386 2.4.2-7 ins...
gtkhtml3 i386 3.3.2-6.EL ins...
gtksourceview i386 1.1.0-4 ins...
hal-cups-utils i386 0.5.2-8 ins...
libgal2 i386 2:2.2.3-10 ins...
libgnomecups i386 0.1.12-5 ins...
libgnomeprint22 i386 2.8.0-3 ins...
libgnomeprintui22 i386 2.8.0-1 ins...
librsvg2 i386 2.8.1-1.el4.1 ins...
librsvg2-devel i386 2.8.1-1.el4.1 ins...
nautilus i386 2.8.1-4 ins...
nautilus-cd-burner i386 2.8.3-6 ins...
nautilus-media i386 0.8.1-3 ins...
redhat-lsb i386 3.0-8.EL ins...
system-config-printer i386 0.6.116.5-1 ins...
system-config-printer-gui i386 0.6.116.5-1 ...
Transaction Summary
========================================================...
Install 0 Package(s)
Update 0 Package(s)
Remove 27 Package(s)
Total download size: 0
Is this ok [y/N]:
- 印刷が出来なくても使いたいもの (gedit など)が削除され...
このまま実行するのは悩ましいが、とりあえずこの画面が残...
- えぃ! 一端削除してみよう
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Removing : libgnomecups #############...
Removing : gdm #############...
warning: /etc/alchemist/namespace/printconf/local.adl sa...
Removing : system-config-printer #############...
Removing : librsvg2-devel #############...
Removing : nautilus #############...
Removing : gthumb #############...
Removing : gtksourceview #############...
Removing : eel2 #############...
Removing : control-center #############...
Removing : gpdf #############...
Removing : gnome-session #############...
Removing : hal-cups-utils #############...
Removing : libgnomeprintui22 #############...
Removing : libgnomeprint22 #############...
Removing : nautilus-media #############...
Removing : eel2-devel #############...
Removing : gtkhtml3 #############...
Removing : libgal2 #############...
Removing : eog #############...
Removing : librsvg2 #############...
warning: /etc/xinetd.d/cups-lpd saved as /etc/xinetd.d/c...
Removing : cups #############...
Removing : gedit #############...
Removing : system-config-printer-gui #############...
Removing : redhat-lsb #############...
Removing : gnome-volume-manager #############...
Removing : nautilus-cd-burner #############...
Removing : desktop-printing #############...
Removed: cups.i386 1:1.1.22-0.rc1.9.10
Dependency Removed: control-center.i386 1:2.8.0-12.rhel4...
eel2.i386 0:2.8.1-2eel2-devel.i386 0:2.8.1-2 eog.i386 0:...
gedit.i386 1:2.8.1-4 gnome-session.i386 0:2.8.0-5.centos...
gpdf.i386 0:2.8.2-7.4 gthumb.i386 0:2.4.2-7 gtkhtml3.i38...
hal-cups-utils.i386 0:0.5.2-8 libgal2.i386 2:2.2.3-10 li...
libgnomeprint22.i386 0:2.8.0-3 libgnomeprintui22.i386 0:...
librsvg2-devel.i386 0:2.8.1-1.el4.1 nautilus.i386 0:2.8....
nautilus-media.i386 0:0.8.1-3 redhat-lsb.i386 0:3.0-8.EL...
system-config-printer-gui.i386 0:0.6.116.5-1
Complete!
- 恐れをなして nautilus は再インストール
-&color(red){しかし、ここで cups が必須といわれると何をや...
[root@spirit cups-1.3svn-r5675]# yum install nautilus
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package nautilus.i386 0:2.8.1-4 set to be updated
--> Running transaction check
--> Processing Dependency: eog >= 1.0.0 for package: nau...
--> Processing Dependency: libeel-2.so.2 for package: na...
--> Processing Dependency: librsvg-2.so.2 for package: n...
--> Processing Dependency: eel2 >= 2.7.92 for package: n...
--> Processing Dependency: nautilus-cd-burner for packag...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package librsvg2.i386 0:2.8.1-1.el4.1 set to be upd...
---> Package eog.i386 0:2.8.1-2 set to be updated
---> Package nautilus-cd-burner.i386 0:2.8.3-6 set to be...
---> Package eel2.i386 0:2.8.1-2 set to be updated
--> Running transaction check
--> Processing Dependency: libgnomeprint-2-2.so.0 for pa...
--> Processing Dependency: libgnomeprintui-2-2.so.0 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomeprint22.i386 0:2.8.0-3 set to be up...
---> Package libgnomeprintui22.i386 0:2.8.0-1 set to be ...
--> Running transaction check
--> Processing Dependency: libgnomecups-1.0.so.1 for pac...
--> Processing Dependency: libgnomecups >= 0.1.11-2 for ...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package libgnomecups.i386 0:0.1.12-5 set to be upda...
--> Running transaction check
--> Processing Dependency: cups for package: libgnomecups
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package cups.i386 1:1.1.22-0.rc1.9.10 set to be upd...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Installing:
nautilus i386 2.8.1-4 bas...
Installing for dependencies:
cups i386 1:1.1.22-0.rc1.9.10 ...
eel2 i386 2.8.1-2 bas...
eog i386 2.8.1-2 bas...
libgnomecups i386 0.1.12-5 bas...
libgnomeprint22 i386 2.8.0-3 bas...
libgnomeprintui22 i386 2.8.0-1 bas...
librsvg2 i386 2.8.1-1.el4.1 bas...
nautilus-cd-burner i386 2.8.3-6 bas...
Transaction Summary
========================================================...
Install 9 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 7.5 M
Is this ok [y/N]:
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: cups #############...
Installing: libgnomecups #############...
Installing: libgnomeprint22 #############...
Installing: libgnomeprintui22 #############...
Installing: librsvg2 #############...
Installing: eel2 #############...
Installing: eog #############...
Installing: nautilus-cd-burner #############...
Installing: nautilus #############...
Installed: nautilus.i386 0:2.8.1-4
Dependency Installed: cups.i386 1:1.1.22-0.rc1.9.10 eel2...
libgnomecups.i386 0:0.1.12-5 libgnomeprint22.i386 0:2.8...
librsvg2.i386 0:2.8.1-1.el4.1 nautilus-cd-burner.i386 0:...
Complete!
- gedit もインストールしておこう
[root@spirit cups-1.3svn-r5675]# yum install gedit
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. P...
---> Package gedit.i386 1:2.8.1-4 set to be updated
--> Running transaction check
--> Processing Dependency: gtksourceview >= 1.1 for pack...
--> Processing Dependency: libgtksourceview-1.0.so.0 for...
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. P...
---> Package gtksourceview.i386 0:1.1.0-4 set to be upda...
--> Running transaction check
Dependencies Resolved
========================================================...
Package Arch Version Rep...
========================================================...
Installing:
gedit i386 1:2.8.1-4 bas...
Installing for dependencies:
gtksourceview i386 1.1.0-4 bas...
Transaction Summary
========================================================...
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: gtksourceview #############...
Installing: gedit #############...
Installed: gedit.i386 1:2.8.1-4
Dependency Installed: gtksourceview.i386 0:1.1.0-4
Complete!
*** 最新版の cups を ソースから ビルド [#fce14a35]
[root@spirit Downloads]# ls -l cups-1.3svn-r5675-source....
-rw-r--r-- 1 root root 4026753 6月 22 23:08 cups-1.3sv...
[root@spirit Downloads]# tar xzvf cups-1.3svn-r5675-sour...
[root@spirit Downloads]# cd cups-1.3svn-r5675
[root@spirit cups-1.3svn-r5675]# ./configure
[root@spirit cups-1.3svn-r5675]# make
[root@spirit cups-1.3svn-r5675]# make install
Installing in cups...
Installing in backend...
Installing in berkeley...
Installing in cgi-bin...
Installing in filter...
Installing in locale...
Installing in man...
Converting man pages to HTML...
cancel.1.gz...
cups-config.1.gz...
cupstestdsc.1.gz...
cupstestppd.1.gz...
lp.1.gz...
lpoptions.1.gz...
lppasswd.1.gz...
lpq.1.gz...
lprm.1.gz...
lpr.1.gz...
lpstat.1.gz...
classes.conf.5.gz...
client.conf.5.gz...
cups-snmp.conf.5.gz...
cupsd.conf.5.gz...
mime.convs.5.gz...
mime.types.5.gz...
printers.conf.5.gz...
subscriptions.conf.5.gz...
backend.7.gz...
filter.7.gz...
accept.8.gz...
cupsaddsmb.8.gz...
cups-deviced.8.gz...
cups-driverd.8.gz...
cups-lpd.8.gz...
cups-polld.8.gz...
cupsd.8.gz...
cupsenable.8.gz...
lpadmin.8.gz...
lpinfo.8.gz...
lpmove.8.gz...
lpc.8.gz...
Installing cancel.1.gz in /usr/share/man/man1...
Installing cups-config.1.gz in /usr/share/man/man1...
Installing cupstestdsc.1.gz in /usr/share/man/man1...
Installing cupstestppd.1.gz in /usr/share/man/man1...
Installing lp.1.gz in /usr/share/man/man1...
Installing lpoptions.1.gz in /usr/share/man/man1...
Installing lppasswd.1.gz in /usr/share/man/man1...
Installing lpq.1.gz in /usr/share/man/man1...
Installing lprm.1.gz in /usr/share/man/man1...
Installing lpr.1.gz in /usr/share/man/man1...
Installing lpstat.1.gz in /usr/share/man/man1...
Installing classes.conf.5.gz in /usr/share/man/man5...
Installing client.conf.5.gz in /usr/share/man/man5...
Installing cups-snmp.conf.5.gz in /usr/share/man/man5...
Installing cupsd.conf.5.gz in /usr/share/man/man5...
Installing mime.convs.5.gz in /usr/share/man/man5...
Installing mime.types.5.gz in /usr/share/man/man5...
Installing printers.conf.5.gz in /usr/share/man/man5...
Installing subscriptions.conf.5.gz in /usr/share/man/man...
Installing backend.7.gz in /usr/share/man/man7...
Installing filter.7.gz in /usr/share/man/man7...
Installing accept.8.gz in /usr/share/man/man8...
Installing cupsaddsmb.8.gz in /usr/share/man/man8...
Installing cups-deviced.8.gz in /usr/share/man/man8...
Installing cups-driverd.8.gz in /usr/share/man/man8...
Installing cups-lpd.8.gz in /usr/share/man/man8...
Installing cups-polld.8.gz in /usr/share/man/man8...
Installing cupsd.8.gz in /usr/share/man/man8...
Installing cupsenable.8.gz in /usr/share/man/man8...
Installing lpadmin.8.gz in /usr/share/man/man8...
Installing lpinfo.8.gz in /usr/share/man/man8...
Installing lpmove.8.gz in /usr/share/man/man8...
Installing lpc.8.gz in /usr/share/man/man8...
Installing in monitor...
Installing in notifier...
Installing in pdftops...
Installing in scheduler...
Creating /usr/sbin...
Installing cupsd in /usr/sbin...
Creating /usr/lib/cups...
Creating /usr/lib/cups/daemon...
Installing cups-deviced, cups-driverd, cups-lpd, and cup...
Creating /usr/lib/cups/driver...
Creating /etc/cups...
Creating /etc/cups/interfaces...
Creating /etc/cups/ppd...
Creating /var/run/cups...
Creating /var/run/cups/certs...
Creating /var/log/cups...
Creating /var/spool/cups...
Creating /var/spool/cups/tmp...
Creating /var/cache/cups...
Installing in systemv...
Installing in test...
Installing in conf...
Installing in data...
Installing in doc...
Installing in fonts...
Installing in ppd...
Installing in templates...
Installing cups-config script...
Installing init scripts...
Installing xinetd configuration file for cups-lpd...
Installing desktop icons...
*** X 起動しない対策 [#b85def74]
- yum による大胆なプログラム削除の副作用で X 起動しなくな...
- コンソール起動できないが、リモートでのログインはできた
- 上の削除情報をもとに yum でパッケージを追加していった
- 以下のパッケージリストで
-- * 印は nautilus、gedit のインストールで入っていたもの ...
-- □■ 印は追加でいれたもの ・・・・ ここまで入れたら正常...
LEFT:
|□| control-center i386 1:2.8.0-12.rhel4.2...
| |desktop-printing i386 0.17-3.EL.1 in...
|*| eel2 i386 2.8.1-2 i...
|■| eel2-devel i386 2.8.1-2 i...
|*| eog i386 2.8.1-2 i...
|■| gdm i386 1:2.6.0.5-7.rhel4....
|*| gedit i386 1:2.8.1-4 i...
|□| gnome-session i386 2.8.0-5.centos4 i...
|□| gnome-volume-manager i386 1.1.0-5 i...
|| gpdf i386 2.8.2-7.4 in...
|□| gthumb i386 2.4.2-7 i...
|| gtkhtml3 i386 3.3.2-6.EL in...
|*| gtksourceview i386 1.1.0-4 i...
|| hal-cups-utils i386 0.5.2-8 in...
|■| libgal2 i386 2:2.2.3-10 i...
|*| libgnomecups i386 0.1.12-5 i...
|*| libgnomeprint22 i386 2.8.0-3 i...
|*| libgnomeprintui22 i386 2.8.0-1 i...
|*| librsvg2 i386 2.8.1-1.el4.1 i...
|■| librsvg2-devel i386 2.8.1-1.el4.1 i...
|*| nautilus i386 2.8.1-4 i...
|*| nautilus-cd-burner i386 2.8.3-6 i...
|| nautilus-media i386 0.8.1-3 in...
|| redhat-lsb i386 3.0-8.EL in...
|| system-config-printer i386 0.6.116.5-1 in...
|| system-config-printer-gui i386 0.6.116.5-1 ...
*** 関連ファイルの再設定 [#s24206bc]
+ /etc/cups/cupsd.conf
+ /etc/cups/mime.convs
+ /etc/cups/mime.types
&color(red){CUPS を入れ替えた結果(余計なプログラムが介入...
*** 傷害解析 [#e0797efc]
- Windows からの印刷が出来なくなった
-- http://spirit.hmuna.com:631 へのアクセスが出来なくなっ...
-- 上記サイトへのアクセスはサーバーからも出来なくなっている
-- サーバーから 127.0.0.1:631 へのアクセスは出来る (CUPS...
-- 上記サイトでプリンターを確認すると /usb/lp0 として3番...
追加されている
ー- &color(red){[原因]/etc/cups/cupsd.conf が自動編集さ...
-- &color(red){[対策]/etc/cups/cupsd.conf にアクセス許...
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL
Listen 127.0.0.1:631
Listen 192.168.1.22:631
- その後色々やったが、最終的に cupsd.conf には
-- /etc/cups/cupsd.conf の最後の部分の編集はしない
-- <Location /> に Allow From @LOCAL を追加
-- <Location /admin> にも同様に Allow From @LOCAL を追加
-- @LOCAL は
# The @LOCAL address broadcasts to all non point-to-poin...
# For example, if you have a LAN and a dial-up link, @LO...
# send printer updates to the LAN but not to the dial-up...
----
- さらに検証した結果
-- 192.168.1.22:631 のアクセス問題は上記の @LOCAL 設定で...
-- &color(red){サーバー再起動時に /etc/cups/mime.type が...
-- この結果、再起動で windows からのプリントが出来なくな...
-- cups-config-daemon を無効にしてもこの問題は解決しなか...
[root@spirit ~]# ls -tl /etc/cups/
合計 120
-rw-r--r-- 1 root root 112 5月 22 08:51 lpoptions
-rw-r----- 1 root sys 22280 5月 22 08:51 cupsd.conf
-rw-r--r-- 1 root root 5926 5月 22 08:51 mime.types
drwxr-xr-x 2 root sys 4096 5月 22 08:51 ppd
-rw-r----- 1 root sys 538 5月 22 08:51 printers.conf
drwx--x--x 2 root sys 4096 5月 22 08:50 certs
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
- 上記の 上から5つのファイルはサーバー起動時に生成されて...
- chmod で書き込み禁止にしてもワーニングもでないので、誰...
- 同じ問題 → http://www.linuxprinting.org/pipermail/gene...
-- 起動ログの解析で終わっていて解決に至っていない ・・・...
//- 当面の打開策として、rc.local でパッチを当てて自動修正...
//-- パッチの作成
//
// [root@spirit cups]# diff mime.types_auto mime.types > ...
// [root@spirit cups]# cat mime.types_patch
// 158c158
// < # application/octet-stream
// ---
// > application/octet-stream
//-- パッチの適用 ( /etc/rc.local へ追加 )
//
// # Patch /etc/cups/mime.types to enable raw-printer
// echo "Patch to /etc/cups/mime.types"
// cd /etc/cups
// patch < mime.types_patch
// cd
- rc.local で mime.types を書き戻す処理(下記)を入れてみ...
# recover etc/cups/mime.types
echo "resumeautoupdated /etc/cups/mime.types"
cp /etc/cups/mime.types /etc/cups/mime.types_munabackup
cp /etc/cups/mime.types_muna /etc/cups/mime.types
- &color(red){rc.local でファイルを書き戻した後で mime.ty...
- %% &color(black){gnome の起動時に上書きされてしまうよう...
- サーバー側でログインプロンプトが出た時点で別端末からテ...
- &color(red){X は立ち上がっているが、gnome は立ち上がっ...
[root@spirit cups]# ls -l [ ファイル名順 ]
合計 136
drwx--x--x 2 root sys 4096 5月 23 08:14 certs
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
-rw-r----- 1 root sys 22280 5月 23 08:15 cupsd.conf
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
-rw-r--r-- 1 root root 112 5月 23 08:15 lpoptions
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 5926 5月 23 08:15 mime.types
-rw-r--r-- 1 root root 5926 5月 23 00:14 mime.types_a...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
drwxr-xr-x 2 root sys 4096 5月 23 08:15 ppd
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r----- 1 root sys 538 5月 23 08:15 printers.conf
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
[root@spirit cups]# ls -lt [ ファイル更新時間順 ]
合計 136
drwx--x--x 2 root sys 4096 5月 23 08:19 certs --...
-rw-r--r-- 1 root root 112 5月 23 08:15 lpoptions ...
-rw-r----- 1 root sys 22280 5月 23 08:15 cupsd.conf ...
-rw-r--r-- 1 root root 5926 5月 23 08:15 mime.types ...
drwxr-xr-x 2 root sys 4096 5月 23 08:15 ppd ...
-rw-r----- 1 root sys 538 5月 23 08:15 printers.con...
-rw-r--r-- 1 root root 5924 5月 23 08:10 mime.types_m...
-rw-r--r-- 1 root root 5926 5月 23 00:14 mime.types_a...
-rw-r--r-- 1 root root 4586 5月 22 08:47 mime.convs
-rw-r--r-- 1 root root 22280 5月 22 08:16 cupsd.conf.s...
-rw-r--r-- 1 root root 9840 5月 12 22:33 ppds.dat
-rw-r--r-- 1 root root 947 1月 12 03:50 pstoraster.c...
-rw-r----- 1 root sys 2421 1月 12 03:50 classes.conf
-rw-r--r-- 1 root root 2333 1月 12 03:50 client.conf
drwxr-xr-x 2 root root 4096 1月 12 03:50 interfaces
[root@spirit cups]#
----
- /etc/cups/mime.types のパーミションを 444 (= root の書...
[root@spirit ~]# ls -l /etc/cups/mime.types
-rw-r--r-- 1 root root 5924 6月 22 21:14 /etc/cups/mim...
[root@spirit ~]# chmod 444 /etc/cups/mime.types
[root@spirit ~]# ls -l /etc/cups/mime.types
-r--r--r-- 1 root root 5924 6月 22 21:14 /etc/cups/mim...
- &color(red){効き目なし、ファイルが上書きされてしまった};
[root@spirit ~]# ls -l /etc/cups/mime.types
-rw-r--r-- 1 root root 5926 6月 22 21:24 /etc/cups/mim...
----
- &color(red){ガーン、[[7.8. Red Hat Enterprise Linux 固...
重要
/etc/printcap ファイル、または/etc/cups/ ディレクトリ内...
プリンタデーモン (cups) が起動/再起動する度に、新しい設...
このファイルは プリンタ設定ツール に変更が適用された時に...
- [[Red Hat Enterprise Linux システム管理ガイド(英文):h...
----
- fuser (ファイルをオープンしているプロセスを調べるコマン...
fuser -a /etc/cups/mime.types
- ファイルオープンの瞬間に情報を表示したい場合、カーネル...
linux/fs/open.c: sys_open()で
if (!strcmp(filename, "/etc/cups/mime.types"))
printk("mime.types ACCESSED!! PID: %d\n", current->p...
----
- GUI の [アプリケーション]−[システム設定]−[印刷]で
-- [操作(A)]−[共有]−[全般] で "LPD プロトコルを有効...
-- [操作(A)]−[共有]−[プリンタ]で"このプリンタは他の...
- GUI の [アプリケーション]−[セキュリティレベルの設定...
-- 他のポートに 515:tcp, 515:udp を追加する
- /etc/xinetd.d/cups-lpd があるか確認
# default: off
# description: Allow applications using the legacy lpd p...
service printer
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
}
*** 参考URL [#qe82e2dc]
- [[はじめての自宅サーバー構築(Print Server 編) >http:/...
- [[Cent OS>http://yap.nucl.ap.titech.ac.jp/~shimada/ja/C...
ページ名: