Skip navigation.

我思,我想

记录人生痕迹

Posts tagged with "linux"

昨天干了一件用linux几年来最SB的事情

真是闻者伤心,听着掉泪阿. 这件SB的事情就是执行了 sudo rm -rf /usr .

事情的原委是这样的, 昨天看见 vim7.1a 发布了, 我就兴冲冲地去想编译一把. vim的readme里面呢表示可以直接修改src/Makefile, 来做某些feature的取舍. 于是我就去改了, 这个倒没有什么, 我还想将其默认安装到 /usr , 于是就去把某行 #prefix=$HOME , 反注释掉, 然后把 $HOME 改成了 /usr, 然后噩梦就来了. make install的时候就报错了, 说 prefix 有重复, 没有安装成功, 于是我就 sudo make uninstall, 就是这句天杀的命令, 执行的过程中, 我分明地看见有条 rm -rf /usr ,靠, 额滴神阿, 我立即关机, 重启, 发现系统进不去了....

没有办法, 那就只好重装了, 本来前一段时间我已经起了几次心要重装(主要是想试试现在的ubuntu, ubuntu feisty的进步明显, 而kubuntu feisty基本没有太大改变)了, 但是每次放入光盘之后都放弃了, 因为我的系统好好的, 是feisty herd2的时候从edgy升级上去的, 用起来也没有什么问题.

不过这次重装的还是kubuntu, gnome我想了想, 估计还是会忍受不了...

万幸的是只是 rm -rf /usr , 而不是 rm -rf / , 我的重要的文件都还在. 重装之后只要简单地安装一些必要软件, 和简单配置一下系统就行了, 我的所有的个人化的设置都还在 /home 里面.

教训阿.

最好用的mplayer的前端SMplayer



这是一颗新星, 但是目前功能完备, 方便好用, 并且更新积极. 强烈推荐使用这个, 特别是mplayer的用户. 用的是qt做图形库, 所以可以跨平台, 目前有linux和windows版本.

http://smplayer.sourceforge.net/

SMPlayer intends to be a complete front-end for MPlayer, from basic features like playing videos, DVDs, and VCDs to more advanced features like support for MPlayer filters and more.

One of the most interesting features of SMPlayer: it remembers the settings of all files you play. So you start to watch a movie but you have to leave... don't worry, when you open that movie again it will resume at the same point you left it, and with the same settings: audio track, subtitles, volume...

Other additional interesting features:

* Configurable subtitles. You can choose font and size, and even colors for the subtitles.
* Audio track switching. You can choose the audio track you want to listen. Works with avi and mkv. And of course with DVDs.
* Seeking by mouse wheel. You can use your mouse wheel to go forward or backward in the video.
* Video equalizer, allows you to adjust the brightness, contrast, hue, saturation and gamma of the video image.
* Multiple speed playback. You can play at 2X, 4X... and even in slow motion.
* Filters. Several filters are available: deinterlace, postprocessing, denoise... and even a karaoke filter (voice removal).
* Audio and subtitles delay adjustment. Allows you to sync audio and subtitles.
* Advanced options, such as selecting a demuxer or video & audio codecs.
* Playlist. Allows you to enqueue several files to be played one after each other. Autorepeat and shuffle supported too.
* Preferences dialog. You can easily configure every option of SMPlayer by using a nice preferences dialog.
* Translations: currently SMPlayer is translated into Spanish, German, Slovak, Italian, French, Simplified-Chinese, Russian and Hungarian.
* It's multiplatform. Binaries available for Windows and Linux.
* SMPlayer is under the GPL license.

下一版Ubuntu已经被命名为 Gutsy Gibbon -- 勇敢的长臂猿

,

具体的特性有默认的桌面效果, 无人职守更容易的安装(能够让monkey都能够自己安装),虽然不是LTS版本,但是希望能够在Server版本上能够有更多努力. 另外, 据说这个版本将是一个"保守派"的版本, 将完全采用free的软件.

feisty将不会支持EXT4

ubuntu说ext4虽然不一定会损坏文件, 但是也不一定就足够稳定, 所以feisty里面是不会包含EXT4支持的.

另外, 前几天nvidia-glx升级到9755之后, 发现大量的N卡都无法支持了, 这些卡既不被nvidia-glx支持也不被nvidia-glx-legacy支持, 真可怜. huahua他还在考虑是否是在ubuntu-cn里面放置一个9631的版本的驱动呢.

但是据传言, 现在ubuntu内核又改了, nvidia-glx的版本又变回9631了.

9755的驱动变成了nvidia-glx-new.

clearttype补丁的源

前一段时间那个cleartype补丁的源就链接不上了,我以为是暂时问题, 结果过了一段时间还是链接不上, 今天google了一下, 发现作者换isp了,网址换了,现在的源的地址是:

deb http://www.telemail.fi/mlind/ubuntu feisty fonts
deb-src http://www.telemail.fi/mlind/ubuntu feisty fonts


需要cleartype的兄弟可以跟进一下.

这里是ubuntuforum上的链接

这两天feisty升级频繁

,

前两天居然看到把xcb给卸载了, 然后发现fcitx就可以正常使用了, 不会再拖慢系统速度了. 被迫用scim的兄弟可以试试.

今天升级发现nvidia-glx也升级了, 从9631升级成9755了, 我赶紧启动了一下beryl , 发现居然流畅起来了, 我很久之前是可以流畅运行beryl的, 后来就不知道怎么回事就速度暴慢, 现在又可以了.

