ubuntu10.04启动黑屏解决办法

黑屏出现的状况:
1、grub-进度条-黑屏
系统启动后,可以看到进度条,但是进度条结束后,就是黑屏状态,常常还会出现的状况是键盘基本失效。
2、grub-进度条-登陆界面-黑屏
系统启动,可以看到进度条,也可以到登陆界面,但是登录后就黑屏或者是花屏

无论哪一种情况,均可以采用以下办法解决:
在系统启动时,按住SHIFT键,进入grub界面,选择修复模式(recovery mode),然后会看到一个选择框
* resume – Resume normal boot resume – Resume normal boot
* clean – Try to make free space clean – Try to make free space
* dpkg – Repair broken package dpkg – Repair broken package
* fsck – File system check fsck – File system check
* root – Drop to root shell prompt root – Drop to root shell prompt
这时只需要使用自己的用户密码登录即可,即不选择(将焦点移动到第二个按钮,而不是上面提到的选项)会提示输入你的用户名和密码,登录即可
然后根据我这篇文章提到的方法

http://www.walleve.com/archives/880

操作两次,第一次卸载驱动,然后重启reboot
第二次安装驱动,然后重启,即可进入桌面

开机快捷键必备:
开机时按住Shift键:进入Grub界面
Ctrl+Shift+F1 进入命令行界面

刚刚又经历了一番黑屏,还好掌握了解决黑屏的心得,无非是驱动出问题,只需要卸载重装一下即可,但是需要提醒的是在自己不理解的情况下,千万不要使用诸如 sudo apt-get remove xorg* 之类的办法,这样做的话,会删除很多软件包的,即使你恢复了显卡驱动,仍然要在启动后忙碌一阵子去装各种软件包(也有可能需要卸载一些)
遇到黑屏最痛苦的是什么?无法进入系统,甚至是无法进入命令行界面。对于物理机单操作系统是ubuntu的用户,建议身边备有一张ubuntu的liveCD或者DVD,这样即使遇到问题也可以使用光盘从光驱启动,然后上网查查答案。

ubuntu10.04 ureadahead解决办法

从9.10升级到10.04 lucid,启动界面可能会有一行提示 init: ureadahead main process (329) terminated with status 4
解决办法如下:
将/etc/init/ureadahead.conf 文件移除(建议直接重名为.disable,或者其他)
命令行
mv /etc/init/ureadahead.conf /etc/init/ureadahead.conf.disable
重启后就会发现问题解决了

为此专门找到了ubuntu开发者写的一篇文章,其中提到了这个问题,有全面的解释,地址如下:

http://ubuntuforums.org/showthread.php?t=1434502

可能由于某些网络原因,我特意转贴过来,大家粗略看看吧

All about ureadahead
Hey folks, we developers don’t get the spare time to hang out on the forums for most of the release cycle, but in the past day I’ve tried to keep up with various boot-related issues and I’ve seen a few posts about ureadahead – and people recommending removing it.

I thought it might be a good idea to try and explain what it does, how it does it, and why “status 4″ is a good thing.

Also I want to stress that I’m not going to tell you that there’s nothing wrong with it, and that you haven’t had a genuine issue, but just that I haven’t heard about it if you have! I’d really appreciate it if anybody who is having problems could help out with some debugging to understand the problem, then I’ll be able to fix it for you and everyone else!

What does ureadahead do?

In order to boot Ubuntu, we need to read somewhere between 100MB and 200MB of data from the disk and into memory. Unfortunately the slowest part of your otherwise awesome machine is its hard disk — that’s why we want this data into memory in the first place.

Hard disks aren’t just slow to read data, they’re slow to find it as well! So we can lose a time of time during boot just waiting for the hard disk to find the data we need, and then read it into memory.

What ureadahead does is figure out what pieces of which files we actually need, and read everything from the disk into memory in one go. By doing it at once we don’t need to spend so much time finding everything, and because it’s already in memory, we don’t waste anywhere near as much time during boot.

It’s just for SSD right, not rotational HDD?

No, quite the opposite. You’re thinking of sreadahead (“Super-readahead”). This was a similar tool written by Intel for their Moblin project, and is very unashamedly optimised for SSDs.

