Linux

VM底下安裝Gentoo 2007

安裝步驟請參考下面網址
http://www.gentoo.tw/doc/handbook/handbook-x86.xml?style=printable&full=1

安裝Coldplug的問題
(chroot) livecd etc # emerge coldplug
Calculating dependencies… done!
!!! Error: the >=sys-fs/udev-089 package conflicts with another package;
!!!        the two packages cannot be installed on the same system together.
!!!        Please use ’emerge –pretend’ to determine blockers.
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
現在UDEV已經內建了,因此不用再安裝了,可以跳過此步驟

genkernel 使用者適用的 grub.conf
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r10
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.12-gentoo-r10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 doscsi
initrd /boot/initramfs-genkernel-x86-2.6.12-gentoo-r10

記住要將/boot/kernel  /boot/initramfs 後面版本的數字改成自己使用版本的數字即可

如何重新進入系統修正錯誤
光碟開機之後
livecd ~ # ls
livecd ~ # mount /dev/sda3 /mnt/gentoo
livecd ~ # mount /dev/sda1 /mnt/gentoo/boot
livecd ~ # mount -t proc none /mnt/gentoo/proc
livecd ~ # mount -o bind /dev /mnt/gentoo/dev
livecd ~ # chroot /mnt/gentoo /bin/bash
livecd / # env-update
>>> Regenerating /etc/ld.so.cache…
livecd / # source /etc/profile
livecd / # export PS1=”(chroot) $PS1″
Apache2無法正常啟動的問題

[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[notice] Digest: generating secret for digest authentication ...
解決方法
# cat /proc/sys/kernel/random/entropy_avail
16
# emerge -va rng-tools
# rc-update add rngd default && /etc/init.d/rngd start
# cat /proc/sys/kernel/random/entropy_avail
6854


用LINE傳送

關於作者

Leo

Leo

喜愛旅遊並沉迷科技應用數十年無法自拔的重度 3C 上癮者!

發表評論