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

Đề tài tìm hiểu và triển khai các dịch vụ trên hệ Điều hành linu

95 1 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 đề Đề tài: Tìm hiểu và triển khai các dịch vụ trên hệ điều hành Linux
Tác giả Đàm Minh Linh, Ngụ Xuân Thoại, Ta Đức Tiến, Trần Việt Hoàng
Trường học Học Viện Công Nghệ Bưu Chính Viễn Thông
Thể loại báo cáo cuối kỳ
Năm xuất bản 2021
Thành phố Thành phố Hồ Chí Minh
Định dạng
Số trang 95
Dung lượng 39,89 MB

Nội dung

SPOON Bt ene v INot connected, Server/Local file Direction Remote file Sze Priority Status Status: Retrieving directory istin |Stetu: Listing directory /hore/n!9dcat033... Logged in Sta

Trang 1

HOC VIEN CONG NGHE BUU CHINH VIEN THONG

Cơ sở tại thành phố H'ôChí Minh

a

BÁO CÁO CUỐI KỲ

HỆ ĐIHU HHNH WINDOWS - LINUX

Ð tài: Tìm hiểu và triển khai các dịch vụ trên hệ đi âi hành Linux

Giảng viên: Đàm Minh Linh Sinh viên thực hiện: Ngô Xuân Thoại - N19DCAT085S

Ta Đức Tiến - N19DCAT074 Trần Việt Hoang — N19DCAT033

D19CQATOI-N

TP HO CHI MINH - 2021

Trang 2

MUC LUC

J0 4

2) Cauhinh dich vu FIP trén Ubuntu oo cccccccecssccssececssecsseeeceessssescerscerssssesseeseseressnessnesssesssnteeses 11 3) Kết nối Ubuntu qua EIleZIÏÌa tt nh nh HH HH HH HT HT HT Hiệp 14 TIT) Dịch vụ quản trị từ xa Remote Desktop ConnectiON ch He 19

3) Thực hiện remof€ tỬ Xa LH TH nn HT HT HH TH TH HH TH TH TH TH TH TH TH TH TH HH TH HH 21 IV) Phân quy € trong EFTTP S€TV€T cà ch nh HH HH TH TH TH HT it 25 1) Tao User Va ØTOUD nh nhà nà TH HH HT HH TH KHE TH KHE TEEKEEETEEEE 25 2) Phân quy nhà Hà HH HT HT TK TK KEKTEETEEEEEEETEETELrkr 26 3) Kiểm tra phân quy

a) Voi userl va user2

V) Dich vu quan tri tw xa UltraVNC Viewer hodic Tỉgh(VNC ch He 29

2) _ Cài đặt và remote bằng TightVNC .c 22t 2 HH E221 111.112 E1 rre 33

1) Cài đặt openssh-server (nếu chưa CÓ} án nén TH TH HH TH TT HH HH Hiệp 44 2) Cấu hình SSH Ăn HH HH HH HH HH HH HT HH Ha 44 VI) Dịch vụ DNS và DHCP ch HH HH HH HH TH HH HE HH 45 A2 ca n0 45

VII) Dịch vụ thư điện tửỬ: - nh Tnhh TH TH HH TH TH TH TH TH TH Tà HH TH TH TH Hà HH TH 53

mm ằ.Ề 53

Trang 3

2) Cài đặt HT HH HH TH HH TH HH KHE 1k 1111111111111 54 IX) Quản lý user và gTOUD nh HH HH HH HH HH TH HH Ha 56 1) Quản lý user nén HH HH HH HT TH TH HE HH HH 56 2) Quản lý grOUD Ăn HH HH HH HH HH HH HH HH 57 3) File lưu trữ của user và øTOUD nén HH HH HH HH HH Ha 57

Trang 4

của Sinh Viên

[fp Clone of CentOS 7 64-bit

Trang 5

CO) ridged (connect VMs directly to the external network)

© Host-only (connect VMs internally in a private network)

~\ Connect ø host virtual adapter to this network

Host virtual adapter name: VMvrare Network Adapter VMnett

| Use locol DHCP service to distribute IP address to VMs | DHCP Settings

Subnet ip: | 192.168 2 0 ‘Subnet mask: | 255.255.255 0

A\ Administrator privileges are required to modify the network configuration

