Article directory
Summary
The company wants to use the new equipment - the program-controlled computer, because they are forced to install ubuntu-server, so they have to configure a lot of things themselves.
Step 1: Modifying Software Sources
Get the first step of the program control computer, modify the software source. When you open the system, you find that the card is in a start. Directive, and then will say how to solve the problem of boot card owner.
Modify the software source as follows:
#Backup Software Source sudo cp /etc/apt/sources.list /etc/apt/sources.list.back #Modify the software source sudo nano /etc/apt/sources.list
Remark the original text and add the following
#Comment out the original content and add the following content
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
Then Ctrl + X Y saves
Start formal work after you've finished.
Step 2: Solving the Problem of Boot Card
Source: https://blog.csdn.net/baidu_19452317/article/details/99297399
In short, add a timeout setting.
After entering the system, open the terminal and enter the following command.
cd /etc/systemd/system/network-online.target.wants/
Look at the folder. There are three files under the folder, systemd-networkd-wait-online.service, networking.service and NetworkManager-wait-online.service.
Modify the system d-networkd-wait-online.service file by adding a sentence under [Service],
TimeoutStartSec=2sec
If there are other network connection problems, modify the Timeout time of the other two files.
Step 3: Set up root account
I found that the new system had no root account and had to be set up by myself.
sudo passwd root
After entering the instructions, first enter the current account password, and then enter the root password you want to set.
Step 4: configuring network systems (wifi and static ip)
The program-controlled computer has two network ports and can also use wifi connection.
So here we need to configure wifi, and the laptop in the same network segment, after convenient connection.
This is more complicated.
Installation driver
Reference article: https://www.cnblogs.com/floud/p/10545924.html
Reference article: https://www.cnblogs.com/free-ys/p/10162388.html
# Software source updates and installation drivers sudo apt update sudo apt upgrade sudo apt-get install wpasupplicant sudo apt-get install network-manager sudo apt install broadcom-sta-dkms #View the wireless network card model and execute the following commands lspci | grep Wireless #1 default display physical network card ens33, no wireless network card ifconfig #2 Get the interface name, Ubuntu is generally wls33 iw dev #3 View the connection status and prompt Not Connected iw dev wls33 link #4 Check whether the wireless network card is block (Wireless LAN) rfkill list all #5 Soft blocked and Hard blocked need to be set to no #If Soft is shown as yes, run the following command ip link set wls33 up //perhaps ifconfig wls33 up #If Hard is yes, look for the wifi button on the laptop, find it and press it #6 Verify whether wls33 interface was successfully opened ip link show wls33 #UP instructions in <BROADCAST, MULTICAST, UP, LOWER_UP> have been opened
Configuring Wireless Network Card with netplan
Beginning with ubuntu18, network configurations have been configured using netplan (different from previous versions), and it feels good to see the whole thing.
Reference: https://netplan.io/examples
To configure netplan, modify the file with the extension / etc/netplan / li. yaml, or create a file (for example, / etc/netplan/config.yaml)
After configuring the file, run sudo netplan apply. This command parses the configuration and applies it to the system. The configuration / etc/netplan / written to disk will remain unchanged between two restarts.
After configuring the network, restart it
Configure wireless network card ip
sudo nano /etc/netplan/50-cloud-init.yaml
Modify the file. Note that all colons are preceded by spaces.
network: renderer: NetworkManager ethernets: enp2s0: addresses: - 192.168.2.9/24 dhcp4: false gateway4: 192.168.2.1 nameservers: addresses: [] search: [] wifis: wlp3s0: addresses: - 192.168.2.10/24 dhcp4: false gateway4: 192.168.2.1 nameservers: addresses: [] search: [] access-points: "Name of wireless network": password: 'Wireless Network Password' version: 2
Make the configured system an iso image
Reference: https://blog.csdn.net/qq_34638161/article/details/81282354