SMB users
A Basic Domain Member
In smb.conf
security = server
password server = <NT Server Name>
Part of an Active Directory Network
security = ads
Chia sẻ tài nguyên – Sendmail
Client-Server
Nhận gởi mail giữa các hệ thống
Server
Gói APP: sendmail. Đ/c /usr/sbin
Tệp cấu hình /etc/sendmail.cf
Client
Daemon
IMAP: imapd (/usr/share/)
Sendmail agent
/etc/rc.d/init.d/sendmail
Chia sẻ tài nguyên – Sendmail
Cấu hình sendmail (sendmail.cf)
Cấu hình trung gian với tệp /etc/mail/sendmail.mc
Dùng macro m4 để sinh tệp sendmail.cf
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
Khởi động lại sendmail
/sbin/service sendmail restart
Các tệp cấu hình trong /etc/mail
Domaintable
Tên miền mail
Local-hosts-name
Các alias cho machine
Chia sẻ tài nguyên – Sendmail
Mask
Machine đóng vai trò gateway cho hệ thống mail
Chứa trong tệp /etc/mail/local-hosts-names
Ví dụ: PC mail.bigcorp.com là gw
Chia sẻ tài nguyên – Sendmail
Mask
Các PC torgo, poodle,.. khai báo gw trong sendmail.cf với option DM, DH
Chia sẻ tài nguyên – Sendmail
Dùng mail với LDAP
Lightweight Directory Access Protocol
Tìm nhanh 1 user trên 1 domain rộng
Với sendmail
Dùng kết quả của LDAP trong xác định đ/c mail.
Khởi động với sendmail LDAP
Cài đặt & cấu hình đúng LDAP (OpenLDAP)
Thêm vào sendmail.cf khai báo LDAP
Chia sẻ tài nguyên – Sendmail
Fetchmail
Kết nối & lấy mail từ remote server về MUA
Gồm POP3 và IMAP
Gói APP: fetchmail
Cấu hình
Apache – Tổng quan
Web server khả chuyển
Trên nhiều OS khác nhau
Trên Redhat - Linux
Gói APP: apache.rpm
Tác vụ
Cài đặt apache server
Khởi động web server
Cấu hình apache server
Apache – Cài đặt server
Dùng rpm
Rpm –ivh apache.rpm
Các thư mục
/etc/httpd/conf
Chứa các tệp cấu hình
/etc/rc.d
Chứa tệp script khởi động server
/home/httpd
Các tệp tài liệu, script của server
Apache – Khởi động server
Khởi động
Gọi daemond httpd
/etc/rc.d/initd.d/httpd start
Kiểm tra
Mở 1 web browser
Mở trang: http://localhost.domain :8080
Stop
/etc/rc.d/initd.d/httpd stop
Cấu hình với GUI
System/ Apache Configurator
Apache – Cấu hình apache
Các tệp cấu hình
httpd.conf
Cấu hình cách thực hiện server
access.conf
Mô tả người dùng truy cập server
srm.conf
Mô tả CSSDL tài liệu của server
Apache – Cấu hình httpd.conf
Apache – Cấu hình apache
Các option
ServerType
Quy định cách khởi động apache
Standalone: như 1 daemon độc lập
Xinetd: qua xinetd
ServerRoot
Đ/c đến root của server
DocumentRoot
Đ/c đến CSDL root của server
Apache – Cấu hình apache
Các khai báo
Mô tả thư mục tương đối trong document Root
<Directory>
Options
Định nghĩa các option cho thư mục
AllowOverride
Cách thức sinh tệp .htaccess của thư mục
Order
Thứ tự áp dụng allow deny
Allow (hay Deny)
Định các client có (không) quyền truy cập
</Directory>
Apache – Cấu hình apache
Các khai báo
Mô tả thư mục tương đối trong document Root
Apache – Cấu hình apache
Các khai báo
Mô tả host virtual
<VirtualHost đ/c ip | host name>
ServerAdmin
Đ/c mail của admin
DocumentRoot
Thư mục root của host
ServerName
Tên domain kết hợp với host
ErrorLog
Định file log của host
</VirtualHost>
Apache – Cấu hình apache
Các khai báo
Mô tả host virtual
Apache – Cấu hình apache
access.conf
Định nghĩa cách truy cập toàn cục cho người dùng
Mỗi directory có thể định nghĩa kiểu riêng
Dùng khi cần bảo mật doc với người dùng
Apache – Cấu hình apache
srm.conf
Cấu hình tài nguyên của site
UserDir
Đ/c của thư mục tương đối với Root
DocumentRoot
Đ/c của cây tài liệu
Virtual Network Computing
Remote access với GUI
Hai trường hợp dùng remote access
Client – server có cùng OS (Linux)
Một chức năng của Linux
Ví dụ: start prog từ PC bean và hiển thị nó trên màn hình (default) của PC quang
./prog –display quang:0
Client –Serveur khác OS (Windows, Linux)
Serveur: Linux
Client: Windows
Dùng VNC
VNC – Cài đặt
Gói APP
Distro Redhat vnr.rpm
Download
www.uk.research.att.com/vnc/download.html
Cài đặt
Dùng rpm
Chú ý
Không đặt vnc như service khởi động auto
VNC – Cài đặt & sử dụng Server
Cài đặt
Gói vncserver.rpm
Khởi động
Gọi daemon vncserver
Vncserver
1 số ID được trả về cho người dùng: X
Ngưng
Vncserver –kill :X
Sử dụng
Sửa đổi ~/.vnc/xstartup: chọn X env
Startgnome hay startkde
VNC – Cài đặt & sử dụng Client
Cài đặt
Gói vnc.rpm
Khởi động
Gọi daemon vncviewer
vncviewer
Vào tên server: X
Ngưng
Tương tự X env khác
create database using mySQL
MySQL
Open Source,
www.mysql.com
install
MySQL-server-4.0.14.i386.rpm.
MySQL-client-<version>.<architecture>.rpm.
MySQL-shared-<version>.<architecture>.rpm,
MySQL-devel-<version>.<architecture>.rpm.
MySQL
Start
using /etc/rc.d/init.d/mysql start
MySQL - working
Logon
mysql -u root mysql
running server with mysqladmin command
mysqladmin -u root version
mysqladmin -u root password
newpassword
Working
Working
Working – create database
Working – create table
Working – insert data
Configure MySQL for Websites
review the list is with the following command: