Articles of Debian

Debian挤压 – 无法升级bash

我试图升级bash,所以它不是脆弱的。 我尝试了Debian的Sources List Generator。 但是libtinfo5阻止我升级bash。 我找不到libtinfo5旧版本(由于源代码列表问题),看是否可以安装它。 的sources.list deb http://deb.debian.org/debian/ stable main contrib non-free deb http://deb.debian.org/debian/ stable-updates main contrib non-free deb http://deb.debian.org/debian-security stable/updates main root@server:~# apt-get install –only-upgrade bash Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libdpkg-perl bzip2 libmpfr4 fakeroot libalgorithm-merge-perl […]

什么是system-networkd相当于post-up? (dynamic桥MACconfiguration)

在使用/etc/network/interfaces (例如Debian)的Linux发行版中,我可以使用(内核)桥来使用其静态桥接从属接口之一的MAC48地址,例如内置的wlan0 ,如下所示: post-up ip link set br0 address `cat /sys/class/net/wlan0/address` 这确保了1)每个克隆系统使用其独特的MAC48(独特的wlan0中的一个),并且2)即使热插拔更低MAC48的桥接器,桥MAC也保持稳定。 systemd-networkd是否支持在networking(或netdev)启动后可以运行的任何types的post-up命令? 我试图find这样的事情,但可能错过了。 或者是systemd中完全不同的正确方法,即有一个设备单元和一个包装ip link…命令并依赖于设备单元的服务? 如果是这样,设备单元和服务单元文件将如何?

Debian 9.1:不能禁用IPv6自动configuration

我已经更新了一台机器到Debian 9.1,似乎一切正常,但是我不能禁用IPv6自动configuration。 背景 :我只想在我在/etc/systemd/network/10-static-eth0.network定义的机器上使用一些特定的IPv6地址: [Match] Name=eth0 [Network] Address=2a04:52c0:xxx:xxx::xxx/48 Address=2a04:52c0:xxx:xxx::xxx/48 Address=2a04:52c0:xxx:xxx::xx/48 Gateway=2a04:52c0:xxx::1 Address=5.2.xxx.xxx/25 Address=5.2.xxx.xxx/25 Address=5.2.xxx.xxx/25 Gateway=5.2.xxx.xxx 要禁用IPv6自动configuration,我在/etc/sysctl.conf的末尾添加了以下内容: net.ipv6.conf.default.autoconf=0 net.ipv6.conf.all.autoconf=0 net.ipv6.conf.eth0.autoconf=0 net.ipv6.conf.default.accept_ra=0 net.ipv6.conf.all.accept_ra=0 net.ipv6.conf.eth0.accept_ra=0 net.ipv6.conf.default.accept_dad=0 net.ipv6.conf.all.accept_dad=0 net.ipv6.conf.eth0.accept_dad=0 重新启动后,没有dynamic/自动configurationIPv6地址,但过了一段时间它出现在ip addr show : inet6 2a04:52c0:xxxx:xxxx:xxxx:xxx:xxxx:1e3d/64 scope global mngtmpaddr noprefixroute dynamic valid_lft 2590732sec preferred_lft 603532sec 我怎样才能避免这个自动configurationIPv6地址,并确保只有静态地址才能起作用? 谢谢。

升级Debian – 处理手册页时出错

我正在从Debian 7(Wheezy)升级到9(Stretch)。 我试过了: apt-get clean apt-get update apt-get upgrade 我得到一个错误,因为它试图解压缩看起来像这样的manpages。 输出: After this operation, 585 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.us.debian.org/debian/ stretch/main manpages all 4.10-2 [1,222 kB] Fetched 1,222 kB in 0s (2,055 kB/s) Reading changelogs… Done (Reading database … 187746 files and directories […]

bind9的性能比google dns慢

在debian 9我configurationbind9(v.9.10.3)作为caching服务器,稍后作为转发服务器。 为了testing目的,我没有任何防火墙,我从内部千兆位进行testing。 绑定工程,但performance不是很好,例如: dig aruba.it @192.168.50.35 (my BIND) Query time: 129 msec dig aruba.it @8.8.8.8 Query time: 20 msec nmap -sT -p 53 192.168.50.35 Starting Nmap 7.60 ( https://nmap.org ) at 2017-11-06 14:31 CET Nmap scan report for 192.168.50.35 Host is up (0.0014s latency). ping -c5 192.168.50.35 PING 192.168.50.35 (192.168.50.35) 56(84) bytes of data. […]

更新phpMyAdmin后出现错误

在我的Apache / 2.4.10(Debian)上更新phpMyAdmin到v4.7.5之后,我得到: phpMyAdminconfiguration存储没有完全configuration,一些扩展function已被禁用。 找出为什么。 或者,也可以转到任何数据库的“操作”选项卡上进行设置。 这是not OK : https://image.ibb.co/jW3fOG/Bildschirmfoto_2017_11_14_um_17_18_34.png 我在/etc/phpmyadmin/config.inc.php添加了以下内容: $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; 但重启后仍然是一样的,仍然是相同的错误。 我究竟做错了什么? 我能做什么?

Debian Lenny和php4(以及php5)

PHP4已从lenny软件包列表中删除。 任何build议什么可能是最好的方法来安装php4(Apache mod和cli)的lenny框不破坏php5? 并可能仍然有卸载能力稍后。

如何从同一台PC上的putty连接debian vmware

我在vmware播放器上安装debian,其工作正常,现在我喜欢用我的腻子连接到vmware debian,但我不知道如何,当我做ifconfig -a即时通讯只有我的路由器内部networkingIP我需要做什么在同一台电脑上连接到vmware

Firefox的执行失败,执行脚本的权限下降

我不能从一个将权限下降到普通用户的脚本的python脚本运行firefox。 如果我写 #sudo python >>>import操作系统 >>> import pwd,grp >>> uid = pwd.getpwnam('norby')[2] >>> gid = grp.getgrnam('norby')[2] >>> os.setegid(gid) >>> os.seteuid(uid) >>>导入webbrowser >>> webbrowser.get('firefox')。open('www.google.it') 真正 >>>#它返回true,但不起作用 >>>从subprocess导入Popen,PIPE >>> p = Popen('firefox www.google.it',shell = True,stdout = PIPE,stderr = PIPE) >>>#不执行命令 我认为这不是一个python的问题,但firefox / iceweasel / debian的configuration问题。 也许firefox只读UID而不是EUID,并且不执行进程,因为UID等于0.您怎么看待?

将ftp用户切换到特定的目录

我想chroot用户到他们的debian linux服务器上的主目录。 我使用vsftpd服务器。 我以前用过,现在不记得怎么做。 我已经限制ssh访问root用户,所以chroot用户不能使用ssh。 任何人想到我可能会失踪? – 标记