我有一个 Ubuntu 服务器实例,它会不时进入睡眠模式(平均每两个月一次)。通过查看系统日志文件,我发现是网络管理器请求使主机进入睡眠状态。
\n这是日志条目:
\nAug 24 11:33:28 home dbus-daemon[1108]: [session uid=108 pid=1108] Activating service name='org.freedesktop.Notifications' requested by ':1.12' (uid=108 pid=1145 comm="/usr/lib/unity-settings-daemon/unity-settings-daem" label="unconfined")\nAug 24 11:33:29 home org.freedesktop.Notifications[1108]: Unable to init server: Impossible de se connecter\xc2\xa0: Connexion refus\xc3\xa9e\nAug 24 11:33:29 home notify-osd[19718]: cannot open display: \nAug 24 11:33:29 home dbus-daemon[1108]: [session uid=108 pid=1108] Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1\nAug 24 11:33:29 home dbus-daemon[1108]: [session uid=108 pid=1108] Activating service name='org.freedesktop.Notifications' requested by ':1.12' (uid=108 pid=1145 comm="/usr/lib/unity-settings-daemon/unity-settings-daem" label="unconfined")\nAug …Run Code Online (Sandbox Code Playgroud) 我刚刚获得了一个安装了 Ubuntu 12.04 的专用服务器,并安装了自定义编译内核。由于我想安装 VirtualBox 并且这个自定义内核不支持动态模块加载(为了安全),我需要更改内核。
我多年来一直在运行一些 Ubuntu 服务器,但从未玩过 grub 和无头计算机。
当命令 update-grub 运行时,它会显示它找到的不同内核。这是我看到的
Generating grub.cfg ...
Found linux image: /boot/bzImage-3.2.13-xxxx-grs-ipv6-64
Found linux image: /boot/vmlinuz-3.2.0-34-generic
Found initrd image: /boot/initrd.img-3.2.0-34-generic
No volume groups found
done
Run Code Online (Sandbox Code Playgroud)
第一个是活动的,如用 所见uname -r。在我看来,第二个内核是我应该使用的内核。但我不知道如何配置 grub2 来使用它。
我猜这台计算机还使用 mdadm 配置了软件 RAID。以前从来没有用过。我不知道使用更改内核的 grub 是否可以阻止这种情况。
我必须做什么才能将通用内核设置为默认内核,以便我可以运行 VirtualBox。
在我的 Ubuntu 15.04\xc2\xa0(Linux Kernel 3.19.0-28-generic) 上,我在请求CLOCK_TAI和CLOCK_REALTIME使用clock_gettime(). 这显然是一个错误,因为考虑到这篇关于 RedHat 操作系统的 文章CLOCK_TAI,\xc2\xa0and之间的差异CLOCK_REALTIME应该是闰秒数加上纪元差异。