컨텐츠 영역
비장의(?) 레시피!
2012.01.20 16:20
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
댓글 5
-
사랑천사
2012.01.21 09:44
-
잉여양파
2012.01.21 09:51
호오.. sse가 요즘은 41하고 42도 있는지 몰랐습니다.
역시 사람은 게으르면 안되는데 말이죠...
좋은정보 감사합니다...(꾸벅)
-
golden
2012.01.31 07:20
cd /mnt/gentoo/usr 에서 에러를 낼 듯.
그런 디렉토리가 아직 없으므로....
-
사랑천사
2012.01.31 16:35
그렇지 않을 겁니다. Stage3을 풀어 놓으면 /mnt/gentoo/usr 이 생기조.
-
golden
2012.01.31 19:09
제가 착각했네요. 감사.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
63 | 유동 IP에서 DNS 서버 운영하기 - 2. DDNS 서비스 이용하기 | 미니샤 | 2011.08.21 | 22196 |
62 | 무난 코딩 이빌드 [11] | 파옥 | 2012.11.14 | 21142 |
61 | NateOn plugin for Pidgin | 햄릿 | 2008.09.28 | 13829 |
60 | ASUS P5W DH Deluxe 부팅 딜레이 해결 | CrimsonM | 2008.06.25 | 13373 |
59 | 하하... 루트를 LVM 으로 했다가 캐삽질 하고 부팅 봤습니다. [1] | nsys | 2012.01.18 | 13273 |
58 | 젠투 시스템 자동으로 업그레이드 하게 만들기 | 다크써클 | 2011.01.19 | 13208 |
57 | notification-daemon libnotify 순환의존성 문제 | 메이지 | 2009.01.16 | 11114 |
56 | redmine & thin 설정 조금. [1] | 송효진 | 2013.03.18 | 11110 |
55 | openRC-0.4.3-r3에서 net설정파일이 wpa_supplicant 모듈을 못???는경우. | Kamu | 2009.07.21 | 10724 |
54 | Kaillera Server 설치하고 세팅하는 방법입니다. [3] | 미니샤 | 2011.01.04 | 9884 |
53 | Nilay - nidev's 4th party ebuild repository | nidev | 2009.02.16 | 9619 |
52 | Gentoo linux 64bit system에서 arm용 cross toolchain(until gcc) HOWTO [5] | 잉여양파 | 2011.03.22 | 8809 |
51 | proftpd && sublime text 2 sftp [7] | 송효진 | 2013.03.27 | 7948 |
50 | egg압축해제용 unark ebuild [4] | 찌푸린 | 2011.03.06 | 7746 |
49 | virtualbox host와 guest 의 time 이 틀릴 때 [2] | golden | 2012.01.31 | 7651 |
48 | gentoo와 나눔고딕과 emacs | 잉여양파 | 2011.11.12 | 7622 |
와우!
기본 지식만 어느 정도 있으면 충분히 어디서나 써 먹을 수 있는 메뉴군요 ㅎㅎ.