整体说来, 随着feisty的发布的领近, feisty也越来越值得大家使用了.所以我推荐大家升级到feisty, feisty, 特别是ubuntu feisty, 带来了很多新特性, 比如自动安装解码器, 方便地私有驱动安装applet, 自带桌面特效等等, 非常值得升级.

kubuntu and kde4

,

摘要:
kubuntu将紧密跟进kde的下一代版本kde4,由于kde4的第一个版本预计在今年10月发布,所以我们无法在kubuntu7.10中使用kde4,而kubuntu8.04将是下一个LTS版本,因为这个时候kde4还是第一个发行版本,稳定性和可用性不一定能够满足LTS版本的需要,估计也不会成为kubuntu8.04的default desktop.但是kubuntu也许会发布kde4的包,方便大家使用kde4.

The announcement of a releaseplan for KDE 4 silenced all the previous discussions wether or not the completely new KDE will appear. KDE 4 is based on Qt4 and all applications have to be ported to it. The release of KDE 4.0 is planned for October 2007. kubuntu-de.org held an interview with Jonathan Riddell, project lead of kubuntu about KDE 4 and future kubuntu releases.
q: Jonathan, many kubuntu users seem to be eager to get KDE 4 a soon as possible. Can you give us a look behind the set?''

Jonathan Riddell: At the last Ubuntu Development summit we looked at KDE 4 and made plans for introducting it into the archives. kde4libs and kde4base are now in, the rest are sitting in the NEW queue waiting for an admin to approve them for the archive. Some of the packages have already been rejected because of licence problems (nothing major, just a missing file), so it's good that we are doing this early to get such problem out the way.
You can install these packages alongside the current KDE 3 and run them under KDE 3 or in their own session.
However they're very unstable, and not usable for every day work at all. Also the packages do not currently have any dependencies on them, so you need to install these manually.
q: Kubuntu 6.10 contains packages for KDE 4 for developers. Do you think there will be soon test versions for common users, too?

Jonathan Riddell: Our main focus is to make the tools necessary available to developers. So we have the latest CMake (the new build system for KDE
4) in feisty and coming into backports. We also have the latest strigi and decibel libraries which are now needed by KDE 4.
Users are welcome to try out the packages but I really don't recommend them for use except as a good way to find bugs and start fixing them.
q: Recently, there were reports in the press that sounded like the publication or discussion of milestones for a release plan. When do you
estimate KDE 4 might be released?
Jonathan Riddell: Previously I had hoped for last October which would be KDE's 10th birthday. I was obviously well off, so maybe I should guess a release around our 11th birthday :smile:
Even once KDE 4 is released we will still have KDE 3 around for a while until all the applications are ported. We've started the porting already for Kubuntu with Ubiquity and other apps now using Qt 4 but many apps such as Adept and Guidance depend on KDE functionality so it is not possible to port them until KDE 4 becomes more stable.
q: When KDE 4 will be released, which Kubuntu would likely contain it, 7.10 or rather 8.04?
Jonathan Riddell: I suspect KDE 4 won't be stable enough to be default desktop for 7.10. 8.04 it should be but it's possible that 8.04 will be our next LTS release and I don't want our first KDE 4 as default release to also be an LTS release. Either way we'll have packages and ISOs of KDE 4 available as soon as sanely possible for everyone to try.
Thank you for the Interview

调整ktorrent参数,降低cpu占用率

,

我一直用ktorrent下载bt,下载速度和功能让我很满意。但是有时候如果连上的源多的话会占用大量的cpu,导致机器很慢。看看top的信息,ktorrent和Xorg占用了很多cpu,基本上ktorrent 70%,Xorg 20%,基本占用了所有的cpu资源。

看到这样的情况,分析应该是ktorrent频繁刷新界面导致的。于是在设置里面把ktorrent的界面刷新时间加长,设置到2秒,ktorrent的cpu占用立即下降到30,40%左右,不错。但是还是较高。再分析界面上显示几百个连接上的下载者信息,和下载块的信息,也在不断刷新,估计这个也有问题,于是把选项中的 这两个选项也去掉了,结果cpu占用就下降到了7%左右,效果令人非常满意。

如果有用ktorrent的朋友,感觉占用cpu过高的话,不妨试试这个方法。

配置ntfs可读写工具ntfs-3g的图形化配置软件

用起来非常简单,打上勾就行了。注意我是feisty,不知道其他版本里面有没有。

kde用户要手工编辑一下菜单,把他前面的gksu改成kdesu。不然启动不起来。

karron@karronqiu:~$ apt-cache show ntfs-config


Description: Enable/disable write support for any NTFS devices
This program allow you to easily configure all of your NTFS devices
to allow write support via a friendly gui.
For that use, it will configure them to use the open source ntfs-3g
driver. You'll also be able to easily disable this feature.
.
Homepage : http://givre.cabspace.com/ntfs-config
.
Homepage of ntfs-3g : http://www.ntfs-3g.org

解决feisty里面xine播放部分real格式的视频没有声音的问题

升级feisty之后,播放有些real视频就没有声音了,最近找到一个方法,测试有效。

vim ~/.xine/catalog.cache

找到下面的代码。

[/usr/lib/xine/plugins/1.1.4/xineplug_decode_real_audio.so]

然后把decoder_priority的数字改成10
decoder_priority=10

注意,一定要把所有的播放器关闭之后再修改。
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31