Posts Tagged ‘Fedora Core’

fc5下xmms播放器里中文显示乱码完整解决方案

Friday, September 8th, 2006

[参考文章]http://www.linuxsir.org/bbs/showthread.php?t=183614

天天也为这个东西发愁,虽然说不是常常在用 xmms这个东西听歌,但是乱码的问题不能解决,心里未免不舒服。
于是折腾了好几天,终于批这个东西搞定了。参考部份网上内容。

第一步:禁用id3v2标签
首选项=>音频输入输出插件 选中“ mpeg layer 1/2/3 播放器” 然后再点下面的 “配置 ” 切换到标题后选择“禁用id3v2标签” => “确定”

第二步:选择字体
如果美化了系统字体,装上了simsun就可以用下面的代码。
-simsun-*-*-*-*-*-12-*-*-*-*-*-iso8859-1,-*-*-*-*-*-*-12-*-*-*-*-*-gb2312.1980-0,fixed
把前面那两个勾都打上。还有其它的字体设置如:
-14-*-*-*-*-*-iso8859-1,-*-*-*-*-*-*-14-*-*-*-*-*-gbk-0,fixed

如果没有装其它字体,那就用默认的系统字体吧。代码如下
-sony-*-*-*-*-*-16-*-*-*-*-*-iso8859-1,-*-*-*-*-*-*-16-*-*-*-*-*-gbk-0

第三步:修改标题显示:
很多贴子里面都没提到这一步!
首选项=>音频输入输出插件 选中“ mpeg layer 1/2/3 播放器” 然后再点下面的 “配置 ” 切换到标题
在标题格式里只填上 %f , 默认的好象是 %p-%t ,不要默认的。

第四步:在播放列表里面把歌名显示出来,在播放列表里点右键 =>选择=>全部选中 然后再 读取扩展信息。

至次,困惑我n久的乱码问题终于告一个段落,但是最小化的bug还是解不鸟。再搞。

fc5安装配置过程(二)

Wednesday, September 6th, 2006

linux毕竟不是傻瓜版的操作系统,所以很多东西都要自己搞。
前天写了 fc5安装配置过程(一)今天继续。
主要的内容有以下几个方面:

  1. xmms播放器歌曲名称显示乱码以及不能最小化的bug
  2. mplayer播放视频只有声音没有图像
  3. gnome字体美化[实际上不用simsun和tahoma界面还是很漂亮的]
  4. gnome文件管理器优化
  5. 添加终端快捷方式到右键菜单
  6. lumaqq安装以及设置相关


fc5安装配置过程(一)

Tuesday, September 5th, 2006

1。下载fc5的五张iso文件进行硬盘安装。下载地址
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/iso/ 前面的五张iso全部下载下来。因为fc5的镜像站很多,强烈建议用迅雷下载,同时设置迅雷的连接数为512,可以使下载速度达到adsl的峰值。
2。安装过程,详见 http://fedora.linuxsir.org/main/?q=node/129
3。配置指南 ,有过很多次的失败经验了,所以安装起来轻车熟路。重要的地方写出来吧。
<ol><li>修改启动选项。因为我的机子上安装了独立的三套系统。分别是 xp,2003,和fc5。为了能正确的引导系统,要去修改一下grub的启动菜单。打开/boot/grub/menu.lst 编辑为以下内容。[code]# grub.conf generated by anaconda
#
# note that you do not have to rerun grub after making changes to this file
# notice: you do not have a /boot partition. this means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdb3
# initrd /boot/initrd-version.img
#boot=/dev/hdb
default=0
timeout=3
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title fedora core (2.6.15-1.2054_fc5)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1.2054_fc5 ro root=label=linux rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_fc5.img
#title windows xp sp2
rootnoverify (hd0,0)
chainloader +1
title windows server 2003
rootnoverify (hd0,1)
chainloader +1

[/code]</li><li>将所有的windows分区别载到linux系统下 进入/etc/fstab文件编辑后的文件内容如下[code]label=linux / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hdb5 swap swap defaults 0 0

