1. Trang chủ
  2. » Luận Văn - Báo Cáo

Môn hệ Điều hành bài thực hành 2 cài Đặt và quản trị ubuntu

27 0 0
Tài liệu được quét OCR, nội dung có thể không chính xác
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Cài đặt và quản trị ubuntu
Tác giả Trương Huy Hoàng
Người hướng dẫn Đinh Trường Duy
Trường học Học Viện Công Nghệ Bưu Chính Viễn Thông
Thể loại bài thực hành
Năm xuất bản 2024
Thành phố Hà Nội
Định dạng
Số trang 27
Dung lượng 7,3 MB

Nội dung

WORKSTATION 16 PRO” OTypical recommended Create a Workstation 16.2.x virtual machine in a few easy steps.. © custom advanced Create a virtual machine vith advanced options, such as a

Trang 1

MON HE DIEU HANH

BAI THUC HANH 2:

Cai dat va quan tri Ubuntu

Giảng viên hướng dẫn : ĐINH TRƯỜNG DUY

Họ và tên sinh viên : TRƯƠNG HUY HOÀNG

Mã sinh viên : B22DCATI30

Trang 2

MUC LUC Phần 1: Cài đặt hệ điều hành Ubuntu 16.04 veel

Phần 2: Cài đặt chương trình trên Ubun(u 2-2-2 s° s s©sesese se sesss 12

Phần 3: Thiết lập cấu hình an ninh của Linux: điều khiển truy

cập quản trị người

dùng và xem bản ghi log trong Ubuntu 17

Trang 3

Phan 1: Cài đặt hệ điều hành Ubuntu 16.04

-Khéi dong VMWare Workstation, chon File -> New Virtual Machine dé

mở cửa sổ cài đặt máy ảo

WORKSTATION 16 PRO”

OTypical (recommended)

Create a Workstation 16.2.x virtual

machine in a few easy steps

© custom (advanced)

Create a virtual machine vith advanced

options, such as a SCSI controller type, virtual disk type and compatibility with

older VMware products

Trang 4

-Next dé tiép tuc, sau dé chon Installer disc image file fiiso) va chon file iso

da chuan bi

WORKSTATION 16 PRO”

Guest Operating System Installation

A virtual machine is like a physical computer; it needs an operating system How will you install the quest operating system?

This operating system will use Easy Install (v/hat's this?)

©) will install the operating system later

The virtual machine will be created with @ blank hard disk

< Back ( i Next> Ì Cancel

8:57 PM 10/14/2024 ba

-Sau đó đặt tên máy ảo, chọn đường, dẫn đề lưu trữ máy ảo

Trang 5

WORKSTATION 16 PRO”

Name the Virtual Machine

What name would you like to use for this virtual machine?

Virtua! machine name:

TruongHuyHoang130

Locaton:

C:\Users\ADMIN\Documents\Virtual Machines\TruongHuyHoant_ growsa

The default location con be changed at Edit > Preferences

Trang 6

ATION 16 PRO”

Processor Configuration

Specfy the number of processors for this virtual machine

Processors Number of processors Number of cores per processor:

Total processor cores:

Trang 7

WORKSTATION 16 PRO™

Memory for the Virtual Machine Hovs much memory vould you like to use for this virtual machine?

Specify the amount of memory allocated to this virtual machine The memory

@ Maximum recommended memory:

Trang 8

WORKSTATION 16 PRO”

Network Type What type of network do you want to add?

Network connection

(Use bridged networking Give the guest operating system direct access to an external Ethernet network The quest must have its own P address on the external network

Ouse network address translation (NAT) Give the guest operating system access to the host computer's dial-up or

externa! Ethernet network connection using the host's P address

~) Use host-only networking

Connect the quest operating system to a private virtual network on the host

iter

compu O)Do nat use a network connection

Cancel

9:01 PM

10/14/2024

Trang 9

WORKSTATION 16 PRO”

Select I/O Controller Types

Which SCSI controller type would you like to use for SCSI virtual disks?

YO controller types SCSI Controller:

—)Buslogic (Maximum disk capacity: 2 TB)

OLsSI Logic (Recommended) _) LSE Logic SAS

Trang 11

WORKSTATION 16 PRO”

Select a Disk

Which disk do you want to use?

O create a new virtual disk

4 virtual disk is composed of one or more files on the host file system, which vall appear as a single hard disk to the quest operating system

