在使用 預先製作好的 VM檔案時,
內部配置有一張bridge 一張NAT 網卡,外面有dhcp server 會分發 ip 。
開了一陣子發現, 外面連不進去dhcp的那個 ip了,直覺先 /etc/init.d/networking restart 一下,
出現了 "failed to bring up eth0 " in Ubuntu
之後,會使用 ifconifig 看看是不是 dev 的name改變了,發現也沒有變動。
本來以為是,之前bind 的mac ,跟現在不一樣了 dhcp 才不能動,
改去 /etc/udev/rules.d/ check 一下 network 那個 file 。
發現並沒有產生這個file。
公告版位
目前分類:Ubuntu (17)
- Oct 31 Thu 2013 10:59
[Linux] failed to bring up eth0 in Ubuntu
- May 15 Wed 2013 15:08
[linux][ubuntu] remove icon from panel
在上方panel icon上按 windowskey+alt就會出現 remove
How to remove and move icons on the panels of Ubuntu 12.04 in Gnome Classic ~ Linux and Life
http://www.linuxandlife.com/2012/05/how-to-remove-and-move-icons-on-panels.html
- Nov 05 Mon 2012 14:23
[ubuntu]W: Duplicate sources.list entry
W: Duplicate sources.list entry
cd /etc/apt/sources.list.d
rm some file
- Oct 12 Fri 2012 10:00
[ubuntu]python easy install
How to install python easy_install tools for ubuntu
setuptools 0.6c11 : Python Package Index
http://pypi.python.org/pypi/setuptools
# apt-get install python-setuptools python-dev
- Sep 19 Wed 2012 15:20
[ubuntu] install oracle-java 12.04
# add-apt-repository ppa:webupd8team/java
# apt-get update
# apt-get install oracle-java7-installer
- Jun 18 Sat 2011 02:10
[Ubuntu]裝好系統的的第一件事情 apt-get update /etc/apt/sources.list
好久沒有寫這個系列,都發覺不會用了。
[Ubuntu]
裝好系統的的第一件事情 apt-get update
不過還是要先察看
/etc/apt/sources.list
- Nov 16 Mon 2009 01:32
lib/libf2c.so: undefined reference to `MAIN__'
ok, just link with the static library "libf2c.a"
sudo rm /usr/lib/libf2c.so && sudo ln -s /usr/lib/libf2c.a /usr/lib/libf2c.so
http://byeworld.blogspot.com/2009/01/libf2cso-undefined-reference-to-main.html
- Aug 20 Thu 2009 21:10
[Ubuntu]設定static ip 更改mac
vi /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth1 inet static
pre-up ifconfig eth1 hw ether 你要更改的MAC
address 固定ip
netmask 255.255.255.0
- Feb 26 Tue 2008 23:53
[Ubuntu]hdparm 參數 硬碟速度
root@pc-desktop:/home/bbs/bin# hdparm -Tt /dev/sdb
/dev/sdb:
Timing cached reads: 844 MB in 2.00 seconds = 422.02 MB/sec
Timing buffered disk reads: 40 MB in 3.00 seconds = 13.33 MB/sec
root@pc-desktop:/home/bbs/bin# hdparm -Tt /dev/sda
/dev/sda:
- Feb 25 Mon 2008 20:56
[Ubuntu]逼逼聲之二
在之後還有逼逼叫的程式是pcmanX
只要在有人丟水球他就會逼逼叫
只要在程式碼
找到 gdk_beep 這行 刪掉即可
但是在使用gcin打錯字的時候還是會有逼逼聲
- Feb 25 Mon 2008 15:32
[Ubuntu]逼逼聲
之前
把Ubutu裝在我的桌機上
可是卻都會在某些時候某些錯誤情形
發出逼逼的聲音 (硬體的聲音)
到了宿舍反而覺得滿吵的
所以今天找到了關掉它的方法
- Feb 16 Sat 2008 19:56
[Ubuntu]燒錄DVD K3B fail log
System
-----------------------
K3b Version: 1.0.3
KDE Version: 3.5.8
QT Version: 3.3.7
Kernel: 2.6.22-14-generic
Devices
-----------------------
DVDRW IDE 16X A190 (/dev/scd0, ) [CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+R DL] [DVD-ROM, DVD-R 序列, DVD-RW 限制覆寫, DVD-RW 序列, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO (Track at Once), RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite]
- Feb 10 Sun 2008 18:08
[ubuntu] 開發C 出現 error: stdio.h: No such file or directory
因為要開發c
下 gcc test.c
出現 error: stdio.h: No such file or directory
是缺少了Development Libraries and Header Files
libc6-dev - GNU C Library: Development Libraries and Header Files
- Feb 09 Sat 2008 01:23
[ubuntu]安裝IEs 4 Linux
安裝IEs 4 Linux
先安裝 wine apt-get install wine
cabextract - a program to extract Microsoft Cabinet files
apt-get install cabextract
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
- Feb 07 Thu 2008 00:37
[Ubuntu]用xine 看avi
因為想用Ubuntu 看美劇chuck
可是裝了xbuntu 之後不知道就為什麼不能放avi了
播放器都會出現不支援XviD
我使用 xine base 的Totem Player
找到之前xine需要安裝 額外的codecs
- Jan 31 Thu 2008 00:10
[Ubuntu]ssh MySQL Apache php
ssh
apt-get install ssh
有別於gentoo 上的sshd
/etc/init.d/ssh start
MySQL
- Jan 29 Tue 2008 22:05
[ubuntu] Java 環境
真的真的只要一行
sudo apt-get install sun-java6-jdk
java 環境就好了