[Restore Defauts| | irpot | | fpot | OK —— APRV |

CBridged: Connected directly to the physical network

| |Replicate physical network connection state

Oat: Used to share the host's IP address

COvHost-only: A private network shared with the host

@ custom: Specific virtual network

Trang 6

Meee ied Ovsndged: Connected directly to the physical network

Replicate physical network connection state

COOLAN segment:

Hình 5: Card mang ctia Ubuntu

Virtual Machine Settings

Hardware Options

Deuce Summary Device status

Memory 2GB Connected

(5 dard disk (uve) 60 GB

@) œ/DVD (SATA)

Using file G:\Wún10_1909_E Network connection

CO aridged: Connected directly to the physical network

=] USB Controller Replicate physical network connection state

f{› Sound Card Auto detect

cD Printer Present (@NAT: Used to share the host's IP address

Eloisplay Auto detect )Host-only: A privete netvzork shared with the host

) Custom: Specific virtual network

VMnet0

LAN segmert:

Hình 6: Card mang may Windows 10 ding dé str dung FileZilla hoac VNC

Virtual Machine Settings

{Processors Connect at power on

1Hard Disk (NVMe) 60 GB

SI Eridged: Connected diractly to the physical network

(SJuse Controller Present Replicate physical network connection state

eq) Sound Card Auto detect

2) Printer Present NAT: Ussd to share the host's IP address

{_lpisplay Auto detect Ov#ost-only: A private network shared with the host

@ Custorn: Specific virtual network

|vMnett (Host-only)

LAN segment:

Hình 7: Card mạng máy Windows 10 để nhận DHCP từ máy Ubunfu

Trang 7

c)) Sound Card Auto detect

> Printer Present