We tried it for a while, but found that its performance was simply terrible on rotational hard drives.

I sat down, drank a large amount of Tea, and wrote ureadahead (“Über-readahead”) to replace it. ureadahead from the get go was unashamedly optimised for rotational hard drives, that’s not to say it’s poor on SSD either, it performas at least as well as sreadhead there.

But ureadahead takes several seconds of my boot!

Yes it does; it’s reading all the data in one go. If you didn’t have it, those several seconds would be simply spread out across everything else, and probably last two or three times longer!

I looked at bootchart, and ureadahead doesn’t get full throughput

Even though ureadahead reads everything in one go, and is heavily optimised to read everything in the actual order it’s on the disk, it still has to skip over the bits it doesn’t need.

This “seek time” is the same performance penalty as finding data in the first place.

The only way to avoid this is defragmenting your disk.

But Linux filesystems don’t need defragmenting!

Whoever told you that is deeply mistaken, this is one of the most common myths of Linux.

What is true is that Linux filesystems avoid, where possible, fragmenting their inode tables. This means that the index of how files are split up (fragmented) across the disk, and where those parts are, tends to be kept together as a whole.

That’s a good thing; fragmentation of inode tables is a big problem for other filesystems (FATs in that filesystem, etc.) so by keeping them together, it wins a lot of performance.

But the data itself is still fragmented, and spread all over your disk in a random order. And unfortunately during boot, it’s the data we need.

One of the future things we want to do is use the ureadahead analysis of what we need during boot to feed into a defragmenter, so everything we need is in one big block on the disk.

When does ureadahead reprofile?

Any time a package is installed or upgraded that contains a file in /etc/init or /etc/init.d; this is a bit brute-force, and means we’re probably reprofiling a bit more than we’d like.

To force a reprofile, simply remove the “pack” files in /var/lib/ureadahead and reboot.

In a future version we intend to move to each boot improving the pack file by identifying things read that were never used, and new things that weren’t read last time.

When does ureadahead stop profiling?

ureadahead slightly assumes you’re using auto-login; so waits about 45s after the display manager starts before it stops reprofiling. If you’re logging in with a password, and want your desktop files included in the pack, type quickly

(This will be addressed in a future version too).

ureadahead slows down my boot!

I want to hear from you! It really shouldn’t; to give you an example of the savings, my trusty laptop boots in about 1m30s without ureadahead – and only 30s with it.

Make sure you have the bootchart package installed. Remove the ureadahead pack files, and move the /etc/init/ureadahead.conf file to something like ureadahead.disabled. Reboot, login, etc. and wait for the bootchart to appear (“watch status bootchart” until stop/waiting).

Now put the ureadahead conf file back, reboot and login again and wait for bootchart to appear.

Finally reboot and login once more, and wait for bootchart to appear.

You’ll now have three bootcharts. One is without ureadahead, one is when ureadahead is profiling, and the final one is with ureadahead behaving normally.

File a bug report on ureadahead (ubuntu-bug ureadahead) and attach these three files along with the output of “sudo ureadahead –dump” (this is quite a bit, so capture it in a file).

I’ll take a look, and we’ll see if we can fix that bug for you!

ureadahead exits with status 4!

This isn’t actually a bug

Status 4 (usually ureadahead-other exits with this) means that you had a mountpoint in your fstab that didn’t have any files on it needed during boot. Probably that drive with all those MP3s and movie files on it.

It still reads everything needed during boot, the status is just there for me to debug other issues.

The real bug here is that Upstart spams the console with that message, even though the ureadahead-other.conf file has “normal exit 4″ in it!

(In other words, If your boot fails, this message is completely unrelated to that! It’s more likely that there is an issue with the X server starting, or an issue with init scripts not being run — a good clue might be whether you see a login: screen after pressing Alt+F2)
Last edited by keybuk; March 22nd, 2010 at 08:23 AM..

ubuntu缺少公钥的解决办法

在进行sudo apt-get update时,可能会提示

W: GPG error: http://apt.tt-solutions.com dapper Release: 由于没有公钥,下列签名无法进行验证: NO_PUBKEY 06EA41DE4F6C1E86

