Skip to main content

Change eth0 to another name

To rename network interface name (e.g. eth0) as another name (e.g. lan0), edit file called 70-persistent-net.rules. And, will be look like this:



Change NAME="eth0" to "lan0", and then reboot your server.

Comments

Post a Comment

Popular posts from this blog

Notes: about de novo assembly

De novo assembly [SFG standford]: http://sfg.stanford.edu/denovo.html A combined approach for de novo dna sequence assembly of very short reads (IPSJ transaction on Bioinformatics): https://www.jstage.jst.go.jp/article/ipsjtbio/4/0/4_0_21/_article to be continued...

Shrink LVM without data loss

assume we have 3 logical volume: lv1 40GB, lv2 8GB, lv3 200GB in volume group called data . we want to resize lv3 become 180GB. here is the steps: booting to single mode enter init 1 (type: init 1) umount logical volume that you want to resize, e.g. umount /dev/data/lv3 check the filesystem: e2fsck -f /dev/data/lv3 resize the filesystem: resize2fs -p /dev/data/lv3 180G lvreduce -L -20G /dev/data/lv3 Ref: askubuntu.com

BUG: system-config-firewall-tui won't start in Centos 6.6

As reported in BUG 1123919 in Red Hat Bugzilla, system-config-firewall-tui (text user interface to configure firewall in RH family) also won't start in Centos 6.6 (complaining about python module): # system-config-firewall-tui Traceback (most recent call last): File "/usr/bin/system-config-firewall-tui", line 29, in <module> import fw_tui File "/usr/share/system-config-firewall/fw_tui.py", line 34, in <module> import fw_nm ImportError: No module named fw_nm  And, here is easy way to fix this bug: Install system-config-firewall yum -y install system-config-firewall copy file started with fw_n from /usr/share/system-config-firewall to temporary location (we use our home dir) cp /usr/share/system-config-firewall/fw_n* ~ Remove system-config-firewall yum -y remove system-config-firewall Move file started with  fw_n back to /usr/share/system-config-firewall mv fw_n* /usr/share/system-config-firewall/ ...