The first step in increasing the username of sudo privileges
Log in as the root user debian
apt install sudo
sudo apt install vim
cd / etc /
vim sudoers
Find the root ALL = (ALL: ALL) ALL add a line in the lower row
username ALL=(ALL:ALL) ALL
English input state press esc: wq
Save and exit the file
Apt source to replace the original source of Tsinghua University
sudo apt install apt-transport-https ca-certificate
接下来
cd /etc/apt
sudo cp source.list source.list.bak
sudo vim source.list
输入:%d清空文件内容
输入:set mouse=c
按i 进入编辑模式
将以下内容粘贴进文件中
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
Then: wq to save and exit
sudo apt update
install realtek driver
sudo install Firmware APT-realtek
sudo install APT Wireless-Tools
sudo install IW APT
sudo APT install wpasupplicent
cd / etc / Network
sudo cp interface.bak interface
ip addr
write down the name of the wireless network card : wls32
sudo vim / etc / network / interface
to edit / etc / network / interface file, add the following to
the #The Wireless Network interface
the allow-hotplug wls32
iface wls32 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
save and exit
chmod 0600 / etc / Network / in the interfaces
su -c the -l "wpa_passphrase your_ssid your_password> /etc/wpa_supplicant/wpa_supplicant.conf"
or edit /etc/wpa_supplicant/wpa_supplicant.conf file, add the following
country=CN
ctrl_interface=DIR=/var/run/wap_supplicant GROUP=netdev
update_config=1
network={
ssid="your_ssid"
psk="your_password"
}
sudo ifup wls32