Articles of Debian

Linux和Solaris之间的IPsec隧道

我有一台Solaris机器坐在以太网的某个地方,我希望通过IPsec使其成为我的networking的一部分。 我可以在Solaris机器之间工作,但不能在Solaris和Linux之间工作。 我认为最基本的问题是Solaris只能以与Cisco IPsec虚拟通道接口相同的方式进行IPsec通道模式 – 即通过IPsec保护的IP-in-IP通道。 我真的不知道如何在Linux上进行复制。 我希望隧道有一个IP地址,因为远程主机没有路由本地networking – 只是本身。 的Solaris Solarisconfiguration如下所示: # ipsecinit.conf {tunnel ip.tun0 negotiate tunnel} ipsec {encr_algs AES-CBC encr_auth_algs HMAC-SHA1 auth_algs HMAC-SHA1 sa shared} # hsotname.ip.tun0 130.95.13.254 130.95.13.253 tsrc 192.168.13.20 tdst 130.95.13.20 router up # ike.config { label "manduba192-musundo" local_addr 192.168.13.20 remote_addr 130.95.13.20 p1_xform { auth_method preshared oakley_group 5 auth_alg sha1 encr_alg […]

强制Apache在丢失连接后终止其子项(按下“停止button”)

在客户端(浏览器)closures连接之后,如何让Apache杀死它所产生的CGI? 我有几个执行长时间运行的CGI,每15秒发送一次输出。 只要浏览器closures连接,CGI(及其后代)应该被正确地杀死,而不是留在我的系统周围,并保持宝贵的Apache插槽占用。 最好Apache应该杀死他们。 如果没有,我想知道CGI是否有办法检测与浏览器的连接是否已经消失。 编辑:显然,CGI的将closures他们的STDOUT。 一旦写入,他们将得到一个SIGPIPE信号,并可以采取相应的行动(通常他们忽略这个信号)。 在Perl中,你可以这样做: print "fresh output\n" or die "apparently my audience has left the building"; 所以问题依然存在:Apache可以检测到破损的pipe道并清理垃圾吗? 运行Debian w / Apache 2.2.20,以及正常的suexec机制。 谢谢!

无法在Debian上安装php5-imagick

