在物理机上安装 debian

2021-10-12  本文已影响0人  谁有羊毛

一、准备安装介质

类似于是windows安装时pe的作用,需要一个启动盘来安装debian,这里我们使用U盘来做debian启动盘

1. 硬件准备:
2. 下载debian镜像
3. 使用UltraISO制作U盘启动盘,中国官网地址

二、 安装到物理机

这一步和win pe安装windows类似,都是bios修改启动项,然后启动

安装debian系统
  1. 插入U盘到物理机USB口
  2. 重启电脑,按F12(不同主板可能按键不同)进入BIOS启动项选择,选择该U盘启动
  3. 启动后选择图形化安装


    image.png
  4. 接下来就是常规的选择,网络配置可以先跳过
  5. 磁盘分区选择整个磁盘并使用LVM,/home,/var 和 /tmp 单独分区
  6. 安装gui软件 - kde桌面(也可选择其他的桌面 GNOME、Xfce,且服务器端无需gui)等


    image.png
  7. 等待安装结束

三、 配置安装好的系统

比如我的电脑安装好后缺少 wifi 固件的一些东西,只能临时用 usb + 手机共享热点的方式上网。 dmesg -l err,warn 可以查看开机启动的信息

#查看pci信息
lspci
#查看网卡信息
iwconfig
# 查看网络情况
ifconfig
  1. 修改/etc/apt/sources.list 源,清华debian软件源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
  1. 更新配置及安装vim
sudo apt-get update -y
sudo apt-get install vim -y
  1. 解决wifi无法启动的问题
[    5.309587] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:01:00.0.bin (-2)
[    5.309708] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/cal-pci-0000:01:00.0.bin (-2)
[    5.310166] ath10k_pci 0000:01:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
lspci 
pci的所有信息
sudo apt-get install firmware-atheros -y
# 安装好了后重启
sudo reboot
至此,基本的安装就结束了。
上一篇下一篇

猜你喜欢

热点阅读