2009年2月19日星期四
freebsd 硬盘安装
http://www.51nb.com/45239/viewspace-38139
http://community.itbbs.cn/forumdisplay.php?f=13
freebsd 6.2 安装配置笔记
http://blog.zhangjianfeng.com/article/588
FreeBSD 使用手册
http://www.freebsd.org/doc/zh_CN/books/handbook/
http://www.freebsd.org/doc/en/books/handbook/index.html
使用FreeBSD作为桌面操作系统
http://wiki.freebsdchina.org/doc/x/freebsd_desktop
1. 下载文件
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/
2. 文件准备
a. 解压顺序 3->2->1
b.把\packages的INDEX文件用写字板打开,查找替换目标"||1"替换成"|"查找"||2"替换成"|"等,之后保存.
c.以上文件放到C盘根目录下(试过放\freebsd不行)
3. 修改menu.lst
title install FreeBSD 7
find --set-root /7.0-RELEASE-i386-bootonly.iso
map --mem /7.0-RELEASE-i386-bootonly.iso (hd32)
map --hook
chainloader (hd32)
boot
4. 安装过程仿照如下
FreeBSD 7.0 全程图解安装手册
http://www.ittang.com/2008/0309/4832.html
5. ADSL安装
#cd /etc/ppp
#vi ppp.conf
#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $
#################################################################
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuad0 = COM1, cuad1 = COM2)
#
set device PPPoE:fxp0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set timeout 30 # 3 minute idle timer (the default)
disable lqr
deny lqr
add default HISADDR # Add a (sticky) default route
enable dns # request DNS info (for resolv.conf)
adsl:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
set authname gzDSL********
set authkey ********
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
nat enable yes
手动拨号
#ppp –ddial Chinanet
#ifconfig -a
开机自动拨号
#vi /etc/rc.conf
# -- sysinstall generated deltas -- # Sun Jun 15 04:19:07 2008
# Created: Sun Jun 15 04:19:07 2008
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="snail."
ifconfig_fxp0="inet 192.168.0.8 netmask 255.255.255.0"
gateway_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="adsl"
named_enable="YES"
inetd_enable="YES"
keymap="us.iso"
linux_enable="YES"
moused_enable="YES"
sshd_enable="YES"
#gdm_enable="YES"
参考文章
http://blog.opensource.org.cn/horuslee/2006/02/freebsdadsl.html
#vi /etc/resolv.conf
nameserver 202.96.128.166
nameserver 61.144.56.101
6. 安装Xorg, gnome & kde
#sysinstall
configure -> package -> DOS -> All -> xorg-xxx -> 回车 -> install
a.#Xorg -cofnig xorg.conf.new
#cp xorg.conf.new /etc/X11/xorg.conf
b. #echo "exec startkde" > ~/.xinitrc
#echo "exec gnome-session" ~/.xinitrc
&#vi /etc/rc.conf
gdm_enable="YES"
cd /usr/ports/x11/xorg
makeinstallclean
或
pkg_add-r xorg
Gnome安装与使用gnome2: /usr/ports/x11/gnome2
gnome2-lite: /usr/ports/x11/gnome2-lite
7. 新建用户的组为"wheel"
8. hostname后面必须多加一点,如“51nb.”
9. chsh -s /usr/local/bin/bash
10. Ports & Package
[FreeBSD Ports & Package & make]
http://www.study-area.org/freebsd/how_to_use_ports_package/how_to_use_ports.htm
#cd /usr/ports
#make search key="xxx"
分享:使用wget/axel加速你的port下载
http://www.freebsdchina.org/forum/topic_25246.html
http://freebsd.lab.mlc.edu.tw/ports.htm
cd /usr/ports
fetch ftp://freebsd.csie.nctu.edu.tw/pub/CVSup/cvsupfile-ports
cvsup -g -L 2 cvsupfile-ports
参考链接
http://bbs.chinaunix.net/viewthread.php?tid=643200
http://www.freebsd.org/doc/zh_CN/books/handbook/ports-using.html
http://freebsd.lab.mlc.edu.tw/ports.htm
http://lixiang.cn/?q=node/8
Package是一套將以經整理好的軟體安裝進FreeBSD的系統裡的軟體,主要下列功能:
pkg_add 安裝一個pkg套件
pkg_create 創造一個pkg套件
pkg_info 查詢一個pkg套件資料
pkg_update 升級一個pkg套件
pkg_check 檢查一個pkg套件的加密簽章(cryptographic signature)
pkg_delete 刪除一個pkg套件
pkg_sign 插入加密簽章(cryptographic signature)至一個pkg套件
pkg_version 創造一個pkg套件
11. fcitx
http://blog.csdn.net/fengfangfang/archive/2006/02/26/610208.aspx
12.我要一個彩色的ls世界 [ 可以跳過此步驟到第4步驟 ]
FreeBSD的ls真是沉悶,為什麼不能帶點彩色呢?
參考文獻:
http://www.huangdong.com/freebsd/tips/colorls.htmlhttp://www.huangdong.com/freebsd/tips/colorls.html
注意事項:千萬別裝完APACHE服務器後再進行這個步驟,否則服務器目錄消失了別怪我。(我的悲慘經歷)
進行如下步驟:
www#cd /usr/ports/misc/gnuls
www#make;make install;make clean??
[ 說明:要保證系統與外網連接,系統會自動從網絡上下載該源代碼進行安裝。]
安裝好後,執行命令 vi /etc/profile
添加如下一行內容
alias ls=gnuls --color
保存退出。
通過shutdown –r now命令遠程啟動機器,過幾分鐘後,機器的SSH服務會自動執行,我們可以用ssh客戶端軟件進行遠程登陸。
*** #vi .bash_profile
alias ls='ls -A -G'也可以达到目标
13.定制系統內核
系統啟動後自動運行的進程有sendmail,鑒於sendmail漏洞太多,且已經有了安全性更好的postfix和qmail替代品,我們執行如下命令來取消sendmail的自動運行進程。
www#vi /etc/rc.conf
找到sendmail_enable=YES那行,更改為sendmail_enable=NONE,執行:wq!命令保存退出。
http://www.bbs-tw.net.cn/thread-35833-1-1.html
14 .login_conf
#Users who do not wish to use monetary units or time formats
#of China can manually change each variable
me:\
:lang=zh_CN.UTF-8:\
:setenv=LC_ALL=zh_CN.UTF-8:\
:setenv=LC_COLLATE=zh_CN.UTF-8:\
:setenv=LC_CTYPE=zh_CN.UTF-8:\
:setenv=LC_MESSAGES=zh_CN.UTF-8:\
:setenv=LC_MONETARY=zh_CN.UTF-8:\
:setenv=LC_NUMERIC=zh_CN.UTF-8:\
:setenv=LC_TIME=zh_CN.UTF-8:\
:charset=UTF-8:\
:xmodifiers="@im=SCIM": #Set SCIM as the XIM Input Server
http://blog.1zsoft.com/cat28.html
下面15-17均可参照此链接
15. sudo是一种比较安全权限分配方案。如果你想让某个用户执行root账号的权限,但又不想让他直接成为root账号,可以使用sudo来解决这个问题。
1. 安装sudo
cd /usr/ports/security/sudo; make install clean;
2. 添加sudoers
使用visudo命令来编辑#vi /usr/local/etc/sudoers文件。
%wheel ALL=(ALL) NOPASSWD: ALL
这样设置就是允许wheel组的用户可以执行任何命令而不需要密码。:)
16. 让root账号可以远程登录
Freebsd默认安装之后,默认是禁止root账号直接ssh登录的。可以通过修改/etc/ssh/sshd_config文件,将其中的 PermitRootLogin改成yes,然后重新启动ssh服务就可以了。/etc/rc.d/sshd restart
17. 让普通用户可以使用bash Freebsd默认安装之后用户的shell是sh,平时都已经习惯了使用bash。通过下面的步骤可以配置用户来使用bash作为shell。
1. 安装bash。 cd /usr/ports/shells/bash; make install clean
这样安装完之后,bash会被安装在/usr/local/bin/目录下面。
2. 在/bin目录下面做一个符号连接。
ln -f /usr/local/bin/bash /bin
3. 修改 /etc/shells文件,将bash增加进去,这样在添加用户的时候就可以指定使用bash作为shell了。否则的话,会警告pwd_mkdb: warning, unknown root shell
4. 如果已经添加过的用户,可以使用chsh命令来修改默认的shell.
18.显示root的路径
http://mail.lsps.tp.edu.tw/~gsyan/freebsd2001/newsetup.html
vi root/.cshrc
將 set prompt = "`hostname -s`# " 這行改成:
set prompt = "[%n@%m %/]# "
19. #freebsd桌面字体美化
http://www.yuanma.org/data/2006/1130/article_1886.htm
20 Firefox plugin
http://www.math.colostate.edu/~reinholz/freebsd/firefox_plugins.html
21 ports/119053: update www/linux-flashplugin7
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2007-December/132984.html
ifconfig_fxp0="DHCP"
22. pkg_add: warning: package 'firefox-3.0.3,1' requires 'cairo-1.6.4_2,1', but 'cairo-1.6.4_3,1' is installedpkg_add: warning: package 'firefox-3.0.3,1' requires 'pcre-7.8', but 'pcre-7.7_1' is installed
2009年2月17日星期二
XFCE下audacious没有声音问题的解决
把audacious选项里的音频输出插件选择 OSS Output Plugin 就可以了
虽然小动作经验保留
linux 下驱动丢失 与分区的联系
在网上大家使用linux时一般是 boot 分100mb 再划分/分区
而我经常只划分一个/分区
有一天一个朋友让我在他的笔记本上给安装一个32bit 的 Fedora 6
第一次安装后没问题(只划分一个/分区)只是朋友嫌空间小我又给装拉一遍(boot 分100mb 再划分/分区)
这次出问题啦 系统启动后竟然找不到网卡,后多次实验就是分区的问题,不知在linux其他的发行版本中是否有这种现象
fstab
/dev/sda5 /mnt/D vfat defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
/dev/sda1 /mnt/C vfat defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
fstab释疑
文件/etc/fstab存放的是系统中的文件系统信息。当正确的设置了该文件,则 可以通过"mount /directoryname"命令来加载一个文件系统,每种文件系统都对应一个独立的行,每行中的字段都有空格或tab键分开。 同时fsck、mount、umount的等命令都利用该程序。
2. fstab文件格式
下面是/etc/fatab文件的一个示例行:
fs_spec fs_file fs_type fs_options fs_dump fs_pass
/dev/hda1 / ext2 defaults 1 1
fs_spec - 该字段定义希望加载的文件系统所在的设备或远程文件系统,对于一般的本地块设备情况来说:IDE设备一般描述为 /dev/hdaXN,X是IDE设备通道(a, b, or c),N代表分区号;SCSI设备一描述为/dev/sdaXN。对于NFS情况,格式一 般为:,例如:`knuth.aeb.nl:/'。对于procfs,使用`proc'来定义。
fs_file - 该字段描述希望的文件系统加载的目录点,对于swap设备,该字段为none;对于加载目录名包含空格的情况,用40来表示空格。
fs_type - 定义了该设备上的文件系统,一般常见的文件类型为ext2 (Linux设备的常用文件类型)、vfat(Windows系统的fat32格式)、NTFS、iso9600等。
fs_options - 指定加载该设备的文件系统是需要使用的特定参数选项,多个参数是由逗号分隔开来。对于大多数系统使用"defaults"就可以满足需要。其他常见的选项包括:
选项 含义
ro 以只读模式加载该文件系统
sync 不对该设备的写操作进行缓冲处理,这可以防止在非正常关机时情况下破坏文件系统,但是却降低了计算机速度
user 允许普通用户加载该文件系统
quota 强制在该文件系统上进行磁盘定额限制
noauto 不再使用mount -a命令(例如系统启动时)加载该文件系统
fs_dump - 该选项被"dump"命令使用来检查一个文件系统应该以多快频率进行转储,若不需要转储就设置该字段为0
fs_pass - 该字段被fsck命令用来决定在启动时需要被扫描的文件系统的顺序,根文件系统"/"对应该字段的值应该为1,其他文件系统应该为2。若该文件系统无需在启动时扫描则设置该字段为0
3. 示例文件
# /etc/fstab
/dev/hda9 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/hda5 /home ext2 defaults 1 1
/dev/hda6 /usr ext2 defaults 1 1
/dev/hda7 /usr/local ext2 defaults 1 1
/dev/hda8 /var ext2 defaults 1 1
/dev/hdb /cdrom iso9660 noauto,user 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
移动/home 历险记
“jerrywjl

