Thursday, April 30, 2009

ubuntu notes - connect to nfs share folder

I have installed ubuntu 8.04, here is the command to connect to nfs share folder of my FC5.
sudo apt-get install portmap nfs-common
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-common restart
sudo mount -t nfs 192.168.0.9:/tftpboot /mnt -o nolock

Wednesday, April 29, 2009

android notes

To develop on android, I need open four consoles at least:
1. one console to show the log -- ``$ adb logcat''.
2. one console to run the emulator -- ``$ emulator -sdcard sd.img -avd qslavd''.
3. A third console to build the source code, and install the package:

$ ant debug
$ adb install -r .\bin\foo-debug.apk
$ adb push your\file /sdcard

4. A vim gui/console to edit source code

Monday, April 27, 2009

chown and chgrp

When use ``ls -l'' command it shows the owner and group of the directory.

markc@ubuntu-vm:/opt $ls -la
total 16
drwxr-xr-x 4 root root 4096 2009-04-27 11:04 .
drwxr-xr-x 25 root root 4096 2009-02-18 11:04 ..
drwxr-xr-x 7 root root 4096 2008-08-08 11:04 alp-dev
drwxr-xr-x 2 markc markc 4096 2009-04-27 11:04 work
^ ^
| |
chown chgrp


Here is the command (so I don't have to google it again) to change the directory "work"'s owner and group.


$ sudo chown markc work
$ sudo chgrp markc work

Thursday, April 2, 2009

fedora 10 - remove pulseaudio

The only problem with Fedora 10 I have is I have to remove pulseaudio, I am not sure when I installed it, but it cause the player no sound.

$ sudo yum remove pulseaudio