[Clpsglay Auto detect

Hinh 8: Firewall Sophos g Gm 2 card mang

Virtual Machine Settings

O Bridged: Connected directly to the physical network

Replicate physical network connection stete

CONAT: Used to share the host's IP address CQ)Host-only: A private network shared with the host

@ custom: Specific virtual network VMnet1 (Host-only) ` LAN segment:

Device status

mM Connectad

[| Connect at power on Network connection

O Bridged: Connected directly to the physical network Replicate physical network connection state

@NAT: Used to share the host's IP address C)Host-only: A private network shared with the host

© custom: Specific virtual network

VMnet0

CLAN segment:

LAN Segments Advanced

Trang 8

If you accept the terms of the agreement, dick I Agree to continue You must accept the

agreement to install FileZilla Client 3.56.2

[tages] | cones

Hinh 10: Cai dat FileZilla trén may Windows Server 2019 va Windows 10 chon I Agree

Choose Installation Options

Who should this application be installed for?

Please select whether you wish to make this software available to all users or just yourself,

@ Anyone who uses this computer (all users)

© Only for me (Administrator)

Installation for all users requires Administrator privileges

<Beck [next>] [cancel

Hình 11: C6 thé chon all users hoac Administrator

Trang 9

Space required: 41.0 MB

Nullsoft Install Sy 3,06

<Back

Hinh 12: Chon Next

its you want to install and uncheck the components you don't want to

FileZilla Client 3.56.2 Setup

Choose Install Location

Choose the folder in which to install FileZilla Client 3.56.2

Setup will install FileZilla Client 3.56.2 in the following folder To install in a different folder, dlick Browse and select another folder Click Next to continue

Trang 10

Choose Start Menu Folder

Choose a Start Menu folder for the FileZilla Client 3.56.2 shortcuts

FileZilla Client 3.56.2 Setup

Trang 11

FileZilla Client 3.56.2 has been installed on your computer

Click Finish to close Setup

M Start FileZilla now

Hình 16: Cài dat FileZilla thanh công

2) Cấu hình dịch vụ FFP trên Ubuntu

n19dcat033@n19dcat033-virtual-machine: ~ Q

:~$ ifconfig

flags=4163<UP , BRO AST,RUNNING,MULTICAST> mtu 1500

inet 192.168.2 netmask 255 255.0 broadcast 1

inet6 fe80::ba37:c9bf: 4 prefixlen 64 scopeid

ether 00:0c:29:e6:d1: (Ethernet)

inet6 1 prefixlen 128 scopeid 0x10<host>

loop xqueuetLen © (Local Loopback)

Trang 12

Oh een ro ufw 0.36

Copyright 2008-2015 Canonical Ltd

$ sudo apt-get install vsftpd [sudo] password for n19dcate33:

Reading package lists Done

Building dependency tree

Reading state information Done

The following packages were automatically installed and are no longer required: Linux-headers-5.8.0-43-generic Linux-hwe-5.8-headers-5.8.0-43

Linux-image-5.8.0-43-generic Linux-modules-5.8.0-43-generic

Linux-moduLes-extr a- 5 8 9-43-generLc

Use 'Sudo apL autorenove' to remove then

The following NEW packages will be installed:

vsftpd

© upgraded, 1 newly installed, © to remove and 176 not upgraded

Need to get 115 kB of archives

After this operation, 338 kB of additional disk space will be used

Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 vsftpd amd64 3.0.3-12

[115 kB]

Fetched 115 kB in 2s (49.8 kB/s)

Preconfiguring packages

Selecting previously unselected package vsftpd

(Reading database 200619 files and directories currently installed.)

Hinh 18: Cai dat VSFTPD

La n19dcat033@n19dcat033-virtual-machine: ~ Q

Preconfiguring packages

Selecting previously unselected package vsftpd

(Reading database 200619 files and directories currently installed.)

Preparing to unpack /vsftpd_3.0.3-12_amd64.deb

Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service >/1li b/systemd/system/vsftpd.service

Processing triggers for man-db (2.9.1-1)

Processing triggers for systemd (245.4-4ubuntu3.11)

:~$ sudo service vsftpd status vsftpd.service - vsftpd FTP server

loaded (/lib/systend/system/vsftpd.servic enabled; vendor prese B

since Tue 2021-11-09 69:25:09 CST; 1min 52s ago

Trang 13

Use ‘sudo apt autoremove' to remove them

The following additional packages will be installed:

ncurses-term openssh-client openssh-server openssh-sftp-server ssh-import-id

Suggested packages:

keychain libpam-ssh monkeysphere ssh-askpass molly-guard

The following NEW packages will be installed:

ncurses-term openssh-server openssh- Ae server ssh ssh-import-id

i a ded:

Processing triggers for ufw (0.36-6)

$ sudo ufw allow OpenSSH Rule added

Rule added (v6)

Hinh 21: Cho phép OpenSSH

:~§ sudo ufw enabLe Firewall is active and enabled on system startup

sudo ufw status Status: active

Trang 14

active

ALLOW ALLOW ALLOW rat me) ALLONW /tcp (v6) ALLOW

Hình 26: Cấu hình theo tài liệu

3) Kết nối Ubuntu qua FileZilla

Trang 15

Change adapter options

Change advanced sharing options

Network and Sharing Center

VMWimrdease Eirmsssall

Hình 28: Kết nối với VPN thành công

Trang 16

File Edit View Trarsfer Server Bookmarks Help

B20 Odjects File folder 10/19/2021 10464

^ppoxa File tolder 10/19/2021 10432 Not connected to any server

Application Date File folder 11/22/2031 tà:1%2

(X8Comtads File folder 10/19/2021 10e4G4

Ti cookies 10/25/2021 894:55

ante n em KỈ“ SPOON Bt ene v

INot connected, Server/Local file Direction Remote file Sze Priority Status

Status: Retrieving directory istin

|Stetu: Listing directory /hore/n!9dcat033

sat: Directory listing of "/horme/n 13421033" successf0l v

x | Remetesite | /hemein19dest933 v

alam

» Last modtied ^ | Filename Lertmodfed | Parminions | OwneGrow iy 10/19/2071 104444 cache 1/22/2021 12 n19ácat033

10/19/2021 10:41:2_ .conlig 11/13/2021 %1 n19ácat033

11/22/2001 1>1%2 bus 11/10/202173 n19đcat033 10/19/2021 10-464 -gnuog 10/20/2021 75

10/25/2021 #0455 oct

me Elle felde< 31/13/2011 61421 be

12 files and 24 directories Total sine: 6,494,708 bytes 1 files and 18 directones, Total size: 180,219 bytes

Server/Local file Dwection Remote file Size Ponty Status

Trang 17

File Edit View Trarster Server Bookmarks Help

Retrieving directory listing

Directory listing of “/home/n}$dcat033* successful

Local site: | C:\Users\Administrator\Documents\, ~~ | Remote site: | /home/n19écat033

` deeanimi 42 Confienwatinn s0tti 9028/2091 1057-4

2 files and 3 directories Total size: 423 bytes

Permirsenr tgwvnr-wr-x Severo

|| Queued Mes Foiled uansfers ` $uccesful transfers

Hình 31: Bấm chuột phải vào thư mục của Ubuntu bên Remote site, tạo thư mục mới bằng Create

Status — Insecuresever,tdoesrotsupportFTP ovœTLS

Status: Server does not sepport non-ASCII characters

Status Logged in

Status, Retriving directory listing

Status Directory listing of "/home/a1SdcatO}3" successful = Local site: | C:\Users\Adminisvator\Documents\ x_ | Remete siee | /home/n186cat033 v

@ 3' Documents ^la 7

Ị + 0ewnicad- 3 wie Create directory x

diy Music File folder 10/25/2021 10574 Desttop ụ 30/20/2021 lố dwer-x-x — 10001000

ENy Piouee Fie folder 10/29/2021 10-57 Huu Documents Filefolder 10/20/2021 4:5 crwar-x-x 10001000

Bi My Videos File folder 10/25/2021 10574 Downloads Filefolder 10/20/2021 1:5 ứwarw-x 10901000 ¥

`3 Canterueation catty 1/25/2021 12524 SNS

Total sve: 425 bytes 8 directories

Server/Local file Direction Remote file Size Priority Status

Hinh 32: Dat tén cho thu muc moi

Trang 18

File Edit View Traner Server Bookmarks Help

-_— “ăi =ä

see” | SSCRORTIFATMH

Host | 192.168.2.253 Uiemarre: | nlðdcat033 Password: | see Port Quickconnect | +

Insecure server, it does not support FTP over TLS ˆ Server does not support non-ASCII cherac

Leggedin

jeving directory Fisting of "/home/n1Sdea033",

Dee tor ling of home/n}ScatO3) success

