赞
踩
Debian是一个基于Linux内核的自由和开放源代码操作系统,由全球志愿者组成的Debian项目维护和开发。该项目始于1993年,由Ian Murdock发起,旨在创建一个完整的、基于Linux的自由软件操作系统。
debian | debian 历史版 | debian 发行版 | debian 安装 | debian preseed.cfg自动化编排 | Debian 全球镜像站 |
download | download | 参考 | 参考 | 参考 | download |
standard
(标准工具)desktop
(图形化桌面)gnome-desktop
(Gnome 桌面)xfce-desktop
(XFCE 桌面)kde-desktop
(KDE Plasma 桌面)cinnamon-desktop
(Cinnamon 桌面)mate-desktop
(MATE 桌面)desktop)lxde-desktop
(LXDE 桌面)web-server
(web 服务器)ssh-server
(SSH 服务器)- cat >>/etc/ssh/sshd_config<<EOF
- # add 18
- PermitRootLogin yes
- EOF
-
- systemctl restart ssh
- echo "Change the debian source"
- mv /etc/apt/sources.list /etc/apt/sources.list.bak
-
- cat <<'EOF'>>/etc/apt/sources.list
- deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
- deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
- deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
- deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
- deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
- deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
- deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
- deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
- EOF
-
- apt-get clean
- apt-get update
- apt install -y vim

ln -sf bash /bin/sh
- nic_network_name=`ifconfig -s | awk 'NR>1 && !/^lo/ && !/^idrac/ && !/^br/ && !/^veth/ && !/^docker/{print $1; exit}'`
- IP_ADDRESS="192.168.11.69"
- PREFIX_mask="24"
- GATEWAY="192.168.11.1"
- DNS1="8.8.8.8"
-
- echo "delete default interfaces"
- rm -rf /etc/network/interfaces
-
- echo "Function interfaces"
- cat <<EOF>>/etc/network/interfaces
- source /etc/network/interfaces.d/*
- auto lo
- iface lo inet loopback
- allow-hotplug $nic_network_name
- iface $nic_network_name inet static
- address $IP_ADDRESS/$PREFIX_mask
- gateway $GATEWAY
- dns-nameservers $DNS1
- EOF
-
- echo "Restart the NIC to take effect"
- systemctl restart ifup@$nic_network_name

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。