Debian 12 源列表 (sources.list)deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware deb-src http:/
进入debian 9 之后,系统默认不再使用rc.local执行开机任务,但由于多年的习惯,只好再把它找回来。cat >/etc/systemd/system/rc-local.service<<EOF [Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardOutput=tty RemainAfterExit=yes [Install] WantedBy=multi-user.target EOFcat >/etc/rc.local<<EOF #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0&quo
Debian 9终于正式了,第一时间升级了自己在用的VPS,遇到一个小问题,没有网络了,排查之后发现网卡变成ens3了,而系统默认的网卡配置里(/etc/network/interfaces)却是eth0,这里有两种方案,一种是干脆把网卡配置文件中的eth0直接改为ens3,然后ifup ens3即可恢复网络。另外一种就是把ens3改回我们习惯的eth0,下面就是修改为eth0的具体操作。nano /etc/default/grub查找GRUB_CMDLINE_LINUX=""修改为GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"请根据你的网卡名称替换下面修改参数,例如网卡名称为enp2s0sed -i 's/enp2s0/eth0/g' /etc/network/interfaces重新生成grub引导配置文件grub-mkconfig -o /boot/grub/grub.cfg最后重启即可恢复默认网卡为eth0,操作结束。
在Debian Jessie之前的版本,可以通过下面三条命令完成32位的支持。dpkg --add-architecture i386 apt-get update apt-get install ia32-libsDebian Jessie开始就没有ia32-libs这个包了,不过还是三条命令解决。dpkg --add-architecture i386 apt-get update apt-get install libc6:i386这样就解决了安装32位程序所需要的环境。
Google Authenticator是一个动态验证码程序,兼容各种智能手机平板设备,可以用来做各种帐号的二次验证,增加帐号的安全性。SSH是Linux系统的最重要防线之一,为了防止密码泄露或者被爆破,可以使用Google Authenticator来做二次验证,使用方法也很简单。先说说Debian下的安装和设置:Debian 7.3默认源里面还没有相关的deb程序,不过sid源里已经有了。后续补充:Debian 8以上系统源已自带libpam-google-authenticator,无需另外下载,直接apt安装即可。先下载libpam-google-authenticatorwget -c http://ftp.us.debian.org/debian/pool/main/g/google-authenticator/libpam-google-authenticator_20130529-2_amd64.deb先安装libqrencode3apt-get install libqrencode3 -y再安装下载的debdpkg -i libpam-google-authenti
阿博
2011 - 2023 笔记杂谈. All Rights Reserved.
Theme Jasmine by Kent Liao
Powered by Typecho
加密硬件钱包