2015年8月8日 星期六

0804_RHEL7


延續上週:
.做 createrepo
掛載 RHEL DVD
copy DVD 內容至 /var/ftp/pub/
cd /run/media/$USER/RHEL-7.0/Packages
安裝 vsftp createrepo
createrepo -g /var/ftp/pub/repodata/76[Tab] /var/ftp/pub/

 .設定 repo 檔,以自建的 vsftp.service
cd /etc/yum.repos.d/
vi test.repo
 [RHEL7]
 name=rhel
 baseurl=ftp://localhost/pub
 enabled=1
 gpgcheck=0

 .重啟 vsftp 並設定 SELinux Firewall
systemctl enable vsftpd.service
restorecon -R /var/ftp/pub
firewall-cmd --permanent --add-service=ftp
systemctl restart vsftpd.service

 .檢查 ftp repo
打開「應用程式」>「軟體」,可以看到多項套件。
打開 firefox url: ftp://localhost ,可以看到 /var/ftp/pub 內容。

 .安裝套件:應用程式 > 軟體 >
system-config-firewall base components and command line tool
A graphic interface for administering users and groups
A graphic interface for modifying the system language

 .裝 EPEL repo
Google: EPEL (https://fedoraproject.org/wiki/EPEL)
下載  The newest version of 'epel-release' for EL7
安裝 rpm -ivh epel-release..rpm



.測試 EPEL,以 freerdp 遠端連線程式為例:
測試 yum search freerdp
測試 yum install freerdp
xfreerdp -g 800x600 -u $USER $IP

 .查看網路設定:
ip address show
ip route show
ifconfig

 .修改 ip 為手動:
可以使用圖型介面直接改
使用半圖型介面 nmtui-edit

 .重新啟動網路:
 systemctl restart NetworkManager

 .檔案系統格式,對單一檔案容量限制:
FAT16 <= 2G
FAT32 <= 4G
NTFS <= 16T
EXT4  <= 16T
XFS  超大…






...
安裝遠端程式 xrdp

Google:xrdp install on rhel7 (http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html )
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum -y install xrdp tigervnc-server
systemctl start xrdp.service
netstat -antup | grep xrdp
systemctl enable xrdp.service
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload

沒有留言:

張貼留言