Articles of debian wheezy

OpenVPN和客户端连接脚本

在Debian Wheezy上运行桥接模式的OpenVPN服务器(2.3.2)。 一切工作正常,在客户端连接和访问所需的networking(S)方面。 我试图通过使用客户端连接选项添加一些花里胡哨的声音。 这是openvpnconfiguration文件的相关部分: script-security 3 system client-connect /etc/openvpn/scripts/clientconnect.sh 在试图检查脚本实际运行时,clientconnect.sh由以下部分组成: #!/bin/bash echo "testing">>/etc/openvpn/scripts/test exit 0 很简单。 如果我从命令行运行脚本,正如所期望的那样,每次都将“testing”附加到/ etc / openvpn / scripts / test,并返回0。 当我从客户端连接时,我在/ etc / openvpn / scripts / test中得到一个“testing”。 大! 但是,当我断开连接,再次连接,我不会得到另一个“testing” 所以,要检查它的实际运行情况,我将clientconnect.sh中的退出值更改为1 果然, 每次尝试从客户端连接失败,因为脚本返回一个非0值。 为什么它看起来像脚本没有运行? 顺便说一句,如果我重新启动服务器上的openvpn服务,然后再次进行“testing”,但是再次,在后续连接上没有写入任何内容。 任何指针/帮助/神秘咒语都受到感谢! 迪伦

E:包“libapache2-mod-fastcgi”没有安装候选版本 – Debian服务器

apt-get install libapache2-mod-fastcgi 正在读取软件包列表…完成编译依赖关系树 读取状态信息…完成软件包libapache2-mod-fastcgi不可用,但被其他软件包引用。 这可能意味着软件包丢失,已被废弃,或只能从其他来源获得 E:包“libapache2-mod-fastcgi”没有安装候选 ======的/ etc /公寓/ source.list中======================== deb http://ftp.es.debian.org/debian wheezy main non-free contrib deb-src http://ftp.es.debian.org/debian wheezy main non-free contrib deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src htp://security.debian.org/ wheezy/updates main contrib non-free deb http://ftp.es.debian.org/debian wheezy-updates main contrib non-free deb-src http://ftp.es.debian.org/debian wheezy-updates main contrib non-free deb htp://ftp.es.debian.org/debian testing main deb-src http://ftp.es.debian.org/debian testing main […]

sudo apt-get update不会更新Debian Wheezy中的存储库

我正在尝试使用下面的命令来更新存储库,但它是失败的: sudo apt-get update 以上是上述命令的输出: Hit http://dl.google.com stable Release.gpg Hit http://deb.opera.com stable Release.gpg Hit http://liveusb.info all Release.gpg Hit http://dl.google.com stable Release Hit http://deb.opera.com stable Release Hit http://liveusb.info all Release Hit http://dl.google.com stable/main i386 Packages Hit http://repo.mysql.com wheezy Release.gpg Hit http://linux.dropbox.com wheezy Release.gpg Hit http://deb.opera.com stable/non-free i386 Packages Hit http://liveusb.info all/main i386 Packages Hit http://security.debian.org wheezy/updates […]

即使known_hosts正确,主机密钥validation也失败

我正在运行Debian 7 Wheezy服务器,并且在通过SSH连接到其他服务器时遇到问题。 这个问题只发生在通过crontab运行SSH时,而不是以其他方式(以当然用户身份login)。 当通过crontab以这个用户的身份运行ssh命令时,出现以下问题: Host key verification failed. 我已经删除~/.ssh/known_hosts文件并手动连接到服务器,以使主机密钥正确。 当使用-v标志运行SSH时,我得到以下内容: debug1: read_passphrase: can't open /dev/tty: No such device or address Host key verification failed. 如果我列出/dev/tty它有666个权限: crw-rw-rw- 1 root root 5, 0 Jun 21 15:49 /dev/tty 在列出/dev/tty后,我也手动将权限设置为666,以便完全确定。 为什么SSH说它不能读取/ dev/tty ? 我已经探索了几个星期,没有find答案。 有人有线索吗?

添加第二个IP到服务器

我有一个将托pipe多个域的Debian 7框。 我试图添加第二个IP,但每次我尝试/etc/init.d/network stop && /etc/init.d/network start ,我得到这个错误: RTNETLINK answers: File exists Failed to bring up eth0:0 但是,新的IP仍然有效 – 我可以在浏览器中访问服务器。 这是我的接口文件: allow-hotplug eth0 iface eth0 inet static address 111.222.26.38 netmask 255.255.255.0 network 111.222.26.0 broadcast 111.222.26.255 gateway 111.222.26.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 1.2.3.4 1.2.3.5 1.2.3.6 dns-search my.tld auto […]

solr php扩展无法在最新的Debian Wheezy上运行

我正在尝试在最近升级的Debian Wheezy上使用Solr PHP扩展。 它从PECL和源代码完美地安装,而不是给我预期的function,它在每个PHP运行中给我这个: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/solr.so' – /usr/lib/php5/20100525/solr.so: undefined symbol: curl_easy_getinfo in Unknown on line 0 另外使用扩展的脚本会引发错误 PHP Error[2]: include(SolrClient.php): failed to open stream: No such file or directory in file <…path to my autoloader…> 我的主要观点是它之前build立起来,像一个魅力一样工作。 在相关软件包的升级中,只改变了PHP和libcurl的版本。 Solr实例本身保持原样。 我有所有可能的libcurl库: $ locate libcurl … /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.3 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4.2.0 /usr/lib/x86_64-linux-gnu/libcurl.a […]

突然之间,关机命令再也找不到了

我login到我的Debian 7服务器,使用apt进行了升级,并想使用shutdown -r now关机+重启, shutdown -r now我做了很多次。 这一次,关机命令已经找不到了。 我已经阅读了一些地方,我可以尝试整个path/sbin/shutdown ,但程序也不在那里。 我也无法在任何地方find重新启动命令。 什么地方出了错? 我能做些什么来恢复关机命令?

ACCEPT语句在DROP策略中

我试图在Debian(Wheezy)下使用IPtables设置一些规则,并且遇到了一些我认为的问题。 INPUT的策略设置为DROP。 这是否放弃一切基于我放入INPUT的规则,或者它是一些路由器中的标准ACL列表,这意味着所有不符合语句(如果它们设置为ACCEPT)将导致DROP? 以此为例: Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp — anywhere anywhere tcp dpts:ftp-data:ftp 这些ftp-packet会丢失还是会被接受,其他的一切都会丢失? 我希望我不会把它搞乱。

VNC服务器为无头的Debian框?

我可以使用哪个VNC服务器在无头Debian Wheezy盒子上运行graphics应用程序(即X客户端)? 通常我不需要在服务器上的graphics应用程序,但有时会有应用程序(例如固件更新实用程序),可悲的是需要一个graphics界面。

从debian wheezy backports安装git:无论如何,我看到旧的包版本

我需要安装git 1.8。*版本。 我添加了backports到我的sources.list; 通过apt-get remove git删除当前安装的apt-get remove git ; 执行apt-get update来更新我的软件包列表 aptitude show git仍然显示Version: 1:1.7.10.4-1+wheezy1 我做错了什么? 这是我的/etc/apt/sources.list: deb http://ftp.de.debian.org/debian/ wheezy main deb-src http://ftp.de.debian.org/debian/ wheezy main deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main # wheezy-updates, previously known as 'volatile' deb http://ftp.de.debian.org/debian/ wheezy-updates main deb-src http://ftp.de.debian.org/debian/ wheezy-updates main # deb multimedia deb http://www.deb-multimedia.org wheezy main non-free […]