linux-Ubuntu install subsequent summary of work -flag

Copyright: https://blog.csdn.net/xiaoxilang/article/details/90113779

flage purposes: 1. unskillful handling by someone once despised. . . . . . . .

                   2. The regular review, anti-forgotten quickly resolve and improve efficiency. . . . . . .

1 Installing Ubuntu

(1) Production ubuntu launch of U disk - made with rufus software, used to make UltrISO not; software from down, tutorials self-examination;

 (2) Download the image file

      - there is a server version of this (full command line, not the desktop, the mouse did not egg with) and the desktop version (like Windows, the mouse is useful, the installation files occupy a large space), the late familiar, post-recommended server version , on the grounds that fast operation - is also training operational capability byte command line coding beneficial;

(2) Reference blog to begin the installation - https://blog.csdn.net/u012267304/article/details/80647980 

Post network settings eighth step before, if you do not know the IP network, it is not recommended to set the network IP and DNS network settings when installed capacity. You should select the last item;

(I also performed in accordance with the tutorial, subsequent modifications IP)

Remember username and password! ! ! (Because they did not remember, and reinstall it again, day dog!)

2. Install the follow-up work

(. 1) IP Modify - to modify the IP network to ensure the network can connect to external

(After connecting outside the network, you can access, installation of software, is critical)

1) First of all network cards ifconfig -a View

 ---- results are shown in FIG, enp4s0 (number 0 not the letter O) to four enp7s0 name card, generally only two network ports, is not important here, if the display card IP address, then you can skip to step 3 , if there is no IP address, then remember the name of the card and then the next step

2) set a static IP

Linux command line for the whole operation, if you want to set a static IP through the file, you first execute the command to open the file, sudo vi / etc / network / interfaces similar to another window will pop up, as shown, most computers these are the default configuration file content, if you are not, it does not matter, as I said, set on it;

Remember the last step by ipconfig -a view the card name it, I was enp4s0 enp5s0 enp6s0 enp7s0,
since most of the machine only two network cards, this time we will set up two network cards, even if you have three cards, we still setting configure two network cards.
So we added back
Auto enp4s0 
iface enp4s0 inet static
address 192.168.1.105
Netmask 255.255.255.0
Gateway 192.168.1.1

auto enp5s0 
iface enp5s0 inet static
address 192.168.2.105
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4

Enter the complete contents of the file at right:

 

Which enp4s0 and enp5s0 name for the network card ifconfig just to see, do not forget, address to a static IP address to be set, in theory, the NIC 1 IP address is not changed, Netmask a fixed 255.255.255.0, Gateway is the IP address the last one is the content of the same segment 1, do remember, IP addresses can not be set in the last 0,1,255 ,

vim not enter into it?
Since the whole linux command line operations, file editor is command-line operations. Before entering, the first to enter i or a, insert lower left corner of the display, then you can enter, if you want to modify a file somewhere, first with the command dd deletes the Bank , then type i will want to enter the insert mode input the contents entered in the file which, after the entire input is complete, type exit insert mode esc, and then enter: WQ to save the file . (If you want to know more input methods, you can own Baidu vi or vim tutorial) At this time, ip address has been set up is complete, believed to have returned to the linux command line interface, and enter the complete reboot to restart after restart Log in to the next step.

3) Verify: Enter ifconfig -a, the following results

(2) If a virtual machine to install the desktop version of ubuntu, may need to install the basic tools vmware tool

After the vmware tools installed, you can use - "immediately adapt to the client"

After the installation vmware tools can be used to copy the machine - the paste manipulation

Installation error - and solutions: https://blog.csdn.net/u013346000/article/details/50024565

A previous installation of VMware Tools has been detected.
The previous installation was made by the tar installer (version 4).
Keeping the tar4 installer database format.
You have a version of VMware Tools installed. Continuing this install will 
first uninstall the currently installed version. Do you wish to continue? 
(yes/no) [yes]
Error: Unable to find the binary installation directory (answer BINDIR)
in the installer database file "/etc/vmware-tools/locations".
Uninstall failed. Please correct the failure and re run the install.
Execution aborted.

解决方法:(亲测有效!!!)

root@MT:/home/dnt/vmware-tools-distrib# rm -rf /etc/vmware-tools
root@MT:/home/dnt/vmware-tools-distrib# rm -rf /tmp/vm*
root@MT:/home/dnt/vmware-tools-distrib# ./vmware*.pl

(3)配置基本工具 vim/samba/xshell

         !如果更新和下载有问题(比如updata/upgrade有错),可以看(4)

1)vim使用

https://www.cnblogs.com/mrcln/p/5720435.html

2)配置和安装samba

https://blog.csdn.net/carotong/article/details/52175994

3)xshell和Xftp的安装和配置

https://blog.csdn.net/m0_37482190/article/details/86246226

4)安装gcc-对C语言的编译器

安装g++-实现对C++语言的编译器(apt-get安装包管理工具 Ubuntu下安装)

apt-get install gcc
apt-get install g++

yum安装包管理工具-CentOS下安装

yum install gcc
yum install g++

(4)更换源conf-使用清华源

地址:-教程:https://blog.csdn.net/weixin_40289171/article/details/88180549

源下载地址:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

apt-get update出错各种错

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

改正用清华的源如下

W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial/InRelease  Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: No route to host
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-updates/InRelease  Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: No route to host
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-backports/InRelease  Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: No route to host
W: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/xenial-security/InRelease  Failed to connect to mirrors.tuna.tsinghua.edu.cn port 443: No route to host
W: Some index files failed to download. They have been ignored, or old ones used instead.

重启一下就好了,可以使用

But this kind of thinking to solve problems find many; there will be added to the local DNS /etc/resolvconf/resolv.conf, and then replace the source - reference https://blog.csdn.net/qq_15437667/article/details/ 50,719,874

 

Guess you like

Origin blog.csdn.net/xiaoxilang/article/details/90113779