로그인 영역

통합 검색
통합 검색

젠투 공식 홈페이지
젠투 공식 한글 번역 문서
부 메뉴
  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
번호 제목 글쓴이 날짜 조회 수
31 유동 IP에서 DNS 서버 운영하기 - 4. 공유기 사용시 팁 미니샤 2011.08.21 5139
30 유동 IP에서 DNS 서버 운영하기 - 3. BIND 설정하기 미니샤 2011.08.21 5372
29 유동 IP에서 DNS 서버 운영하기 - 2. DDNS 서비스 이용하기 미니샤 2011.08.21 22197
28 유동 IP에서 DNS 서버 운영하기 - 1. DNS란? 미니샤 2011.08.21 5932
27 간단한 emerge 사용법입니다. [3] 미니샤 2011.08.20 5227
26 최근에 gentoo를 사용할때 rc-update [2] 잉여양파 2011.08.18 4348
25 최근에 gentoo를 설치할때의 주의점 [2] 잉여양파 2011.07.27 4000
24 thinkpad x200에서 x-windows가 intel driver로 안올라올때 잉여양파 2011.07.27 3966
23 gentoo의 x-windows 서버에 다른 머신의 program이 loading이 안될때 [4] 잉여양파 2011.07.24 3739
22 >= Firefox 4.x 에서 한글 입력이 안될 때 [2] 다크써클 2011.06.25 4957
21 chromium root로 실행시키기 [2] file 다크써클 2011.06.19 6100
20 LiveDVD 11.0 가지고 놀기 [3] 삼사라 2011.04.30 5306
19 2.6.36-r5 에서 uptime 사용시 문제. [4] 사랑천사 2011.03.27 6090
18 Gentoo linux 64bit system에서 arm용 cross toolchain(until gcc) HOWTO [5] file 잉여양파 2011.03.22 8809
17 gentoo를 쓰면서 root계정으로 chrome 11버전을 사용할때의 한글입력 [2] 잉여양파 2011.03.21 7104
16 udev-151-r4 버그정보입니다.. 초보자들께서 혹시 모르실까봐 올립니다. 버닝산적 2011.03.07 4987