Chapter 13 . Running Gentoo Linux 395 22. Set the time zone. Use the following command: # ln -sf /usr/share/zoneinfo/path /etc/localtime You need to replace path with the path to the file that represents the time zone your computer is in. For example, the entire path for Central time in the United States is /usr/share/zoneinfo/US/Central. 23. Create file system table. Add the file systems you want to mount automatically at boot time to your /etc/fstab file. Here s an example: # nano -w /etc/fstab Here s what /etc/fstab might look like (given the partitions created earlier in this example procedure): # /dev/hda1 /boot ext2 noauto,noatime 1 2 /dev/hda2 none swap sw 0 0 /dev/hda3 / reiserfs noatime 0 1 /dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 24. Build kernel. Either install a prebuilt kernel or build one yourself. To build one, you need a kernel sources package (gentoo-sources is recommended). Type the emerge command as follows to get the gentoo-sources package: # emerge gentoo-sources Next, use the following command to get the genkernel package and configure a kernel using menuconfig: # emerge genkernel # genkernel –menuconfig all After you have made any changes you want to your kernel configuration, select Exit, and then choose Yes to save it. At this point, genkernel makes your new kernel. This takes a while. Configuring your own kernel can be quite tricky at first. If you run into problems, refer to the Gentoo Linux Handbook (www.gentoo.org/doc/en/handbook/ handbook-x86.xml). Select Section 7, Configuring the Kernel, for further information. After genkernel is complete, note the names of the kernel and boot loader. (Type ls /boot to see names that are similar to initramfs-genkernel-x86-2.6.13- gentoo-r3 and kernel-genkernel-x86-2.6.13-gentoo-r3.) 25. Add coldplug. Type the following to enable coldplug (so hardware outside of that which is detected during initialization is detected and configured automatically): # emerge coldplug # rc-update add coldplug boot Note
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.
This entry was posted
on Wednesday, December 19th, 2007 at 3:08 am and is filed under J2EE.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.