로그인 영역

통합 검색
통합 검색

젠투 공식 홈페이지
젠투 공식 한글 번역 문서
부 메뉴
  1. 질문/답변
  2. Tips
  3. 위키(새 창)
  4. 뉴스/새소식
컨텐츠 영역

비장의(?) 레시피!

2012.01.20 16:20

nsys 조회 수:5648

net-setup eth0
passwd
/etc/init.d/sshd start

# putty 등으로 접속

fdisk /dev/sda
mkfs.ext4 -b 4096 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2

# 각자 쓰고싶은대로 고치세요

rdate -s time.bora.net && hwclock --systohc

mount /dev/sda1 /mnt/gentoo
cd /mnt/gentoo
wget http://ftp.lecl.net/pub/gentoo/releases/amd64/current-stage3/stage3-amd64-?.tar.bz2 (항상 최신버전으로..
tar xfjp stage3-amd64-?.tar.bz2
cd /mnt/gentoo/usr/
wget http://ftp.lecl.net/pub/gentoo/releases/snapshots/current/portage-latest.tar.bz2
tar xfjp portage-latest.tar.bz2

cd ..
rm stage3-amd64-?.tar.bz2 usr/portage-latest.tar.bz2

mount -t proc proc /mnt/gentoo/proc
mount --bind /dev /mnt/gentoo/dev

cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

chroot /mnt/gentoo /bin/bash

passwd

nano /etc/make.conf
# INSERT ############################

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CFLAGS="-O2 -mtune=native -pipe -mmmx -msse -msse2 -mssse3"" # 각자 CPU 상황에 맞게 바꾸세요 (native = 알아서 인식, sse등의 옵션은 자동으로 안붙습니다)
CXXFLAGS="${CFLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

CHOST="x86_64-pc-linux-gnu"

# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

GENTOO_MIRRORS="http://ftp.lecl.net/pub/gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ "
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"

MAKE_OPTS="-j5" #코어수 + 1 정도

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"

LINGUAS="ko"

USE="mmx sse sse2 sse3 ssse3 sse4 sse41 sse42" #역시 CPU에 맞게 이 use flag 는 아마 미디어 관련 아님 잘 안쓰일겁니다만.
USE="-ipv6 -gtk -gtk2 -gnome -qt -qt3 -kde -X"
USE="${USE} ssh vim-syntax unicode slang cjk"
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "
USE="${USE} "

#####################################

nano /etc/env.d/02useretc

# INSERT ############################

LANG="ko_KR.UTF-8"
SUPPORTED="ko_KR.UTF-8:ko_KR:ko"

#####################################

nano /etc/fstab
nano /etc/locale.gen

# INSERT ############################

en_US.UTF-8 UTF-8
ko_KR.UTF-8 UTF-8

#####################################

nano /etc/conf.d/hostname
nano /etc/conf.d/net

# INSERT ############################

config_eth0="192.168.0.25 netmask 255.255.255.0 broadcast 192.168.0.255"
routes_eth0="default via 192.168.0.1"

#####################################

cat /proc/mounts > /etc/mtab

env-update && source /etc/profile

emerge --sync
emerge -uDN world
emerge genkernel makedev cpio lvm2 lynx pciutils grub gentoo-sources sysklogd vixie-cron vim unzip unrar gentoolkit rdate sudo

lspci
###########################
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:07.7 System peripheral: VMware Virtual Machine Communication Interface (rev 10)
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
00:11.0 PCI bridge: VMware PCI bridge (rev 02)
00:15.0 PCI bridge: VMware PCI Express Root Port (rev 01)
02:00.0 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
02:02.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
02:03.0 USB Controller: VMware USB2 EHCI Controller
03:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01)
#######################

cd /usr/src/linux

make menuconfig
make && make modules_install

cp System.map /boot/System.map-(kernel version)
cp arch/x86_64/boot/bzImage /boot/kernel-(kernel version)
-- then set grub

eselect rc add net.eth0 default 
eselect rc add sysklogd default 
eselect rc add vixie-cron default 
eselect rc add sshd default 

env-update
etc-update
source /etc/profile

cd /
nano -w /etc/conf.d/hwclock
rdate -s time.bora.net && hwclock --systohc

logout
umount /mnt/gentoo/proc
umount /mnt/gentoo/
reboot