Unable to connect to CUPS server localhost:631
Q1: when starting samba, prompt on the log:
Tail-f / var/log/samba/log.smbdUnable to connect to CUPS server localhost:631
Solution:
Modify the print field in smb.conf
Load printers = noprinting = bsdprintcap name = / dev/nulldisable spoolss = yes
Q2: after configuring samba, when the folder contains Chinese, the list of files under bsd is empty, and linux and windows can be displayed.
Solution:
(1) Open / etc/sysconfig/i18n
Set to:
LANG= "zh_CN.GB2312" LANGUAGE= "zh_CN.GB18030:zh_CN.GB2312:zh_CN" SUPPORTED= "zh_CN.GB18030:zh_CN.GB2312:zh_CN.UTF-8:zh:en_US.UTF-8:en_US:en:ja_JP.UTF-8:ja_JP:ja" SYSFONT= "lat0-sun16" SYSFONTACM= "8859-15" in which LANG= "zh_CN.GB2312" is a must (if you don't want to garbled Chinese characters!)
Others can be changed according to your own needs.
(2) Open smb.conf
Add:
Display charset=cp936unix charset=cp936dos charset=cp936 is mainly added to the above three lines, using cp936 or utf-8