Articles of Debian

自动下载,但不要安装升级

运行debian稳定,我知道我可以使用无人值守升级来自动下载和安装升级。 但是,运行debian unstable,由于分发的性质不稳定,我会非常不愿意自动安装升级。 不过,为了方便,我没有看到预先下载升级的任何错误。 有没有什么办法可以下载我想要安装的所有升级程序,这样当我升级的时候,我不必坐下来等待所有下载? 您可以假定每月的磁盘空间和带宽不是问题。 (其实我已经考虑过简单地运行一个完整的镜像,并在我的sources.list中使用我的本地镜像,但是我觉得这可能会有点过分。)

Apache2无法列出没有设置o + r的目录或文件

我有一个Apachenetworking服务器,我们正在准备通过FTP / S为客户提供更方便的HTTPS协议上传的数据。 目前,我正在使用mod_authnz_external来允许用户进行身份validation,但一旦通过身份validation,用户就无法在主目录中看到“其他”权限设置为零的文件。 我不确定为什么会出现这种情况,因为如果用户通过身份validation,我希望他们能够看到他们自己的用户和组拥有的文件。 要解决这个问题,我也尝试将Apache用户的www-data添加到所有用户命名的组(作为辅助组),他们有权限读取自己的主目录中的文件。 但是,这不允许用户在login网站时看到他们自己的文件,但是如果我通过“www-data”获得shell访问权限并从terminal浏览主目录,我可以查看这些文件。 我需要知道我可能做错了什么,以及如何通过Apache服务用户主目录的内容而不必授予他人许可的最终结果。 任何帮助,这是非常感谢,谢谢。

木偶:如何从Debian wheezy-backports安装git软件包?

我正在使用Apt模块( https://forge.puppetlabs.com/puppetlabs/apt ),并为Debian wheezy backports存储库添加了一个条目: apt::source { 'wheezy-backports': location => 'http://ftp.de.debian.org/debian', release => 'wheezy-backports', repos => 'main', include_deb => true, include_src => true, notify => Exec['apt-get-update'], } 我可以成功安装wheezy-backports中可用的软件包,但不能在默认存储库中安装,因此我认为configuration本身是正确的。 使用apt-get install git -t wheezy-backports安装从backports手动安装apt-get install git -t wheezy-backports也可以。 但是,我如何强制Puppet从wheezy-backports而不是默认的存储库检索一个包? 具体来说,我想安装在wheezy backports中的git-1.9.1-1 package { "git": ensure => "1:1.9.1-1~bpo70+2", } 失败。 package { "git": ensure => "latest", } […]

在循环中分割文件名并引用每个部分

我有一个目录中的文件列表,例如 file.name.aaaaaa.111111 file.name.bbbbbb.222222 file.name.cccccc.333333 我需要一种方法来获取每个文件,将其分割为“。” 然后使用每个部分它将被传递给一个mysql查询。 我有以下几点: for file in $localdir/file.name.* do filename=`basename "$file"` for i in $(echo $filename | tr "." "\n") do echo $i done done 我怎样才能参考个别部分? 因为我只需要MySQL查询的“aaaaa”和“11111”?

OpenDKIM不签署传出邮件

我试图在运行Debian和Postfix的邮件服务器上安装OpenDKIM。 这是我所做的configuration: 生成两个密钥(对于我需要发送邮件的两个域) configuration的KeyTable,SigningTable和TrustedHosts文件: KeyTable : mail._domainkey.domain1.com domain1.com:mail:/etc/opendkim/keys/domain1.com/mail.private mail._domainkey.domain2.com domain2.com:mail:/etc/opendkim/keys/domain2.com/mail.private SigningTable : *.domain1.com mail._domainkey.domain1.com *.domain2.com mail._domainkey.domain2.com TrustedHosts : 127.0.0.1 ::1 localhost 我的opendkim.conf读取: # This is a basic configuration that can easily be adapted to suit a standard # installation. For more advanced options, see opendkim.conf(5) and/or # /usr/share/doc/opendkim/examples/opendkim.conf.sample. # Log to syslog Syslog yes # […]

发送电子邮件失败,只有Gmail

我的debian服务器发送电子邮件到雅虎,hotmail,但不是Gmail! 尾巴/etc/log/mail.log 95.211.117.206], dsn=4.0.0, stat=Deferred: Connection timed out with 75gmail.com. Nov 23 23:07:52 sitechat sendmail[1837]: tANM7qEk001837: from=www-data, size=1224, class=0, nrcpts=1, msgid=<[email protected]>, relay=www-data@localhost Nov 23 23:07:52 sitechat sm-mta[1838]: tANM7q7O001838: from=<[email protected]>, size=1476, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost.localdomain [127.0.0.1] Nov 23 23:07:52 sitechat sendmail[1837]: tANM7qEk001837: [email protected], ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31224, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (tANM7q7O001838 […]

当我移除硬盘时,Debian软件RAID1不工作

我一直在尝试整个周末,以使用带有RAID 1的双硬盘驱动器的英特尔ICH7 / ICH7-R SATA-II控制器,让旧的服务器计算机上的RAID工作。 放弃硬件RAID之后,我转向了软件。 目前,系统将启动罚款两个驱动器,并会引导罚款closuresSDB,但是当我试图启动SDA,我得到一个黑色的屏幕上闪烁的光标。 通过这个,我的意思是物理驱动器。 我删除一个驱动器,启动,它的作品。 更换该驱动器,并删除另一个,启动,它不工作。 我的猜测是我没有在sda上正确安装GRUB。 我删除了sdb硬盘,并将安装盘引导到恢复模式。 然后我装入RAID卷,然后进入shell。 首先,我将尝试一下我在软件RAID中遵循的这个教程告诉我: # grub grub> device (hd0) /dev/sda grub> root (hd0,0) Filesytem type is ext2fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists … no Checking if "/grub/stage1" exists … no Error 2: Bad file or directory type 所以我尝试了不同的东西: 当input: grub-install […]

OpenLDAP – 如何限制Debianlogin到特定组(posixGroup)?

我试图限制login到Debian 8中的特定LDAP组。系统configuration为使用OpenLDAP(PAM)作为身份validation方法。 我的目标是将系统configuration为允许所有本地用户(包括root)加上属于LDAP组列表的LDAP用户。 在服务器中,组是具有objectClass作为posixGroup的条目,因此memberUid属性包含该组中的用户。

如何在Apache上使用mod_mono在网站的子文件夹中运行PHP应用程序?

我有一个网站运行单声道(在Debian延伸)。 我想有一些将由php5模块处理的子文件夹(例如webmail,stats和PhpMyAdmin)。 有一个简单的方法来做到这一点与Apacheconfiguration,或者我应该看看phalanger或其他解决scheme(代理)?

Hylafax不回答

一,configuration: 操作系统:Linux Debian 3.2.68-1 + deb7u6 x86_64 GNU / Linux Hylafax 6.0.6 调制解调器:在ttyS0上设置USR 56k型号5630(RS232) 我认为我的设置是相当不错的,当我testing我的调制解调器,它回答我的所有AT命令。 我可以发送传真没有任何问题但是,因为有一个“但”,我不能接受。 在传真发件人上,拨号音像我的服务器没有回复在传真服务器上,我收到此日志: Jan 19 08:31:02.37: [ 4549]: SESSION BEGIN 000000044 33153566683 <= fax server phone number Jan 19 08:31:02.37: [ 4549]: HylaFAX ™ Version 6.0.6 Jan 19 08:31:02.37: [ 4549]: <– [13:AT+FCLASS=1A\r] Jan 19 08:31:02.39: [ 4549]: –> [5:ERROR] Jan […]