Chinaunix首页 | 论坛 | 博客
  • 博客访问: 372534
  • 博文数量: 80
  • 博客积分: 6032
  • 博客等级: 准将
  • 技术积分: 730
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-05 20:07
文章分类

全部博文(80)

文章存档

2007年(1)

2006年(22)

2005年(57)

我的朋友

分类: LINUX

2005-11-30 13:36:52

CentOS听mp3……

我使用的平台是CentOS4.2,工作的时候也想听听mp3
先安装xmms播放器,虽然老了点
#yum install xmms
再装个皮肤包
#yum install xmms-skins
由于版权问题,该发行版已经去除了mp3插件,需要找个mp3插件装上
#yum search xmms-mpg123
找不到啊,好像FC的yum上有,直接找个链接下吧
#rpm -ivh xmms-mpg123-1.2.7-21.i386.rpm
安装好,在gnome下已经能听mp3了
至于如何让xmms能显示中文列表要看http://blog.chinaunix.net/article.php?articleId=59590&blogId=8048



在控制台下也想听mp3,我用mpg123
到它的主站
下载这个最新的版本
我下回来放在这里
#cd /usr/local/src
#tar -zxvf mpg123-0.59r.tar.gz
#cd mpg123-0.59r
#make
You must specify the system which you want to compile for:

make linux-help Linux, more help
make freebsd-help FreeBSD more help
make solaris Solaris 2.x (tested: 2.5 and 2.5.1) using SparcWorks cc
make solaris-gcc Solaris 2.x using GNU cc (somewhat slower)
make solaris-gcc-esd Solaris 2.x using gnu cc and Esound as audio output
make solaris-x86-gcc-oss Solaris with (commercial) OSS
make solaris-gcc-nas Solaris with gcc and NAS
make sunos SunOS 4.x (tested: 4.1.4)
make hpux HP/UX 9/10, /7xx
make hpux-gcc HP/UX 9/10, /7xx using GCC cc
make hpux-alib HP/UX with ALIB audio
make sgi SGI running IRIX
make sgi-gcc SGI running IRIX using GCC cc
make dec DEC Unix (tested: 3.2 and 4.0), OSF/1
make ultrix DEC Ultrix (tested: 4.4)
make aix-gcc IBM AIX using gcc (tested: 4.2)
make aix-xlc IBM AIX using xlc (tested: 4.3)
make aix-tk3play IBM AIX
make os2 IBM OS/2
make netbsd NetBSD
make bsdos BSDI BSD/OS
make bsdos4 BSDI BSD/OS 4.0
make bsdos-nas BSDI BSD/OS with NAS support
make mint MiNT on Atari
make generic try this one if your system isn''t listed above

这是它支持的平台
#make linux-help
There are several Linux flavours. Choose one:

make linux Linux (i386, Pentium or unlisted platform)
make linux-i486 Linux (optimized for i486 ONLY)
make linux-3dnow Linux, output 3DNow!(TM) optimized code
(ie with ''as'' from binutils-2.9.1.0.19a or later)
make linux-alpha make with minor changes for ALPHA-Linux
make linux-ppc LinuxPPC or MkLinux for the PowerPC
make linux-m68k Linux/m68k (Amiga, Atari) using OSS
make linux-nas Linux, output to Network Audio System
make linux-sparc Linux/Sparc
make linux-sajber Linux, build binary for Sajber Jukebox frontend
make linux-alsa Linux with ALSA sound driver
make linux-mips-alsa Linux/MIPS with ALSA sound driver

make linux-esd Linux, output to EsounD
make linux-alpha-esd Linux/Alpha, output to EsounD
make linux-ppc-esd Linux/PPC, output to EsounD

这是支持的linux平台
于是我选
#make linux
开始编译,完了安装
#make install
好了,听歌
#/usr/local/bin/mpg123 /usr/local/mp3/xxx.mp3 2>/dev/null &
列表听歌,乱序播放
#/usr/local/bin/mpg123 -@ 1.lst -Z 2>/dev/null &
感觉还不错


阅读(1088) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~