Status: Retrieving directory ksting of" /ome/nt9dcatO3

Status: Directory listing of "/horme/n1Sdcat033/Videos” 3

Local site: | C\ Remote site: | /heme/n!Sdcat033/TestDirectory

Filesame Filesie Filetype Last moddied ^ | Fiename Filesize Filetype Last modified Permissions Ovmer/Group

My Pictures File folder

BB hy Videos File fot:

GÌ delsopini 402 Configuration set Empty directory listing

FieTestforUploadTes.tt 2 Tex Document

2 files and 3 directories, Total size 425 bytes Empty directory

Server/Local file Direction Remote file ze Priority Status

Queued files | Failed vansfes | Successful transfers

Host | 192.168.2253 Username: | n1Sdcat033 Password: 9 Pot: Quckconnect +

Error File transte fared ˆ

Status: Comecting to 192.16!

Status: Comection estattished, waitieg for welcome message

Status: Insecure server, itdoes not suppor FP ove TLS

Status Server does not export non-ASCII characters

Status Logged in

Status Starting upload of C:\Users\A¢ministrator\Documments\FileT ext eit oadTest.nt

Stan: RaneAngi sinh) listing of '/home/n19dcat033/ TestDirecto x Local site: | C:\Users\Administrator\Documents\ ~ | Remote site: | /home/ntSdcat033/TestDirectery

4)-| | Wan Edit | TestDirectory

sâm Create directory z |) Videos ¥

2 Filenarne Create directory and enter it Lest modified a Filesize Filetype Last modified — Permis: Ownsr/Group

Refresh

i= My Pictures :

Bh oy Videos Delcte tileTertPorUploà Yest Text Docu

Ì éesktop.ini Rename

Selected 1 file Toraf size 23 bytes Tile, Total size: Atleast 0 bytes

Server/Local file Direction Remote fie Status *

| Ằ r19dcz053@192 1632.253 «

Queved ffes(1) Failed transfers Successful tansters:

DEP cueve 238

Hình 34: Chon file muén Upload va tai lén Ubuntu

FileTextForUpLloadTest.txt

Hình 35: Kiểm tra file đã upload thành cơng

Trang 19

‘Status: Insecure server, it does not support FTP over TLS

‘Status: Server does not support non- ASCH characters

Status: Logged in

Status: Starting download of /home/n1Sdcat033/ TestDirectory/FileForDownloadTest tt

Status: _File transfer successful, transferred 0 bytes in 1 second

Local site: | C:\Users\Administrator\ Documents Remote site: | fhome/n19dcat033/TestDirectory

Filename Filesize Filetype Last modified Filename Filesize Filetype Last modified Permissions Owner/Group

D My Music File folder

= My Pictures File folder FileTextfo Download reacrwarvex 1000 1000

