Linux install operating system and configure IP address

Source: Internet
Author: User

L Inux graduated from Linus Torvalds , University of Helsinki, Finland

Linux is a multi-user, multi-process, multi-threaded, real-time performance, powerful and stable, fully open source system

Linux is a tree-structured directory system in which any program is represented by a file

Linux System Composition

Linux Operating system =linux kernel +gnu software and system software + necessary Applications

Core Composition principle of Linux system

Hardware --- system core- - command interpreter - - Peripheral Applications

L inux Core website: Www.kernel.log

L inux Applications: Enterprise Servers, embedded applications,Linux in the film entertainment Industry

Casing Website: www.netcraft.com

Problem-solving wisdom: Help, documentation, examples, finding

Plan, focus, persist, practise

Why use the command line: Save resources, leave more resources to customers

Reahat Open Source (charge), is copyrighted, the company maintains the

Fedora: Experimental version of Redhat

One branch of Centos:redhat is the rebuilding of Linux under the GPL license with the source code released by Redhat System,

The version of the Redhat source code and the non-free software parts are removed and then compiled.

Disk partitioning

There can only be four partitions in total.

There can only be four primary and extended partitions

An extended partition can have only one, and may contain multiple logical partitions

Format is to write the hardware device file name

I De/dev/hd[a-p]

S csi/sata/usb HDD /dev/sd[a-p]

Optical /dev/cdrom

floppy /dev/fd[0-1]

printer ( pin) /dev/lp[0-2]

printer (usb) /dev/usb/lp[0-15]

Mouse /dev/mouse

Mount: Assign a mount point to each partition

/ (root partition, how big is the size of the)

S WAP partition ( virtual memory )

/boot ( boot partition,200M)

Install the Welcome screen

Install or upgrade an existing system installation or upgrade of existing systems

install the system with basic video driver installation process using the base graphics driver

Rescue installed system to enter the repair mode

Boot from local drive exits installation from hard disk boot

Menory test storage Media detection

Password principle

Complexity: More than eight characters, uppercase and lowercase letters, numbers, symbols

Easy memory: can't be English word

Timeliness: cannot be user-related content

Package Selection

Desktop (Desktops)

MinimalDesktop (minimized)

minimal(minimized) A minimal installation is selected in the actual production environment, followed by six minimization principles

BasicServer (base servers)

Database Server

Web server(Web server)

Virtual Host

Software deveopment workstation(software development workstation)

Installation log

/root/install.log stores the packages and their version information installed in the system

/root/install.log.syslog Stores the event records that were left during the installation

/root/anaconda-ks.cfg Record the option information set in the installation process diagram in the format of the Kickstart configuration file

Install the operating system initialization first step: Configure IP address, remote connection with SSH Client tool

Configure IP address :

View IP address:ifconfig

NIC configuration file

1)/etc/sysconfig/network-scripts/ifcfg-eth0 Nic Information file


Device=eth0 NIC device name

Bootproto=none whether to obtain the IP automatically. None: Not valid static: manual DHCP: Dynamic acquisition of IP

broadcast=192.168.140.255 Broadcast Address

hwaddr=00:0c:29:21:80:48 mac Address

ipaddr=192.168.140.253 IP Address

Ipv6init=yes IPv6 Open

Ipv6_autoconf=yes IPv6 Get

netmask=255.255.255.0 Mask

network=192.168.140.0 Network Segment

Onboot=yes network card boot up

type=ethernet Ethernet

gateway=192.168.140.1 Gateway

Note that the equal sign is capitalized on the left and lowercase in the back. Most services have d behind them .

Restart Network service restart

The clone machine needs to modify the UUID

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

1 Delete mac address lines

Rm-rf/etc/udev/rules.d/70-persistent-net.rules

2 removing the NIC and mac address bindings file

3 Rebooting the system


This article is from "Happy Learning" blog, please be sure to keep this source http://983865387.blog.51cto.com/9838888/1917719

Linux installs the operating system and configures the IP address

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.