Virtual disks can easily be copied or moved on the same host or between hosts

) Use an existing virtual dick Choose this option to reuse a previously configured disk

(Use a physical disk (For advanced users) Choose this option to give the virtual machine direct access to a local hard

disk Requires administrator privileges

Trang 12

WORKSTATION 16 PRO”

Specify Disk Capacity

How large do you want this disk to be?

i Maximum disk size (GB): 20.0 [2

Recommended size for Ubuntu: 20 G8 Allocate all disk space now

Allocating the full capacity can enhance performance but requires all of the

physical disk space to be available right now If you do not allocate all the

space now, the virtual disk starts small and grows as you add data to it

~) Store virtual disk as @ single file Split virtual disk into multiple files Splitting the disk makes it easier to mave the virtual machine to another

computer but may reduce performance with very large disks

Cancel

af 29°c

Có mây rải rác 10/14/2024 “Ý

-Sau khi hoàn tất, khởi động máy ảo, chờ 1 vải phút để máy ảo cài đặt Đăng nhập vào

máy ảo và màn hình desktop hiện ra

10

Trang 13

TruongHuyHoang130

11

Trang 14

Tatts)

lã d

Phần 2: Cài đặt chương trình trên Ubuntu

-Khởi động Ubuntu Software từ danh sách ứng dụng phía bên trái màn hình

12

Trang 15

Ubuntu Software + T:31AM

VM, click inside or press Ctr+G

9:31 PM 10/14/2024 '*

- Tim kiém Chromium Web Browser

13

Trang 16

@ Access the Internet Install

An open-source browser project that aims to build a safer, Faster, and more stable way for allinternet users to experience the web

Details

90.0.4430.72-Oubuntu0.16.04.1 Internet Web Browser Open Source 252.4MB

al er) mây rải rác = ch) @ 10/14/2024 =

-Chọn Install để cài đặt, sau đó chọn Launch đề khởi động

14

Trang 17

Ubuntu Software L 7:36 AM

Ubuntu SofFtware

Chromium Web Browser

@ Access the Internet Remove Launch

Reviews

Write a Review

9:36 PM 10/14/2024

-Tiếp theo là thực hiện cải đặt chương trinh Chromium Mo Terminal, tim kiếm tên

của package bang lénh: apt-cache search chromium

15

Trang 18

Liboxideqtcore-dev - Web browser engine for Qt (development files for core Library)

Liboxideqtcore® - Web browser engine for Qt (core library and components)

Liboxideqtquick-dev Web browser engine for Qt (development files for QtQuick library)

Liboxideqtquick® - Web browser engine for Qt (QtQuick library)

mozc-data - Mozc inp thod - data files

mozc-server - Server of the Mozc input method

mozc-utils-gui - GUI utilities of the Mozc input method

oxideqt-codecs - Web browser engine for Qt (codecs)

unity-scope-chromiumbookmarks - Chromium bookmarks scope for Unity

cgpt GPT manipulation tool with support for Chromium OS extensions

chromtun-browser Chromium web browser, open-source version of Chrome

chromium-browser-dbg - chromium-browser debug symbols

chromium-browser-110n - chromium-browser language packages

chromtum-bsu - fast paced, arcade-style, scrolling space shooter

chromium-bsu-data - data pack for the Chromium B.S.U game

chromium-chromedriver-dbg - chromium-chromedriver debug symbols

chromium-codecs-ffmpeg - Free ffmpeg codecs for the Chromium Browser

chromium-codecs-ffmpeg-dbg chromium-codecs-ffmpeg debug symbols

chromLum-codecs- ffmpeg-extra Extra ffmpeg codecs for the Chromium Browser

chromium-codecs-ffmpeg-extra-dbg - chromtun-codecs mpeg-extra debug symbols

chromium-lwn4chrome - Chromium extension for making LWN.net slightly easier to read

emacs-mozc-bin - Helper module for emacs-mozc

ibus-mozc - Mozc engine for IBus - Client of the Mozc input method

Libv8-3.14-dbg - V8 JavaScript engine - debugging symbols

Libv8-3.14-dev - V8 JavaScript engine - development files for 3.14 branch

LLbv8-3.14.5 V8 JavaScript engine runtine Ltbrary

LLbv8-dev - V8 JavaScript engine - development files for Latest branch

