You are on page 1of 7

Lab 6.

Cài đặt và quản lý phần mềm


1. Công cụ webmin

Webmin là một web based interface dùng để quản trị các dịch vụ trên server Linux. Đây là một trong
những hosting control panel mã nguồn mở phổ biến hiện nay, dựa trên ngôn ngữ Perl, hoạt động như
một tiến trình và web server.

Các bước cài đặt:

B1: Cài đặt Webmin từ gói RPM


a. Tải công cụ Webmin RPM bằng lệnh sau:

[root@localhost ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-


1.831-1.noarch.rpm

b. Cài đặt các gói phụ thuộc trên CentOS serer bằng lệnh sau:

[root@localhost ~]# yum install perl perl-Net-SSLeay openssl perl-IO-Tty -y

c. Cuối cùng, thực hiện cài đặt Webmin sử dụng lệnh như sau:

[root@localhost ~]# rpm -Uvh webmin-1.831-1.noarch.rpm

Bước 2: Start Webmin và kích hoạt chức năng khởi động cùng server

Để start Webmin, sử dụng lệnh sau:

# service webmin start 

Để kích hoạt Webmin khởi động cùng CentOS, sử dụng lênh sau

# chkconfig webmin on

Webmin chấp nhận thiết lập tài khoản người dùng, cấu hình web service Apache, quản lý DNS, cấu
hình Postfix mail service, cấu hình Dovecot IMAP, POP3 và nhiều dịch vụ khác.

Bước 3: Truy cập Webmin

Tắt firewalld trên máy Centos

# systemctl stop firewalld

Sử dụng firefox/chrome/edge/… trên Windows truy cập vào trang quản trị Webmin với giao thức
https, địa chỉ IP server và port 10000.

https://IP-server:10000
Sử dụng lệnh ifconfig để kiểm tra thông tin của server.

Vd: ip của server là: 192.168.23.141

 Truy cập webmin trên trình duyệt như sau: https://192.168.23.141:10000

Chọn proceed to 192.168.23.141


Giao diện công cụ Webmin

Đăng nhập với username: root, password tương ứng.


Giao diện công cụ Webmin

Yêu cầu:

a. Sử dụng command shell trên Webmin (Vào Others  Command shell)

+ Liệt kê các tập tin trong thư mục /etc, sử dụng lệnh ls /etc

+ Tạo ra user: IT, sử dụng lệnh useradd IT

+ Kiểm tra user vừa tạo, sử dụng lệnh cat /etc/passwd

b. Phân quyền user truy cập webmin

+ Truy cập vào mục Webmin users (Webmin  Webmin users)

+ Tạo thêm user: webmin, đặt password tương ứng, real name: Quan tri

+ Logout khỏi user root, đăng nhập vào user webmin vừa tạo

+ Quan sát thấy, user webmin vừa tạo, không có quyền trên giao diện webmin

+ Cấp full quyền cho user webmin:

++ Đăng nhập vào user root

++ Chọn Webmin  Webmin users  chọn vào user webmin

++ Chọn vào Available Webmin modules  select all  save

+ Đăng nhập vào webmin bằng user webmin vừa cấp full quyền và kiểm tra kết quả.

2. Cài đặt OpenOffice trên Centos

B1: Download OpenOffice.org 3.3

+ 32 bit:

[root@localhost ~]# wget


http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Linux_x86_in
stall-rpm-wJRE_en-US.tar.gz

https://liquidtelecom.dl.sourceforge.net/project/openofficeorg.mirror/4.1.11/
binaries/en-US/Apache_OpenOffice_4.1.11_Linux_x86_langpack-rpm_en-US.tar.gz

+ 64 bit:

[root@localhost ~]# wget


http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Linux_x86-
64_install-rpm-wJRE_en-US.tar.gz
wget https://telkomuniversity.dl.sourceforge.net/project/openofficeorg.mirror/
4.1.11/binaries/en-US/Apache_OpenOffice_4.1.11_Linux_x86-64_langpack-rpm_en-
US.tar.gz

wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.2/binaries/en-US/
Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz --no-check-certificate

tar xzf Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_en-US.tar.gz

--no-check-certificate

B2: Giải nén tập tin

+ 32 bit:

[root@localhost ~]# tar -zxvf OOo_3.3.0_Linux_x86_install-rpm-wJRE_en-US.tar.gz

+ 64 bit:

[root@localhost ~]# tar -zxvf OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_en-


US.tar.gz

tar -zxvf Apache_OpenOffice_4.1.11_Linux_x86-64_langpack-rpm_en-US.tar.gz

B3: Cài đặt OpenOffice.org 3.3

[root@localhost ~]# rpm -Uvh OOO330_m20_native_packed-1_en-US.9567/RPMS/*.rpm

rpm -Uvh en-US/RPMS/*.rpm


caif java: yum install java-11-openjdk java-11-openjdk-devel -y

Cài đặt trên menu giao diện đồ họa:

[root@localhost ~]# rpm -Uvh OOO330_m20_native_packed-1_en-US.9567/RPMS/desktop-


integration/openoffice.org3.3-redhat-menus-3.3-9556.noarch.rpm

Giao diện mở công cụ OpenOffice trong menu Application


Mở bằng command line

[root@localhost ~]# openoffice.org3


Bài tập về nhà: Cài đặt phần mềm UNIKEY trên Centos.

Link tham khảo: Chia sẽ các kiến thức về Công nghệ thông tin: Hướng dẫn cài Ibus-unikey cho CentOs
(chiase1208.blogspot.com)

You might also like