我在 OpenSUSE 11.4 上使用 munin 1.4.5。最近更新了 logrotate 以修复一些权限问题,然后抱怨
Mar 3 12:15:05 lucien logrotate: error: "/var/log/munin" has insecure permissions. It must be owned and be writable by root only to avoid security problems. Set the "su" directive in the config file to tell logrotate which user/group should be used for rotation.
Mar 3 12:15:05 lucien logrotate: error: error reading /var/log/munin/munin-html.log: Bad file descriptor
Mar 3 12:15:05 lucien logrotate: error: error reading /var/log/munin/munin-limits.log: Bad file descriptor
Mar 3 12:15:05 lucien logrotate: error: …
Run Code Online (Sandbox Code Playgroud) 我使用 OpenBSD 作为我的桌面。我不想远程登录我的机器,也不希望其他人远程登录。在 FreeBSD 中,有一个名为login.access(5)的文件可用于防止远程登录,并将登录限制在本地。我怎样才能在 OpenBSD 中完成同样的事情?
我已经阅读了login(1)和 login.conf(5)的手册页,我可能遗漏了一些东西,但我没有在那里看到答案。
我有一个 PDF,其中使用了 TrueType 字体OCRB
,但未嵌入该字体。
所以我尝试在我的系统上安装字体(顺便说一下是 SLES11 SP2),我做了以下事情:
/user/home/username/.fonts
文件夹中/usr/share/fonts
SuSEconfig --module fonts
fc-cache
当我尝试使用以下命令打印 .pdf 时:
lpr -PHL2400Ce -# 1 test.pdf
Run Code Online (Sandbox Code Playgroud)
.pdf 打印得很好,但OCRB
字体不见了,取而代之的是标准字体。
但是,当我使用evince
(gnome 文档查看器)打开 .pdf 时,我看到查看器中的OCRB
字体(正确),当我打印它(使用同一台打印机)时,它在那里并且绝对正确。
我不明白这一点,因为我猜evince
也lpr
以某种方式使用?任何想法我能做什么?(对我来说能够通过命令行打印 .pdf 非常重要,因为它将成为在后台运行的批处理作业的一部分)
我也尝试了一些这样的方法:
gs -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=output2.pdf -f test.pdf
Run Code Online (Sandbox Code Playgroud)
这给我带来了输出:
....
Can't find (or can't open) font file Arial-BoldMT.
Didn't find this font …
Run Code Online (Sandbox Code Playgroud) 我在一个镜像中有两个驱动器(linux sw raid/mdadm);一个驱动器在过去不知何故离开了镜子,它的内容现在已经有好几天了。此时,我正在使用降级镜像(缺少一个驱动器)并考虑:
dd
我认为dd
是安全的方式,无论如何我对重新同步的工作方式很感兴趣。
我们有一个foo
由我们的 IT 部门提供的用于生产的 Debian 8.2 系统。它的/etc/hosts
文件包含以下两行:
127.0.0.1 localhost
127.0.1.1 foo.example.com foo
Run Code Online (Sandbox Code Playgroud)
这将系统的 FQDN 映射到127.0.1.1
,而系统的真实 IP 地址是10.5.1.38
(未在 中给出hosts
)。
这是正确的还是应该/etc/hosts
不包含FQDN?
请注意,该系统已联网,可以访问 DNS 并nslookup
通过 FQDN 提供正确的 IP 地址 ( 10.5.1.38
)。