Debian 11 Bullseye 升级 Debian 12 Bookworm

更新Debian11至最新 apt update apt upgrade -y apt dist-upgrade -y reboot 更新软件源 由于Debian 12及以后的版本,支持分发非自由固件二进制文件(non-free),如部分驱动,都被转移到新组件目录: 非自由固件(non-free-firmware) # 替换 bullseye 为 bookworm sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list # 新增 non-free-firmware 可选, 但建议 sed -i 's/non-free/non-free non-free-firmware/g' /etc/apt/sources.list 升级系统 更新过程种会提示一些软件是否需要自动重启,选 Yes 即可,以及一些软件的配置文件是否需要更新,按照自己的情况选择即可,默认回车即视为使用旧的配置文件 另外有些软件会提示是否变更配置, 默认选择keep the local version即可 apt update apt upgrade -y apt dist-upgrade -y reboot 确定查看系统版本 root@debian ~ # cat /etc/debian_version 12.0 确定查看系统版本 root@debian:~$ uname -a Linux debian 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6....

2023-07-14 · 1 分钟 · andsky

debian openvz vps 优化

比较喜欢 debian vps ,系统比较简洁,而且很省内存,但大部分的 vps 商都使用的标准模版,带了不少垃圾东西。 首先进行系统更新 apt-get update && apt-get upgrade 安装sysv-rc-conf做为开机管理项 apt-get install sysv-rc-conf 先删除 apache 相关,使用 nginx 代替 apt-get remove --purge apache* 删除sendmail 相关 apt-get remove --purge sendmail* sasl2-bin 删除bind9相关 apt-get remove --purge bind9-* 删除xinetd 相关 apt-get remove --purge xinetd 删除samba相关 apt-get remove --purge samba-* 删除rpcbind相关 apt-get remove --purge rpcbind

2014-01-08 · 1 分钟 · admin

debian 下安装 lxc

本文安装环境 debian 6.0 安装 lxc debootstrap 工具 aptitude install lxc bridge-utils debootstrap 设置网络 auto eth1 iface eth1 inet manual auto br0 iface br0 inet static bridge_ports eth1 #根据自己实际网卡设置 bridge_fd 0 address 10.0.0.100 netmask 255.255.255.0 gateway 10.100.0.1 dns-nameservers 10.20.0.2 加载 cgroup 编辑 /etc/fstab cgroup /sys/fs/cgroup cgroup defaults 0 0 立即加载 mount /sys/fs/cgroup 接下来创建一下虚拟机 #下载 squeeze 64位 debootstrap --verbose --variant=minbase --arch=amd64 --include ifupdown,locales,libui-dialog-perl,\ dialog,netbase,net-tools,iproute,openssh-server,vim,apt-utils,proxychains \ squeeze /var/cache/lxc/debian/rootfs-amd64 http://mirrors.163.com/debian/ mkdir -p /lxc/vm0 #存放目录 /usr/lib/lxc/templates/lxc-debian -p /lxc/vm0/ # 创建虚拟机 配置虚拟机网络,在 /lxc/vm0/config 文件填加些文本...

2013-11-23 · 1 分钟 · admin

debian 下 lxc 限制内存出错

起动 vm 的时候出现 lxc-start: open /cgroup/vm0/memory.limit_in_bytes : No such file or directory lxc-start: failed to setup the cgroups for ‘vm0’ lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn ‘vm0’ 在 /etc/default/grub 文件填加 GRUB_CMDLINE_LINUX="cgroup_enable=memory" 0# lxc-checkconfig Kernel config /proc/config.gz not found, looking in other places... Found kernel config file /boot/config-2.6.32-5-amd64 --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled Multiple /dev/pts instances: enabled --- Control groups --- Cgroup: enabled Cgroup namespace: enabled Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: missing Cgroup cpuset: enabled --- Misc --- Veth pair device: enabled Macvlan: enabled Vlan: enabled File capabilities: enabled

2013-11-23 · 1 分钟 · admin

debian bridge 网卡参数说明

bridge_fd is the bridge forward delay time, in seconds, default 15. bridge_hello is the bridge hello time, in seconds, default 2. bridge_maxage is the bridge’s maximum message time, in seconds, default is 20. bridge_stp controls the spanning tree protocol, on or off. Default is off, and is recommended to stay that way.

2013-11-23 · 1 分钟 · admin

lxc guest 报错 respawning too disabled minutes

INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c2" respawning too fast: disabled for 5 minutes INIT: Id "c3" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c2" respawning too fast: disabled for 5 minutes INIT: Id "c3" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes 解决方法 编辑 /etc/inittab...

2013-11-23 · 1 分钟 · admin