Skip to content

在老笔记本上搭建proxomox

背景

闲置一台老的笔记本,作为家庭服务器,esxi7会有驱动问题,所以选择proxomox

软硬件相关

dell的老笔记本,16GB内存,双核4线程

proxmox 7.1.2

ventoy制作系统安装u盘

操作

从proxmox官网下载镜像文件,使用ventoy制作安装u盘,并按照步骤提示安装proxmox系统

清理源

rm /etc/apt/sources.list.d/pve-enterprise.list

/etc/apt/sources.list中加入

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

更新apt update && apt upgrade -y

关闭屏幕

安装vbetool

apt-get install vbetool -y

运行命令关闭屏幕

vbetool dpms off

若要开启屏幕 vbetool dpms on即可

显示器自动休眠

vi /etc/default/grub 
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
#改成15秒后 自动休眠
GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=15"
update-grub

合上屏幕盖子,不休眠

vi /etc/systemd/logind.conf
# 以下两项默认值是suspend,改成ignore
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
service systemd-logind restart

使用无线网络

apt install net-tools wireless-tools wpasupplicant

安装完成后,查看下无线网卡

# iwconfig
lo        no wireless extensions.

enp2s0    no wireless extensions.

wlp1s0    IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=-2147483648 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
vmbr0     no wireless extensions.

搜索无线网络

iwlist wlp1s0 scan

PS:该操作需要先启用无线网卡,ip link set wlp1s0 up

展示的结果类似

...
...      
 Cell 02 - Address: 04:42:1A:78:03:58
                    Channel:9
                    Frequency:2.452 GHz (Channel 9)
                    Quality=70/70  Signal level=-29 dBm
                    Encryption key:on
                    ESSID:"daomin"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000231ec2a4417
...
...

生成无线网络的配置文件

wpa_passphrase daomin 这里是wifi密码 > /etc/wpa_supplicant/wpa_supplicant.conf

配置网络接口(interface)

echo 'auto wlp1s0
iface wlp1s0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf' >> /etc/network/interfaces

重启网络服务,让配置生效

service networking restart

检查网络配置是否成功

# iwconfig
lo        no wireless extensions.

enp2s0    no wireless extensions.

wlp1s0    IEEE 802.11  ESSID:"daomin"  
          Mode:Managed  Frequency:5.2 GHz  Access Point: 04:42:1A:78:03:5C   
          Bit Rate=433.3 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=70/70  Signal level=-40 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:4   Missed beacon:0

vmbr0     no wireless extensions.
Published inpve

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *