小编Mar*_*der的帖子

在 OpenSUSE 11.4 上次更新后,logrotate 对 munin 不起作用

我在 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)

opensuse permissions munin logrotate

5
推荐指数
1
解决办法
6658
查看次数

OpenBSD 并像 FreeBSD 的 login.access(5) 一样限制本地登录

我使用 OpenBSD 作为我的桌面。我不想远程登录我的机器,也不希望其他人远程登录。在 FreeBSD 中,有一个名为login.access(5)的文件可用于防止远程登录,并将登录限制在本地。我怎样才能在 OpenBSD 中完成同样的事情?

我已经阅读了login(1)和 login.conf(5)的手册页,我可能遗漏了一些东西,但我没有在那里看到答案。

security login openbsd

5
推荐指数
1
解决办法
268
查看次数

使用未嵌入的 TrueType 字体 (cups / lpr) 打印 PDF

我有一个 PDF,其中使用了 TrueType 字体OCRB,但未嵌入该字体。

所以我尝试在我的系统上安装字体(顺便说一下是 SLES11 SP2),我做了以下事情:

  • 双击 gnome 桌面上的字体并单击安装
  • 复制到/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字体(正确),当我打印它(使用同一台打印机)时,它在那里并且绝对正确。

我不明白这一点,因为我猜evincelpr以某种方式使用?任何想法我能做什么?(对我来说能够通过命令行打印 .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)

printing fonts cups pdf

5
推荐指数
1
解决办法
5607
查看次数

mdraid 重新同步如何工作?

我在一个镜像中有两个驱动器(linux sw raid/mdadm);一个驱动器在过去不知何故离开了镜子,它的内容现在已经有好几天了。此时,我正在使用降级镜像(缺少一个驱动器)并考虑:

  • 将最新驱动器克隆到第二个驱动器 dd
  • 添加第二个驱动器并重新同步,但我不知道重新同步过程如何工作以及哪些数据将被覆盖(该镜像上有 LVM 卷)

我认为dd是安全的方式,无论如何我对重新同步的工作方式很感兴趣。

software-raid mdadm dd synchronization

4
推荐指数
1
解决办法
2191
查看次数

/etc/hosts 是否应该包含映射到环回地址的 FQDN 条目?

我们有一个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)。

debian hosts

3
推荐指数
1
解决办法
506
查看次数