debian tips,


debian tips (by hanlray(at)gmail.com)

关机自动切断电源

Sarge在缺省情况下,当用shutdown -h关机时是不切断电源的,下面是解决办法:
  • 检查内核启动参数,设置apm=on apm=power-off(对grub来说修改/boot/grub/menu.lst)
  • 如果第一步不奏效,则可能是因为apm是作为module编译的并且没有加载,把apm power_off=1加入/etc/modules中,重起

sources.list

    deb http://host/debian distribution section1 section2 section3     deb-src http://host/debian distribution section1 section2 section3 
distribution可以写code name,也可以写stable/testing/unstable,写code name将会和该code name的distribution同步,而不管该distribution发布的状态;写stable/testing将会和当前处于stable/testing的code name同步,当新的code name release的时候,由于stable/testing将会指向新的code name,因此可以自动切换到新的处于stable/testing的code name来同步。

如果使用stable的distribution(不管是写code name还是stable),还应该把security的源加上,因为debian对stable的security问题是专门处理的,如:

deb http://security.debian.org/ sarge/updates main contrib non-free

对testing的distribution,其安全更新是通过unstable进行的,通过把安全更新包的优先级设置为high使其尽快进入testing,因此不需要添加额外的源。

由于unstable是可以直接上传的,并且永远不会frozen,所以也不需要额外的源。

常用packages

x-window-system
包括X server,fonts,基本的X clients(xterm等)
gnome-core
gnome的基本组件,包括metacity(window manager),gnome-session(session manager)等
xspecs
X的manual

一组鼠标手势叫做一个pointer theme,在debian里常叫做cursor theme

相关内容

    暂无相关文章