2011年4月6日星期三

DEBIAN双网卡共享上网设置

1. 首先在/etc/network/interfaces里加入下面的内容(这里eth0与外网连,eth1与内网连)。

auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0

2. $ echo "1" > /proc/sys/net/ipv4/ip_forward
或修改/etc/sysctl.conf,加上 "net.ipv4.ip_forward = 1"

3. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

4. /etc/init.d/inetd restart 或者重新启动计算机。 !! 双网卡就可以用了。

2011年4月4日星期一

Jabref in Awesome

I am currently using Awesome as my window manager, and came across a problem in running Jabref - all that would display was a blank grey screen.

Following the FAQ, I installed wmname and ran:

$ wmname LG3D

and Jabref loads fine!

come from : https://awesome.naquadah.org/wiki/Problems_with_Java