/dev/hdb1 /mnt/xp vfat defaults 0 0
/dev/hdb2 /mnt/2003 vfat defaults 0 0
/dev/hdb6 /mnt/xzh vfat defaults 0 0
/dev/hdb7 /mnt/pro vfat defaults 0 0
/dev/hdb8 /mnt/bak vfat defaults 0 0
[/code]
在终端输入 mount -a
</li><li>加入其它一些有用的yum源方便以后的安装。
使用如下命令加入<a href=”http://rpm.livna.org/%e6%ba%90%ef%bc%9a” target=”_blank”>http://rpm.livna.org/</a>
rpm -ivh <a href=”http://rpm.livna.org/livna-release-5.rpm” target=”_blank”>http://rpm.livna.org/livna-release-5.rpm</a>
实际有网络上有很多源可用,但为了避免冲突,现只加入这一个源。
你可以在<a href=”http://rpm.livna.org/fedora/5/i386/” target=”_blank”>http://rpm.livna.org/fedora/5/i386/</a> 浏览该源提供的软件包。</li><li>a 假设你下载的iso文件存于/dev/hda6分区中,且你已挂载好了分区,现你的/dev/hda6分区已经
挂载到/mnt/hda6目录上,假设此时你的/mnt/hda6中的 iso文件如下:
/mnt/hda6/fc-5-i386-disc1.iso
/mnt/hda6/fc-5-i386-disc2.iso
/mnt/hda6/fc-5-i386-disc3.iso
/mnt/hda6/fc-5-i386-disc4.iso
/mnt/hda6/fc-5-i386-disc5.iso
然后在目录/mnt下创建目录iso1,iso2,iso3,iso4,iso5。可使用如下命令完成:
mkdir -p /mnt/iso1 /mnt/iso2 /mnt/iso3 /mnt/iso4 /mnt/iso5

b 现在将我们的iso文件挂载到上面几个目录上,为方便以后的操作,使用很简单的shell程序来完成这个操作
使用gedit输入以下内容:
mount -o loop /mnt/hda6/fc-5-i386-disc1.iso /mnt/iso1
mount -o loop /mnt/hda6/fc-5-i386-disc2.iso /mnt/iso2
mount -o loop /mnt/hda6/fc-5-i386-disc3.iso /mnt/iso3
mount -o loop /mnt/hda6/fc-5-i386-disc4.iso /mnt/iso4
mount -o loop /mnt/hda6/fc-5-i386-disc5.iso /mnt/iso5
于文件名mount_iso存入目录/mnt,然后用命令chmod a+x /mnt/mount_iso使其成为可执行文件。
为方便以后卸载iso文件,在gedit输入以下内容:
umount /mnt/hda6/fc-5-i386-disc1.iso /mnt/iso1
umount /mnt/hda6/fc-5-i386-disc2.iso /mnt/iso2
umount /mnt/hda6/fc-5-i386-disc3.iso /mnt/iso3
umount /mnt/hda6/fc-5-i386-disc4.iso /mnt/iso4
umount /mnt/hda6/fc-5-i386-disc5.iso /mnt/iso5
于文件名umount_iso存入目录/mnt,然后用命令chmod a+x /mnt/umount_iso使其成为可执行文件。
现在输入命令/mnt/mount_iso就可以挂载你的iso文件。你可到/mnt/iso1目录内看看是否已经有你想要的内容了。

c 现设置iso仓库,使用你喜欢的文本编辑工具(建议使用gedit)输入以下内容:
[iso]
name=iso
baseurl=
file:///mnt/iso1
file:///mnt/iso2
file:///mnt/iso3
file:///mnt/iso4
file:///mnt/iso5

failovermethod=priority
enabled=1
gpgcheck=0
于文件名iso.repo存入目录/etc/yum.repos.d/。
同时打开/etc/yum.repos.d/fedora-core.repo文件将enabled=1改为enabled=0,即不再使用该仓库了。
以上将使得在安装软件是使用core仓库包时使用我们下载的iso文件而不使用
<span style=”text-decoration: underline”>http://download.fedora.redhat.com/pub/fedora/linux/core/ </span>的软件包,
可大大加快我们软件安装过程。
d 现在你可以使用该iso源用yum安装软件了,当需要core仓库中的包时将直接从我们本地的iso仓库中安装,这可大大节省时间。
当你安装完了软件后,不想使iso再被挂载着,只需运行/mnt/umount_iso就可以了。记住了,每次装软件前别忘了挂载iso文件。即运行命令:/mnt/mount_iso
下面是我自己的修改后的文件
mount_iso[code]mount -o loop /mnt/pro/fc5/fc-5-i386-disc1.iso /mnt/iso1
mount -o loop /mnt/pro/fc5/fc-5-i386-disc2.iso /mnt/iso2
mount -o loop /mnt/pro/fc5/fc-5-i386-disc3.iso /mnt/iso3
mount -o loop /mnt/pro/fc5/fc-5-i386-disc4.iso /mnt/iso4
mount -o loop /mnt/pro/fc5/fc-5-i386-disc5.iso /mnt/iso5
[/code]
unmount_iso [code]umount /mnt/pro/fc5/fc-5-i386-disc1.iso /mnt/iso1
umount /mnt/pro/fc5/fc-5-i386-disc2.iso /mnt/iso2
umount /mnt/pro/fc5/fc-5-i386-disc3.iso /mnt/iso3
umount /mnt/pro/fc5/fc-5-i386-disc4.iso /mnt/iso4
umount /mnt/pro/fc5/fc-5-i386-disc5.iso /mnt/iso5 [/code]
iso.repo[code][iso]
name=iso
baseurl=file:///mnt/iso1 file:///mnt/iso2 file:///mnt/iso3 file:///mnt/iso4 file:///mnt/iso5
failovermethod=priority
enabled=1
gpgcheck=0
[/code]</li><li> 安装mp3插件,播放我们心爱的mp3歌曲。
我一般使用xmms来播放mp3,建议不要用bmp,因为在我的机子上即使装上了mp3插件也不播放不了mp3。不知你的能否?
输入命令:
yum install xmms
yum install xmms-mp3
完成后即可听mp3了。但是歌曲名称还是会显示乱码,解决方法以后补充。</li><li>安装mplayer播放各种视频。
输入:
yum install mplayer
yum install mplayer-gui
这时已经有mplayer的gui界面可以让你选择了,但是如果没有安装相关的decode还是不能正确的播放视频,一般会出现的情况是 有声音没图像。</li><li>如果不能重命名文件名,使用gedit的时候不能正确的编辑和保存。可以在终端输入
yum update scim scim-libs gedit
</li></ol>
这是配置的一部份,其它过几天再补充。

