Articles of Debian

在Debian服务器上的CPU上检测到自我检测失速

我的服务器自2014年10月起在线。 Debian GNU/Linux 7.6 uname -r 3.10.23-xxxx-std-ipv6-64 直到昨天晚上,它工作得很好。 昨晚它不负责任。 我从dadata中心控制面板重新启动它,结束everythin是确定的。 今天晚上,它在不同的时间再次冻结。 我没有安装任何新的软件,只是定期更新。 服务器日志文件显示:rcu_sched在CPU上自检失速 有任何想法吗? Mar 4 01:51:01 server4 kernel: INFO: rcu_sched self-detected stall on CPU { 6} (t=15001 jiffies g=78281006 c=78281005 q=5678) Mar 4 01:51:01 server4 kernel: sending NMI to all CPUs: Mar 4 01:51:01 server4 kernel: NMI backtrace for cpu 6 Mar 4 01:51:01 […]

Windows 2012字体消失了。 只有Wingdings

所以我做了一个RDP到我的服务器,用Vinagre的Jessie发行版,字符很奇怪(见图),然后,每个连接的人都看到了同样的问题,这个怎么解决呢? 因为服务器是完全无用的… 一切工作之前,我连接,现在我们不能工作:S

nullmailer交换发件人和收件人

我想通过外部邮件服务器从我的服务器发送电子邮件。 所以我安装了nullmailer作为Debian 7 x32中最简单的MTA之一。 我的/etc/nullmailer/remotes : smtp.example.com smtp –[email protected] –pass=*** –port 465 –ssl 这种情况下的用户是远程服务器上的注册用户。 现在我想发送testing邮件。 Nullmailerreplacesendmail有几个参数: 用法:sendmail [flags] [recipients] -f设置信封发件人地址 好的,所以我发邮件给: ls | sendmail -f [email protected] [email protected] 但是,这个邮件来到[email protected]邮箱。 其中一个标题说: 致:未公开收件人:; 据我所知,nullmailer不发送收件人地址。 好的,现在我尝试通过php发送它: mail("[email protected]","subject","message","From: [email protected]"); 但事实上没有任何发送。 日志说: smtp:失败:553 5.7.1发件人地址被拒绝:不属于auth用户。 发送失败:发送消息时出现永久性错误 嗯…看起来很奇怪 如果我列出nullmailer队列我看到 sendmail -bp 2015-03-23 14:58:26 332 bytes from <[email protected]> to <[email protected]> 我不知道这个[email protected]是从哪里来的。 所以现在队列被冻结了。 我在/var/spool/nullmailer/queue/find了这个队列。 每个电子邮件保存为带有标题和邮件正文的文件。 […]

错误:文件系统是只读的

我一直在debian系统的文件系统进入只读模式的麻烦。 简短的解决scheme是将其closures并重新打开,但仍保持切换到只读模式。 debian计算机是ESXi虚拟机pipe理程序中的虚拟机,卷导出到/ etc / exports中,以便其他虚拟机可以将其子文件夹挂载到其自己的/etc/fstabconfiguration中。 客户端/etc/fstabconfiguration: # Remember NFS isn't secured over the network.. it probably wouldn't matter but is still considered non-secure storage-host-vm:/storage/drv_a/workpro_backups_samba /mnt/workpro_backups_samba nfs rw,sync,hard,intr 0 0 storage-host-vm:/storage/drv_b/temporary /mnt/temporary nfs rw,sync,hard,intr 0 0 storage-host-vm:/storage/drv_a/staff_pc_file_backups /mnt/staff_pc_file_backups nfs rw,sync,hard,intr 0 0 我只是跑fsck ,它给出了下面的输出 $ sudo fsck /storage/drv_a fsck from util-linux 2.20.1 e2fsck 1.42.5 (29-Jul-2012) […]

在启动时启动Corosync 2.X + Pacemaker 1.1集群(Debian Wheezy)

我找不到在Debian启动时启动群集(corosync + pacemaker)的方法 我在两个节点上使用以下configuration更新了2节点群集: Debian Wheezy 7.7 Corosync v2.3.4 起搏器v1.1.12 Libqb v0.17.1 Cluster-glue v1.0.12 资源代理v3.9.6 crmsh v2.1.0 我已经安装了来自Source的集群软件,在Clusterlabs for Jessie上编译Compiling_on_Debian指南。 在安装之前,我确定没有老的corosync或起搏器的依赖关系。 在所有的configuratins我已经开始corosync和起搏器 /etc/init.d/corosync start /etc/init.d/pacemaker/start 群集已启动并正在运行,但是我无法在启动时find启动群集的方法 我已经尝试添加init.d脚本运行级别,但我得到这个响应,没有任何效果(没有符号链接创build)corosync root@PC:~# update-rc.d corosync defaults update-rc.d: using dependency based boot sequencing 和起搏器上的这个错误 root@PC:~# update-rc.d pacemaker defaults update-rc.d: using dependency based boot sequencing insserv: Service corosync has to be enabled […]