ninje-build - small build system closest in spirit to Make

ninja-butld-doc - documentation for ninja-build

oxideqt-codecs-extra - Web browser engine for Qt (codecs)

python-pyftpdlib - Python FTP server Library

python3-pyftpdlib - Python FTP server Library

untty- chromtun-extenston - Untty tebApp extenston for the chromtun browse

browser -pLugtn - freshpLayer -pepper fLash PPAPI-host NPAPI-pLugtn adapter for pepperflash

oxideqt-doc - Web browser engine for Qt (codecs)

python3-LibnacL - Python 3 bindings for libsodium based on ctypes

chrome-gnome-shell - GNOME Shell extenstons tntegratton for web browsers

chromium-chromedriver - WebDriver driver for the Chromium Browser

python-Libnacl - aa 2 bindings for Ltbsodtum based on ctypes

-Sử dụng lệnh sau để tiến hành cài đặt Chromium:

sudo apt-get install chromium-browser

16

Trang 19

a 3 = Es

hoangat130@ubuntu: ~ oangat130@ubuntu:~$ sudo apt-get tnstaLL chromtun-browser '[sudo] password for hoangat139:

Reading package lists Done

Building dependency tree

Reading state information Done

chromium-browser is already the newest version (90.9.4430.72-Oubuntu0.16.04.1)

® upgraded, © newly installed, 9 to remove and 436 not upgraded

dùng và xem bản ghi log trong Ubuntu

-Tạo người dùng bằng dòng lệnh: sudo useradd -m sinhvien1

Đặt mật khẩu cho sinhvien1: sudo passwd sinhvien1

17

Trang 20

hì Ey 3 F) Ls

hoangat130@ubuntu: ~ :~§ sudo useradd -m sinhvien1 udo passwd sinhvien1

eT Ets Ohta) b Es tetype new UNIX pas rd:

asswd: password updated successfuLLy oangat1368ubuntu :~$

-Sau do, tao groups bang dong lénh: sudo groupadd quantri

Tạo thư mục phanqguyen tai thu muc g6éc root fi/): mkdir phanquyen

18

Trang 21

hoangat130@ubuntu: ~ buntu:~$ sudo groupadd quantri ntu:~$ mkdir phanquyen

-Thay đối quyền sở hữu thư mục phanquyen thành sinhvienl:

sudo chown sinhvien1 phanquyen

Thay đổi quyền truy cập thư mục phanquyen: sudo chmod 440

phanquyen

Quyền 440: số 4 đầu tiên là cho phép chủ sở hữu đọc, số 4 thứ 2 là cho phép nhóm

đọc, số 0 là không cấp quyền cho người dùng khác (không đọc, ghi hay thực thi)

19

Trang 24

TruongHuyHoang130 phanquyen home hoangati30 phanquyen

Recent

Pictures

Videos Trash

-Tiép theo ta phan quyén cho group:

Thém sinhvien1, sinhvien2 vao group quantri:

sudo usermode —g quantri simhvienl

sudo usermode —g quantri sinhvien2

Thay đổi quyền sở hữu của thư mục thành user root và nhóm

quantri:

sudo chown root:quantri phanquyen

Thực hiện phân quyền cho thư mục phanquyen:

22

Trang 25

sudo chmod 770 phanquyen

Quyền 770: số 7 đầu tiên là cấp toàn bộ quyền cho người sở hữu, số

7 đầu thứ 2 là cấp toàn bộ quyền cho nhóm sở hữu, số 0 cuối cùng là không cấp quyền cho người dùng khác

fi4 là quyền đọc, 2 là quyền ghi, 1 là quyền thực thi, 7=4+2+1 tức là toàn bộ quyền)

„' TruongHuyHoang130

File Edit View Search Terminal Help

hoangati30@ubuntu:~$ sudo usermod -g quantri sinhvien1

usermod: no changes

hoangati30@ubuntu:~$ sudo usermod -g quantri sinhvien2

usermod: no changes

hoangati30@ubuntu:~$ sudo chown root:quantri phanquyen

hoangati30@ubuntu:~$ sudo chmod 779 phanquyen

Trang 26

-Đăng nhập sinhvien], ta thây các tùy chọn không bị làm mở, sinhvienl đã có thể tạo thư mục mới

Trang 27

phanquyen eae Om ETT 1)

Ngày đăng: 15/02/2025, 22:09

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN