Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Ubuntu (http://quantrinet.com/forum/forumdisplay.php?f=341)
-   -   Hướng dẫn cài đặt Ubuntu Server 18 (http://quantrinet.com/forum/showthread.php?t=10193)

hoctinhoc 22-10-2019 01:32 PM

Hướng dẫn cài đặt Ubuntu Server 18
 
Ubuntu 18.04 LTS Server (Bionic Beaver) Installation Guide with Screenshots

by Pradeep Kumar · Published June 24, 2018 · Updated January 20, 2019
Now a days Ubuntu is the most widely used Operating system used servers level. Canonical had released its latest and stable version of server as Ubuntu 18.04 LTS (Bionic Beaver). In this article we will discuss what new features that has been included in this release and also discuss Ubuntu 18.04 Server installation steps.
Let’s look into the new features of Ubuntu 18.04 Server,
1) Introduction of new Network configuration utility “netplan”, It is used to configure Static IP and Bridge.

2) Python version 3.6
3) New updated Linux Container manager LXD 3.0
4) Updated QEMU 2.11.1
5) Updated libvirt 4.0
6) Updated Open vSwitch 2.9
7) Chrony has been replaced NTP for time syncing
8) PHP has been updated to PHP 7.2
9) New Version of OpenStack “Queen” has been included.
10) Cloud-init has been updated to 18.2
Let’s jump into the Installation guide,
Minimum system requirement for Ubuntu 18.04 Server
  • 2 GB RAM
  • 20 GB hard disk Space
  • Dual core Processor (2 GHZ)
  • Installer Media (USB / DVD)
Step by Step Ubuntu 18.04 Server Installation

Step:1) Download Ubuntu 18.04 Server ISO file

Download the Ubuntu 18.04 Server ISO file from the Ubuntu official web site:
http://releases.ubuntu.com/18.04/
Once the file is downloaded then burn it either into USB or DVD and make it Bootable. In Case you have downloaded the iso file in Ubuntu desktop then refer the following:
How to Create Bootable USB Disk / DVD on Ubuntu / Linux Mint
Step:2) Boot system (or server) with bootable media

Now reboot your target system or server, go to the bios settings and change the boot sequence, select the bootable media that you have created in step:1
Select your preferred language and then hit enter
https://www.linuxtechi.com/wp-conten...e-1024x543.jpg
Select the preferred Keyboard layout that suits to your installation, in my case I am taking as default.
https://www.linuxtechi.com/wp-conten...r-1024x543.jpg
Press Enter
Choose “Install Ubuntu” option and then hit enter,
https://www.linuxtechi.com/wp-conten...-04-Server.jpg
Step:3) Choose your Network and Proxy Configuration

Choose the network configuration that suits your environment, by default it will try to pick IP address from the DHCP server. In my case I am selecting the default option and later on I will demonstrate how to configure static ip address.
https://www.linuxtechi.com/wp-conten...stallation.jpg
Choose “Done” and then press enter
If your system is connected to the internet via some proxy servers then specify the details of proxy else leave it as blank,
https://www.linuxtechi.com/wp-conten...stallation.jpg
Step:4) Choose partitioning scheme either as automatic or manual

Select the partitioning scheme either as automatic or manual. In this tutorial I will demonstrate how to create your own partition table using manual method.
So select “Manual” option and then hit enter,
https://www.linuxtechi.com/wp-conten...ion-Method.jpg
https://www.linuxtechi.com/wp-conten...stallation.jpg
As we can see I have 40 GB space for Ubuntu 18.04 Server installation, we will create the following partitions on it,
  • /boot = 1 GB (ext4 file system)
  • /home = 12 G (ext4 file system)
  • /var = 10 GB (ext4 file system)
  • / = 10 GB (ext4 file system)
  • /tmp = 5 GB (ext4 file system)
  • Swap = 2 GB (ext4 file system)
Choose “Add first partition“, Create /boot partition, example is shown below,
https://www.linuxtechi.com/wp-conten...stallation.jpg
Select “Create” option and then hit enter
Now create /home partition of size 12 GB
https://www.linuxtechi.com/wp-conten...stallation.jpg
Similarly create /var, / and /tmp partitions
https://www.linuxtechi.com/wp-conten...stallation.jpg
https://www.linuxtechi.com/wp-conten...stallation.jpg
https://www.linuxtechi.com/wp-conten...stallation.jpg
Create Swap partition of size 2 GB,
https://www.linuxtechi.com/wp-conten...stallation.jpg
Once you are done with all the partitions creation, select the option “Done”
https://www.linuxtechi.com/wp-conten...stallation.jpg
Select “Continue” to write changes on the disk,
https://www.linuxtechi.com/wp-conten...stallation.jpg
Step:5) Specify User details, hostname and start the installation

Specify the user name, its password and hostname for your system.
https://www.linuxtechi.com/wp-conten...stallation.jpg
Choose Done to proceed with installation,
https://www.linuxtechi.com/wp-conten...n-Progress.jpg
You will be prompted to reboot your system once the installation is completed.
https://www.linuxtechi.com/wp-conten...-04-Server.jpg
Remove the installation media and change the boot sequence and set it as hard disk.
Step:6) Login Screen after Ubuntu 18.04 Server Installation

Use the same user name and the password that we created during the installation, in my case user name will be “pkumar”
https://www.linuxtechi.com/wp-conten...stallation.jpg
Read More on : How to Install VirtualBox 6.0 on Ubuntu 18.04 LTS / 18.10 / CentOS 7
Step:7) Configure static IP address in Ubuntu 18.04 Server

As we discussed in the features section, network configuration in Ubuntu 18.04 server is controlled by “netplan” utility.
To configure the static ip address, edit the file “/etc/netplan/50-cloud-init.yaml“,
Replace the IP address details, gateway and dns server that suits your environment.
pkumar@linuxtechi:~$ sudo vi /etc/netplan/50-cloud-init.yamlhttps://www.linuxtechi.com/wp-conten...-Static-IP.jpg
Now apply these changes using below netplan command,
pkumar@linuxtechi:~$ sudo netplan apply pkumar@linuxtechi:~$If you want to run above netplan command in debug command, then execute below command,
pkumar@linuxtechi:~$ sudo netplan apply --debugNow you can verify the IP address details using ip command,
pkumar@linuxtechi:~$ ip add showThat’s conclude the article, I hope above steps helps you to install Ubuntu 18.04 Server. Please do share your comments in comments section below.


Bây giờ là 07:16 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.