推荐一个debian源

2010/06/02

我们使用debian的stable版很不爽的一点就是软件比较陈旧,最新版的往往都是在unstable或者testing里。http://www.backports.org/这个网站就是为了解决这个问题出现的,它将testing和unstable里的许多软件重新编译打包提供。

它的详细使用说明在这里
http://www.backports.org/dokuwiki/doku.php?id=instructions

主要是下面几步
1.将deb http://www.backports.org/debian lenny-backports main contrib non-free添加到/etc/apt/sources.list中
2.执行apt-get install debian-backports-keyring安装key

然后通过apt-get update更新后即可使用,例如在这个源上能够找到最新版的java6 jdk

leconte@debian:~$ apt-cache search java6
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-demo - Sun Java(TM) Development Kit (JDK) 6 demos and examples
sun-java6-doc - Sun JDK(TM) Documention -- integration installer
sun-java6-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java6-javadb - Java(TM) DB, Sun Microsystems' distribution of Apache Derby
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)
sun-java6-plugin - The Java(TM) Plug-in, Java SE 6
sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 source files

© 2010, Linux爱好者. 版权所有. 转载请注明来自http://www.linuxers.cn

Tags:,, Posted in Linux软件我抢沙发

在debian下设置ip的方法

2010/06/02

debian和redhat设置ip的地方有所不同,关于redhat的ip设置请看这里,今天介绍一下debian的配置。

debian的ip配置文件位于/etc/network/interfaces文件中,我的文件内容如下:

 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 10.32.20.33
netmask 255.255.255.0
up route add default gw 10.32.20.62

iface eth0 inet static代表eth0这块网卡采用静态ip的方式,address和netmask分别指明了ip地址和子网掩码。

如果想采用dhcp方式配置ip,则无需指定address和netmask,而只需设置iface eth0 inet dhcp即可。

up route add default gw 10.32.20.62代表在网卡启动(up)之后自动执行route add default gw 10.32.20.62这条命令,即添加一个默认网关

auto lo和iface lo inet loopback是设置本次回环接口,即127.0.0.1。

经过设置后执行/etc/init.d/networking restart即可令修改生效,执行ifconfig可以看到当前的ip配置:

leconte@debian:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1a:4b:3e:07:0c
          inet addr:10.32.20.33  Bcast:10.32.20.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:4bff:fe3e:70c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:504593 errors:0 dropped:0 overruns:0 frame:0
          TX packets:151595 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:305990674 (291.8 MiB)  TX bytes:51901895 (49.4 MiB)
          Interrupt:16 Base address:0x4000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:173 errors:0 dropped:0 overruns:0 frame:0
          TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:123368 (120.4 KiB)  TX bytes:123368 (120.4 KiB)

可以看到,interfaces文件中的lo和eth0两块设备都正常工作了。

© 2010, Linux爱好者. 版权所有. 转载请注明来自http://www.linuxers.cn

Tags:, Posted in Linux软件我抢沙发

  • 本站介绍

    本站关注Linux开源社区,程序开发,系统运维和桌面应用等各方面内容,力求保证文章的质量和原创性,感谢各位同学的大力支持

  • 最近文章

  • 文章归档

  • 分类目录

  • 功能