当前位置:网站首页>Install and configure Debian on a wired network
Install and configure Debian on a wired network
2022-07-27 04:27:00 【666QAQ】
Preface
I want to debian Use as a desktop system . There is no wired network card in the notebook , Only wireless network card , So when installing the system , Only one basic operating system can be installed .
If you want to install the program ( use apt), All need network support , Therefore, if you want to connect to the Internet, you must first install the wireless network card driver .
Online methods are all the same apt install firware-iwlwifi, However , The premise of using this command is that there is a network .
Offline installation , It really hurts , It's troublesome to find the software package first , Fortunately, I was able to solve this most important problem , Of course , There are a series of other problems after successfully installing the desktop .
Install the basic operating system
First , We are installing offline , So there is no desktop available , Equivalent to the server version .
It is impossible to recognize Chinese in this environment , So remember to choose Chinese when installing , otherwise , When you use commands , There will be some. ’‘, Because I can't recognize Chinese ( But it should be able to pass later dpkg-reconfigure locales Adjust to English ).
Server configuration wifi
Our first problem is networking , Of course , Here it means WIFI.
First , use ip a List ip Information , See if there is a wireless network card inside , It's usually w start , Such as wlan0、wlps20f3.
without , It means that you, like me, don't have a wireless card driver , Self installation required .
Download driver
Find a computer that can connect to the Internet , Such as your windows, Go to https://pkgs.org download wpasupplicant
Version to correspond , My is debian11, So choose the first .
Find the download link , Copy to browser for download .( In fact, here, learn how to view the directory structure of the mirror station according to this link ).
Copy to your U disc .
download wpasupplicant
The same steps as downloading the driver 

however , There are dependent packages , We need to download dependencies manually , According to the actual measurement , You need to download this in the dependency 4 individual :libnl-3-200、libnl-route-3-200、lib-genl-3-200、libsclite-1.
hold wpasupplicantXXX.deb And its four dependencies are copied to your U disc .
Install the drive and wpasupplicant
be familiar with debian The software packages of series should be installed offline , But take care of the novice , again .
Above we have what we need deb The packages have been copied to U disc .
start-up debian, Insert U disc .
- Check the disk , Find yours in it U disc ( You can find it by looking at the capacity ):
fdisk -l
My is/dev/sdb1. - mount U disc :
moutn /dev/sdb1 /mnt cd /mntGet into U Disk mount directorycp *.deb ~Copy to your working directorydpkg -i *.debdpkg -i *.deb( To prevent not installing in dependent order , We can install it twice without brain , Anyway, the repeated ones will not be installed )modprobe -r iwlwifimodprobe iwlwifi
To configure wifi
Connect
ip a # Check the interface name of your wireless network card , This time there should be , such as `wlan0`、`wlps2sf30`
wpa_supplicant wifi name wifi password > /etc/wpa_supplicant/wpa_supplicant- Wireless network card interface .conf# Generate wifi The configuration file
wpa_supplicant -i Wireless network card interface -c /etc/wpa_supplicant/wpa_supplicant- Infinite network card interface -B
dhclient
Set up auto connect when power on
Add a wireless network connection as a service , Boot up
systemctl start [email protected] Wireless network card interface
systemctl status [email protected] Wireless network card interface ## Check for success
systemctl enable [email protected] Wireless network card interface
DHCP Pattern
vi /etc/network/interfaces
Add below :
allow-hotplug Wireless network card interface
iface Infinite network card interface inet dhcp
Restart to complete .
Desktop prerequisites
Configure environment variables
First use debian, Unexpectedly, I found that there was no poweroff、reboot Wait for the order , You need to add environment variables :
echo 'export PATH=$PATH:/sbin' >> /etc/profile
Then restart :/sbin/reboot
apt Source change
At this time, we not only have no desktop , Not even wget、curl, and /etc/apt/sources.list It seems to be " Safe version of ".
Unable to access the Internet conveniently , So changing the source also requires the help of other computers .
Find a machine that can surf the Internet , Go to Alibaba mirror station copy One copy debian Of apt It's from you U disc ( Write it down as sources.list).
start-up debian Insert U disc :
mount /dev/sdb1 /mnt
cp /mnt/sources.list /etc/apt/sources.list
apt update
apt upgrade
install Gnome desktop
apt install gnome
reboot
Shortcut key
After installing the desktop, I found that there was no way to open the terminal option by right clicking ,CTRL ALT + T Also invalid , So we need to be on our own settings Add .
Because I have configured , So here is Chinese , I think you should be able to compare the options in English .

