Arsip untuk Maret, 2007|Halaman arsip bulanan
Fancy Colorful Shell
Back in the past when I was in college in Fasilkom University of Indonesia. Most of my friends and I were used to play with Linux shell and its color feature to make shell more fun and enjoyable. I think I’ve already forgot how to make my shell colorful until I goggled and summarized from many sources how to make basic shell information colorful:
Try this:
- Do all of this as root
- Put this script Revision of Color Script to /root/script/color (or anything as you wish) and make sure it is executable by every users (chmod o+x /path/to/the/script)
- Include the file in your home $HOME/.bashrc by doing the following action
- Comment all lines containing “PS1=…”. For example # PS1=’${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
- Put “source /root/script/color” below it (or for global affect, put it on /etc/bash.bashrc)
- Now, re-login!
Inconsistent NIC Identification
I hate when I found my Linux server changed the name of its cards. For example yesterday I found eth0 was mapped to the first card, but today (after the computer is rebooted) I found eth0 was mapped to the second card. Inconsistent!!!
I found tutorial that really works here . This is my conclusion:
You should make the mapping fixed. Please download wireless-tools package and edit manually the /etc/iftab file. The file contains mapping from a card name to its mac address (you can know it by executing “ip link show” from iproute package). Mac address is unique in our world. So don’t worry.
This are some examples of configuration of /etc/iftab file:
eth0 mac 00:12:17:90:88:3f arp 1
eth1 mac 00:90:22:fd:48:34 arp 1
Komentar (7)