2016년 2월 16일 화요일

RaspberryPi - 05

Printer Drive Setting

Change Samba Config

sudo vim /etc/samba/smb.conf
########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
  load printers = yes

# 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.
  printing = cups
  printcap name = cups

[프린터명]
  comment = 프린터명
  browseable = yes
  path = /tmp
  printable = yes
  guest ok = yes
  read only = no
  create mask = 0700

[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = yes
sudo /etc/init.d/samba restart

Cups Install

sudo apt-get install cups
sudo usermod -a -G lpadmin pi
sudo vim /etc/cups/cupsd.conf 
Listen *:631
WebInterface Yes #웹 인터페이스를 제공합니다.

#웹 설정 페이지의 메인화면 접속 관련 설정입니다.

  Order allow,deny
  Allow all


#설정 페이지 중 직접 설정을 바꿀 수 있는 관리자 페이지 관련 설정입니다.
#시스템 내의 유저 계정으로 접속할 수 있도록 합니다.
#서브넷 상의 pc만 접근할 수 있도록 합니다.

  Order deny,allow
  Allow all


  Order deny,allow
  Allow all
  AuthType Default
  Require user @SYSTEM


sudo /etc/init.d/cups restart

참고 논문 및 사이트

1.라즈비안(데비안) 서버에 usb 프린터 연결하기 - http://dovetail.tistory.com/29

2.라즈베리 파이에 프린터 설치하기 1 - http://flankerd.tistory.com/entry/%EB%9D%BC%EC%A6%88%EB%B2%A0%EB%A6%AC-%ED%8C%8C%EC%9D%B4%EC%97%90-%ED%94%84%EB%A6%B0%ED%84%B0-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1

댓글 없음:

댓글 쓰기