2008年10月31日星期五
add dictionary of StarDict
extract file
put dictionary folder into /usr/share/stardict/dic
How to setup Multimedia
The following procedures will help you setup multimedia support under CentOS 5. After completing the steps below, you should be able to play dvds on your computer. You'll also be able to view different media formats, for example Xvid, dvix, quicktime etc. You will also have mplayer integrated as a browser plugin which will allow you to view streaming video/audio content from within Firefox.
Some recommendations should be mentioned pertaining to the yum priorities plug-in. This will prevent accidentally overwriting packages from the base repositories. Also note the following needs to be performed as root user in a command line or terminal.
Please consider following the wiki document to assist in setting up the priorities plug-in, due to the fact that we are adding some third party repositories.
http://wiki.centos.org/PackageManagement/Yum/Priorities
Step 1: Add the Rpmforge Repo (needed for majority of multimedia files)
rpm -Uhv http://apt.sw.be/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> If you are running CentOS 4, you should use the el4 package. See CentOS Repositories
Step 2: Add the Macromedia Repo (needed for flash)
rpm -Uhv http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
Step 3: Install Multimedia Applications (command line to install required packages)
The following steps will use the yum package manager to install all the binaries needed to have full multimedia support. Note there will be a lot of dependencies
yum install libdvdcss libdvdread libdvdplay livdvdnav lsdvd mplayerplug-in mplayer mplayer-gui compat-libstdc++-33 flash-plugin gstreamer-plugins-bad gstreamer-plugins-ugly libquicktime
Step 4: Installing w32Codecs (required for xvid and other proprietary formats)
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm ; rpm -ivh mplayer-codecs-20061022-1.i386.rpmYou should now have full multimedia and video support for most popular formats.
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm; rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm
mplayer 播放rmvb,rm没有图像只有声音
把selinux设置一下就好了
chcon -t textrel_shlib_t /usr/lib/codecs/drvc.so
chcon -t textrel_shlib_t /usr/lib/codecs/drv4.so.6.0
......
等等的都设置一下
mplayer播放rm、rmvb都没有问题,
How to Mount an NTFS Filesystem
Installing required packages
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> While older ntfs drivers were prone to eat your data in r/w-mode, ntfs-3g seems to be r/w safe. See the ntfs-3g QA page for more information.
Make sure you have the rpmforge repo installed. If not, refer to Repositories.
Install the following packages.
yum install fuse fuse-ntfs-3g dkms dkms-fuse
(dkms and dkms-fuse install the fuse kernel module)
If the rpmforge repo is disabled by default,
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g dkms dkms-fuse
If you are using the ATrpms repository there is no need to install dkms and dkms-fuse (you still need fuse-ntfs-3g from rpmforge).
The line to install from ATrpms then is
yum install fuse-kmdl fuse
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> Do not mix from both repositories if you have rpmforge and atrpms installed. Choose one to install fuse from. You might want to take a look at the yum priorities plugin to priorize one repository over the other.
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> Make sure that you have the correct kernel-devel package installed - especially having one that matches your running kernel. dkms has kernel-devel as a requirement, but that only pulls in the standard kernel-devel package.
If you are running the xen kernel (kernel-xen), you need to
yum install kernel-xen-devel
If you're running kernel-PAE, you need to install
yum install kernel-PAE-devel
Same goes for kernel-smp and so on.
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> yum will install the latest kernel-*-devel package. Make sure that it fits the kernel you are using. You might have to reboot to run the latest installed kernel after a "yum update". The installed running kernel and the kernel-*-devel package have to match.
Mounting an NTFS filesystem
Suppose your ntfs filesystem is /dev/sda1 and you are going to mount it on /mnt/win, do the following.
First, create a mount point.
mkdir /mnt/win
Next, edit /etc/fstab as follows. To mount read-only:
/dev/sda1 /mnt/win ntfs-3g ro,umask=0222,defaults 0 0
To mount read-write:
/dev/sda1 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0
You can now mount it by running:
mount /mnt/win
Users of the centosplus kernel
In centosplus (Repositories/CentOSPlus) kernels, both ntfs and fuse kernel modules are enabled. A main difference between ntfs and ntfs-3g is that the former is read-only. Therefore, if you do not need write access to the ntfs filesystem, add this line to /etc/fstab :
/dev/sda1 /mnt/win ntfs ro,umask=0222,defaults 0 0
If you wish to have read-write access, you would need the fuse-ntfs-3g package. But because the fuse module is already available in the kernel, you do not need dkms :
yum install fuse fuse-ntfs-3g
" src="http://wiki.centos.org/wiki/modern-CentOS/img/attention.png" title="" height="15" width="15"> However, the fuse kernel module included in CentOS 5 (as of August 2007) produces a message: WARNING: Deficient FUSE kernel module detected. It still works, but it is advised that the fuse module from RPMforge (newer) be used instead.
Therefore, run:
yum install fuse fuse-ntfs-3g dkms dkms-fuseto replace the existing fuse kernel module with the one from RPMforge.
Mount ntfs filesystem
mount -t ntfs-3g /dev/sda1 /mnt/windows
Let portable disk automount
ln -s /sbin/mnt.ntfs-3g /sbin/mnt.ntfs
2008年10月28日星期二
install wine+IE
Open a terminal. Log in as root to install wine and cabextract:
yum -y install wine*
yum -y install cabextract
Logout and install IEs 4 Linux with your normal user account:
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
2008年10月27日星期一
把白皑皑的窗口变成淡淡的苹果绿
>>>> 外观 -高级-项目-窗口(记住选窗口啊)-颜色-其它,,色调设为8
>>>>
>>>> 现在打开[我的电脑 ]或[资源管理器][浏览器]看看,原来的冰天雪地是不是已有了
>>>> 春意!天长日久,对眼睛的养护作用是不可低估的。
CentOS中文字体美化
1.字体文件夹位于/usr/share/fonts
建立新文件夹apple
2.将LiHeiPro.ttf字体文件放入
3.建立字体文件缓存
cd /usr/share/fonts/apple
mkfontscale
mkfontdir
fc-cache -fv
4.设置gnome,firefox的字体,全部设为LiHei Pro.