Category Archives: script

/etc/udev/rules.d/70-persistent-net.rules makes network unavailable

After launching a VM, sometimes network becomes unavailable until you manually remove [root@j3ffyang~]# rm -fr /etc/udev/rules.d/70-persistent-net.rules The workaround is to stop generating this rule mv /lib/udev/rules.d/75-persistent-net-generator.rules /tmp To process this in batch for i in `cat /tmp/allnode.lst | awk ‘{print … Continue reading

Posted in linux, opensource, script, shell, virtualization | Tagged , , , | Comments Off on /etc/udev/rules.d/70-persistent-net.rules makes network unavailable

Install Microsoft TrueType Font on Fedora 16 64bit

wget “http://blog.andreas-haerter.com/_export/code/2011/07/01/install-msttcorefonts-fedora.sh?codeblock=1” -O “/tmp/install-msttcorefonts-fedora.sh” chmod a+rx “/tmp/install-msttcorefonts-fedora.sh” su -c “/tmp/install-msttcorefonts-fedora.sh”

Posted in linux, opensource, script, shell | Tagged , , | Comments Off on Install Microsoft TrueType Font on Fedora 16 64bit

Linux Command Test to New Hire @ Company :)

I was asked by my manager & team to compose a tiny test of Linux command line for new hire @ development. Share it here: ssh -X: what does “-X” mean? Answer: enable X-window forward over SSH on port 22 … Continue reading

Posted in fun, linux, opensource, script, security, shell | Tagged , , , , , , | Comments Off on Linux Command Test to New Hire @ Company :)

What does the string @ site subject mean?

91d437f0fb56cfb5b64de81b60bd6738 -> $ echo “a man on linux” | openssl dgst or $ echo “a man on linux” | md5sum

Posted in fun, linux, opensource, script, security, shell | Tagged , , , , , | Comments Off on What does the string @ site subject mean?

Disable Update Manager Auto-launch in Ubuntu

Disable in gconf-editor Or in command line: To disable > gconftool -s –type bool /apps/update-notifier/auto_launch false To enable > gconftool -s –type bool /apps/update-notifier/auto_launch true

Posted in linux, opensource, script, shell | Tagged , , | Comments Off on Disable Update Manager Auto-launch in Ubuntu

Use tcpdump for traffic analysis

Source: http://blogs.techrepublic.com.com/…1 Author: Chad Perrin The tcpdump tool is an old mainstay of network debugging and security monitoring, and security experts all over the world swear by its usefulness. It is a command line tool that eschews all the makeup … Continue reading

Posted in opensource, script, shell | Tagged , , , , | Comments Off on Use tcpdump for traffic analysis