서버 설정 · 2 min read · Dec 11, 2025

작은 작업 그룹을 위한 Samba 도메인 컨트롤러와 Fedora 8의 SWAT - 페이지 2

4.3 CUPS

서버를 GUI 없이 설정하는 경우 CUPS 웹 인터페이스를 사용하기 위해 IP 구성을 편집해야 합니다. %vm_ip%를 VM의 IP(예: 192.168.0.100)로, %workstation_ip%를 CUPS 웹 인터페이스에 접근할 작업 스테이션의 IP로 교체하십시오.

vi /etc/cups/cupsd.conf

변경:

Listen localhost:631

다음으로:

Listen %vm_ip%:631

변경:

# Restrict access to the server...  
  
Order allow,deny  
Allow localhost  
# Restrict access to the admin pages...  
  
Encryption Required  
Order allow,deny  
Allow localhost  
# Restrict access to configuration files...  
  
AuthType Default  
Require user @SYSTEM  
Order allow,deny  
Allow localhost  

다음으로:

# Restrict access to the server...  
  
Order allow,deny  
Allow localhost  
Allow %workstation_ip%  
# Restrict access to the admin pages...  
  
Encryption Required  
Order allow,deny  
Allow localhost  
Allow %workstation_ip%  
# Restrict access to configuration files...  
  
AuthType Default  
Require user @SYSTEM  
Order allow,deny  
Allow localhost  
Allow %workstation_ip%  

이제 CUPS 웹 인터페이스를 위한 SSL 인증서를 생성합니다:

openssl req -new -x509 -keyout /etc/cups/ssl/server.key \  
-out /etc/cups/ssl/server.crt -days 365 -nodes

그 후 CUPS를 재시작합니다:

/etc/init.d/cups restart

이제 작업 스테이션에서 CUPS 웹 인터페이스를 통해 CUPS 프린터를 관리할 수 있습니다. 선호하는 브라우저에서 https://%vm_ip%:631/를 열고 root로 로그인하십시오. 프린터에 사용할 수 있는 Linux 드라이버가 없고 Windows 작업 스테이션에서 SAMBA를 통해 이 프린터만 사용하려는 경우, 프린터 제조사 “RAW”를 사용하고 Windows 작업 스테이션에 올바른 드라이버를 설치할 수 있습니다.

HP 프린터를 설정할 경우, hplip(명령줄)를 통해 CUPS에 추가해야 합니다. 정확한 명령은 장치의 연결 유형에 따라 다릅니다 - “hp-setup –help”를 참조하십시오. 예: IP가 192.168.0.20인 네트워크 프린터의 경우 명령은 “hp-setup -i 192.168.0.20”입니다. 그 후 CUPS 웹 인터페이스 내에서 프린터 설정(해상도 등)을 조정할 수 있습니다.

CUPS에 새 프린터를 추가한 후, 다음을 통해 Samba에 추가해야 합니다:

cupsaddsmb -a

4.4 쿼터

이제 쿼터 사용을 위해 시스템을 준비합니다.

vi /etc/fstab

루트 파티션의 줄에 usrquota 및 grpquota를 추가합니다. 옵션은 다음과 같아야 합니다:

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1

그 후 쿼터 설정을 위한 파일을 생성하고 루트 파티션을 다시 마운트합니다.

touch /aquota.user /aquota.group  
chmod 600 /aquota.*  
mount -o remount /  
quotacheck -avugm  
quotaon -avug

참고: quotacheck -avugm을 처음 실행할 때 다음과 같은 오류가 발생할 수 있습니다:

quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...  
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...

이는 정상이며 걱정할 필요가 없습니다. 사용자에 대한 쿼터 사용 방법은 나중에 Samba 도메인에 사용자를 추가할 때 이 설명서에서 설명합니다.

4.5 호스트

서버의 호스트 파일에 호스트의 IP와 작업 그룹의 모든 컴퓨터를 추가합니다.

vi /etc/hosts

다음과 같아야 합니다:

# Do not remove the following line, or various programs
 # that require network functionality will fail.
 127.0.0.1       localhost.localdomain   localhost
 192.168.0.100   server1.example.com     server1
 192.168.0.110   workstation1
 192.168.0.111   workstation2
 192.168.0.112   workstation3
 ::1     localhost6.localdomain6 localhost6

4.6 서비스

이제 필요한 서비스의 자동 시작을 활성화합니다.

chkconfig smb on  
chkconfig nmb on  
chkconfig winbind on  
chkconfig swat on

그 후 시스템을 재부팅합니다.

reboot
Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.