Example:
xxx = ..... something
msg = xxx if xxx else "hello world"
or better:
msg = xxx or "hello world"
Thursday, December 13, 2012
Saturday, December 8, 2012
Install Archlinux on KVM, and ssh to play with it
Today, I've installed Archlinux on KVM virtual machine. I tried do it some times before but never done because the feeling something will be complicated with format HDD / config anything by hand. The truth is, it's nothing more than learn some simple command.
create a virtual machine and install archlinux on it:
root@lappy: ~ # virt-install --connect qemu:///system --name archfirst --ram 512 --disk path=~/archfirst.img,size=8 --cdrom=/home/hvn/Downloads/archlinux-2012.08.04-dual.iso
create a virtual machine and install archlinux on it:
root@lappy: ~ # virt-install --connect qemu:///system --name archfirst --ram 512 --disk path=~/archfirst.img,size=8 --cdrom=/home/hvn/Downloads/archlinux-2012.08.04-dual.iso
Subscribe to:
Posts (Atom)