In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to set up the network and system in Linux, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Linux provides a range of network and system settings. On your desktop computer, Linux allows you to adjust anything on the system. Most of these settings appear in plain text files in the / etc directory. Here I will introduce the most common settings you use when using the desktop Linux operating system.
Most of the settings can be found in the Settings program, which may vary from Linux to distribution. In general, you can modify the background, adjust the volume, connect the printer, make display settings, and so on. Although I won't talk about all of these settings, you can explore them yourself.
Connect to the Internet
Connecting to the Internet in Linux is usually very simple. If you connect through an Ethernet cable, Linux usually gets the IP address and connects automatically when the cable is plugged in or when it starts (if the cable is connected).
If you use a wireless network, there is a menu in most distributions, either in the indicator panel or in Settings (depending on your distribution), where you can select the SSID of the wireless network. If the network is password protected, it usually prompts you for a password. And then connect, and the process is quite smooth.
In the graphical interface, you can adjust the network settings by entering the settings. It is often referred to as "system settings" or "settings". The setup program is usually easy to find because its icon is a picture of a gear or tool (figure 1).
Figure 1: Gnome Desktop Network Settings indicator icon.
Network interface name
Under Linux, network devices have names. Historically, they have been named eth0 and wlan0-or "Ethernet" and "wireless network", respectively. Newer Linux systems have always used different names that seem more esoteric, such as enp4s0 and wlp5s0. If the name starts with en, it is a wired Ethernet interface. If it starts with wl, then it is a wireless interface. The remaining letters and numbers reflect how the device is connected to the hardware.
Network management through the command line
If you want more control over network settings, or if you manage network connections without a graphical desktop, you can also manage the network from the command line.
Note that the most common service for managing networks on the graphical desktop is the Network Manager Network Manager, which typically overrides setting changes made on the command line. If you are using the Network Manager, change your settings in its interface to prevent your changes from the command line or other locations from being undone.
Changing settings in the drawing environment is similar to that in Network Manager, and you can also use a tool called nmtui to change Network Manager settings from the command line. The nmtui tool provides all the settings you find in a graphical environment, but in a text-based semi-graphical interface that runs on the command line (figure 2).
Figure 2:nmtui interface
On the command line, there is an old tool called ifconfig to manage the network, and a new tool called ip. In some distributions, ifconfig is considered deprecated and is not even installed by default. Ifconfig can still be used in other distributions.
Here are some commands that allow you to display and change network settings:
Process and system information
In Windows, you can use Task Manager to view a list of all running programs and services. You can stop running programs and view system performance in some of the tabs displayed.
On Linux, you can do the same thing on the command line or in a graphical interface. There are several graphics tools available in the Linux system depending on your distribution. Most of the common tools are system Monitor and KSysGuard. In these tools, you can view system performance, view a list of processes, or even kill processes (figure 3).
Picture 3:NetHogs screenshot
In these tools, you can also view the system's global network traffic (figure 4).
Screenshot of figure 4:Gnome System Monitor
Manage process and system usage
You can also use a considerable number of tools from the command line. Use the ps command to view a list of processes on the system. By default, the result of this command is to display a list of all processes under the current terminal session. But you can also display other processes by using various command-line arguments. If the ps command is not available, you can use the command info ps or man ps to get help.
Most people want to get a list of processes because they want to stop processes that consume too much memory or CPU time. In this case, there are two very simple commands, the top and htop commands (figure 5).
Picture 5:top screenshot
The effects of top and htop tools are very similar. The two commands update the reorder every second or two seconds, putting the one that takes up the most CPU resources at the top of the list. You can also sort according to the usage of other resources, such as memory usage.
When using these two commands (top and htop), can you type? To get help, type Q to exit the program. With the top command you can press the k key and then type the process ID to kill a process.
When using the htop command, you can use the ↑ ↓ key to highlight a record in the list. Pressing F9 will kill the process (enter is required).
This is the answer to the question about how to set up the network and system in Linux. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.