Category Archives: shell

/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 Android Tools on Fedora 19

Install the package sudo yum install android-tools Edit /etc/udev/rules.d/51-android.rules SUBSYSTEM==”usb”, ATTR{idVendor}==”04e8″, MODE=”0666″, GROUP=”plugdev” PS. 04e8 refers to Samsung device. For other vendors’ device, go to http://developer.android.com/tools/device.html#VendorIds Change the permission sudo chmod a+r /etc/udev/rules.d/51-android.rules To check the attached device [jeff@fedora19 rules.d]$ adb … Continue reading

Posted in android, linux, shell | Tagged , , | Comments Off on Install Android Tools on Fedora 19

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

How to Remove “Recent Item” @ Gnome-Shell?

Option 1 rm -fr ~/.local/share/recently-used.xbel touch ~/.local/share/recently-used.xbel chmod ugo-wr ~/.local/share/recently-used.xbel sudo chattr +i ~/.local/share/recently-used.xbel Option 2 rm -fr ~/.local/share/recently-used.xbel mkdir ~/.local/share/recently-used.xbel

Posted in linux, opensource, shell | Tagged , , , , , | Comments Off on How to Remove “Recent Item” @ Gnome-Shell?

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