Unable to connect to CUPS server localhost:631

简介:

1:启动samba时,在日志上提示: 

1
2
tail  -f  /var/log/samba/log .smbd
Unable to connect to CUPS server localhost:631

解决办法:
在smb.conf中修改print字段

1
2
3
4
load printers = no
printing = bsd
printcap  name =  /dev/null
disable spoolss =  yes

Q2:配置好samba之后,文件夹中包含有中文时,在bsd下文件列表为空,linux和windows能显示。

解决办法:

(1) 打开/etc/sysconfig/i18n
设置为:

1
2
3
4
5
6
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"
其中LANG= "zh_CN.GB2312"  是必须的(如果你不想让中文乱码的话!!!)

其它的可以按照自已的需求来改变。
(2) 打开smb.conf
添加:

1
2
3
4
display charset=cp936
unix charset=cp936
dos  charset=cp936
主要是加入上面这三行,使用cp936,也可以使用utf-8





      本文转自灬落魄灬  51CTO博客,原文链接http://blog.51cto.com/smoke520/1949818 :,如需转载请自行联系原作者





相关文章
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
【MySQL8】1130 - Host *** is not allowed to connect to this MySOL server
|
关系型数据库 MySQL
mysql远程连接 Host * is not allowed to connect to this MySQL server
mysql远程连接 Host * is not allowed to connect to this MySQL server
71 0
|
Java 应用服务中间件
Error:Unable to connect to the localhost:1099
Error:Unable to connect to the localhost:1099
291 0
|
关系型数据库 MySQL Docker
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
218 0
解决Host ‘xxx.xx.xx.xx‘ is not allowed to connect to this MySQL server
|
关系型数据库 MySQL C#
Unable to connect to any of the specified MySQL hosts.
c#连接Mysql数据建立连接时提示:Unable to connect to any of the specified MySQL hosts. 出现此错误的原因是Server(数据库服务器IP地址填写错误) 当Server配置值是“(local)”或者是"(localhost)"时都会产生...
3177 0
|
网络协议 网络安全 Android开发
ADB Server failed to start daemon * error: cannot connect to daemon
问题描述:Invalid argument: cannot open transport registration socketpair could not read ok from ADB Server failed to start daemon * error: cannot connect to daemon
983 0
|
关系型数据库 MySQL
Mysql远程连接 Host * is not allowed to connect to this MySQL server
Mysql远程连接 Host * is not allowed to connect to this MySQL server 解决办法:在本机登入mysql后,选择用户,修改你远程链接的用户的主机,从 localhost 改为 %  博客内容仅代表个人观点,如发现阐述有误,麻烦指正,谢谢!
1360 0