解决办法如下:

gpg –keyserver subkeys.pgp.net –recv 4F6C1E86
gpg –export –armor 4F6C1E86 | sudo apt-key add -

说明:
若缺少其他公钥,则将命令中两处4F6C1E86改为NO_PUBKEY 06EA41DE4F6C1E86中最后8位即可!

如果是Ubuntu PPA的

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com

说说FeedSky话题营销

前几天参与过FeedSky的一个关于2010年基金投资的话题营销广告活动,话说发布文章两周内,只审核了一次,并且审核的要求是“删除回复中关于话题营销的内容”,大概的意思就是不准在评论中讨论有关话题营销的问题(可以讨论和话题相关的内容?不得而知,因为这篇文章就在一分钟之前还没有审核通过),然后照做了,大概又是一周过去了,这篇文章仍然没有审核通过,我想大概我被骗了吧,或者说再下去已经不值得了。
1、feedsky发起话题营销邀请,当然会告诉你话题结束日期,话题剩余金额,你可能的预期收入
2、个人博客参与话题,提交文章,等待审核
3、进入审核流程
4、审核通过,付款
5、后续保证
我觉得feedsky的话题营销活动还算不错,虽然价值上总会让个人博客觉得不值得,但是偶尔参与一下,挣个域名费用或者空间费用也足够了,但是流程上总会让人觉得很不靠谱和不透明,feedsky能够将广告推给你,你接受了,却不一定能拿到最终的结算金,这就是最BT的部分了,来看看怎么回事吧
1、feedsky在发起邀请时难道没有一个评估吗?大概也会有这个一个评估,至于评估规则不得而知,反正是能轮到我参与,我就觉得很不可思议,我的博客从来没有讨论过“基金”的东西,而且也不以这个为主,所以我想它的邀请规则上存在一定的不合理性,邀请时起码应该评估下博客的性质,流量吧,如果feedsky取不到这些数据,那么它靠什么去评估?订阅?omg,它应该对自己的用户有一个识别技术的,哪怕是要求在博客上添加统计代码都可以(可能会引起一部分人的反抗心理)。
2、个人博客参与后,提交审核流程,审核的要求大概都有,就是话题里边介绍的内容,要求添加链接/添加图片,这些都可以理解,但是审核期限为什么不做一个设定?而且feedsky应该采用的是人工审核(有邮件提醒,能检测到回复内容,时间太久),期限太久,我想大多数人会受不了,因为时间越久,相当于博客给这个话题做广告的时间就越久,广告主当然爽了,feedsky也爽了,可是个人博客就不爽了,feedsky无异侵害了用户的权益。如果feedsky是想做事后诸葛亮,那么我想它错了,原因有二,第一博客打了这么久的广告,却不一定有钱;第二feedsky并没有说明这样一种“事后”处理的机制,会造成很多人误解,另外它这样做无异对个人博客是没有任何保障的,那么谁还会愿意参与呢?
3、后续保证,这个的意思就是话题营销到底是长期还是短期的?按照目前的理论,话题营销其实就是个快速插入,快速退出这样一种机制,在营销期内,打广告,付款,结算,然后博客主当然可以删除这些无关的话题,因为已经拿到了money,没有必要再留这些广告和质量不高的文章,出现这样的情况和国情有关,和feedsky对博客的定位有关,和博客自己的定位有关。不过广告主可能想做的就是短期内见效果,而且就目前的情况来看,长期的效果也没有谁能够保证,付款后文章删除,feedsky大概也以目前的协议也约束不了博客主,博客主自然也不想被约束吧。
既写自己喜欢的文字又赚钱对于中国博客来说,目前虽然有了feedsky的尝试,可是效果仍然不是很好,因为feedsky从07年到现在的话题营销总量上还太少,自己的用户大概流失的也很严重吧,从上次大型活动之后,就没有了什么大的作为。

面板载入“OAFIID:GNOME_IndicatorApplet”时遇到问题

系统启动时提示:
面板载入“OAFIID:GNOME_IndicatorApplet”时遇到问题
解决方法:
重新安装indicator-sound