Debian

April 17, 2007

优化debian的安装源

引自:http://www.syxin.com/2007/01/debian.html

1、apt-spy 方式:

`apt-spy'会根据站点回应时间和带宽自动创建`sources.list'。

#apt-get install apt-spy
#mv sources.list sources.list.bak //backup
#man apt-spy //获取详细的使用方法
#apt-spy update //更新您的镜像列表文件 /var/lib/apt-spy/mirrors.txt
# apt-spy -d testing -a Asia
//在亚洲区寻找速度最快的testing版镜像,并生成 sources.list文件,也可使用 -o 参数指定写入文件

提示:这是一个漫长,确实一劳永逸的过程.

2、netselect-apt方式:

`netselect-apt'会创建一个更完整的`sources.list'文件,但它使用更落后的方法来选择镜像站点

#apt-get install netselect-apt
#mv sources.list sources.list.bak //backup
#man netselect-apt //获取详细的使用方法
# netselect-apt -s testing
//下载http: //www.debian.org/mirror/list-full文件,并根据其内容测试网络,生成sources.list
也可将下载http://www.debian.org/mirror/list-full手动下载到本地, 并同过参数 -i 指定
同样可以通过 -o 参数指定输出文件而不是默认的sources.list

Posted by Lifeng Shen on April 17, 2007 2:04 PM | | Comments (0)

September 19, 2007

Debian GNU/Linux on Dell Poweredge 2950 with PERC 5/i RAID

This article is powered by Bruno Savioli

-------------------------------------------------------

Hi there,

I had the same problem, but in my case on a 1950.
The driver in question is megaraid_sas, at least with my 1950.
I poste a message a while ago saying exactly what I had done to fix it.
See it below.

It should work with the 2950 as well.
(note: after testing on Dell PE 2950 by hughr[hughr_going at hotmail.com], this is true.)


----
I tried to install debian etch on a 1950 yesterday, the installation
worked pretty well, but it froze during boot up.

As is guessed, the initrd that comes with etch doesn have megaraid_sas
on it.

I figured out a small "hack" if you still want to use initrd(I haven't
used yaird and I didn't have the option to do so during my install)

When the installation finishes, do not restart the machine.

Press CTRL+F2 and go the shell

"MAKE SURE YOU chroot INTO THE RIGHT ROOT PARTITION BEFORE RUNNING THESE
COMMANDS"

$chroot to the root /target/"something" partition.

Edit "/etc/initramfs-tools/modules" and add "megaraid_sas" to the end of
file.

Copy /boot/initrd.img-2.6.XXXX to /boot/initrd.img-2.XXXX.old

Run "update-initramfs -u" to update the current initrd to include the
megaraid_sas modules.


Reboot.... and that's it. A working debian etch on Dell 1950.


I'm not sure if this has already been reported to Debian, I'll check it
later.


Hope this helps.

Bruno Savioli

Posted by Lifeng Shen on September 19, 2007 9:00 PM | | Comments (0)