EvoTalk

Posts Tagged ‘ip

設定 IP
> vim /etc/network/interfaces ,內容
auto eth0
iface eth0 inet static
address 10.129.6.243
netmask 255.255.255.0
gateway 10.129.6.254若是 dhcp
auth eth0
iface eth0 inet dhcp
設定 DNS
> vim /etc/resolv.conf ,內容
nameserver 168.95.1.1
nameserver 168.95.192.1
重啟網路服務
> /etc/init.d/networking restart
安裝 c runtime library
ubuntu8.04 預設沒安裝 glic,所以編譯 c 程式時找不到標準 c 的 include file
> sudo  apt-get install libc6-dev
安裝 g++
> sudo apt-get install build-essential
安裝 samba
> sudo apt-get install samba
> sudo /etc/init.d/samba stop
> sudo vim /etc/samba/smb.conf
[share]
path=/home/gary/umpc
browseable [...]

Tags: , ,

每換到不同的環境都要重設一次 ip,用 vmware 4.5 虛擬 linux 下啟動 dhcp 每次都出現下列錯誤訊息
Determining IP information for eth0… failed; no link parent. Check cable? [FAILED]
解法方法
加入下面的函式到 /etc/sysconfig/network-scripts/ifcfg-eth0
function check_link_down() { return 1; }

Tags:


  • BK: 大於和小於在今日更廣泛地使用於標籤上,故在此補充該英文用法: : angle bracket []: square bracket
  • luh1688: 非常實用且謝謝!~
  • asd: 好的,不過很久沒修改了,不知道能不能動 寄到您的yahoo信箱
  • LIANG: nice post, thank you
  • Justmaker: 您好,請問可以跟你要source嗎?我最近有在看股票,想要enhance您的小工具,不知是否可以開放?

Category