続いて Windows 向けプリンタサーバ(LS-GL 除く)を実行する。
slam:~# apt-get install lprng Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: magicfilter lprng-doc The following NEW packages will be installed: lprng 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1240kB of archives. After this operation, 2851kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org lenny/main lprng 3.8.A-1.1 [1240kB] Fetched 1240kB in 1s (1005kB/s) Preconfiguring packages ... Selecting previously deselected package lprng. (Reading database ... 10026 files and directories currently installed.) Unpacking lprng (from .../lprng_3.8.A-1.1_armel.deb) ... Processing triggers for man-db ... Setting up lprng (3.8.A-1.1) ... slam:~#
slam:~# vi /etc/printcap
:
:
slam:~# cat !$
cat /etc/printcap
# /etc/printcap
#
# Please don't edit this file directly unless you know what you are doing!
# Be warned that the control-panel printtool requires a very strict format!
# Look at the printcap(5) man page for more info.
#
# This file can be edited with the printtool in the control-panel.
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:lp=/dev/usb/lp0:
slam:~#
slam:~# mknod /dev/usb/lp0 c 180 0 mknod: `/dev/usb/lp0': No such file or directory slam:~# mkdir /dev/usb slam:~# mknod /dev/usb/lp0 c 180 0 slam:~# chgrp lp /dev/usb/lp0 slam:~# chmod 666 /dev/usb/lp0 slam:~# ls -l /dev/usb/ total 0 crw-rw-rw- 1 root lp 180, 0 Jul 4 23:48 lp0 slam:~#
slam:~# /etc/init.d/lprng start Starting LPRng printer spooler: lpd. slam:~#ここまではスクリプトにできそう。
slam:~# mv /etc/samba/smb.conf{,.orig}
slam:~# cp /etc/samba/smb.conf{.orig,}
slam:~# vi /etc/samba/smb.conf
:
:
slam:~# diff -c /etc/samba/smb.conf{.orig,}
*** /etc/samba/smb.conf.orig Thu Jul 2 22:13:46 2009
--- /etc/samba/smb.conf Sun Jul 5 00:03:23 2009
***************
*** 179,186 ****
# lpr(ng) printing. You may wish to override the location of the
# printcap file
! ; printing = bsd
! ; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
--- 179,186 ----
# lpr(ng) printing. You may wish to override the location of the
# printcap file
! printing = bsd
! printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
***************
*** 286,291 ****
--- 286,292 ----
guest ok = no
read only = yes
create mask = 0700
+ use client driver = yes
# Windows clients look for this share name as a source of downloadable
# printer drivers
slam:~#
slam:~# /etc/init.d/samba reload Reloading /etc/samba/smb.conf: smbd only. slam:~#
|
|
← いちからやり直し、、、(7)動作確認 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ いちからやり直し、、、(9)ftp サーバ |