2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
(7) This entry starts configuring the fixed IP address of Linux for use as a server:
First explain the Linux network port number:
Linux command cd: change directory changes directory. ls: list lists the files in a directory
Root directory file name /etc: editable text Configuration The files in this directory are used to configure the IP address.
No longer use the original DHCP protocol of the Linux network port:
Linux command: cd /etc/network
sudo vim interfaces enters the following interface:
Add a static address:
The above image is wrong: the dhcp line should be commented out.
Next, you need to configure the domain name server address for the server:
Use the Linux command to configure the domain name server address: sudo vim /etc/resolvconf/resolv.conf.d/base
Increase:
Then restart the Linux operating system: reboot. Use administrator privileges sudo reboot
Test whether you can access the Internet: ping www.baidu.com
If you keep pinging the URL and can't stop, you can use ctrl + c to end the infinite ping operation of the virtual machine Linux.
And the host windows of the virtual machine can also ping this server:
(8) Then configure to log in to the server remotely
First understand the command ps:
Next, learn the pipeline command |:
Next, learn the grep command:
We first use the ps - e | grep ssh command to check whether there is an ssh service on the virtual machine. If not, install it.
So what is ssh?
Install ssh command: sudo apt-get install openssh-server
In this way, you can use the ssh client to remotely log in to the server. And after the server restarts, the ssh will automatically start. xshell can be installed without any brains, except for changing the installation location:
About the new connection of xshell:
Then:
+
+
+
xshell has stronger support for keyboard and mouse.
(9) Install gcc and g++ for the virtual machine. These two software are not available on the newly installed Ubuntu:
First install the lower-level software that the compilation software depends on, command: sudo apt-get install build-essential:
What is build-essential?
as well as
(10) Realize file sharing between Linux virtual machine and carrier winddos:
One way is to use the samba service:
The above method also needs to be configured.
On the virtual machine, share with the host machine:
+
+
+
+
+
turn out:
And the test:
Introducing the cat command:
Thanks