Archive for opensource

How to Remove “Recent Item” @ Gnome-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

Comments off

Install Gnome3 on Ubuntu Natty 11.04

  1. sudo add-apt-repository ppa:gnome3-team/gnome3
  2. sudo apt-get update
  3. sudo apt-get dist-upgrade
  4. sudo apt-get install gnome-shell

Uninstall repository

  1. sudo apt-get install ppa-purge
  2. sudo ppa-purge ppa:gnome3-team/gnome3

Comments off

Create Fedora 15 Bootable USB on Ubuntu Natty

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:

  1. Download Fedora 15 ISO certainly
  2. Double click the ISO file, then copy the file LiveOS/livecd-iso-to-disk from the ISO to wherever you want
  3. sudo apt-get install syslinux (if you don’t have it)
  4. Format the USB, eg /dev/sdc1
  5. sudo ./livecd-iso-to-disk –overlay-size-mb 512 /path/Fedora-15-i686-Live-Desktop.iso /dev/sdc1

Comments off

Apply VirtIO for KVM over KVM (Day 2)

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
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/…Installing_the_KVM_Windows_para_virtualized_drivers

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.

Comments off

Apply VirtIO for KVM over KVM (Day 1)

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.

Searching @ RHEL KVM doc >
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-KVM_restrictions_and_support.html

It reads Windows 2003 32 or 64bit is supported as fully virtualized guest on RHEL5, but requires “optimized with para- virtualized drivers”

To install para- virtualized driver is detailed @

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-KVM_Para_virtualized_Drivers.html#sect-Virtualization-KVM_Para_virtualized_Drivers-Installing_the_KVM_Windows_para_virtualized_drivers

Additional info on KVM limitation
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/sect-Virtualization-Virtualization_limitations-KVM_limitations.html

We’d consider to apply this. It should fix the performance issue.

If CentOS5.5 is installed, the similar solution > http://www.centos.org/modules/newbb/viewtopic.php?topic_id=23513&forum=37
mkinitrd –with virtio_pci –with virtio_blk —with virtio -f /boot/initrd-$(uname -r) $(uname -r )

Comments off

VPNC Android GUI Package

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.

Comments off

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:

  1. ssh -X: what does “-X” mean?
    Answer: enable X-window forward over SSH on port 22
  2. What is “authorized_keys2“? What does 2 mean”? Where is it supposed to stay?
    Answer: enable passwordless login in SSH2 protocol in ~/.ssh/
  3. What is “createrepo Server
    Answer: to create a YUM repository in directory of “Server”
  4. How can I know detailed launched kernel in Unix?
    Answer: uname -a
  5. How can I know whether KVM package installed in Redhat and Ubuntu?
    Answer: rpm -qa | grep -i kvm and dpkg -l | grep -i kvm
  6. 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″.
  7. 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
  8. 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.
  9. 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
  10. 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
  11. What is “iptables -L -n -v?
    Answer: to list (-L) firewall rules in selected chaim in iptables. -n = in numberic, -v = verbose
  12. How can I check default installed java info?
    Answer: java -fullversion
  13. How can I know default java home setting?
    Answer: echo $JAVA_HOME
  14. What is result of “lslpp -l bos.rte.libc” on AIX?
    Answer: rte = runtime environment. To tell runtime libc version, aka AIX version.
  15. What does “chkconfig xinetd off” mean?
    Answer: to disable xinetd daemon from all runlevels.
  16. What is “sysctl -w net.ipv4.ip_forward =’1′“?
    Answer: turn on IP_forward in system control. Take effective immediately without reboot.
  17. 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.
  18. 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
  19. What is “echo 0 > /selinux/enforce“?
    Answer: temporarily disable Security Enhancement Linux
  20. What is “/etc/init.d/iptables status“?
    Answer: to check iptables (firewall) running status.

Comments off

« Previous entries Next Page » Next Page »