Category Archives: Linux

HOWTO: Kernel Compilation for Newbies

ubuntu官方论坛中,写得如何编译ubuntu的内核的文章。
我昨天重新编译内核时看到的,转过来
 
This guide is aimed at the newbies who are willing to learn something about kernel compilation or just who need a new kernel for incompatibility issues (e.g. DMA issues). This is a STEP-BY-STEP guide, so don’t be afraid of compiling your first kernel, it’s a piece of cake. Moreover if you need to compile any kernel module (nvidia modules, ndiswrapper, etc.) I will also explain how to do it.
 
It takes a while (even an hour) to complete the process described below, so make sure you have enough time to spend.
 
Make sure you have all the repositories enabled

Continue reading

HowTo: Speed up ubuntu boot process – the way you can feel it.

This HowTo is for those who complaint ubuntu boot-up speed is pretty slow but not willing to install any alternative tools to speed up. The way I use here is not the altimate solution by any means but it does make differences and it does work. Everything done below is by tuning the boot process itself and because everyone’s computer might be different, there is a little risk that something below might break your system. Take your own judgment before you perform a change and always good to do a backup for the /etc dir.
 
**This HowTo is mainly for laptops and desktops, not for servers.**
 
Suggestions for this HowTo:
1. I hope you learn something from here but not just a simple copy. So please, **DO NOT** follow exactly what I did and copy to your box. Read the descriptions of services and use your own judgment to determine if you need to keep them on or not. For instance, I turned GDM off on mine to boot to console, but if you do not feel confortable to see console at all, you should keep GDM or KDM on to boot directly to GUI.
2. If you have a question about a boot up service and not really sure what it does, post a question here and see if anybody can help you. Ask before you do if you don’t know. The bottom line to be safe is to leave a service on rather than turn it off if you do not understand.
3. If you see a boot up service that you have but not in here, let us know what it does just like what I did here – give some descriptions and suggestions on whether it should be on or off on a normal laptop or desktop environment.
 
Color reference : service I turned on
service I turned off 

Continue reading

2.6内核ipv6的问题

在debian 最新的2.6内核中,似乎直接把ipv6给编译了进来,很是变态。这样的后果,导致服务器执行
netstat -ut等命令,会尝试访问ipv6,从而导致响应速度很慢。而用安装了ipv6的机器上网,也会导致访问网络速度很慢。
在网上有n多人在抱怨这个问题,据说似乎在下2个版本中可能会去掉默认安装的ipv6模块。至于安装了的,似乎解决方法只有重新编译内核。
在网上有其他的解决方法,我尝试过,都不好用。有一篇帖子说执行
rmmod -f ipv6
我做了之后,机器直接挂了。。似乎网上现在也没有好的解决方法,都是在以讹传讹。所以大家只有2个选择,等or重新编译