我正在尝试安装Image Magick。 $ sudo apt-get install php5-imagick The following packages have unmet dependencies. php5-imagick: Depends: libfontconfig1 (>= 2.8.0) but 2.6.0-3 is to be installed Depends: libjpeg62 (>= 6b1) but 6b-14 is to be installed Depends: libltdl7 (>= 2.2.6b) but it is not installable Depends: libmagickcore3 (>= 8:6.6.0.4) but it is not installable Depends: libmagickwand3 (>= […]

截断从PHP输出,没有错误

我已经在Debian 6.0.3上安装了SugarCRM Community Edition,通过FreeTDS连接到MSSQL。 我可以正常使用系统,除了一个交易断路器问题。 在login时,我得到一个空白页输出。 我得到一个200 OK ,但HTML约12行后截断。 在此之后,我可以手动导航到网站的根,并正常使用该网站,没有错误。 Apache日志中没有任何内容显示,Sugar应用程序日志中没有任何内容(我已经启用了debugging消息,因此在那里logging了很多正常的SQL活动)。 我的php.ini有 error_reporting = E_ALL & ~E_NOTICE display_errors = On 我试过设置error_reporting = E_ALL | E_STRICT error_reporting = E_ALL | E_STRICT但我从中得到的是大量的代码风格的警告没有错误。 我还能做些什么来调查这个截断问题?

使用unicode文件名重新上传文件会创build相同的副本

我正在Debian 6系统上运行一个Django站点,使用gunicorn服务器和处理静态文件的nginx 0.7.67。 文件系统区域设置为sv_SE.UTF-8。 我遇到了另一个用户上传包含unicode字符的文件名的问题。 这导致服务器在尝试提供上传的文件时抛出404错误。 当我从我的系统上传相同的文件时,该站点现在正确地提供该文件。 但是,它并没有删除旧文件,尽pipe它们在各方面似乎完全相同。 以下是当前目录列表。 -rwxr-xr-x 1 www-data www-data 1188260 25 jan 22.53 Läxa 15_geometri.pdf -rwxr-xr-x 1 www-data www-data 1188260 27 jan 10.45 Läxa 15_geometri.pdf 现在怎么可能有两个相同的文件具有相同的(明显的)名称? 首先可能是404的原因,即第一次上传有什么问题? URL和以前一样,只是现在不会抛出404。

无论如何validation更新安装?

我安装了vmware工作站,安装程序中有一个错误,导致它不在Debian上使用LSB头文件(debian运行级脚本需要lsb头文件)。 这意味着无论何时configuration运行级脚本,insserv / update-rc都会失败,因为vmware脚本没有lsb头文件。 我从Debian安装了6.02更新,更新了很多软件包。 安装完成后,它开始处理触发器。 但是,由于vmware,触发器失败,其中一个软件包也失败了(很确定这都是因为vmware)。 我通过添加insserv覆盖手动修复了vmware脚本,并再次运行aptitude update和aptitude safe-upgrade。 这次它运行了一些触发器,看起来没有错误。 我重新启动并运行aptitude更新和安全升级,它显示没有更新安装。 有没有方法来validation6.02更新的所有更新是否已安装并正确configuration? 有没有办法重新运行这些触发器,甚至可能重新运行6.02更新?

在Debian 6.0.4上安装Gitorious的问题

我想在最新的Debian 6.0.4上安装Gitorious,但我遇到了一些问题,希望有人在这里谁可能能够帮助。 我遵循这篇文章: http : //gitorious.org/gitorious/pages/DebianSqueezeInstallation 我安装了所有第三方应用程序的最新版本,如Ruby-Enterprise,Sphinx和ActiveMQ。 难道它必须与一些不兼容的版本或“gem”? 这是我尝试启动守护进程时的错误: /etc/init.d/git-daemon start Starting git-daemon: /var/www/gitorious/vendor/plugins/ultrasphinx/lib/ultrasphinx/ultrasphinx.rb:201: private method `chomp' called for nil:NilClass (NoMethodError) from /var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' from /var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' from /var/www/gitorious/vendor/plugins/ultrasphinx/lib/ultrasphinx.rb:15 from /var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' from /var/www/gitorious/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require' from /var/www/gitorious/vendor/plugins/ultrasphinx/init.rb:2:in `evaluate_init_rb' from /var/www/gitorious/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:158:in `evaluate_init_rb' from /var/www/gitorious/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' from /var/www/gitorious/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:154:in `evaluate_init_rb' from /var/www/gitorious/script/../config/../vendor/rails/railties/lib/rails/plugin.rb:48:in `load' from /var/www/gitorious/script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in `load_plugins' from /var/www/gitorious/script/../config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in […]

更新Percona服务器时出错

我得到percona-server-5.5的常规aptitude安全升级的错误,我已经运行percona服务器5.5版本 Setting up libmysqlclient18 (5.5.20-rel24.1-217.squeeze) … Setting up percona-server-common-5.5 (5.5.20-rel24.1-217.squeeze) … Setting up percona-server-client-5.5 (5.5.20-rel24.1-217.squeeze) … Setting up percona-server-client (5.5.20-rel24.1-217.squeeze) … Setting up percona-server-server-5.5 (5.5.20-rel24.1-217.squeeze) … Stopping MySQL (Percona Server): mysqld. /var/lib/dpkg/info/percona-server-server-5.5.postinst: line 63: 30956 Done echo "$replace_query" 30957 Killed | $MYSQL_BOOTSTRAP 2>&1 30958 Killed | $ERR_LOGGER dpkg: error processing percona-server-server-5.5 (–configure): subprocess installed post-installation […]

在Cyrus / imapd中禁用user_deny.db

我们在Debian上有一个cyrus 2.4.12 ,我们使用包,而不是自己构build每个软件。 我正在不断得到这个“日志”,很多,各种各样的用户,并且每个用户请求8-10次: 获取user123的user_deny.db条目 我已经find了它,但还没有find一个真正的解决scheme,2.3.xx有一些补丁 ,但我们不希望build立它,我们更喜欢使用包。 有没有任何解决scheme来根本禁用user_deny.db 。 我们不需要这个function。 它将CPU浪费在磁盘上。

Debian将挤占用于Android设备的L2TP / IPSec网关

我试图configurationDebian挤作为用于Android设备的L2TP / IPSec VPN,但没有取得很大的成功。 到目前为止,我做了以下工作: 通过openswan实现IPSec成功configuration了Debian。 由于Android 4中的错误,我可以使用Android 2.3连接设备,但不能使用Android 4设备连接(请参阅http://code.google.com/p/android/issues/detail?id=23124 ) 在用浣熊replaceopenswan后,我来谈谈,其中: 我可以从安卓4与IPSec Xauth PSK连接(但只能从我的笔记本电脑Android ICS,而不是从ICS真正的平板电脑。当从平板电脑连接,我的服务器说,用户通过身份validation,似乎一切正常,但平板电脑说“连接不成功“ – 但这是中国设备与香肠,所以也许这是好的) 我可以使用Cisco VPN客户端进行连接 但是我无法使用任何使用L2TP / IPSec PSK的Android连接(我更喜欢这种协议,因为这可能只是所有Android客户端支持的select,不pipe版本如何) 我的configuration如下: racoon.conf会: path pre_shared_key "/etc/racoon/psk.txt"; log info; listen { isakmp 172.31.251.122[500]; isakmp_natt 172.31.251.122[4500]; } timer { natt_keepalive 10sec; } remote anonymous { exchange_mode aggressive; my_identifier fqdn "mydomain.com.pl"; doi ipsec_doi; generate_policy on; […]