1.上課前準備
(a).VirtualBox 5.0上需要有RHEL 7的虛擬機
(b).此RHEL 7的虛擬機必須要有可登入root的權限(也就是你必須要有root的帳號與密碼)
2.上課重點
(a).yum repo building
網路參考資料:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/create-local-yum-repository-on-centos-7-rhel-7-using-dvd.html#axzz3hNR3OEvS
(b).mount iso image
網路參考資料:
http://www.certdepot.net/sys-mount-iso-image/
http://www.linuxquestions.org/questions/linux-software-2/mount-iso-read-write-329688/
(c).EPEL資料庫
網路參考資料:
https://fedoraproject.org/wiki/EPEL?rd=Epel
(d).建置其他的repo資料庫
網路參考資料:
http://www.certdepot.net/rhel7-create-local-repository/
(e).xrdp建置
網路參考資料:
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html#axzz3hqxed2dw
上課筆記作法
(1).把rhel-server-7.0-x86_64-dvd.iso掛載上。
(2).並且到光碟內的「package」搜尋「vsftpd」的服務先安裝起來。
(3).把rhel-server-7.0-x86_64-dvd.iso內的東西copy到/var/ftp/pub底下。
(4).我們開始建置repo的程式庫
#createrepo -g /var/ftp/pub/repodata/以76開頭的.xml /var/ftp/pub
(5).開始編輯repo檔案
#cd /etc/yum.repos.d/
#vim test.repo
test.repo內容為:
[RHEL70]
name=RHEL7
baseurl=ftp://localhost/pub
enabled=1
gpgcheck=0
(6).完成repo檔案之後,儲存離開(shift+zz or :wq!)
(7).啟動ftpd的服務,讓系統能夠從ftp的服務中抓取套件做搜尋與安裝。
#systemctl enable vsftpd.sevice <---啟動ftp服務
#restorecon -R /var/ftp/pub <---selinux解除限制
#firewall-cmd --permanent --add-service=ftp <---針對ftp這項服務的firewall開通限制
#systemctl restart vsftpd.service <---ftp服務重啟
#systemctl status vsftpd.service <---觀看ftp服務狀態
(8).到GUI的畫面,去「套件」管理內,去管理套件。
(9).安裝EPEL資料庫(請參照上面的網站中的作法)
(10).建置其他的repo資料庫(請參照上面的網站中的作法)
(11).xrdp建置(請參照上面的網站中的作法)
3.今日上課重點
(a).如何建置repo的資料庫
(b).xrdp的服務建置
沒有留言:
張貼留言