이 블로그 검색

일요일, 2월 26, 2012

Gentoo Linux Installation

#cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 95
model name      : AMD Athlon(tm) 64 Processor 3800+
stepping        : 2
cpu MHz         : 2410.835
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow up rep_good nopl extd_apicid pni cx16 lahf_lm svm extapic cr8_legacy
bogomips        : 4821.67
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

#ifconfig eth1 125.241.101.20 netmask 255.255.255.128 up
#route add default gw 125.241.101.1
#echo nameserver 168.126.63.1 > /etc/resolv.conf
#ping -c 3 168.126.63.1 


#fdisk /dev/sda                                   ;fdisk -l /dev/sda                     ; recommended layout 
/dev/sda1 *          /boot
/dev/sda2           swap
/dev/sda3            extended
/dev/sda5            /
/dev/sda6            /home


#mkfs.ext2 /dev/sda1              ; mke2fs -j /dev/sda1                 ; ext3 filesystem 
#mkfs.ext3 /dev/sda5              ;mke2fs -j /dev/sda3
#mkfs.ext3 /dev/sda6
#mkswap /dev/sda2
#swapon /dev/sda2


#mount /dev/sda5   /mnt/gentoo
#mkdir /mnt/gentoo/boot
#mount /dev/sda1   /mnt/gentoo/boot
#mount /dev/sda6 /mnt/gentoo/home

#cd /mnt/gentoo
release -> find latest tarball source
#tar fvxjp stage-latest*
#cd usr
snapshot  ->find latest tarball source
#tar fvxj portage-latest*

#cd /mnt/gentoo
#echo "MAKEOPTS=/'-j2/'" >> /mnt/gentoo/etc/make.conf     ;-j# ;# is a number of CPU + 1

#mirrorselect -i -o >> /mnt/gentoo/etc/make.conf    ;when you face errors on this, add "GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ " "
#cp -L /etc/resolv.conf /mnt/gentoo/etc/ 
#mount -t proc proc /mnt/gentoo/proc   ; mount -t proc none /mnt/gentoo/proc 
#mount -o bind /dev /mnt/gentoo/dev    ; mount -t rbind /dev /mnt/gentoo/dev 

#chroot /mnt/gentoo /bin/bash
#env-update                                   ;/mnt/gentoo -> /
>>Regenerating /etc/ld.so.cache...
#source /etc/profile
#export PS1="(chroot) $PS1"             ;not important. you can skip this.

#emerge --sync                          ;Update Portage Tree

@USE setting
USE="gtk -gnome minimal kde qt3 qt4 cdr dvd alsa lock injection kernel_linux"
USE="ctype mysql mysqli"
@Kernel compiling
#emerge gentoo-sources
#emerge genkernel
#emerge gentoolkit
#genkernel --menuconfig all   ; set kernel configuration and build bzImage and Initramfs, etc


#ls /boot/kernel*  /boot/initramfs*
@filesystem 정보 수정
#nano -w /etc/fstab
/dev/sda1       /boot           ext3          defaults,noatime   1  2
/dev/sda2       none            swap        sw                     0  0
/dev/sda3       /                 ext3          noatime               0  1
@filesystem 정보 수정
#nano -w /etc/fstab
/dev/sda1       /boot           ext3          defaults,noatime   1  2
/dev/sda2       none            swap        sw                     0  0
/dev/sda3       /                 ext3          noatime               0  1
작성자 정티처
@filesystem 
#nano -w /etc/fstab
/dev/sda1       /boot           ext3          defaults,noatime   1  2
/dev/sda2       none            swap        sw                     0  0
/dev/sda3       /                 ext3          noatime               0  1
#nano -w /etc/conf.d/net
config_eth1=("172.30.1.9 netmask 255.255.255.0 brd 172.30.1.255")
routes_eth0=("default via 172.30.1.254")
#cd /etc/init.d
#rc-update add net.eth0 default
@set up root passwd
#passwd
@grub setting
#emerge grub
#emerge vim
#vi /boot/grub/grub.conf
default 0
timeout 20
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.24-r3
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.2.1-gentoo-r2 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda5 
initrd  /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2
#grep -v rootfs  /proc/mounts > /etc/mtab
#grub-install --no-floppy  /dev/sda
@Finalizing
#init 6     ;rebooting
@ Next is going to be xorg and kde



[출      처]   
###chroot /mnt/gentoo /bin/bash
#env-update                                   ;/mnt/gentoo 를 / 로 작업합니다. 설치가 성공하면 그대로 / 가 마운트됩니다.
>>Regenerating /etc/ld.so.cache...
#source /etc/profile
#export PS1="(chroot) $PS1"             ;이건 안해도 되는데 루트환경이 헷갈릴 수 있어서 설정하는것 같습니다.

#emerge --sync                          ;P


chroot /mnt/gentoo /bin/bash
#env-update                                   ;/mnt/gentoo 를 / 로 작업합니다. 설치가 성공하면 그대로 / 가 마운트됩니다.
>>Regenerating /etc/ld.so.cache...
#source /etc/profile
#export PS1="(chroot) $PS1"             ;이건 안해도 되는데 루트환경이 헷갈릴 수 있어서 설정하는것 같습니다.

#emerge --sync                          ;P


/mnt/gentoo /bin/bash
#env-update                                   ;/mnt/gentoo 를 / 로 작업합니다. 설치가 성공하면 그대로 / 가 마운트됩니다.
>>Regenerating /etc/ld.so.cache...
#source /etc/profile
#export PS1="(chroot) $PS1"             ;이건 안해도 되는데 루트환경이 헷갈릴 수 있어서 설정하는것 같습니다.

#emerge --sync                          ;P







댓글 없음:

댓글 쓰기