fc5下加载fat分区

Friday, July 7th, 2006

ntsf的加载和移动设备的加载就不说了。
在把你的windows分我加载到linux之前。请一定要知道下面几个命令。
1。查看磁盘分区情况的命令。
fdisk -l

[root@localhost ~]# fdisk -l

disk /dev/hdb: 80.0 gb, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders
units = cylinders of 15120 * 512 = 7741440 bytes

device boot start end blocks id system
/dev/hdb1 1 835 6312568+ b w95 fat32
/dev/hdb2 836 1670 6312600 c w95 fat32 (lba)
/dev/hdb3 * 1671 2781 8399160 83 linux
/dev/hdb4 2782 10337 57123360 f w95 ext’d (lba)
/dev/hdb5 2782 2851 529168+ 82 linux swap / solaris
/dev/hdb6 2852 5626 20978968+ b w95 fat32
/dev/hdb7 5627 8401 20978968+ b w95 fat32
/dev/hdb8 8402 10337 14636128+ b w95 fat32
[root@localhost ~]#

2。挂载分区的命令。 mount。格式如下。

mount -t 文件格式 -o 选项参数 磁盘分区 挂载点目录名

mount -t vfat -o iocharset=utf8,umask=000 /dev/hdab8 /mnt/bak/

3。磁盘使用情况。fdisk -l
4。用户权限 知道umask=000是任何用户都能读写执行的就行了。有些东西慢慢就明白了,多执行几个命令就ok了
5。内核版本。

[root@localhost ~]# uname -a
linux localhost.localdomain 2.6.15-1.2054_fc5 #1 tue mar 14 15:48:33 est 2006 i686 i686 i386 gnu/linux

6。有些软件要用root身份安装。输入 su 再键入密码就可以得到root权限了。

二。现在开始mount了。

在/mnt/下面建一个目录winxp 。将windows 下的系统盘挂载过来,通过 fdisk 可以知道他的 hdbx或hdax是多少
运行fdisk -l 后,根据磁盘的容量来确定磁盘的盘符。这里的c盘是hdb1。
这样,将c盘挂载到linux下的命令就是
mount -t vfat -o iocharset=utf8,umask=000 /dev/hdb1 /mnt/winxp/

每次开机后都这样挂盘显然是不实际的。我们把它加到启动的时候自动mount吧。
先在/mnt建好对应的目录。在/etc/fstab文件中找加如下的一行;

/dev/hda2 /mnt/wind vfat umask=000,nls=utf8
你想挂几个分区,就加上对应的几行吧。hoho。重启后就自动加载了。
再做一个桌面快捷方式吧。当前用户用root。
ln -s /mnt/winxp/ ~root/desktop/winxp


linux redhat fedora core 5.0 下载及安装教程

Sunday, July 2nd, 2006

fc5很大,快接近几3g了,下起来有点吃力。要想下载的话强烈推荐这里
http://download.fedora.redhat.com/pub/f ··· e%2f5%2f
这是redhat的fc下载官方网站。
里面有这几个选项。

   
[dir] i386/ 14-mar-2006 23:32 -
[dir] ppc/ 14-mar-2006 23:34 -
[dir] source/ 15-mar-2006 00:23 -
[dir] x86_64/ 14-mar-2006 23:32 -

其中,i386是普通pc机的安装程序,ppc是 mac机的安装程序,x86_64是64位机的安装程序,source是fc的可编译源码。 我们用的是pc,就选择i386进入好了,进去之后再选择iso。里面一共有5个iso安装文件,全部下载。[这里强烈推荐大家使用讯雷下载,因为fc的资源站很多,讯雷会自己选取可能利用的资源进行高速下载,一般的adsl都可以达到峰值,而bt不过是讯雷速度的1/2]。
下载完毕就可以进行刻盘或者直接硬盘安装了。
首先要有一个linux分区和swap交换区,装一个grub进行引导安装/loadin好像也可以,但是我不会用。 详细安装教程请大家参考
http://fedora.linuxsir.org/doc/fc5installgui/