小编Mau*_*043的帖子

坚果 (UPS) 和 SSL 证书

今天我安装nut在我的 Ubuntu 服务器(Ubuntu 14.04 LTS)上。

$ uname -a
Linux boson 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

UPS 连接到另一台服务器(称为 neutron),所以我nut-client用来密切关注 UPS 的状态。

当我这样做时sudo upsc ups@neutron.local

Init SSL without certificate database
battery.charge: 15
battery.charge.low: 10
battery.charge.warning: 50
battery.date: not set
battery.mfr.date: 2012/11/27
:
Run Code Online (Sandbox Code Playgroud)

输出的第一行与我有关。我还没有nut在基于 Debian 的服务器上的其他安装中看到这一点。

我该怎么做才能摆脱那条线?

编辑:这个“没有证书数据库的初始化 SSL”特别烦人,因为它不是输出的一部分,upsc因此我无法grep输出。

编辑(2):澄清一下,(Synology)服务器(直接与 UPS 对话)未设置 SSL 或证书。网络上的其他(Debian/Raspbian)客户端没有上述问题。没有安装 SSL 证书(据我所知)

find / |grep …

server ups openssl 14.04

6
推荐指数
1
解决办法
1万
查看次数

网络流量报告为零字节

刚刚安装了 Ubuntu Server 13.10。我正在设置一些脚本来帮助我监控服务器的活动。现在我发现网络流量保持在零字节。

这就是我的意思:/proc/net/dev 说:

@boson:~ $ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
 p17p1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    lo:    1184      16    0    0    0     0          0         0     1184      16    0    0    0     0       0          0
Run Code Online (Sandbox Code Playgroud)

对于那些想知道的人:

@boson:~ $ lspci | grep Ethernet
02:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev …
Run Code Online (Sandbox Code Playgroud)

networking statistical

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

15.04: rsync 连接被拒绝

我本周末升级到 Ubuntu 15.04。现在,rsync 不会再好用了:

当我尝试运行它时:

beheer@boson:~ $ rsync -Wvvqaz --log-file=rs.txt --delete-excluded --delete --no-g --password-file=/home/beheer/rsync.local.pwd --exclude=lost+found /home  rsync://boson.local/boson-backup/boson/
Run Code Online (Sandbox Code Playgroud)

我得到:

rsync: failed to connect to boson.local (10.0.1.220): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(128) [sender=3.1.1]
Run Code Online (Sandbox Code Playgroud)

日志文件包含:

2015/05/25 19:00:54 [15163] opening tcp connection to boson.local port 873
2015/05/25 19:00:54 [15163] rsync: failed to connect to boson.local (10.0.1.220): Connection refused (111)
2015/05/25 19:00:54 [15163] rsync error: error in socket IO (code 10) at clientserver.c(128) [sender=3.1.1]
Run Code Online (Sandbox Code Playgroud)

这是对本地备份的尝试。但是,尝试从外部(Debian)服务器执行类似操作会返回完全相同的错误。

$ systemctl …
Run Code Online (Sandbox Code Playgroud)

rsync 15.04

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

KVM 网桥分配静态 IP

我安装了 Ubuntu 服务器 14.04。并为其分配了静态IP...然后安装了KVM和虚拟机管理器...然后创建了一个测试虚拟机,它也可以通过NAT使用本地IP地址。

我有两张 LAN 卡,只有一张连接到互联网。

我想要的是将 em2 桥接到来宾机器的配置。因此,该静态 IP 地址也适用于来宾计算机。现在,如果我将静态 ip 分配给来宾机器,则没有连接。

我的 ifconfig 详细信息是:

ifconfig -a

em1       Link encap:Ethernet  HWaddr 0c:c4:7a:4d:96:aa  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1  
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0  
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
          collisions:0 txqueuelen:1000  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  
          Memory:f7100000-f717ffff  

em2       Link encap:Ethernet  HWaddr 0c:c4:7a:4d:96:ab  
          inet addr:68.168.105.130  Bcast:68.168.105.255  Mask:255.255.255.0  
          inet6 addr: fe80::ec4:7aff:fe4d:96ab/64 Scope:Link  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1  
          RX packets:3717 errors:0 dropped:10 overruns:0 frame:0  
          TX packets:373 errors:0 …
Run Code Online (Sandbox Code Playgroud)

kvm

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

journald 和 rsyslog 都在运行

由于迁移到Ubuntu 15.04既journaldrsyslog已安装并运行。我想知道这是设计使然还是 rsyslog 可能不是意外卸载的?

我可以毫无问题地卸载 rsyslog 还是应该采取预防措施?

rsyslog 15.04 systemd-journald

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