December 5, 2011 at 9:06 am
· Filed under linux, opensource, shell
- 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
Permalink
July 16, 2011 at 4:53 pm
· Filed under linux, opensource
- sudo add-apt-repository ppa:gnome3-team/gnome3
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo apt-get install gnome-shell
Uninstall repository
- sudo apt-get install ppa-purge
- sudo ppa-purge ppa:gnome3-team/gnome3
Permalink
July 16, 2011 at 4:49 pm
· Filed under opensource
Struggled unstable Gnome3 on Ubuntu Natty for a while, then decided to try Fedora 15 which has default Gnome3. Now I need to create a Fedora 15 bootable USB on Ubuntu Natty. Here are steps:
- Download Fedora 15 ISO certainly
- Double click the ISO file, then copy the file LiveOS/livecd-iso-to-disk from the ISO to wherever you want
- sudo apt-get install syslinux (if you don’t have it)
- Format the USB, eg /dev/sdc1
- sudo ./livecd-iso-to-disk –overlay-size-mb 512 /path/Fedora-15-i686-Live-Desktop.iso /dev/sdc1
Permalink
January 31, 2011 at 7:07 pm
· Filed under cloud, hypervisor, kvm, linux, opensource, virtualization
I talked w/ David Ke Zhu @ dev team and confirmed that VirtIO is a mandatory plugin driver to apply in order to improve the IO performance of disk + network. HSLT depends on this driver. (Thanks to David).
Good > the install step is simple on host OS. Bad > all Windows VM need patched as well! (not Linux VM)
Apply the latest kernel on host OS. Supposed >= 2.6.31 and latest KVM associating to such level of kernel
Download virtio-win.iso package from supplemental disc
Install package onto Windows VM @ step: Procedure 12.1. Using virt-manager to mount a CD-ROM image for a Windows guest -> this step should update VM xml conf with appropriate param needed before VM system boot.
I can bet this would fix the issue as The virtio-win package contains the para-virtualized block and network drivers for all supported Windows guests.
Permalink
January 31, 2011 at 6:45 pm
· Filed under cloud, linux, opensource, virtualization
We received a complaint regarding KVM performance issue today. Customer reports the performance is poor when copying files from native bare- metal Windows box to Windows 2003 VM created over KVM on CentOS 5.5 host box.
Permalink
December 18, 2010 at 7:49 am
· Filed under android, linux, opensource, security
Credit: http://ubergeeky.com/blog/167-vpnc-android-gui-package
Forget my post about running VPNC from the G1 terminal. Wmealing has just released the Android package that does it all in GUI form. Grab the get-a-robot-vpnc package now.
Not much to add, except “oh the awesome!”. Here’s a little screen shot of the add connection GUI…

If you have trouble figuring out what to enter into those fields, check out my old get-a-robot-vpnc post for some hints.
Permalink
September 26, 2010 at 8:08 pm
· Filed under fun, linux, opensource, script, security, shell
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
- What is “authorized_keys2“? What does 2 mean”? Where is it supposed to stay?
Answer: enable passwordless login in SSH2 protocol in ~/.ssh/
- What is “createrepo Server”
Answer: to create a YUM repository in directory of “Server”
- How can I know detailed launched kernel in Unix?
Answer: uname -a
- How can I know whether KVM package installed in Redhat and Ubuntu?
Answer: rpm -qa | grep -i kvm and dpkg -l | grep -i kvm
- What does “lvcreate -L5G -n redhat VolGroup00” mean?
Answer: to create/ new a logical volume (lv) in 5G size, named “redhat”, on top of volume group (vg) named “VolGroup00″.
- What does “set -o vi” mean? Where could it be run?
Answer: to set vi editing mode in shell. Either in a BaSH shell or put it in bottom of /etc/bashrc for login shell
- What difference between “rpm -Uvh PACKAGE_NAME” and “yum install PACKAGE_NAME”
Answer: rpm one = install specific & particular rpm package named PACKAGE_NAME. yum install = install rpm package named PACAGE_NAME, and with associating dependent package(s) from repo.
- What is “yum install kvm libvirt virt-manager“? What purpose of such command?
Answer: to install kvm libvirt virt-manager packages. To install/ enable Kernel- based Virtual Machine in Linux
- What does “gpg –output doc.gpg –encrypt –recipient blake@domain.org doc” mean?
Answer: to encrypt “doc” file, by using public key of blake@domain.org, then output result into doc.gpg
- What is “iptables -L -n -v?
Answer: to list (-L) firewall rules in selected chaim in iptables. -n = in numberic, -v = verbose
- How can I check default installed java info?
Answer: java -fullversion
- How can I know default java home setting?
Answer: echo $JAVA_HOME
- What is result of “lslpp -l bos.rte.libc” on AIX?
Answer: rte = runtime environment. To tell runtime libc version, aka AIX version.
- What does “chkconfig xinetd off” mean?
Answer: to disable xinetd daemon from all runlevels.
- What is “sysctl -w net.ipv4.ip_forward =’1′“?
Answer: turn on IP_forward in system control. Take effective immediately without reboot.
- What is “tcpdump -i eth1 ‘proto UDP and (port not 53)’“?
Answer: to capture all UDP traffic packet, but besides on port 53, in tcpdump.
- Describe the following block in httpd.conf?
<virtualhost *:80>
ServerName smallblue4.watson.ibm.com
Redirect / http://spirit125.watson.ibm.com/smallblue
</virtualhost>
Answer: redirect all http traffic hitting smallblue4.watson.ibm.com over port 80 to spirit123.watson.ibm.com/smallblue
- What is “echo 0 > /selinux/enforce“?
Answer: temporarily disable Security Enhancement Linux
- What is “/etc/init.d/iptables status“?
Answer: to check iptables (firewall) running status.
Permalink