April 13, 2010, 3:21 pm
According to the article “Mounting smbfs Shares Permanently Help File” published on JustLinux by Ray Cowan, we could mount a Windows shared folder automatically using /etc/fstab. There are many discussions about how to do this on the internet. E.g. some people suggest using ~/.bashrc or ~/.bash_profile to fulfill this. But there are not the right solution. Because the mounting should only be done once not more. The essential thing in Ray’s article is one can use options of smbmount command in fstab. The working format looks like
Continue reading ‘Mount Windows shared folders automatically with fstab’ »
April 8, 2010, 12:54 am
To get subversion+apache2 work on Debian is not very difficult. Basically including the following steps (ref: this post): Continue reading ‘Subversion+websvn on Debian’ »
April 7, 2010, 2:08 am
Virtualbox支持客户机和宿主机之间共享目录,但是根据版本不同,会有些问题。例如对于3.1.x版本,windows XP host和Debian guest组合下,VBox自己的共享目录(写入)性能极差甚至报错(本人遇到)。其实,在客户机和宿主机之间共享文件的还有一些其他方式,例如可以通过ftp或samba,二者都支持所有操作系统下的共享,但是相比之下samba更具优点,因为在Windows和Linux下都可以把Samba共享目录映射为本地磁盘目录。
Continue reading ‘通过Samba在VirtualBox的guest和host间共享目录’ »
April 6, 2010, 5:23 pm
After a fresh installation everything seems work fine on my Debian. But for a non-root user, the volume control widget on the gnome desktop shows a little red cross, and there is no sound. It’s good if you hate playing music while you are working. However, in case you want it, there is a simple way. By default there is a group named ‘audio’ on Debian, the users in this group automatically get sound:) Root is of course one of them. If you also want sound, add yourself to that group by ‘adduser yourname audio’ then restart.
March 30, 2010, 11:23 pm
1. apt-get install mpich2 (remove other implementation to prevent trouble)
2. create .mpd.conf file under home dir ~/ , add a line “password=qwert” (replace qwert with any other texts)
3. create a hostfile or machine file (e.g. mpd.hosts) with node names listed one per line. (this file can be in any folder)
4. start mpd. There is a script shipped with mpich2 “mpdboot”. It accept some options. “mpdboot -f mpd.hosts -n #” with #<= number of nodes listed in mpd.hosts file. This command will start mpd on all the nodes if ssh or rsh is set correctly (without password).
5 use mpdtrace to verify the node names (nodes having been added to the mpd ring, ready to be used in the following mpirun calls).
6 mpirun -np N -host node1,node2 ./program (it’s not necessary to use all the nodes in the ring, but some of them is fine)