[原创]使用Fedora——播放mp3,玩星际,C编程
今天使用Fedora解决了三个问题,感觉不错。1,播放mp3
今天下载了《老人与海》,换了好几个播放器也播放不了,最后在网上找到一篇文章,很详细,照着上面一步一步做就搞定了。在软件包管理中选中xmms的插件,并应用后,我以为就可以了,可是还不行,还是要下载xmms-mp3-1.2.10-16.i386.rpm,用软件包安装工具安装后才可以,跟文章中说的一模一样。我把网文附在最后。
2,玩星际
我玩星际奇差无比,但我就是想在Fedora7上面玩,也是在网上找了一篇文章,但我实际操作的时候比作者写的要简单一些。只是最后还是没有搞定,文章上面全过了,却报了一个如下什么什么的错。
Starcraft was unable to open a required file. If this problem persists, try uninstalling and reinstalling Starcraft using the program "SETUP.EXE" on the Starcraft CD-ROM.
The problem occurred while trying to load a file
smk\blizzardsmk
File not found
从http://www.winehq.org/下载最新的Wine 0.9.58 Released,解压后按照readme中说的用./tools/wineinstall执行就可以了,后面提示是否安装,就安装。前面编译的时间很长,要耐心等待才行。然后所有Windows格式的.exe文件,在右键单击的时候就会多了一个“用Wine Windows Emulator打开”的选项,找个Starcraft安装文件就可以搞定了。所以实际上Wine不是模拟器,而是使Windows的可执行文件可以在Linux系列中运行的工具。等我把上面的报错搞定后,再来说一说。
3,C编程
我找了一本《UNIX平台下C语言编程》的书,清华大学出版社的,喻志虎编著(念起来好像一只虎)。第一章的所有例题全都试了一遍,都可行,效果很好。要先把附录中的selfdef.h和errproc.c编译了才行。唯一不爽的是书中源码有很多的笔误,要细心纠正才可以编译通过,破费周折。有空我把我修改后的源码打包传上来。
《How to play MP3 files in Fedora》
http://www.simplehelp.net/2007/05/31/how-to-play-mp3-files-in-fedora/
First, a tiny bit of history. You can skip this entirely and just get to the tutorial if you’d like.
Why doesn’t Fedora support MP3 ‘out of the box’?
Fedora cannot include support for MP3 or DVD video playback or recording. MP3 formats are patented, and the patent holders have not provided the necessary licenses. Fedora also excludes other multimedia software due to patent, copyright, or license restrictions, such as Adobe Flash Player and RealNetworks RealPlayer.
That doesn’t mean you can’t play .mp3 files in Fedora, it just takes a bit of work (not much).
If you’ve seen the following screen (or something familiar), follow the steps below and you’ll be playing MP3s in Fedora in no time at all.

I’ve tried a number of tutorials, steps and guides - the following tutorial is almost certainly not the only way to get MP3s playing, but it’s the one that worked for me, with the least hassle.
- Start by clicking Applications and then select Add/Remove Software.
- When prompted for your root password, enter it and click OK.
- Select Applications from the left column, and then Sound and Video from the right column. Make sure to place a check in the Sound and Video entry. Click the Optional packages button.
- Scroll down to xmms - version number - The X MultiMedia System, a media player and place a check in the box next to it. Click Close.
- Back at the Package Manager window, click Apply. A Package selections window will appear - click the Continue button.
- Don’t be surprised (or worried) if an “unable to verify” window appears. Just click Install anyway.
- After a while, you should get a Software installation successfully completed window. Click OK.
- Locate an MP3 on your hard drive, right-click it and select Properties from the menu.
- Select the Open With tab at the top, and select Audio Player from the list of applications. Then click Close.
- Now you’ll have to fire up your web browser and head to http://www.gurulabs.com/goodies/downloads.php. On this page, scroll down a bit to the XMMS MP3 Plugin for Red Hat Linux and Fedora Core section, and download the file titled xmms-mp3-1.2.10-16.i386.rpm. Don’t worry that it’s labeled as a file for Fedora Core v4 - it should work with any version of Fedora higher than 4 (for me it worked in 6). Once its finished downloading, double-click it.
- Again you’ll be prompted for your root password. Enter it in the space provided and click OK.
- Click Apply to install the package.
- Once it has completed installing, locate an mp3 and double-click it. Ta-da! You can now listen to all your MP3s in Fedora.




[tags]fedora, linux, mp3, tutorial[/tags]
推荐到鲜果: 查阅更多相关主题的帖子: Fedora










评论
发布者 匿名用户
2008-3-23 22:51:22