BB My Videos File folder Add files to queve

desktop.ini 402 Configuration sett 10 View/Edit

2 FileForDownloadTest.tet 0 Text Document 11/10/2071 4:56:12 = Create directory

FileTextForUploadTest nt 23 Text Document 11/10/2021 4:27:18

Create directory and enter it

Selected | file Total size: 0 bytes Selected file Create new file

Refresh

Servet/Local file Direction Remote file Size Priority Time

Ñ e19dcat033G192.168.2 253 =

Rename Queued files Failed transfers (2) | Successful transfers (1)

Copy URL(s) to clipboard

BDO Queve empty ee

File permissions

Hình 37: Chọn file muốn Download và tải xuống Windows Server

Trang 20

eal root @n19dcat033-virtual-machine: ~ a

root@ni9dcat033-virtual-machine:~# apt-get install xrdp

Reading package lists Done

Building dependency tree

Reading state information Done

The following additional packages will be installed:

© upgraded, 2 newly installed, © to remove and 175 not upgraded

Need to get 488 kB of archives

After this operation, 3, kB of additional disk space will be used

Do you want to continu [Y/n] y

Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 xrdp amd64 0.9.12

[428 kB]

8% [1 xrdp 49.6 kB/428 kB 12%]

Hinh 40: Cai dat XRDP trén Ubuntu

root@n19dcat033-virtual-machine:~# systemctl enable xrdp

Synchrontztng state of xrdp.service wtth SysV servitce scrtpt with /LLb/systemd/sys temd-sysv-install

Executing: /lib/systemd/systemd-sysv-install enable xrdp

root@n19dcat033-virtual-machine:~# service xrdp start

root@n19dcat033-virtual-machine:~# service xrdp-sesman start

root@n19dcat633-vtrtuaL-machtne:~# update-rc.d xrdp enable

root@n19dcat633-v†r tuatL-machtne:~#

Hình 41: Enable XRDP

Trang 21

Log Out n19dcat033

n19dcat033 will be logged out automatically in 60

seconds

Cancel Log Out

Hinh 42: Logout may Ubuntu

3) Thực hiện remote tir xa

Trang 22

Change adapter options

Change advanced sharing options

Network and Sharing Center

VMWimrdease Eirmsssall

Hình 45: Kết nối với VPN thành công

Trang 23

Username: None specified

‘You will be asked for credentials when you connect

S Remote Desktop Connection

This problem can occur ff the remote computer is running a version of

Windows that is earlier than Windows Vista, orif the remote computer is not

Configured to support server authentication

For assistance, contact your network administrator or the owner of the remote

Trang 24

Hinh 49: L%h dG remote cé thé bi man hình đen

we Get Help @@ Write Out @ Where Is (iM Cut Text (] Justify ae Cur Pos

\ Xi eens la; Read File @} Replace We) Paste Text@§j To Spell (ff Go To Line

Hình 51: Thém 2 đồng unset trước dòng test như hình

Trang 25

Hình 53: Thực hiện remote lại

5 M9DCATE3-Lf6eesua ÿ Mmancer Ä Ri9ĐCATBXS-Win10_ï

Activities

a n19dcat033@n19dcat033-virtual-machine: ~ In19dcate33@n19dcato3s3-virtual-machine:

Hinh 54: Remote thanh céng

IV) Phân quy & trong FTP Server

1) Tao user va group

root@n19dcat033-virtual-machine:~# useradd -m user1i

root@n19dcat033-virtual-machine:~# useradd -m user3

Hinh 55: Thém user vao /home

Trang 26

New password:

Retype new password:

passwd: password updated successfully

root@ni9dcat033-virtual-machine:~# passwd user2

New password:

Retype new password:

passwd: password updated successfully

root@ni9dcat033-virtual-machine:~# passwd user3

New password:

Retype new password:

passwd: password updated successfully

Hinh 56: Dat password cho user

root@n19dcat033-virtual-machine:~# groupadd ftp basi root@n19dcat033-virtual-machine:~# groupadd ftp_onlyread

Hinh 57: Tao group

root@ni9dcat033-virtual- chown -R user3:ftp_only /home/user3

root@n19dcat933 -vir tuaL-nachtne:~# chown :ftp_basic /ho k

Hình 60: Thay đổi quy ân sở hữu thư mục

đọc ghỉ |thựcthil đọc ghỉ |thuc thi] đọc ghỉ |thực thi đọc ghỉ [thực thi

Trang 27

3) Kiểm tra phân quy