Desktop configuration network
After installing the desktop , As a result, I expected :gnome The network icon in the upper right corner of the desktop ( Three displays ) Show not connected , Because we couldn't find it adaptor, But in fact, it can be connected , If the previous configuration is completed ,ping baidu.com can ping through ,
Got it , The desktop should be NetworkManager To manage the network , And we are in the server stage without desktop , It's through /etc/interfaces+wpa_supplicant To connect WiFi Of , This method is associated with NetworkManager There will be conflict , In order to see our networking status visually , You need to switch to NetworkManager. Of course , If you can accept that the upper right corner always shows disconnected ( Although it is actually connected ), You can also skip this step .
apt install NetworkManager
systemctl start NetworkManager
systemctl enable NetworkManager
rm /etc/wpa_supplicant/wpa_supplicant*.conf ## Delete file , Otherwise it will conflict
systemctl disable wpa_supplicant ## No auto start
reboot
Configure Chinese and input method
Switch Chinese
In the server stage, we use English to install , Switch to Chinese :
dpkg-reconfigure locales

Take these three zh_CN Also tick .
It didn't take effect, remember reboot
typewriting
ibus It's been used for a long time , It's really hard to use , The main reason is that the choice of words is not intelligent , Is so stupid , I can't find the word I want .
This time I tried Googlepinyin、 Sogou Pinyin , I think Sogou is better .
You need to uninstall ibus, Then install fcitx frame , Final installation sougoupinyin.
## dpkg -P ibus #dpkg It seems that you can't uninstall , use apt
apt purge ibus
apt autoremove
apt install fcitx
After successful installation , Find... In the application " typewriting ", Or terminal input im-config, hold fcitx Just tick it .
Open your own Firefox browser , Go to Sogou official website to download that linux Version of deb package ,dpkg -i sougou*.deb Install it .
Then open... In the application fcitx To configure , Or terminal fcitx-configtool

Shortcut keys I am used to using the system super+space, However, you need to set in the shortcut key super+space Ban ,

Sogou has a font status bar , There will be fcitx Just hide the status bar of .

Other questions
use debian Somewhat ubuntu No problem , Such as no sudo、 No, man command 、vim To configure vimrc There is no color after , It's all pretty simple .
For one thing cited, ten thousand may have been left out , Only the above key issues are listed here , The rest can be understood by yourself .
Reference article
debian How to install wifi drive _Debian How to install the wireless network card driver
Linux Debian: Command line connection wifi To configure , The solution is DELL Dell and Thinkpad Lenovo Wicd No wireless network problems found ( use ifup or nmcli )
Debian Use wpa_supplicant Software package for network settings
边栏推荐
- Influxdb basic understanding
- The real digital retail should have richer connotation and significance
- 匿名命名管道, 共享内存的进程间通信理解与使用
- BSN IPFS(星际文件系统)专网简介、功能、架构及特性、接入说明
- Cool Lehman VR panorama paves the way for you to start a business
- The external symbol parsed by the method "public: virtual _ucdecl nvinfer1:: yololayerplugin:: ~yololayerplugin (void)" "public: virtual
- The difference between ArrayList and LinkedList
- Eureka service registry
- 2022-07-26:以下go语言代码输出什么?A:5;B:hello;C:编译错误;D:运行错误。 package main import ( “fmt“ ) type integer in
- [machine learning network] BP neural network and deep learning-6 deep neural networks (DNN)
猜你喜欢

你了解微信商户分账吗?

Ant JD Sina 10 architects 424 page masterpiece in-depth distributed cache from principle to practice pdf

Rust:axum学习笔记(1) hello world

DINO 论文精度,并解析其模型结构 & DETR 的变体

从零开始C语言精讲篇4:数组

C language learning notes - memory management

Echart柱状图中数据显示在图上方
![[competition reference] pytorch common code snippet and operation collection](/img/b3/0b91e381e2444dfd222537bf5b8ccf.jpg)
[competition reference] pytorch common code snippet and operation collection

Okaleido tiger will log in to binance NFT in the second round, or continue to create sales achievements

深度剖析 —— 动态内存管理
随机推荐
Knowledge atlas: knowledge representation
数据分析师岗位分析
VR panorama gold rush "careful machine" (Part 1)
C language learning notes - memory management
PX4模块设计之十二:High Resolution Timer设计
2022 operation of simulated examination question bank and simulated examination platform for safety production management personnel of hazardous chemical production units
【机器学习网络】BP神经网络与深度学习-6 深度神经网络(deep neural Networks DNN)
php+swoole
JMeter download and installation
Slope of binary tree
微服务的feign调用header头被丢弃两种解决方案(附源码)
Brightcove任命Dan Freund为首席营收官
ros 相机标定 sensor_msgs/CameraInfo Message 数据类型及含义
【软件工程期末复习】知识点+大题详解(E-R图、数据流图、N-S盒图、状态图、活动图、用例图....)
Detailed explanation of TCP protocol knowledge
A. Round Down the Price
shel自动设置目录权限
【小样本分割】MSANet: Multi-Similarity and Attention Guidance for Boosting Few-Shot Segmentation
Analysis of three common kinematic models of mobile chassis
Principle of bean validation --07