安装官方deb后安全清除Debian MySQL服务器的configuration?

任何人都可以告诉我是否可以在删除mysql-server-5.5和通过正式提供的deb-Package安装mysql-server后在Debian中执行apt-get purge mysql-server-5.5清除? 我冒着去除mysql-server所使用的configuration的风险吗? 现状是: ii mysql-community-server 5.6.25-1debian7 ii mysql-server 5.6.25-1debian7 rc mysql-server-5.5 5.5.39-1

apt:列出deb包所需的依赖关系,而不安装它

对于我正在编写的构build工具(为此我想实现一种依赖性caching系统)我想知道.deb包缺less的依赖关系是什么, 而不诉诸安装(可能)并读取apt-get输出,即: 我必须能够在软件中以非交互方式进行输出,这不是人类应该做的事情 手动过程将是这样的: dpkg -i something.deb || true apt-get -f install 在这一点上,打印像这样的东西: The following extra packages will be installed: ca-certificates git git-man krb5-locales libasn1-8-heimdal libcurl3-gnutls libedit2 liberror-perl libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libroken18-heimdal librtmp0 libruby1.9.1 libsasl2-2 libsasl2-modules libsasl2-modules-db libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 […]

resolv.conf“search”忽略

我的/etc/resolv.conf文件是相当基本的,像这样: # Generated by NetworkManager domain subdomain.example.org search subdomain.example.org nameserver 192.0.2.100 nameserver 192.0.2.200 据我所知,如果我有一台电脑,说machine1.subdomain.example.org ,search字段允许我只能使用它的名字machine1访问它。 但这是我得到的: $ ping machine1 ping: unknown host machine1 $ ping machine1.subdomain.example.org PING machine1.subdomain.example.org (192.0.2.12) 56(84) bytes of data. …/… 我在Debian上喘气,如何才能使search指令考虑到名称parsing? 这是一个configuration问题? 我必须检查哪些参数? 编辑:这是根据要求/etc/nsswitch.conf的内容: # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the […]

构buildcurl,httpd和其他自定义openssl构build,同时避免默认的系统openssl

我一直在尝试升级旧的Linux机器上的一些程序(Debian 7.5 wheezy)。 我想保持默认的系统库不变,并添加一些自定义的版本。 它适用于大多数库,只有OpenSSL给我一个很难(libssl.so + libcrypt.so)。 这是我的OpenSSLconfiguration行: # ./config –prefix=/usr/local –openssldir=/usr/local/openssl no-gost shared zlib no-ssl2 -fPIC 那么对于其他程序,例如cURL: # ./configure LDFLAGS="-L/usr/local/ssl/lib -ldl" –with-ssl –enable-shared 但是后来我得到了错误的OpenSSL版本: # curl –version curl 7.44.0 (x86_64-unknown-linux-gnu) libcurl/7.44.0 OpenSSL/1.0.1e 我知道libssl.so在这个系统的以下文件夹中有副本: /usr/lib/libssl.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/local/lib/libssl.so /usr/local/ssl/lib/libssl.so 所有这些都是相同的自定义编译版本,除了/usr/lib/x86_64-linux-gnu/libssl.so这似乎是我的默认系统库(v1.0.5e)。 我想知道我怎么可以指示configuration脚本,以避免看到里面/ lib / x86_64-linux-gnu ? 我可以只更改/usr/lib/x86_64-linux-gnu/libssl.so符号链接并将其指向我的构build? 安全吗? 谢谢,

如何指定一个deb软件包应该replace一个不同的名字?

我正在创build一个Debian软件包foo ,它需要replace安装它的系统上的现有软件包bar 。 我读了: https://www.debian.org/doc/debian-policy/ch-relationships.html 并得出结论,在DEBIAN/control中的正确的条款应该是这样的: Provides: foo Conflicts: bar Replaces: bar 但是,当我尝试在已经安装了foo的系统上安装foo软件包时,由于foo与bar冲突,因此系统不起作用。 如果我删除Conflicts: bar条目然后dpkg允许并行安装两个包,这是一个问题,因为foo必须replacebar 。 什么是适当的control文件条款来实现这一点? 我试过了Breaks而不是Conflicts : dpkg: regarding foo_DEV-22._i386.deb containing foo: foo breaks bar bar (version 3.2.2.1-x86NX4.4-x86) is present and installed. bar provides bar and is present and installed. dpkg: error processing foo_DEV-22._i386.deb (–install): installing foo would break existing software Errors were […]