In n19dcat033@n19dcat033-virtual-machine: /Ìđome/user1 Qa

$ sudo touch fileDownloadUser1.txt [sudo] password for n19dcat933:

$ ls fileDownloadUser1.txt

Hinh 63: Tao file txt dé test

a) Với user] và user2

Server Bookmarks Help

"“— oveveveer Pet Gia se |=

Status: Retrieving directory listing

Statu: Listing directory /home/user2

Status: Directory listing of "/home/user2" successful

Status: Retrieving directory listing of “/home’

Status: Listing directory /home

Status: Directory listing of "/home” successful

Status: Retrieving directory listing of "/home/user3

Command: cd "/home/user3”

mor: Directory /home/user3: permission denied

mo Failed to retrieve directory listing

Status: Retrieving directory listing of ”/horme/user12”

Statu: Listing directory /home/usert2

Status: Directory listing of “/home/user!2" successful

Stat Retrieving directory listing of "/home/user!

Command: cd"/home/user1"

Error Directory /home/user!: permission denied

Error: Failed to retrieve directory listing

Trang 28

Edit View Transfer Server Bookmarks Help

‘Status: Starting download of An NT G HH ctxt

‘Status: File transfer successful, transferred 0 bytes in 1 secon

Status: Starting upload of C:\Users\Administrator đc ecd.NETeifsdigieitoili

‘Status: File transfer successful, transferred 23 nies in 1 second

Status: Retrieving directory listing of "/home’

Status: Listing directory /home

Status: Directory listing of "/home” successful

Status: Retrieving directory listing of "/home/usert2”

Status: Listing directory /home/user12

‘Status: Directory listing of "/home/userl2" successful

‘Status: Starting upload of C:\Users\Administrator\Documents\FileTextForUploadTest.ot

‘Status: File transfer successful, transferred 23 bytes in 1 secon

Status: Retrieving directory listing of */home/user!2"

Status: Listing directory /home/useri2

Status: Directory listing of "/home/userl2" successful

Local site: | C:\Users\Administrator\Documents\ ~ | Remote site: | /home/userl2

TT Documents “.- S ftpuser aaa

‘Status: Using username "user3"

‘Status: Connected to 192.168.2.253

Status: Retrieving directory listing

Status: Listing directory /home/user3

‘Status: Directory listing of "/home/user3" successful

Listing directory /home

Directory listing of "/home" successful

Retrieving directory listing of "/home/user1",

Status: Listing eee /home/user1

‘Status: Directory listing of "/home/user!" successful

‘Status: Retrieving di listing of "/home/user12"

‘Status: Listing directory /nome/userl2

Directory listing of "/home/user12" successful

Retrieving directory listing of "/home/user2"

‘Status: Listing directory /home/user2

Status: Listing directory /home

Stetus: Directory listing of "/home" successful

Status: Retrieving directory listing of "/home/user1”

Status: Listing directory /home/user!

Status: Directory listing of "/home/userl" successful

Trang 29

File Edit View Transfer Server Bookmarks Help

Response: New directory is: “/home/userl2

Commend: put "C:\Users\Administrator\Documents\FileForDownloadT est.txt” "FileForDownloadTest.tt"

Error: home/user12/FileFcrDownloadTest.txt: open for write: permission denied

Error: File transfer failed

‘Status: Starting upload of C:\Users\Administrator\Documents\FileForDownloadTest.tt

Status: Listing directory /home/user12

Command: put "C:\Users\Administrator\Documents\FileForDownloadTest.txt” "FileForDownloadTest.tt”

Error home/user12/FileForDownloadTest.tt: open for write: permission denied

Error: File transfer failed

‘Status: Retrieving directory listing of "/home/user12"

Status: Listing directory /home/userl2

Command: put "C:\Users\Administrator\Documents\FileForDownloadTest txt” "FileForDownloadTest.txt”

Error: home/user12/FileF orDownloadTest.tst: open for vrite: permission denied

Error: File transfer failed

Status: Retrieving directory listing of "/home/user12"

Status: Listing directory /home/userl2

Status: Directory listing of "/home/user!2" successful

Status: Deleting "/home/user12/FileTextForUploadT est.ttt

Command: 1m “/home/user12/FileTextForUploadTest.tt"

rm /home/user|2/FileTextForUploadTest.bt: permission denied

