2009/12/30

Copy directories on FreeBSD!

Having no idea abt how to copy the folders!?

Try below:


cp -iprv /source /dist

i -> Interactive. Will prompt you if overwriting files.
p
-> Preserve file attributes like date, time, etc.
r
-> Recursive. Will also copy subdirectories.
v
-> Verbose. Will show each file as it is copied.

2009/12/10

Install JVM on Ubuntu

Use apt-get!! (That really DOES make your life easier.)

1. install jre
sudo apt-get install sun-java6-jre

2. install jdk
sudo apt-get install sun-java6-jdk

3. select default JVM
sudo update-alternatives --config java

DONE!!

2009/11/27

Solution to Failure in Building a FreeBSD Custom Kernel!

So at that day I failed in building the kernel. After consulting the FreeBSD handbook, I got the solution. Here is simply the note:

1. Since I could not boot from my new kernel, the computer failed recognizing my boot devices.

2. Reboot the computer! Choose " Escape to a loader prompt from the system boot menu.

3. Type "unload kernel" to unload the bad kernel.

4. After that, continue on typing "boot /boot/kernel.old/kernel". The directory locates the last time "ok" booted kernel.

5. Successfully booted! Then go checking what's wrong and keep building & compiling a new kernel!

That's all for the solution!

REF. [http://www.freebsd.org/doc/en/books/handbook/kernelconfig-trouble.html]