2010年3月24日 星期三

[ubuntu] 加新網卡

ubnutu 增加新網卡後似乎不會自動啟動

所以要手動更改

1.用 dmesg | grep eth 找出網卡

mar@ubuntu-hadoop:~$ dmesg | grep eth
[ 2.013388] eth0: registered as PCnet/FAST III 79C973

2.修改 /etc/network/interfaces ,加入
auto eth0
iface eth0 inet dhcp
以上是 dhcp 的設定法, 如果要指定網路位置的話要設
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254

3.重啟網路
sudo /etc/init.d/networking restart

這樣就可以囉 ...

2010年1月6日 星期三

[軟工]C# 中更改資料庫連線的位置

在 C# 中通常會連結 database 做為資料的來源
但是在時光流逝後, 原本的database若改名或變更位置了
在 GUI 介面找不到更改的方式的
這時就要到 setting.setting 中, 把字串內的值改掉就可以了

最後....要記得把程式關掉再重開