‘Status: Disconnected from server

Hình 69: user3 không thể Upload file ta Windows Server lên Ubuntu và không thể xóa file

“home/user]2

1) Cai dat VNC Server trén Ubuntu

n19dcat033@n19dcat033-virtual-machine: ~

$ sudo apt install xfce4 xfce4-goodies

[sudo] password for n19dcat933:

Reading package lists Done

Building dependency tree

Reading state information Done

The following additional packages will be installed:

accountsservice-ubuntu-schemas desktop-base elementary-xfce-icon-theme

exo-utils fonts-quicksand gnome-screensaver greybird-gtk-theme hddtemp

indicator-applet indicator-application indicator-appmenu indicator -bluetooth

indicator-common indicator-datetime indicator-keyboard indicator-messages

indicator-power indicator-printers indicator-session indicator -sound

jayatana Libaccounts-glibO Libbamf3-2 Libburn4 Libexo-1-0 lLibexo-2-0

libexo-common libexo-helpers lLibfcitx-config4 Libfcitx-gclient1

b = P ee oD ŒIDSD ha oe! r

Hình 70: Cài package c Ân thiết

Trang 30

A display manager is a program that provides graphical login

capabilities for the X Window System

Only one display manager can manage a given X server, but multiple display manager packages are installed Please select which display manager should run by default

Multiple display managers can run simultaneously if they are configured

to manage different servers; to achieve this, configure the display managers accordingly, edit each of their init scripts in /etc/init.d, and disable the check for a default display manager

Trang 31

Reading package lists Done

Building dependency tree

Reading state information Done

Suggested packages:

tightvnc- java

The following NEW packages will be installed:

tightvncserver

© upgraded, 1 newly installed, © to remove and 175 not upgraded

Need to get 663 kB of archives

After this operation, 1,891 kB of additional disk space will be used

Hinh 73: Cai tightvneserver trén Ubuntu

Š$ vncserver will require a password to access your desktops

password truncated to the length of 8

Would you like to enter a view-only password (y/n)? y

password truncated to the length of 8

Creating default startup script /home/n19dcat033/.vnc/xstartup

Starting applications specified in /home/n19dcat033/.vnc/xstartup

Log file is /home/n19dcat033/.vnc/ni9dcat033-virtual-machine:1.log

Hinh 74: Chay dich vu VNC

:~Š$ sudo nano ~/.vnc/xstartup

Hinh 75: Mé chinh stra file ~/.vnc/xstartup

m n19dcat033@n19dcat033-virtual-machine: ~ Q = = o GNU nano 4.8 home/n19dcat033/.vnc/xstartup Modified xrdb /.Xresources

xsetroot -solid grey

startxfce4

XKL_XMODNAP_DISABLE=1

/etc/X11/Xsession

Hình 76: Cau hinh file nhu hinh

$ sudo chmod +x ~/.vnc/xstartup

$ vncserver -Locathost New 'X' desktop is n19dcat933-vtrtuaL-machtne: 1

Starting applications specified in /home/ni9dcat033/.vnc/xstartup Log file is /home/ni9dcat033/.vnc/ni9dcat033-virtual-machine:1.1log

sil

Trang 32

n19dcat033@n19dcat033-virtual-machine: ~ Q = _- n @ :~§$ sudo nano /etc/systend/systen/vncserver€.serv+cel

mm n19dcat033@n19dcat033-virtual-machine: ~ Q

GNU nano etc/systemd/system/vncserver: ervice

Description=Start TightVNC server at startup

After=syslog.target network.target

Type=forking

WorkingDirectory=/home/n19dcat033

PIDFile=/home/n19dcat033/.vnc/%H:%i.pid

ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1

ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :

ExecStop=/usr/bin/vncserver -kill :%i

WantedBy=multi-user.target

Hinh 79: File cấu hình

n19dcat033@n19dcat033-virtual-machine: ~ :=Š$ sudo systemctL daenon-reLoad :~§ sudo systemctl enable vncserver@1.service

te$ vnacserver -kill :1 Killing Xtightvne process ID 2332

t~§ sudo systemctl start vncserver@1

:~=$ sudo systemctl status vncserver@1

vncserver(@1.service - Start TightVNC server at

Loaded: loaded (/etc/systemd/systen/vnc ice; enabled; vendor preset: enabled)

Active: since Fri pay & 0:19 CST; 8s ago

Process: 2592 ExecStartPre=/usr/bin/vncserver -kiLL :1 > 7 a) 2 Se -.-

