Tim's Blog
Thursday, September 01, 2011
Speedup KVM disk access
http://arstechnica.com/civis/viewtopic.php?f=16&t=1143694
virsh -c qemu:///system edit devubuntu
change from
<
driver name='qemu' type='raw'/>
to
<
driver name='qemu' type='raw'
cache='none'
/>
找出所有行尾含有空白字元的檔案
find . -name *.[ch] | xargs egrep -l "[[:space:]]+$"
Friday, May 06, 2011
Flush Disk Cache
sync; echo 3 > /proc/sys/vm/drop_caches
NFS client
$ sudo apt-get install nfs-common
$ showmount -e 192.168.63.1
Export list for 192.168.63.1:
/tvixhd1 (everyone)
/tvixhd2 (everyone)
/tvixhd3 (everyone)
/tvixhd4 (everyone)
$ mkdir qq
$ sudo mount -t nfs 192.168.63.1:/tvixhd1 qq
Windows 上的免費 NFS server
Here is a list of free NFS server for Windows:
http://www.serassio.it/download/download.htm
http://sourceforge.net/projects/winnfsd/
http://sourceforge.net/projects/sossnt/
Friday, April 01, 2011
免安裝 dos2unix 就可以達到一樣的效果
cat orig_file | col -b > new_file
tr -d "\015" < orig_file > new_file
你說那 unix2dos 呢?
對不起,沒有這種需要。
Install telnetd
如果只是為了要開發用,在 virtual machine 上裝 SSH server 實在是有點浪費 CPU,因為中間的連線都是在本機上,卻還要做不必要的 encryption/decryption。
可以只裝 telnetd 就好了,像這樣:
sudo apt-get install telnetd
sudo /etc/init.d/openbsd-inetd start
然後就可以 telnet 進去了,心裡上會快一點。
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)