Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Unable to connect to CUPS server localhost:631

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report