Process: 2506 ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :1 (code=exited,

Main PID: 2515 (Xtightvnc)

dbus-launch autoLaunch 09e9eb1f54f24f329c92374c78a7f029 btnary-syntaxl

/usr/btn/dbus-taunch sh-syntax exit-with-se on xfce4-se: on

/usr/btn/dbus-daenon sysLog-onLy fork prtnt-ptd 5 prtnt-address i

Trang 33

2) Cai d&t va remote bang TightVNC

#@ TightVNC Setup

Welcome to the TightVNC Setup Wizard

The Setup Wizard will install TightVNC on your computer

Click Next to continue or Cancel to exit the Setup Wizard

oe a L

Hinh 82: Cai dat TightVNC

Choose Setup Type

Installs the most common program features Recommended for most users

Custom

Allows users to choose which program features will be installed and where

Complete

All program features will be installed Requires the most disk space

Hinh 83: Chon Custom

Trang 34

Click the icons in the tree below to change the way features will be installed

your hard drive

Hinh 84: Custom Setup chon TightVNC Viewer

Select additional tasks you would like Setup to perform while installing TightVNC 2.8.63.0, then dick Next

File associations:

MiaAssociate vnc files with TightVNC Viewer

TightVNC Service configuration:

MRegister Tight VNC Server as a system service (recommended)

[ ]Rưn only as a system service, disable user application mode

M Configure system to allow services simulate Ctrl-Alt-Del

Hinh 85: Next

Trang 35

Tổ TightVNC Setup

Installing TightVNC

Please wait while the Setup Wizard installs Tight VNC

Hinh 86: Qua trinh cai dat

'TightVNC Server: Set Passwords

Please protect your TightVNC Service Make sure to enter a password for remote access

Also, it might be a good idea to use administrative

Do not change

on multi-user systems

Oo not use password protection (DANGEROUS!)

@ Require password-based authentication (make sure this box is always checked!)

Enter password

confi per

Administrative Password

ODo not change

Do not use password protection

@ Protect control interface with an administrative password

Trang 36

Completed the TightVNC Setup Wizard

Click the Finish button to exit the Setup Wizard

@ Themes and related settings

DU Turn wireless devices on or off

& Project to a second screen

Search the web

Disconnect network drive

005 003

Hình 89: Mở TightVNC Viewer (nếu không thấy, vào C:\\Program Files\\TightV NC)

Trang 37

Change adapter options

Change advanced sharing options

Network and Sharing Center

VMWimrdease Eirmsssall

Hình 91: Kết nối với VPN thành công

Trang 38

Connection

Enter a name or an IP address To specify a port number, 7

Reverse Connections

Listening mode allows people to attach your viewer to :

their desktops Viewer will wait for incoming connections Ustening mode

TightVNC Viewer

TightVNC is cross-platform remote control software

= Its source code is available to everyone, either freely

Type here to search

Hình 94: Thực hiện Remote thành công

3) Cai d&t va remote bang Ultra VNC

a

FARA 2 ton 22 nov, sẽ:

Trang 39

® Setup - UltraVNC version 1.3.4.2

License

Please read the following important information before continuing

Please read the following License Agreement You must accept the terms of this

agreement before continuing with the installation

Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc

S9 Temple Place - Suite 330, Boston, MA 02111-1307, USA

Everyone is permitted to copy and distribute verbatim

copies of this license document, but changing it is not

allowed

Dreemhie«

1 do not accept the agreement

Hinh 95: Dé cai dat chon I accept the agreement va chon Next

®& Setup - UltraVNC version 1.3.4.2

Select Components

L ]Upgrade 1.0.8/1.0.9 Upgrade can be done while vnc is running 14.4MB

| Back | Net | | Cancel

Hinh 96: Chon Select Components nhu hinh

Trang 40

@® Setup - UltraVNC version 1.3.4.2 — x Select Additional Tasks

Which additional tasks should be performed?

Select the additional tasks you would like Setup to perform while installing UltraVNC, then dick Next

Server configuration:

(2 Register UltraVNC Server as a system service

LO Start or restart UltraVNC service

©, Create UltravNC desktop icons

L ] Associate UltraVNC Viewer with the vnc file extension

© Add virtual monitor driver (win 10)

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

TRÍCH ĐOẠN

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

TÀI LIỆU LIÊN QUAN