精灵使
http://linux.chinaunix.net/bbs/viewthread.php?tid=978927&extra=&page=1
fdisk /dev/sdX
划分新的分区。
这里我假设你识别出来是/dev/sdX,如果用n建立第一个分区就是/dev/sdX1。之后w保存分区表。
这里我假设你将用这个/dev/sdX1替换原来的/home,那么执行:
# mkfs.ext3 /dev/sdX1
格式化磁盘
然后建立一个空目录,例如/test,执行mount /dev/sdX1 /test将其挂载上。
执行:# cp -avdpR * /home/* /test目录下,完成之后修改/etc/fstab文件,将原来/home对应的设备更改为/dev/sdX1就行了。
咋样,够详细的吧!?“
如果 /home 以前不在它自己单独的分区上(例如,如果 /home 只是根分区上的一个目录),请按下面的说明操作。执行以下命令:
# cd / |
现在,请按 CTRL-D 离开单用户模式。当系统回到启动运行状态以后,编辑 /etc/fstab 文件,在其中添加类似这样一行:
/dev/--? /home ext2 defaults 1 2 |
这样,当下次重新启动系统时,您的新分区将被正确挂载。”
由于/分区空间不够 无奈移出/home 分区
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x624aa2e0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 730 5863693+ 7 HPFS/NTFS
/dev/sda2 731 9729 72284467+ f W95 Ext'd (LBA)
/dev/sda5 731 3162 19535008+ b W95 FAT32
/dev/sda6 3163 8026 39070048+ 7 HPFS/NTFS
/dev/sda7 8027 9537 12137076 83 Linux
/dev/sda8 9538 9728 1534176 82 Linux swap / Solaris
sda6 后边的 HPFS/NTFS 到现在不知道怎么回事,分区已经是ext3了
fstab
LABEL=/ / ext3 defaults 1 1
/dev/sda6 /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda8 swap swap defaults 0 0
/dev/sda5 /mnt/D vfat defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
/dev/sda1 /mnt/C ntfs defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
HPFS/NTFS 这个难道还要修改 硬盘分区表??1!!!
造成 user 目录 信息丢失
在/下重新建立目录后成功挂载
精灵使的方法 会造成 挂载home 后 /分区隐藏一个home 这点注意
sda6 卷标 问题导致 fstab 启动挂载 失败
原来 没卷标 /deb/sda6
LABEL=/ / ext3 defaults 1 1
LABEL=/dev/sda6 /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda8 swap swap defaults 0 0
/dev/sda5 /mnt/D vfat defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
/dev/sda1 /mnt/C ntfs defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
通过PM 设置卷标 /home
然后
LABEL=/ / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda8 swap swap defaults 0 0
/dev/sda5 /mnt/D vfat defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
/dev/sda1 /mnt/C ntfs defaults,rw,umask=0,codepage=936,iocharset=utf8,uid=500,gid=500 0 0
明天上午抽空试试
LABEL=/home /home ext3 defaults 1 2
不能用
必须是
/dev/sda6 /home ext3 defaults 1 2
yes | cp 通道 避免不停的按y
多媒体的应用 我照搬 论坛上的一位兄弟的 非原创
RPM下载 |
|
1.下载相关codes ( http://www.mplayerhq.hu/MPlayer/ ) 主要都在这里
Mplayer-1.0rc1.tar.bz2(主程序)( http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2 )
Abyss-1.6.tar.bz2 (皮肤) (http://www2.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2)
all-20060611.tar.bz2(http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060611.tar.bz2 )
windows-all-20060611.zip(建议不要在win下使用. rar,用. zip)
( http://www.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20060611.zip )
这是我的mplayer的一些组件,你可以去http://www.mplayerhq.hu/MPlayer/ 下载你自己喜欢的皮肤和字体.
2.安装过程(请把你的终端打开)
a.安装相应的解码
进入主目录后,以root身份安装 ,这样改变身份:在终端输入su或者su root ,然后输入密码就ok啦,有没有看到 $ 变成了 #
接着
mkdir /usr/lib/codecs
mkdir /usr/lib/wincodecs
tar jxvf all-20060611.tar.bz2
mv all-20060611/* /usr/lib/codecs
unzip windows-all-20060611.zip
mv windows-all-20060611/* /usr/lib/wincodecs
b.安装mplayer
tar jxvf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1
./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ --language=zh_CN
注意:
--prefix=/usr/local/mplayer 是安装路径
--enable-gui 安装图形化用户界面
--enable-freetype 调节字体
--with-codecsdir=/usr/lib/codecs/
--with-win32libdir=/usr/lib/wincodecs 指定解码位置
--language=zh_CN 中文
接着
make
make install
c.安装皮肤
tar jxvf Abyss-1.6.tar.bz2
mv Abyss /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
mv Abyss default
至此mplayer已经成为了万能播放器
执行程序在 /usr/local/mplayer/bin中
你可以在终端中输入gmplayer,也可以在桌面建立起动器来使用mplayer
赶紧运行一下,看看有没有问题
你一定会发现我们还没有装字体,运行mplayer后它也会提示没有字体
你就从自己电脑中拷个字体到主目录下的.mplayer文件夹下,并把你的字体改名为subfont.ttf,问题就解决了,或者做个链接也行,只要你喜欢
字体你可以上网下载,mplayer网站也有,你电脑里也有字体,在/usr/share/fonts/chinese下 (/usr/share/fonts/chinese/TrueType/uming.ttf就可以用)你就直接cp /usr/share/fonts/chinese/TrueType/uming.ttf $HOME/.mplayer下
每个用户都有自己的环境变量HOME,再cd $HOME/.mplayer 接着
mv uming.ttf subfont.ttf 结束!
重要的一点在这个字体安装说明让我在以后 用播放器播放字幕时出现拉麻烦
播放srt字幕时给我带来不少麻烦,首先不显示字幕、或乱码
后在网上集众家之长解决问题 首先在网上下载font.desc 字体
再在mplayer调节指向目录 就可以正确显示srt 字幕啦
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/csbbbcodes/ --win32codecsdir=/usr/lib/csbbbcodes/ --language=zh_CN
libstdc++5-3.3.1-4sls.i586.rpm
解决找不到文件错误
播放 RMVB 双声道问题
mplayer -af channels=1:1:1
mplayer -af channels=1:1
config af=channels=1:1:1
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/codecs/ --language=zh_CN
MPlayer 播放RMVB之我的解决办法
系统环境 Fedora Core 6 64bit
突然昨天晚上突发奇想试拉一把,终于成功拉呵呵。
MPlayer 放Real格式的视频正常与否我发现与Linux AMD64 20061203 包里的四个文件很有关系,能否正常播放就看 atrc.so cook.so drvc.so sipr.so 拉用这四个文件逐个替换 /usr/lib/codecs 里边的同名文件一个个试试 ,我只是替换拉cook.so文件 ,个人感觉老旧库文件交替使用可以完美放Real格式的视频,完全
![]() |
|
linux 下非root 用户没有声音以及解决办法
在linux下我用root用户时系统声音正常,而用非root用户时运行 Mplayer时没有声音,在各大BBS上搜索后使用一位兄弟的办法 chmod 555 /dev(可能是音频文件位置吧,等我想起来再补上)修改权限后,用非root用户可以正常使用系统声卡啦。
Mplayer 下使用gl驱动不能调亮度问题,以及解决
我使用播放器时在gl驱动下亮度不能调节还有画面非常迟钝,在google搜索后总结大家的智慧
原来是显卡的驱动没有安装。安装显卡驱动后问题解决。
Fedora 7 下的其他软件
冷风和暗夜都这样写我也不知道谁搞谁的反正有用我就拿来了 先谢谢两位了
# wget http://rpm.livna.org/livna-release-7.rpm
# rpm -ivh livna-release-7.rpm
安装多媒体解码器
# yum -y install gstreamer-plugins*
# yum install -y ffmpeg mjpegtools
安装多媒体播放器VLC
yum -y install videolan-client
执行
运用程序 -->影音-->VideoLan CLient
<现在的FC7下的livna的vlc包有问题,主要是dts的类库在libdca里被删除了,不知道为什么,大家再等等吧,也可以自己去网上下载vlc的源码进行编译>
安装多媒体播放器xmms
yum install xmms* -y
执行
应用程序-->影音-->音频播放器
安装多媒体播放器amarok
yum install -y amarok
执行
应用程序-->影音-->amarok
要支持mp3的话需要安装xine才可以,xine的支持见下面
安装多媒体播放器xine
yum install -y xine
执行
应用程序-->影音-->xine
按照下面的方法安装mplayer的codecs就可以支持win32codecs了
安装realplayer 10 gold for linux
首先确信安装了compat-libstdc++-33 ,如果没有用
yum -y install compat-libstdc++-33
到这里下载realplayer10
# wget http://www.real.com/realcom/R?href=...yer10GOLD%2Erpm
# rpm -ivh RealPlayer10GOLD.rpm
执行
应用程序-->影音-->realplayer 10
安装mplayer for linux
还是建议有经验的用户用源码自己编译,这样比较灵活。这里只给初学者介绍yum的安装方法
yum install -y mplayer
安装mplayer for linux
还是建议有经验的用户用源码自己编译,这样比较灵活。这里只给初学者介绍yum的安装方法
yum install -y mplayer
之后需要下载w32codecs解码器
# wget http://www1.mplayerhq.hu/MPlayer/re...0061022.tar.bz2
# tar jxvf all-20061022.tar.bz2
# cd all-20061022
# mv * /usr/lib/codecs
ok 搞定
安装windows字体
复制你wndows的字体到Linux目录,windows字体通常存放在windows\Fonts或者winnt\Fonts目录下,你可以把整个目录复制到linux的/usr/share/fonts/目录下
重启x即可
如果想安装嵌入点阵字体的中文下载http://ftp.chinalinuxpub.com/fonts/linuxsong.tgz
解压缩到/usr/share/fonts/linuxsong目录下,重启x即可
之后把默认字体都设置成
系统-->首选项-->字体
除了等宽字体用Vera Sans YuanTi Mono外全部用Vera Sans YuanTi ,字体大小根据你实际显示效果调整,我通常设置成10号字体
安装多媒体播放器audacious
# yum install -y audacious
执行
应用程序-->影音-->Audacious
安装桌面录像程序istanbul
yum install -y istanbul
执行
应用程序-->影音-->Istanbul Desktop Session Recorder
评论:我用的很少,能用,但是很不稳定,经常crash,录像的质量很差,没仔细研究过,谁有时间研究一下
安装桌面录像程序byzanz
# yum -y install byzanz
执行byzanz-recod [参数] 文件名
给gnome的桌面右键菜单添加“打开终端”
yum install -y nautilus-open-terminal
退出重新登录x即可
在FC7上打开compiz特效
首先安装Nvdia或者Ati的3D驱动
nvidia现在的驱动不能驱动某些nv的卡,需要暂时用beta版本的
# wget http://us.download.nvidia.com/XFree....14.06-pkg1.run
# chmod +x NVIDIA-Linux-x86-100.14.06-pkg1.run
# ./NVIDIA-Linux-x86-100.14.06-pkg1.run
之后修改你的/etc/X11/xorg.conf的内容为(记得先备份)
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Sep 20 16:56:19 PDT 2006
# Xorg configuration created by pyxf86config
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions/nvidia"
ModulePath "/usr/lib/xorg/modules"
EndSection
Section "Module"
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "glx"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
### Comment all HorizSync and VertSync values to use DDC:
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection
Section "Device"
# Enable 32-bit ARGB GLX Visuals
Identifier "Videocard0"
Driver "nvidia"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "DisableGLXRootClipping" "True"
Option "AddARGBGLXVisuals" "True"
# Uncomment me if you get black screens with Compiz
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
执行 系统-->首选项-->Desktop Effects
然后点Enable Desktop Effects
如果不报错,重启x就可以看到特效了
FC7开启桌面特效后的快捷键
默认基本快捷键
* 打开主菜单 = Alt + F1 * 运行 = Alt + F2
* 显示桌面 = Ctrl + Alt + d
* 最小化当前窗口 = Alt + F9
* 最大化当前窗口 = Alt + F10
* 关闭当前窗口 = Alt + F4
* 截取全屏 = Print Screen
* 截取窗口 = Alt + Print Screen 默认特殊快捷键
* 窗口展示 = F12
* 切换窗口 = Alt + Tab
* 旋转3D桌面 = Ctrl + Alt + 左/右箭头(也可以把鼠标放在标题栏或桌面使用滚轮切换)
* 旋转3D桌面( 活动窗口跟随) = Ctrl + Shift + Alt + 左/右箭头
* 手动旋转3D桌面 = Ctrl + Alt + 左键单击并拖拽桌面空白处
* 窗口透明/不透明 = possible with the “transset” utility or Alt + 滚轮
* 放大一次 = 超级键 + 右击
* 手动放大 = 超级键 + 滚轮向上
* 手动缩小 = 超级键 + 滚轮向下
* 移动窗口 = Alt + 左键单击
* 移动窗口时贴住边框 = 左键开始拖动后再 Ctrl + Alt
* 调整窗口大小 = Alt + 中击 * Bring up the window below the top window = Alt + middle-click
* 动态效果减速 = Shift + F10
* 水纹 = 按住 Ctrl+超级键
* 雨点 = Shift-F9
* 桌面展开= Ctrl + Alt + 下箭头,然后按住 Ctrl + Alt 和左/右箭头选择桌面
在FC7上编译安装最新的MPlayer-1.0rc1
1 下载mplayer的源码包
wget http://www1.mplayerhq.hu/MPlayer/re...-1.0rc1.tar.bz2
2 解压缩
# tar jxvf MPlayer-1.0rc1.tar.bz2
3 编译
# cd MPlayer-1.0rc1
# ./configure --prefix=/usr/local/mplayer --with-codecsdir=/usr/lib/codecs --enable-gui --language=zh_CN ;make;make install
4 下载皮肤和字体并安装
# wget http://www.mplayerhq.hu/MPlayer/ski...yer-1.1.tar.bz2
# wget http://www.mplayerhq.hu/MPlayer/con...12-ming.tar.bz2
# tar jxvf DVDPlayer-1.1.tar.bz2
# tar jxvf gb2312-ming.tar.bz2
# cd gb2312-ming/gbsn00lp16
# cp * /usr/local/mplayer/share/mplayer/font/
# cd ../..
# mkdir /usr/local/mplayer/share/mplayer/skins/default ; cp -a DVDPlayer/* /usr/local/mplayer/share/mplayer/skins/default
5 下载解码器
wget http://www1.mplayerhq.hu/MPlayer/re...0061022.tar.bz2
解压缩后将全部解码器复制到/usr/lib/codecs目录下
安装xlock,一个root可用screen lock
在gnome下如果用root登录x,那么默认的screen lock是无法锁住桌面的,我们可以使用xlock来完成这个任务
yum install -y xlockmore
FC7下安装adobe pdf reader
虽然FC7下带了很多免费的pdf浏览器,但是我想没有哪个功能上可以和adobe相比了
wget http://ardownload.adobe.com/pub/ado....0.8-1.i386.rpm
rpm -ivh AdobeReader_chs-7.0.8-1.i386.rpm
执行 打开
/usr/local/Adobe/Acrobat7.0/bin/acroread
找到这行
echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
替换成
echo $mfile| sed 's/libgtk-x11-\([0-9]*\).0.so.0.\([0-9]*\)00.\([0-9]*\)\|\(.*\)/\1\2\3/g'
应用程序-->图像-->Adobe Reader
安装jre运行环境
到http://www.java.com/zh_CN/download/manual.jsp 下载Linux RPM(自解压文件)
# chmod +x jre-6u1-linux-i586-rpm.bin
# ./jre-6u1-linux-i586-rpm.bin
# rpm -ivh jre-6u1-linux-i586-rpm.bin
# cd ~/.mozilla/plugins
# ln -sf /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so .
# cd /etc/profile.d
# vi jre.sh
export JAVA_HOME=/usr/java/latest
export JAVA_BIN=$JAVA_HOME/bin
export CLASSPATH=$CLASSPATH:$JAVA_HOME:$JAVA_HOME/lib
export PATH=$JAVA_BIN:$PATH
alternatives --install /usr/bin/java java /usr/java/jre1.5.0_09/bin/java 2
[root@localhost profile.d]# alternatives --config java
共有 2 个程序提供“java”。
选择 命令
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /usr/java/latest/bin/java
按 Enter 来保存当前选择[+],或键入选择号码:2
安装BT客户端Azureus 2.5.0.4
参考上面的帖子安装jre,然后执行
# wget http://torrents.aelitis.com:88/file...4_linux.tar.bz2
# tar jxvf Azureus_2.5.0.4_linux.tar.bz2
# mv azureus /usr/local
# cd /usr/local/azureus/
# ./azureus
fc7下安装电骡
yum install -y amule
执行
应用 程序-->Internet-->Amule
替换FC6默认的中文输入法为fcitx
2 个附件
下载附件http://www.chinalinuxpub.com/down.php?downid=10
# rpmbuild --rebuild fcitx-3.5-070112.src.rpm
# cd /usr/src/redhat/RPMS/i386
# rpm -ivh fcitx-3.5-070112.i386.rpm
创建/etc/X11/xinit/xinput.d/fcitx
# /etc/X11/xinit/xinput.d/fcitx
XIM=fcitx
XIM_PROGRAM=fcitx
gnome-im-settings-daemon >/dev/null
# alternatives –install /etc/X11/xinit/xinputrc xinputrc /etc/X11/xinit/xinput.d/fcitx 100
# alternatives --config xinputrc
共有 4 个程序提供“xinputrc”。
选择 命令
-----------------------------------------------
1 /etc/X11/xinit/xinput.d/none.conf
2 /etc/X11/xinit/xinput.d/xim.conf
3 /etc/X11/xinit/xinput.d/scim.conf
*+ 4 /etc/X11/xinit/xinput.d/fcitx
按 Enter 来保存当前选择[+],或键入选择号码:4
重启x即可
附件config.tgz是我自己的配置文件,如果需要下载后解压缩,覆盖到~/.fcitx目录下
用livna的totem-xine替换fc6自带的totem
首先卸载系统自带的totem,如果按照上面的帖子安装了其他一些播放器可能会存在依赖关系,把所有和totem有关的包全部卸载掉,例如
# rpm -e totem totem-mozplugin totem-plparser
之后执行
# yum install totem-xine* -y
两个totem的执行文件都是totem但是后者的兼容性要好的多,可以播放vcd dvd mp3 wmv rm 呵呵赶紧试试吧。当然了记得参考上面的帖子,把解码器放在/usr/lib/codecs目录下哦。
比compiz更炫的主题beryl
执行yum install aquamarine bdock beryl-core beryl-dbus beryl-manager beryl-plugins beryl-settings beryl-vidcap emerald emerald-themes heliodor
配置:
系统-->首选项-->更多首选项-->Emerald Theme Manager
系统-->首选项-->更多首选项-->Beryl Setting Manager
启动
beryl-manager
呵呵又来了Fedora 8 初装手记 网络上朋友们的由于署名众多也不知道谁是原创
1)livna的yum源:
rpm -ivh http://rpm.livna.org/livna-release-8.rpm
2)freshrpms的yum源:
pm –ivh http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
三、安装yum-plugin-fastestmirror(自动挑选快的镜像站)
yum install yum-fastestmirror
注:确定/etc/yum.conf中的plugins=1,搞定!
四、安装yumex(yum的图形前端)
yum install yumex
五、然后对系统进行整体的升级
yum update
六、显卡驱动安装
1) 输入“yum -y install kmod-nvidia glx-utils”并回车。注意,如果您使用的是支持超线程技术的 CPU 或者双核 CPU,请用“kmod-nvidia-smp”代替“kmod-nvidia”,不过绝大多数情况下 yum 会自动选择合适的版本。如果您用的是很旧的 nVIDIA 显卡,那么就应该用“yum install kmod-nvidia-96xx”或“yum install kmod-nvidia-legacy”。
(注如果不知道选那个驱动,你可以用 安装好了的yumex功工具来安装,你选择可用,在输入kmod-nvidia点搜索后,就会现在NVIDIA的所有驱动,现在你在到NVIDIA官方网 站去看下载驱动,你选择好你的显卡芯片以后,你点搜索,搜索完以后,就会现驱动的名字,你在yumex可视化工具里选择你在NVIDIA官方看见的驱动就 行了,和你LINUX里对就的内核(看LINUX,在命令输入uname -a)就行了))
2)重新打开一个终端,然后输入“glxinfo | grep direct”并回车。如果显示“Direct rendering: Yes”,则恭喜您,显卡驱动程序已经能够正常运行了。
(注:如果你安装成功后,分辨率变得很低,解决方法如下)
步骤如下
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup //首先还是备份当然设置
$ sudo gedit /etc/X11/xorg.conf
找到下面的字段,添加我红色的字那一段Modes:后面的分辨率由你的显示器最大支持的分辨率来输入:从大到小,
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
输入完后保成退出:重起电脑,在把分辨率设置成你想要的就OK了,现在你可以开3D桌面了哟!^_^
七、配置多媒体
1)安装audacious
udo yum install audacious audacious-plugins-nonfree-mp3 audacious-plugins-nonfree-wma
2)配置totem
sudo yum install gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly
注:也可以使用totem-xine替换tetem
sudo yum remove totem
sudo yum install totem-xine
3)安装mplayer
sudo yum install mplayer mplayer-gui
下载并安装mplayer的解码器
http://ftp.gwdg.de/pub/linux/mis ... 007-0.pm.1.i586.rpm
注:将所有解码器烤到 /usr/local/lib/codecs/ 和 /usr/lib/win32并更改权限为755
七、安装rar支持
yum install unrar
MPlayer路径问题 FC8下
Exec=gmplayer %U 把U改为f
声音不正常 chmod 777 dev
可能说的有点不明白
非root用户下MPlayer不能播放视频 并出现一串%%%%%%%$$$的问题路径问题
关于MPlayer源代码安装的一些补充希望对大家有用
对于使用MPlayer-1.0rc2.tar.bz2包编译的
./confing
应为./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --language=zh_CN
注意去掉了with 否则 会出现 Unknown parameter:错误
对于Fedora 系列 如果开始系统只是仅仅安装了桌面环境,那么你还需
点击应用程序
添加删除软件 打开后选择 开发工具、和开发库 一般情况下就可以照葫芦画瓢安装MPlayer
如果出现 Error: X11 support required for GUI compilation 错误
那么gnome软件开发也安装,这下应该没问题了
fedora 8.0下安装Totem-xine 感谢 nsfself
fedora 8.0下安装Totem-xine
软件使用 /nsfself 发表于2007-12-18, 18:49 安装totem-xine
(1)首先将系统已有的totem移去 # yum remove totem
(2)安装totem-xine # yum install -y totem-xine
(3)安装extras #yum install -y xine-extras(这个可能没有反应,不过没关系,把剩下的装好)
(4)安装DVD播放 # yum install -y libdvdcss libdvdnav
(5)安装lame # yum install -y lame
(6)安装mpeg支持 # yum install -y ffmpeg
(7)安装RM播放支持 # yum install -y compat-libstdc++-33 (如果没安装这个realplayer是用不了,totem播放出现没图象与没声音)
(8)安装声音支持 # yum install -y xine-lib-extras-nonfree (如果没安装这个totem播放rm有图象没声音)
(9)安装vlc # yum install -y vlc
(10)下载mplayer的all-20061022.tar.bz2,支持所有:
下载地址:http://www1.mplayerhq.hu/MPlayer ... ll-20061022.tar.bz2
安装xine播放器 无名谢过
http://easynews.dl.sourceforge.net/sourceforge/xine/xine-ui-0.99.4.tar.gz
http://optusnet.dl.sourceforge.net/sourceforge/xine/xine-lib-1.1.2.tar.bz2
http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060501.tar.bz2
前两个是播放器的lib和ui
第三个是w32codecs
先把lib编译
./configure
make
make install
然后vi /etc/ld.so.conf
查看文档中是否有/usr/local/lib这一行,假如没有就在最后加上这一行。
方法是按i,进入编辑状态,编辑完后,按Esc,再输入:wq 保存退出。
然后运行ldconfig
其实我也是按照网上找的方法做的,可惜,被误导了。
以上正确,下面不相同了。
接着编译ui
./configure
make
make install
然后能够查看/root/.xine/config或/home/ljjk/.xine/config文档,里面有个地方说default默认指向的解码的库的地方是/usr/lib/codecs
由于我的/usr/lib下没有codecs这个目录
我就mkdie /usr/lib/codecs了
接着解压all-20060501.tar.bz2
把解压后的目录里的任何文档都cp到/usr/lib/codecs中
接着就能够使用播放器了
xine就能够打开播放器
mplayer h264 卡的问题
首先从svn上下载两样东西:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ coreavc-for-linux
在从网上找到dshowserver 和 registercodec,把它们放在路径中。
本来想自己编译这两个,但是coreavc-for-linux中的dshowserver和loader中make 会出错。
cp /xxx/CoreAVCDecoder.ax /usr/lib/win32(必须是这个目录)
假装注册一下,骗骗CoreAVCDecoder.ax:
registercodec -r ~/.mplayer/registry32 -k "HKLM\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "0OKWX-E83B3-CORE-IQ0UW-3I3B7"
现在测试一下:
dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449
输出:
No id specified, assuming test mode
Opening device
Called unk_IsDebuggerPresent
len: 992
ProductVersion: 1.7.0
Decoder supports the following YUV formats: YUY2 UYVY YV12 I420
Decoder is capable of YUV output (flags 0x2b)
Setting fmt
Starting
Initialization is complete
表明这个解码器已经可以使用了!
然后开始配置mplayer:
./configure --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/win32
完成之后,打个补丁:(只需要打上这个)
patch -p0 < ../coreavc-for-linux/mplayer/dshowserver.patch
make&&make install
看看~/.mplayer 中有没有codecs.conf ,没有就把它从mplayer源码目录下的etc中拷过来,然后在它的开头加上:
videocodec coreserve
info "CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/"
status working
format 0x10000005
fourcc H264,h264 H264
fourcc X264,x264
fourcc avc1,AVC1 AVC1
fourcc davc,DAVC
fourcc VSSH
driver dshowserver
dll "CoreAVCDecoder.ax"
guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c, 0x7c, 0x31
out YV12,IYUV,I420,YUY2
这就是告诉mplayer 可以使用名为coreserver的解码器播放好几种高清视频!
这个时候应该就可以了播放高清了,可以明显看到cpu使用效率提高,而且视频也不卡了!
现在解决字幕问题,非常简单:
ln -s simhei.ttf .mplayer/subfont.ttf
测试播放通过!
提醒一句:就连mplayer的官网上的都说,使用mplayer最好的方式是自己构建,呵呵,要想播放高清就得自己动手。
原文地址 http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=game&Number=693007&page=&view=&sb=&o=
MPLAYER 播放电影随机 定格反映 ATI驱动还是不甚完美
ATI 7.9驱动 ATI HD3650 显卡 系统fedora 8 内核 Linux localhost.localdomain 2.6.26.5-28.fc8 #1 SMP Sat Sep 20 09:32:58 EDT 2008 i686 athlon i386 GNU/Linux
当然 主板自带6150 nvdia 集成显卡
在ATI下 mplayer 播放视频 有时会随机出现画面定格,按方向键快进可以跳过,表现出的是不流畅。
各种原因都考虑过, 音频,视频 解码
在同样的设置下用6150显卡nvdia 173驱动 画面非常流畅
因此考虑到 ATI驱动的不完善 不过7.9的死机崩溃频度,比上个版本的驱动好多了。
ATI 再接再励
卡虽好驱动,差!
aMule和Firefox BT
Firefox不支持ed2k协议
方法在网上找的我去众家之长吧
“在firefox地址栏中输入about:config
新建一个Boolean,名字为network.protocol-handler.external.ed2k,值为true
新建一个String,名字为network.protocol-handler.app.ed2k,值为/usr/bin/ed2k.amule或者ed2k.amule
这样就OK了。这时候点击一个ed2k链接将会出现一个启动相应应用程序的提示。点击启动后, 这个ed2k链接将会被加入下载队列。前提是amule必须是已经开启着的。
如果你想在点一个ed2k链接的时候不出现提示,那么新建一个Boolean,名字为network.protocol-handler.warn-external.ed2k,值为false ”(潇湘馆主写的他写的比较全面)
/usr/bin/ed2k fedora 用这个比较好点
aMule kad OFF and firewalled 问题 及解决
aMule kad OFF and firewalled 问题 及解决
在Linux下已经爽了好久拉 以前老是在 WINDOWS下用电驴,而且非得用映射端口才能获得高ID
kad 更新地址用这个http://www.emule-inside.net/nodes.dat
http://renololo1.free.fr/e/nodes.dat
ID最好设置为:[CHN][VeryCD]XXXX
比如:[CHN][VeryCD]benben
路由器映射端口:4662 tcd 4672 udp 4665 udp
系统防火墙 相应打开端口
用emule 下的文件替换一下效果更好
转换您的eMule到aMule--配置文件
您需要导入eMule中配置文件和临时文件以及共享的文件。首先,配置文件。 在eMule中,配置文件存放在名为 config 的文件夹中。在 aMule 中,配置文件在~/.aMule文件夹中。 简单的复制eMule的配置文件到aMule中即可。
-可以自动识别的配置文件-
一些文件无须修改就可以导入到aMule中,他们是 clients.met known.met (known2.met) server.met ipfilter.dat 和 ipfilter_static.dat emfriends.met criptkey.dat 和 preferences.dat 其他文件,key_index.dat, load_index.dat, nodes.dat, preferencesKad.dat, shareddir.dat 和 src_index.dat。 对于上述文件您可以直接复制。(注:如果没有屏蔽IP和加入好友,就不会有ipfilter_static.dat和emfriends.met)
-无法被识别的文件-
配置文件:在eMule中使用preferences.ini,但在aMule中使用的是amule.conf; 分类文件:在eMule中使用Category.ini,但在aMule中是保存在amule.conf中的; 其他文件在eMule中存在的文件,在aMule中是没有使用的。
firefox 加速方法 在网络上找的没署名作者,应该是集大成者
感觉和opera差不多
我们暂且先把这些复杂的优化操作变的简单一点,然后再来亲自感觉一下这些已经在网络上流传了很久的提速技巧吧。下面的操作我们都在 about:config 里进行。在 Firefox 的地址栏中输入 about:config,让我们开始提速吧。
# network.http.pipelining
在 Filter 中输入 network.http.pipelining,双击赋值为 true,默认为 false。如果没有找到这个键值,可以右键新建一个 Boolean,把她赋值为 true 就 OK 了。
还 是像我在从前解释过的那样,激活这个键值之后,Pipelining 同时发出成倍数的连接请求,从而达到提升连接速度的效果。网络上的大多数网站都是基于 HTTP 协议,而 HTTP 1.1 可以支持多线程的连接请求,通过这个操作可以减少 Firefox 载入网页的时间。不过并不是所有网页所在的服务器都支持这种操作,所以当你修改键值之后却看不到一点实际效果的时候,请不要对我破口大骂。
# network.http.pipelining.maxrequests
在 Filter 中输入 network.http.pipelining.maxrequests,双击并赋值为 8,默认键值为 4。
# network.http.proxy.pipelining
在 Filter 中输入 network.http.proxy.pipelining,双击并赋值为 true。
这两条优化的道理同上,这里就不再多解释了。
# network.dns.disableIPv6
在 Filter 中输入 network.dns.disableIPv6,双击并赋值为 true。
IPv6 把 IP 地址由 32 位增加到 128 位,从而能够支持更大的地址空间,当用户在终端向一个 IPv6-capable DNS 服务器发送连接请求时,也许服务器端会错误的返回给用户一个 IPv4 地址。而 Firefox 可以对这一切明察秋毫,不过在 Firefox 纠错的同时也必然会导致信号的延迟,所以这里我们把她赋值为 true,禁用掉她。
# content.interrupt.parsing
右键新建 Boolean 值,键名为 content.interrupt.parsing,赋值 true。
默 认这个键值并不存在。我们激活这个键值之后,当目标网页载入时,Firefox 会根据一定频率打断解析的过程,不断的向用户反馈她所收集到的网页信息,有点像流媒体的意思。这时的 Firefox 很聪明,不会一根筋的一直钻牛角。在下面的内容中我还会具体讲一下这个键值的魅力所在。
# content.max.tokenizing.time
右键新建 Integer 值,键名为 content.max.tokenizing.time,赋值 2250000。
这 个键值的作用其实就是指定一个循环事件的处理周期,这里的单位是微秒,要是我没有算错的话。理论上当我们将这个值取的越小,网页就会从视觉上载入的越流 畅,因为 Firefox 会在很短的单位时间里反馈回解析到的网页信息。可是这样无疑延迟了网页整体载入的时间,所以在这里我们不妨将这个周期取的大一些,理论上可以加速网页的载 入。
# content.notify.interval
右键新建 Integer 值,键名为 content.notify.interval,赋值 750000。
载 入一个网页其实也是一门很大的学问。让我们来放一个慢动作,我们姑且先把在终端第一次收到的网页信息很不专业的叫做预载入页面吧,这个页面有可能是不完整 的图片或者文字,或者别的媒体文件。从我们第一次向远端主机发出连接请求到我们在终端收到这个预载入页面花费的时间,就是这里我们要定义的键值。理论上当 我们将这个时间设置的很低时,肯定会更快的拿到所谓的预载入页面,可这是一种杀鸡取卵的做法,这样无形中反而增加了我们整体页面的载入时间。按照官方的说 法,低于 100,000 将会降低 Firefox 的性能,那好吧,那我们把她彪到 750000 吧。
# content.notify.ontimer
右键新建 Boolean 值,键名为 content.notify.ontimer,赋值 true。
为了使我们上面设置的 750000 微秒生效,还需要把这个键值激活。只有这两个键值配合,才会起作用。
# content.notify.backoffcount
右键新建 Integer 值,键名为 content.notify.backoffcount,赋值 5。
这 个键值控制 Firefox 的内置计数器在归零之前载入页面返回的次数。我们将目标网页分成好多个部分进行下载,每下载完一个部分,计数器归零一次。-1 就是没有限制,值为 0 时这项功能被禁用。这里我们将她设置成 5,当返回的次数达到五次而这部分网页还没有完全下载完时,那么剩下的没有下载完的网页内容将不会再按照我们预告设置的周期,像之前的五次那样一点一点的 搬运回来,而是会一次性的下载完。也就是说在这个部分的网页下载过程中,Firefox 一共向我们反馈了 6 次信息,前 5 次的时间间隔是我们在上面的键值中设置的周期 2250000 微秒,而第 6 次也就是最后一次则没有时间限制,什么时候把剩下的下完了,什么时候反馈回来。
只有当我们在上面提到的 content.notify.ontimer 键值为 true 的时候,这里的设置才会生效。
# content.switch.threshold
右键新建 Integer 值,键名为 content.switch.threshold ,赋值 750000,也就是四分之三秒。
在 前面我们提到了一个键值 content.interrupt.parsing,通过激活她实际上我们可以在载入页面的过程中跟 Firefox 产生互动,毕竟我们每一个人的心里都充满了爱。把 content.interrupt.parsing 激活后当页面载入时 Firefox 会有两种操作模式:高频和低频中断模式。使用高频模式时,网页回馈的频率也很高,我们坐在显示器前看到的网页载入过程也会更加的平滑。低频时网页回馈的频 率相对比较低,可是这时反而加快了网页载入的时间。当我们移动鼠标或者触击键盘时,高频模式被激活。在经过某一段时间我们没有碰鼠标和键盘,程序没有接到 鼠标和键盘发出的任何指令时,Firefox 就会自动进入低频模式工作,而这所谓的某一段时间,就是我们这里要指定的值。
# nglayout.initialpaint.delay
右键新建 Integer 值,键名为 nglayout.initialpaint.delay,赋值 0。
这里实际上延迟了整个网页的显示速度,但是因为用户更喜欢在整个网页完全截入之前就开始阅读网页 (就像流媒体那样),所以在这里可以把值调为零,加速用户阅读网页的速度,有时候阅读速度和载入速度并不是成正比的。
If you are unsatisfied about the speed of last Mozilla's browser then this is exactly what you need! We are going to set up some options inside the configuration file, to do so the first thing you should do is typing "about:config" in the address bar... You will able to see the Firefox control panel.
Now we need to modify some entries: if you can't find one of these entries then you have to create it (just right click anywhere in the control panel then choose "New" using the proper desired value, remember to use Boolean when it needs to be "True or False"!):
network.dns.disableIPv6: true
network.http.max-connections: 48
network.http.max-connections-per-server: 24
network.http.max-persistent-connections-per-proxy: 12
network.http.pipelining.firstrequest: true
network.http.pipelining: true
network.http.pipelining.maxrequests: 32
network.http.proxy.pipelining: true
nglayout.initialpaint.delay: 0
network.http.request.max-start-delay: 5
extensions.checkCompatibility: false
Now your browser should be faste but if you want to "go over" then you should try this little extension that speed up Firefox startup: Chrome Cleaner.
Thanks to the previus changes you will be able to install this extension in Firefox 3 even if it's not officially supported: after downloading the file you just have to open it using Firefox and follow the instructions.
Restart your browser and go to (actually I'm not using the English version so I'm sorry if the following path it's not 100% exactly!) "Tools" > "Add-Ons" > "Chrome Cleaner" > "Options" and then click on the "Clean!" button. Done!
如果你对Mozilla前日发行的浏览器速度不太满意,这正是你所需要的!我们需要在设置文件里面设置一些选项,要完成这件事儿,首先需要在地址栏里键入“about:config”...你将能够看到Firefox控制面板。
我们需要修改一些条目:如果你找不到某一个条目,那么你需要创建一个新的(在控制面板任意位置右键,选择“新建”,使用默认值。当设置为“true或者faluse”时,记得使用布尔量!):
network.dns.disableIPv6: true
network.http.max-connections: 48
network.http.max-connections-per-server: 24
network.http.max-persistent-connections-per-proxy: 12
network.http.pipelining.firstrequest: true
network.http.pipelining: true
network.http.pipelining.maxrequests: 32
network.http.proxy.pipelining: true
nglayout.initialpaint.delay: 0
network.http.request.max-start-delay: 5
extensions.checkCompatibility: false
现在你的浏览器速度应该更快了。但是你若想“检查”一下,那么你应该试试这个小插件来加速Fireox启动:Chrome Cleaner。
你现在应该能够安装这个扩展即便它不是官方支持的:下载完毕你只需用火狐打开它然后根据提示去做就行了。
重启浏览器选择“工具”>“附加扩展”>"Chrome Cleaner">"选项">然后点击"clean"!如果觉得麻烦 大家可以用我的 js 文件,纯加速 如果需要别的可以己添加
这个是firefox 3.*以上的
一般位置 linux下
home/***//home/csbbb/.mozilla/firefox/****.default/
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the application is running,
* the changes will be overwritten when the application exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1234136394);
user_pref("app.update.lastUpdateTime.background-update-timer", 1234136394);
user_pref("app.update.lastUpdateTime.blocklist-background-update-timer", 1234136394);
user_pref("app.update.lastUpdateTime.microsummary-generator-update-timer", 1233904999);
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1234161696);
user_pref("browser.download.lastDir", "/home/csbbb/图片");
user_pref("browser.migration.version", 1);
user_pref("browser.offline", false);
user_pref("browser.places.importBookmarksHTML", false);
user_pref("browser.places.importDefaults", false);
user_pref("browser.places.leftPaneFolderId", -1);
user_pref("browser.places.migratePostDataAnnotations", false);
user_pref("browser.places.smartBookmarksVersion", 1);
user_pref("browser.places.updateRecentTagsUri", false);
user_pref("browser.rights.3.shown", true);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.sessionstore.resume_session_once", true);
user_pref("browser.startup.homepage", "http://www.hao123.com/");
user_pref("browser.startup.homepage_override.mstone", "rv:1.9.0.6");
user_pref("browser.tabs.warnOnClose", false);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("extensions.checkCompatibility", false);
user_pref("extensions.enabledItems", "langpack-af@firefox.mozilla.org:3.0.6,langpack-id@firefox.mozilla.org:3.0.6,langpack-eu@firefox.mozilla.org:3.0.6,langpack-bn-IN@firefox.mozilla.org:3.0.6,langpack-ca@firefox.mozilla.org:3.0.6,langpack-zh-CN@firefox.mozilla.org:3.0.6,langpack-cy@firefox.mozilla.org:3.0.6,langpack-cs@firefox.mozilla.org:3.0.6,langpack-da@firefox.mozilla.org:3.0.6,langpack-de@firefox.mozilla.org:3.0.6,langpack-en-GB@firefox.mozilla.org:3.0.6,langpack-es-AR@firefox.mozilla.org:3.0.6,langpack-es-ES@firefox.mozilla.org:3.0.6,langpack-eo@firefox.mozilla.org:3.0.6,langpack-et@firefox.mozilla.org:3.0.6,langpack-fr@firefox.mozilla.org:3.0.6,langpack-fy-NL@firefox.mozilla.org:3.0.6,langpack-gl@firefox.mozilla.org:3.0.6,langpack-ka@firefox.mozilla.org:3.0.6,langpack-el@firefox.mozilla.org:3.0.6,langpack-gu-IN@firefox.mozilla.org:3.0.6,langpack-he@firefox.mozilla.org:3.0.6,langpack-hi-IN@firefox.mozilla.org:3.0.6,langpack-is@firefox.mozilla.org:3.0.6,langpack-ga-IE@firefox.mozilla.org:3.0.6,langpack-it@firefox.mozilla.org:3.0.6,langpack-ja@firefox.mozilla.org:3.0.6,langpack-kn@firefox.mozilla.org:3.0.6,langpack-ko@firefox.mozilla.org:3.0.6,langpack-ku@firefox.mozilla.org:3.0.6,langpack-lv@firefox.mozilla.org:3.0.6,langpack-lt@firefox.mozilla.org:3.0.6,langpack-hu@firefox.mozilla.org:3.0.6,langpack-mr@firefox.mozilla.org:3.0.6,{dd68c513-9296-4b63-8d8b-8f1c991c8a48}:0.1.7.3,langpack-mn@firefox.mozilla.org:3.0.6,langpack-nl@firefox.mozilla.org:3.0.6,langpack-nb-NO@firefox.mozilla.org:3.0.6,langpack-nn-NO@firefox.mozilla.org:3.0.6,langpack-oc@firefox.mozilla.org:3.0.6,langpack-pl@firefox.mozilla.org:3.0.6,langpack-pt-BR@firefox.mozilla.org:3.0.6,langpack-pt-PT@firefox.mozilla.org:3.0.6,langpack-pa-IN@firefox.mozilla.org:3.0.6,langpack-ro@firefox.mozilla.org:3.0.6,langpack-ru@firefox.mozilla.org:3.0.6,langpack-si@firefox.mozilla.org:3.0.6,langpack-sk@firefox.mozilla.org:3.0.6,langpack-sl@firefox.mozilla.org:3.0.6,langpack-fi@firefox.mozilla.org:3.0.6,langpack-sv-SE@firefox.mozilla.org:3.0.6,langpack-te@firefox.mozilla.org:3.0.6,langpack-th@firefox.mozilla.org:3.0.6,langpack-zh-TW@firefox.mozilla.org:3.0.6,langpack-tr@firefox.mozilla.org:3.0.6,langpack-uk@firefox.mozilla.org:3.0.6,langpack-be@firefox.mozilla.org:3.0.6,langpack-bg@firefox.mozilla.org:3.0.6,langpack-mk@firefox.mozilla.org:3.0.6,langpack-sr@firefox.mozilla.org:3.0.6,langpack-ar@firefox.mozilla.org:3.0.6,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.0.6");
user_pref("extensions.lastAppVersion", "3.0.6");
user_pref("extensions.newAddons", "{dd68c513-9296-4b63-8d8b-8f1c991c8a48}");
user_pref("extensions.update.notifyUser", false);
user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1, gb2312, x-gbk, GB2312, UTF-8");
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.dns.disableIPv6", true);
user_pref("network.http.max-connections", 64);
user_pref("network.http.max-connections-per-server", 32);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.pipelining.maxrequests", 32);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.protocol-handler.app.ed2k", "/usr/bin/ed2k");
user_pref("network.protocol-handler.external.ed2k", true);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("pref.browser.homepage.disable_button.current_page", false);
user_pref("spellchecker.dictionary", "en_HK");
user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1235178102);
user_pref("xpinstall.whitelist.add", "");
user_pref("xpinstall.whitelist.add.103", "");
firefox BTchian
1. 安装Firefox插件Greasemonkey,下载地址如下:
https://addons.mozilla.org/en-US/firefox/addons/versions/748
目前版本是:Version 0.7.20070607.0 — June 7, 2007 — 99 KB
2. 下载脚本文件"show_btchina-1.0.zip"
http://www.firefox.net.cn/newforum/download.php?id=4920
下载后解压缩这个文件,是这个文件:show_btchina.user.js
在Firefox中从菜单 文件 -> 打开文件 -> 找到上面的.js文件点击打开
在弹出的对话框中点击安装即可。
3. 在Firefox打开http://bt3.btchina.net/,可以显示索引页面了。
方法二:
安装IE tab扩展,安装后点击状态栏图标在ie核心和Firefox核心之间切换,右键点击图标把btchina加入列表即可永久使用IE tab访问btchina。
参考文档:
1. 显示BTCHINA索引页种子列表的greasemonkey脚本(2006.01.05 更新到1.0)
http://www.firefox.net.cn/newforum/viewtopic.php?t=11842
2. btchina里搜索看不到结果
http://www.firefox.net.cn/newforum/viewtopic.php?printertopic=1&t=18816&start=0&postdays=0&postorder=asc&vote=viewresult
amule 的使用方法和技巧
fedora 下 通过yum install amule 安装这个细节不多讲。
一、amule 和 firefox 的关联
Firefox不支持ed2k协议
方法在网上找的我去众家之长吧
“在firefox地址栏中输入about:config
新建一个Boolean,名字为network.protocol-handler.external.ed2k,值为true
新建一个String,名字为network.protocol-handler.app.ed2k,值为/usr/bin/ed2k.amule或者ed2k.amule
这样就OK了。这时候点击一个ed2k链接将会出现一个启动相应应用程序的提示。点击启动后, 这个ed2k链接将会被加入下载队列。前提是amule必须是已经开启着的。
如果你想在点一个ed2k链接的时候不出现提示,那么新建一个Boolean,名字为network.protocol-handler.warn-external.ed2k,值为false ”(潇湘馆主写的他写的比较全面)
/usr/bin/ed2k fedora 用这个比较好点
二、amule 高低ID 以及KAD 防火墙 问题
在Linux下已经爽了好久拉 以前老是在 WINDOWS下用电驴,而且非得用映射端口才能获得高IDkad 更新地址用这个
http://www.emule-inside.net/nodes.dat
http://renololo1.free.fr/e/nodes.dat
ID最好设置为:[CHN][VeryCD]XXXX
比如:[CHN][VeryCD]benben
路由器映射端口:4662 tcd 4672 udp 4665 udp(如果是局域网就必须映射端口)
系统防火墙 相应打开端口 :4662 tcd 4672 udp 4665 udp (公网IP只用修改防火墙设置即可添加信任端口)
用emule 下的文件替换一下效果更好
转换您的eMule到aMule--配置文件
您需要导入eMule中配置文件和临时文件以及共享的文件。首先,配置文件。 在eMule中,配置文件存放在名为 config 的文件夹中。在 aMule 中,配置文件在~/.aMule文件夹中。 简单的复制eMule的配置文件到aMule中即可。
-可以自动识别的配置文件-
一些文件无须修改就可以导入到aMule中,他们是 clients.met known.met (known2.met) server.met ipfilter.dat 和 ipfilter_static.dat emfriends.met criptkey.dat 和 preferences.dat 其他文件,key_index.dat, load_index.dat, nodes.dat, preferencesKad.dat, shareddir.dat 和 src_index.dat。 对于上述文件您可以直接复制。(注:如果没有屏蔽IP和加入好友,就不会有ipfilter_static.dat和emfriends.met)
-无法被识别的文件-
配置文件:在eMule中使用preferences.ini,但在aMule中使用的是amule.conf; 分类文件:在eMule中使用Category.ini,但在aMule中是保存在amule.conf中的; 其他文件在eMule中存在的文件,在aMule中是没有使用的。
三、amule和ADSL的上传下载的极限以及对firefox浏览器速度的影响
个人感觉,如果用adsl上网 adsl线路的上传下载是有一定的关系的或者说是有影响的。
举例我用的电信adsl上网在XP下用讯雷下载的极限峰值是每秒410KB。在linux下用amule下载和上传文件在
没 有设置的情况下,让amule自动运行,上传基本达到每秒50KB,下载随机在十几KB和一百多KB之间来回跳不稳定,而且此时用firefox浏览器上 网,网页打开的非常之慢(这个现象我专门试过,可以肯定与amule运行有关系。)关闭amule后网页打开速度正常了。
于是呼,我想这是否与amule上传数据有关。于是猜测这个(让amule自动运行,上传基本达到每秒50KB)
速 度应该是该adsl线路上传的极限了,于是我把数据调节为 上传30KB下载350KB。同时为其他软件保留20KB的上传通信带宽和60KB左右的下载带宽。经测试 在此情况下amule 下载速度稳定运行在300KB左右。而firefox浏览器浏览网页正常打开速度正常。
后来在单位用的是固定IP的光纤 amule上传下载速度没限制,运行正常,网页浏览正常。网通光纤下载10MB每秒,上传不知道,amule上传数值一般再3MB左右。
以上KB MB 均为计算机中的一种储存单位。 非bps mbps流量单位。
四、amule firefox3 关联
和2.0查不多 少了最后的布朗参数,(添加这个由于firefox 不提示所以无法指向/usr/bin/ed2k)
新建一个Boolean,名字为network.protocol-handler.external.ed2k,值为true
新建一个String,名字为network.protocol-handler.app.ed2k,值为/usr/bin/ed2k.amule或者ed2k.amule
这样就OK了。这时候点击一个ed2k链接将会出现一个启动相应应用程序的提示。点击启动后, 这个ed2k链接将会被加入下载队列。前提是amule必须是已经开启着的。
fedora 8 下一些软件的安装和配置综合
首先感谢 cnhnln
1.下载相关codes ( http://www.mplayerhq.hu/MPlayer/ ) 主要都在这里
Mplayer-1.0rc1.tar.bz2(主程序)( http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2 )
Abyss-1.6.tar.bz2 (皮肤) (http://www2.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2)
all-20060611.tar.bz2(http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060611.tar.bz2 )
这是我的mplayer的一些组件,你可以去http://www.mplayerhq.hu/MPlayer/ 下载你自己喜欢的皮肤和字体.
2.安装过程(请把你的终端打开)
a.安装相应的解码
进入主目录后,以root身份安装 ,这样改变身份:在终端输入su或者su root ,然后输入密码就ok啦,有没有看到 $ 变成了 #
接着
mkdir /usr/lib/codecs
mkdir /usr/lib/win32
tar jxvf all-20060611.tar.bz2
mv all-20060611/* /usr/lib/codecs
unzip windows-all-20060611.zip
mv windows-all-20060611/* /usr/lib/win32
b.安装mplayer
tar jxvf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1
./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ --language=zh_CN
注意:
--prefix=/usr/local/mplayer 是安装路径
--enable-gui 安装图形化用户界面
--enable-freetype 调节字体
--with-codecsdir=/usr/lib/codecs/
--with-win32libdir=/usr/lib/wincodecs 指定解码位置
--language=zh_CN 中文
make
make install
c.安装皮肤
tar jxvf Abyss-1.6.tar.bz2
mv Abyss /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
mv Abyss default
至此mplayer已经成为了万能播放器
执行程序在 /usr/local/mplayer/bin中
你可以在终端中输入gmplayer,也可以在桌面建立起动器来使用mplayer
赶紧运行一下,看看有没有问题
你一定会发现我们还没有装字体,运行mplayer后它也会提示没有字体
你就从自己电脑中拷个字体到主目录下的.mplayer文件夹下,并把你的字体改名为subfont.ttf,问题就解决了,或者做个链接也行,只要你喜欢
字体你可以上网下载,mplayer网站也有,你电脑里也有字体,在/usr/share/fonts/chinese下 (/usr/share/fonts/chinese/TrueType/uming.ttf就可以用)你就直接cp /usr/share/fonts/chinese/TrueType/uming.ttf $HOME/.mplayer下
每个用户都有自己的环境变量HOME,再cd $HOME/.mplayer 接着
mv uming.ttf subfont.ttf 结束!
重要的一点在这个字体安装说明让我在以后 用播放器播放字幕时出现拉麻烦
播放srt字幕时给我带来不少麻烦,首先不显示字幕、或乱码
后在网上集众家之长解决问题 首先在网上下载font.desc 字体
再在mplayer调节指向目录 就可以正确显示srt 字幕啦
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/csbbbcodes/ --win32codecsdir=/usr/lib/csbbbcodes/ --language=zh_CN
libstdc++5-3.3.1-4sls.i586.rpm
解决找不到文件错误
播放 RMVB 双声道问题
mplayer -af channels=1:1:1
mplayer -af channels=1:1
config af=channels=1:1:1
./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/win32
RPM下载 |
|
/ --language=zh_CN二、feodra 8Fedora 8 初装手记 网络上朋友们的由于署名众多也不知道谁是原创
mplayer sub 字幕不能挂载问题 *.avi *.sub *.idx 三个文件放同一目录下,文件名必须相同。
二、由于Fedora 8自带yum源网速比较慢,所以手动添加了两个yum源
1)livna的yum源:
rpm -ivh http://rpm.livna.org/livna-release-8.rpm
2)freshrpms的yum源:
pm –ivh http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
三、安装yum-plugin-fastestmirror(自动挑选快的镜像站)
yum install yum-fastestmirror
注:确定/etc/yum.conf中的plugins=1,搞定!
四、安装yumex(yum的图形前端)
yum install yumex
五、然后对系统进行整体的升级
yum update
六、显卡驱动安装
1) 输入“yum -y install kmod-nvidia glx-utils”并回车。注意,如果您使用的是支持超线程技术的 CPU 或者双核 CPU,请用“kmod-nvidia-smp”代替“kmod-nvidia”,不过绝大多数情况下 yum 会自动选择合适的版本。如果您用的是很旧的 nVIDIA 显卡,那么就应该用“yum install kmod-nvidia-96xx”或“yum install kmod-nvidia-legacy”。
(注如果不知道选那个驱动,你可以用 安装好了的yumex功工具来安装,你选择可用,在输入kmod-nvidia点搜索后,就会现在NVIDIA的所有驱动,现在你在到NVIDIA官方网 站去看下载驱动,你选择好你的显卡芯片以后,你点搜索,搜索完以后,就会现驱动的名字,你在yumex可视化工具里选择你在NVIDIA官方看见的驱动就 行了,和你LINUX里对就的内核(看LINUX,在命令输入uname -a)就行了))
2)重新打开一个终端,然后输入“glxinfo | grep direct”并回车。如果显示“Direct rendering: Yes”,则恭喜您,显卡驱动程序已经能够正常运行了。
(注:如果你安装成功后,分辨率变得很低,解决方法如下)
步骤如下
$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup //首先还是备份当然设置
$ sudo gedit /etc/X11/xorg.conf
找到下面的字段,添加我红色的字那一段Modes:后面的分辨率由你的显示器最大支持的分辨率来输入:从大到小,
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
输入完后保成退出:重起电脑,在把分辨率设置成你想要的就OK了,现在你可以开3D桌面了哟!^_^
七、配置多媒体
1)安装audacious
udo yum install audacious audacious-plugins-nonfree-mp3 audacious-plugins-nonfree-wma
2)配置totem
sudo yum install gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly
注:也可以使用totem-xine替换tetem
sudo yum remove totem
sudo yum install totem-xine
3)安装mplayer
sudo yum install mplayer mplayer-gui
下载并安装mplayer的解码器
http://ftp.gwdg.de/pub/linux/mis ... 007-0.pm.1.i586.rpm
注:将所有解码器烤到 /usr/local/lib/codecs/ 和 /usr/lib/win32并更改权限为755
七、安装rar支持
yum install unrar
三、其他视频播放器 fedora 8.0下安装Totem-xine VLC 感谢 nsfself
前提最好先把mplayer的解码器先安装好,
软件使用 /nsfself 发表于2007-12-18, 18:49 安装totem-xine
(1)首先将系统已有的totem移去 # yum remove totem
(2)安装totem-xine # yum install -y totem-xine
(3)安装extras #yum install -y xine-extras(这个可能没有反应,不过没关系,把剩下的装好)
(4)安装DVD播放 # yum install -y libdvdcss libdvdnav
(5)安装lame # yum install -y lame
(6)安装mpeg支持 # yum install -y ffmpeg
(7)安装RM播放支持 # yum install -y compat-libstdc++-33 (如果没安装这个realplayer是用不了,totem播放出现没图象与没声音)
(8)安装声音支持 # yum install -y xine-lib-extras-nonfree (如果没安装这个totem播放rm有图象没声音)
(9)安装vlc # yum install -y vlc
(10)下载mplayer的all-20061022.tar.bz2,支持所有:
下载地址:http://www1.mplayerhq.hu/MPlayer ... ll-20061022.tar.bz2
totem 提示缺少解码器时
totem-xine 缺少解码器问题(感谢阿朱少年侠客)
安装了xine,也安装了totem-xine,也安装了编解码器,但是无法播放rmvb,avi,wmv等格式。
症状:安装了xine,也安装了totem-xine,也安装了编解码器,但是无法播放rmvb,avi,wmv等格式。
这个情况可以先看看xine是否能播放,如果xine可以,那么问题极有可能是你的totem没有以xine作为后端,而代之以gstreamer了。检查totem(在菜单中可能叫做movie player,电影播放器),Help → About,是否可以看到Gstreamer的字样?
解决:切换totme的后端为xine。做法是:终端(如果希望全系统所有用户都改变则登录root,否则用一般用户身份操作),执行命令totem-backend -b xine即可。
Mplayer
症状:升级过了之后也运行不起来,导致GMplayer等以它为前端的播放器自然而然也不能使用,使用命令行查看,发现错误如下:
The flip-hebrew option can’t be used in a config file.
Error parsing option flip-hebrew=no at line 133
其实只是配置文件的错误,我没有再返回去看原来可用的版本在我这里是怎么设置的,但是这里的错误给出得已经很明显,照着做就可以解决。
解决:找到/etc/mplayer/mplayer.conf,在其中找到flip-hebrew = no 这一行,将其注释掉,变成:#flip-hebrew = no ,保存退出即可。
linux 下Nvdia显卡驱动的安装
首先要修改/etc/inittab id:5:initdefault: 把5改为3就可再启动时不加载x
进入驱动包目录 ./*.run OK
startx 启动KDE
# Xorg -configure
这会在 /root 中生成一个叫做 xorg.conf.new 的配置文件 (无论您使用 su(1) 或直接登录, 都会改变默认的 $HOME 目录变量)。 X11 程序将尝试探测系统中的图形硬件,并将探测到的硬件信息写入配置文件, 以便加载正确的驱动程序。
下一步是测试现存的配置文件, 以确认 Xorg 能够同系统上的图形设备正常工作。 要完成这个任务,只需:
# Xorg -config xorg.conf.new
如果用户看到一个黑灰的格子和一个 X 形的鼠标指针,那么配置就是成功的。 要退出测试, 只要同时按下 Ctrl+Alt+Backspace。
如果一切准备停当, 就可以把配置文件放到公共的目录中了。 您可以在 Xorg(1) 里面找到具体位置。 这个位置通常是 /etc/X11/xorg.conf 或 /usr/X11R6/etc/X11/xorg.conf。
# cp xorg.conf.new /etc/X11/xorg.conf(个人推荐拷贝到/usr/X11R6/etc/X11/xorg.conf)
#echo "exec startkde" > ~/.xinitrc
#startx
Fedora 7 下NVIDIA驱动的安装
rpm -ivh http://livna-dl.reloumirrors.net/fedora/7/x86_64/livna-release-7-2.noarch.rpm
运行,然后输入
yum install kmod-nvidia
运行,重启。
LINUX ati 驱动安装
# rpm -Uhv http://rpm.livna.org/livna-release-6.rpm
Next, import the Livna GPG Key:
# rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
To test it, try to get info about a release currently provided by Livna repository:
# yum info kmod-nvidia
If you got the file information correctly, it's safe to go on to the next step.
Unfortunately, Fedora Core 6 installs the i586 architecture kernel by default. Even worse, if you choose to have virtualization support during Fedora installation, you will end up with a kernel-xen which you need to get rid of as soon as possible. For video drivers to get installed correctly, you will need to have kernel for i686. In order to make this process a little bit easier, you need to install Yum Extender:
# yum install yumex
Fire it up from the Kmenu / System / Yum Extender (or type yumex in a terminal), check if Livna repository is in the repository list, go to Remove, select your current kernel and kernel-devel (only if its arch is i586 or has xen in its name), press add to queue, then go to Install, search for Kernel, select the kernel and kernel-devel for i686 arch, press add to queue, go to Queue, press Process Queue, wait until it's done and reboot your computer. Only then will it be safe to go to the next step.
How to install nVIDIA drivers
Assuming Yum has been correctly installed, you can obtain the latest Nvidia drivers by typing:
# yum install kmod-nvidia
This command will install the nVIDIA driver and kernel module. To verify the installation completed successfully, log out of your current session and log back in. Before the X server restarts, you should see the nVIDIA logo briefly. Open up a terminal and type:
# glxinfo | grep direct
If the output to this command is direct rendering: Yes, you are good to go. Also, a reboot might be required for the full effect of the kernel module to be realized on some machines.
How to install ATi drivers
Again, your Yum must be configured with the Livna repository, as it's one of the few repositories that provide video driver RPMs especially designed for Fedora Core. To install the ATi drivers’ package, type this command as root:
# yum install xorg-x11-drv-fglrx kmod-fglrx glx-utils
This installs the ATi driver and kernel module. To test the installation, log off your current session, log back in and type this command:
# glxinfo | grep direct
If the output is direct rendering: Yes, you have installed your drivers correctly.
However, if you have an AMD64 processor, you will need to add iommu=off to the kernel line in your /etc/grub.conf file, like this:
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet iommu=off
Moreover, if you have an Intel motherboard, you will need to add the following line to your /etc/X11/xorg.conf file, right below Driver "fglrx":
Option "UseInternalAGPGART" "no"
Good luck!
如果安装后没有效果或是2D加速很慢 就试用这个命令 run /usr/X11R6/bin/aticonfig --initial
Linux 下ATI HDMI与系统声卡冲突死机问题解决
这是我电脑 硬件信息
处理器: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
主板: ASUSTek Computer INC. M2NPV-MX
芯片组: Nvidia C51
内存: 2095596 KB
主硬盘: ST3160215A
显示卡: ATI Radeon HD 3600 Series
显示器: 即插即用监视器(Samsung(三星/韩国) SAM0107 SyncMaster)
音频设备: Trident 4DWave PCI Audio (WDM)(Trident Microsystems 4DWave(NX) PCI Audio)(这里还有个ATI Radeon HD 3600 Series的声卡我没装驱动
所以优化大师没有能认出来HDMI音频驱动,后来装了驱动XP系统正常)
网络适配器: NVIDIA nForce Networking Controller
键盘: 标准 101/102 键或 Microsoft 自然 PS/2 键盘
鼠标: HID-compliant mouse
传感器: ITE IT8716
我的电脑本身有两个声卡,一个继承AD1986A 一个PCI的Trident 4DWave PCI Audio 在加上ATI Radeon HD 3600HDMI在xp系统音频属性里就出现
三个声卡,在XP系统下一切正常,大游戏,听歌都没事。
我另一个系统是FEDORA 8 32位的 在系统没有装ATI驱动时系统也算正常,但很多关于显卡的事情就不好弄了。
通过YUM装上最新的ATI驱动后,问题就来了
1 菜单里的小喇叭经常崩溃 2 声音配置也就是声卡检测 里的声卡次序经常被ATI的占用到首选。 3 用其他的声卡放东西是系统 死机,是 死机
我想是否在安装驱动后 屏蔽 ATI的声卡信息保留显卡驱动。至于如何屏蔽就要请教大家了
希望大家多给于支持
经过两周的查阅资料,终于问题解决了
通过查看 lsmod 发现ATI的声卡使用的是 snd-hda-intel 模块
当时就觉得肯定是驱动,或是硬件IRQ冲突问题,通过反复实践否定IRQ抢断问题,
后来又重新从源代码编译了声卡alsa驱动最新的 哈哈结果还死机
从此发誓要招到屏蔽此声卡的方法,终于认识到了modprobe.conf
alias eth0 forcedeth
alias scsi_hostadapter libata
alias scsi_hostadapter1 sata_nv
alias scsi_hostadapter2 pata_amd
options snd cards_limit=8
alias snd-card-0 snd-trident
options snd-trident index=0
options snd-hda-intel index=1
options snd-hda-intel index=2
alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
改为
alias eth0 forcedeth
alias scsi_hostadapter libata
alias scsi_hostadapter1 sata_nv
alias scsi_hostadapter2 pata_amd
options snd cards_limit=8
alias snd-card-0 snd-trident
options snd-trident index=0
#options snd-hda-intel index=1
#options snd-hda-intel index=2
#alias snd-card-7 snd-usb-audio
options snd-usb-audio index=7
我就认定这个 snd-hda-intel有问题
管他三七二十一 反正现在系统听歌,看电影不死机了 爽了
一直没有深入 这次真费了老大劲了
为了实验 我先后安装了 fedora 7 8 9 suse 11 Ubuntu 8.04
得到试验结果 如下
如果你用ATI卡
fedora 7 8 能正常进系统 fedora 9 安装后 显示器超频(fedora 9 测试版反而能正常安装 真搞笑) 对于一般用户很难解决
suse 11 能正常进系统(听歌时照样死机,我当时以为我用的fedora 8 太老了不能认出新硬件,现在感觉照此方法应该能解决)
Ubuntu 8.04 安装过程中死机 对此很失望
以上均为32位系统
对硬件支持 fedora 系列 还是较好点
fedora 10 出来之前我是不会用 fedora 9的 麻烦
HD3650 终于稳定了
驱动用ati-driver-installer-8-9-x86.x86_64.run
chmod 754 可运行 ./*.run
安装后
运行 aticonfig --initial
现在效果还不错 基本上没有死机,有时候卡而已。
ATI显卡HD3650 最新驱动8.10安装测试
780G 和nForce MCP51/61/68/73 磁盘性能 不是差一点半点!!!
这次买主板主要看中了 780G主板的集成显卡效能,没看全面,失误。
在一次拷贝一个几GB的数据的机会中,在单位和家里都试过,在家里的
nForce MCP51
主板上3分钟拷贝完毕。在单位竟然用了7到13分钟。这板子真不值的购买,磁盘效能低工作等待时间着急,真耽误事。
此数据证实了我的猜测,特此写出来。时时提醒,莫被一个亮点遮目。
http://www.techreport.com/articles.x/13628/10
http://www.techreport.com/articles.x/14261/11
http://we.pcinlife.com/viewthread.php?tid=908872
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|