CentOS 6.0 使用EPEL套件庫:
# rpm -Uvh http://mirror01.idc.hinet.net/EPEL/6/x86_64/epel-release-6-5.noarch.rpm
2012年2月6日 星期一
2012年2月1日 星期三
2012年1月9日 星期一
2011年9月26日 星期一
安裝新版 firefox
[root@desktop ~]# tar xjf /root/下載/firefox-6.0.2.tar.bz2
[root@desktop ~]# yum install glibc.i686 libstdc++.i686 libXrender.i686 gtk2.i686 alsa-lib.i686 libXt.i686
root@desktop ~]# /root/firefox/firefox &
建立圖示

解決無法播放youtube,需更新32bit的flash play
將下載的libflashplayer.so,複製到/usr/lib/mozilla/plugins目錄
安裝嘸瑕米輸入法
將noseeing.gtab複製到/usr/share/gcin/table
[root@desktop ~]# yum install gcin gcin.686
[root@desktop ~]# yum install glibc.i686 libstdc++.i686 libXrender.i686 gtk2.i686 alsa-lib.i686 libXt.i686
root@desktop ~]# /root/firefox/firefox &
建立圖示

解決無法播放youtube,需更新32bit的flash play
將下載的libflashplayer.so,複製到/usr/lib/mozilla/plugins目錄
安裝嘸瑕米輸入法
將noseeing.gtab複製到/usr/share/gcin/table
[root@desktop ~]# yum install gcin gcin.686
2011年9月9日 星期五
linux 安裝vmware player
[root@desktop 下載]# chmod +x VMware-Player-3.1.4-385536.x86_64.bundle
[root@desktop 下載]# ./VMware-Player-3.1.4-385536.x86_64.bundle
出現:Public key for xxxxxx.rpm is not installed
[root@desktop ~]# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
[root@desktop ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
參考:
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01
http://www.fedorafaq.org/#gpgsig
[root@desktop ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
參考:
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-f0c3ecee3dbb407e4eed79a56ec0ae92d1398e01
http://www.fedorafaq.org/#gpgsig
2011年9月1日 星期四
SSH安全性設定
[root@dns ~]# vim /etc/ssh/ssh_config
# Port 22
Port 55555
Protocol 2
PermitRootLogin no
[root@dns ~]# /etc/init.d/sshd restart
2011年8月31日 星期三
2011年8月25日 星期四
RHEL6 yum
[root@server5 ~]# yum grouplist
[root@server5 ~]# yum groupinfo base
法 一:
[root@server5 ~]# yum groupinfo base
法 一:
[root@RHEL ~]# vim /etc/rc.local
mount /dev/cdrom /media
[local-Server]
baseurl=file:///media/Server
enabled=1
gpgcheck=0
[local-HA]
baseurl=file:///media/HighAvailability
enabled=1
gpgcheck=0
[local=LB]
baseurl=file:///media/LoadBalancer
enabled=1
gpgcheck=0
[local-RS]
baseurl=file:///media/ResilientStorage
enabled=1
gpgcheck=0
法 二:
下載rpmforge並安裝
http://pkgs.repoforge.org/rpmforge-release/
法 三:
EPEL:http://fedoraproject.org/wiki/EPEL
http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5-.noarch.rpm
[root@desktop5 ~]# yum clean all
[root@desktop5 ~]# yum grouplist
法 四:
國家高速網路中心
ftp://ftp.nchc.org.tw/Linux/Scientific/
[root@desktop5 yum.repos.d]# vim rhel6fastbug.repo
[update]
name=fastbug
baseurl=ftp://ftp.nchc.org.tw/Linux/Scientific/6.1/i386/updates/fastbugs/
enabled=1
gpgcheck=1
gpgkey=ftp://ftp.nchc.org.tw/Linux/Scientific/6.1/i386/os/RPM-GPG-KEY-sl6
[security]
name=security
baseurl=ftp://ftp.nchc.org.tw/Linux/Scientific/6.1/i386/updates/security/
enabled=1
gpgcheck=1
gpgkey=ftp://ftp.nchc.org.tw/Linux/Scientific/6.1/i386/os/RPM-GPG-KEY-sl6
或
name=CentOS-$releasever – Base[base]baseurl=ftp://ftp.nchc.org.tw/Linux/CentOS/6.0/os/$basearch/enabled=1[update]name=CentOS-$releasever – Updatesbaseurl=ftp://ftp.nchc.org.tw/Linux/CentOS/6.0/updates/$basearch/enabled=1
EPEL , RPM Fusion ,RPMforge
打包指令tar
壓 縮:tar -jcv -f filename.tar.bz2 要被壓縮的檔案或目錄名稱
解壓縮:tar -jxv -f filename.tar.bz2 -C 欲解壓縮的目錄
-j:透過bzip2支援壓縮/解壓縮,檔名最好為*.tar.bz2
-z:透過gzip支援壓縮/解壓縮,檔名最好為*.tar.gz
-c:建立打包檔案
-x:解開打包檔案,可搭配 -C 在特定目錄解開
-f:接要被處理的檔名
-p:保留原本檔案的權限與屬性
2011年8月24日 星期三
httpd 出現下列訊息
[root@setup ~]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: apr_sockaddr_info_get() failed for setup.example.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱,
[root@setup ~]# vim /etc/hosts
127.0.0.1 setup.example.com setup
或
[root@setup ~]# vim /etc/httpd/conf/httpd.conf
ServerName setup.example.com:80
2011年8月23日 星期二
模擬 Linux 檔案系統壞掉,或找不到 /
[root@cacti ~]# vim /boot/grub/grub.conf
title CentOS (2.6.18-194.el5)
root (hd0,0)
# kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/
kernel /vmlinuz-2.6.18-194.el5 ro root
initrd /initrd-2.6.18-194.el5.img
開機後會顯示出:kernel panic - not syncing:Attempted to kill init!
於開機選單輸入:a
grub append> ro root=LABEL=/
進入系統後,再修改grub.conf
2011年8月17日 星期三
模擬 Linux 無法正常開機
[root@cacti ~]# dd if=/dev/zero of=/dev/sda bs=446 count=1
重開機後,利用救援光碟進入救援模式
sh-3.00# grub-install /dev/sda
/sbin/grub:Not found
sh-3.00# chroot /mnt/sysimage/
sh-3.00# grub-install /dev/sda
Squid Proxy安裝後,webmin無法連線
[root@cacti ~]# vim /etc/squid/squid.conf
acl SSL_ports port 443 563 10000
2011年8月13日 星期六
linux 安裝嘸蝦米
scim
1、下載liu.bin,到linux的"/usr/share/scim/tables/"下。
2、# scim-restart //重新啟動scim
iBus
1、把liu5.db這個檔案copy到 /usr/share/ibus-table/tables/
2、# 然後把liu5.png copy到 /usr/share/ibus-table/icons/
[root@dns ~]# yum -y install scim-tables-chinese scim-chewing
下載無蝦米表格檔,放置 /usr/share/scim/tables/
1、下載liu.bin,到linux的"/usr/share/scim/tables/"下。
2、# scim-restart //重新啟動scim
iBus
1、把liu5.db這個檔案copy到 /usr/share/ibus-table/tables/
2、# 然後把liu5.png copy到 /usr/share/ibus-table/icons/
[root@dns ~]# yum -y install scim-tables-chinese scim-chewing
下載無蝦米表格檔,放置 /usr/share/scim/tables/
2011年8月12日 星期五
無法使用yum
出現下列訊息:
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
可能原因為baseurl所指的路徑與所裝的版本沒對應
更改其他的baseurl後,又出現下列訊息:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Public key for gnome-python2-gnomekeyring-2.28.0-4.el6.i686.rpm is not installed
後來又在底下新增了
gpgcheck=1
gpgkey=ftp://ftp.nchc.org.tw/Linux/CentOS/RPM-GPG-KEY-CentOS-6
訂閱:
文章 (Atom)



