Learn Linux with Amin first lesson install CentOS

Source: Internet
Author: User
Tags clear screen keepass

Engaged in the development of STM32 more than 3 years, has been a dream to learn Linux, but suffering from no one to lead the way, in the middle of learning a few times, the results are halfway interrupted did not persist, based on coincidence again want to learn, see Amin have 99 Yuan experience class, on the name, but also received a tutorial book, Very happy, This time I must persist, follow Amin to study Linux well. In order to always dream of refueling!!


    1. Conventions

Impression Note app.yinxiang.com

51CTO Blog blog.51.com

Password Storage Keepass Keepass.info

Software installation package r.aminglinux.com

The code used in the course centos7.aminglinux.com

1.5 Installation Centos 7.3

Select NAT mode quite user physical machine for routing, virtual machine IP is not affected by physical machine network changes (bridging mode-equivalent to parallel to the physical machine such as mobile phones and computers)

Storage Options-Custom--Select Standard Partition--select I want to partition;

Manual partitioning: Adding mount points

/Boot Space 200MB

/swap RAM 2G, swap partition is generally twice times memory, memory is more than 4G minutes 8G can

/Directory Left All

1.6 Configuring IP

Remote terminal Tools connection server, TCP IP communication

The use of NAT, but how also can not be configured on the network, to consider whether the current campus network

(1) < dhclient> automatically acquire IP, will change IP

< IP addr> may be nes33

(2) Vi/etc/sysconfig/network-srcipts/ifcfg-ens33-Manually configure the fixed configuration NIC and IP

Input:

Type=ethernet

bootproto=static

Defroute=yes

Peerdns=yes

Peerroutes=yes

Ipv4_failure_fatal=no

Ipv6init=yes

Ipv6_autoconf=yes

Ipv6_defroute=yes

Ipv6_peerdns=yes

Ipv6_peerroutes=yes

Ipv6_failure_fatal=no

Ipv6_addr_gen_mode=stable-privacy

Device=ens33

Onboot=yes

ipaddr=192.168.188.128

netmask=255.255.255.0

gateway=192.168.188.2

dns1=119.29.29.29

ESC--->shift+:---->wq Save and exit

(3) Systemctl restart Network.service//Restart Service

Ping if the network does not work, see if the network adapter is enabled

<ifcofig > ==< IP addr >

<dhclient-r > Kill current Service

<route-n > View the configured Gateways

After ping www.qq.com can ping, CTRL + C quits receiving data

Then ping your host IP to see if

Ctrl+l Clear Screen

Snapshot (Backup)

1.9 Remote connection to Linux

(1) Putty https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

       下载  putty.zip(A. ZIP Archive of all the above) 32-bit:

(2) Xshell

>>>>>>> Configure Linux IP and port number 22 log in to the Linux account, password, you can copy and paste

1.11 Key authentication

first configure Linux as follows:

< mkdir/root/.ssh>---Create a catalog

<chmod 700/root/.ssh >--Change Permissions

< vi/root/.ssh/authorized_keys>--Create a file, edit the public key file

Paste the key---Notice that I is pressed first, or less a s

<setenforce 0 >--shutting down the firewall

(1) puttygen--get key,--Set password 123456

---ctrl+d can exit putty

Putty Add a private key--point session--save--login putty--Enter the password of the set 123456, you can log on to Linux


(2) xshell--get key,--Set password 123456

Xshell---tool--new user generated key--open session--fill in account--password


Learn Linux with Amin first lesson install CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.