2009/07/19

밥(rice)

- 쌀
쌀 속에는 가바(Gaba)라는 물질이 함유되어 있는데, 이는 혈액 내 중성지방을 줄이고 간 기능을 높여 뇌혈류를 개선하는 의약품으로 연구되고 있다. 특히 이 성분은 쌀눈에 풍부하여 쌀을 물에 담가두면 배아가 발아준비에 들어가면서 가바가 늘어난다고 한다.
쌀의 주된 영양성분은 당질인 탄수화물로 하루 세끼 같은 양을 먹게 되면 체내 포도당이 일정하게 유지하도록 하여 살이 찌지 않게 된다. 또한 위장의 기능을 복돋아 주고 오장의 기능을 활성시켜 기와 혈의 순환을 촉진시키는 역할도 한다.

- 기본 쌀밥 짓기

1 쌀 씻기
물을 부어 씻을 때는 오래도록 씻지 않도록 한다. 큰 그릇에 물을 듬뿍 붓고 재빨리 한 번 섞듯이 씻은 후 물을 따라버려야 쌀눈의 영양 손실을 줄일 수 있을 뿐더러 쌀겨 냄새가 배는 것을 막을 수 있다.
양손바닥으로 쌀을 움켜쥐듯이 하여 문질러 씻는데, 이 과정은 쌀겨가 씻겨나가 수분이 잘 흡수되어 밥맛이 좋아지게 하는 중요한 과정이다 문지른 다음 맑은 물이 나올 때 까지 서 너 번 정도 씻는다.
씻어서 잠시 체에 건져 불리는 과정을 해야 밥이 고슬거리게 잘 지어진다. 일어낸 쌀을 30분정도 물에서 불린 후에 소쿠리에 밭쳐 물기를 빼고 젖은 행주로 1시간 정도 덮어준 뒤에 밥을 지으면 맛이 더욱 좋아진다.
2 밥물 맞추기
불린 쌀이나 햅쌀의 밥물은 쌀의 양과 같은 양이 좋고 묵은 쌀은 쌀의 1.5배정도로 밥물을 잡는데 손으로 맞출 때에는 약 1cm정도 올라오도록 물을 맞추고 묵을 쌀로 지을 때에는 손등의 반까지 붓는 것이 정확하다.

3 끓이기
쌀을 냄비에 앉힌 후에 뚜껑을 덮고 센 불에서 끓인다. 10분쯤 되면 부글부글 끓는 상태가 되는데 이때 밥물이 넘지 않도록 조심한다.
물이 따닥따닥 소리를 내며 잦아들 때 불을 약간 줄이고 주걱으로 한번 뒤섞어준다. 이 상태에서 뚜껑 덮고 4-5분정도 끓인다. 중불로 줄여 5분 정도 더 끓인다. 밥물이 어느 정도 잦아질 때 까지 끓인다.

4 뜸들이기
밥물이 어느 정도 없어지면 완전히 약한 불로 줄여서 10분정도 뜸을 들인다. 뜸 들이는 과정이야 말로 밥맛을 좌우한다. 밥알 속까지 말랑 말랑해져서 밥맛이 좋아지기 때문이다. 단, 너무 오래 뜸을 들이면 밥이 덩어리져서 맛이 없다.

5 밥푸기
밥솥에 밥을 오래 두면 밥맛이 변한다. 주걱으로 아래위를 살살 섞어 뜨거운 김을 날린 후 뚜껑이 있는 그릇에 담아두면 밥맛이 변하지 않고 그대로 유지된다.

- 묵은쌀로 밥하기

묵은쌀로 밥을 할 때에는 다시마를 사방 5cm로 잘라 밥물이 끓을 때 넣으면 밥에 윤기가 돌고 묵은 냄새가 없다.
또 다른 방법으로는 묵은 냄새를 완전하게 제거하려면 청주나 식초를 1작은술 밥물에 넣어서 밥을 지으면 밥의 묵은내가 나지 않는다.
밥에 윤기를 돌게 하려면 식용유 한 방울을 밥물에 떨어뜨려 밥을 지으면 밥에서 윤기가 자르르 흘러 마치 햅쌀로 밥을 지은 것 같은 윤기가 돈다.

- 맛있게 밥 짓기

묵은 쌀의 경우 밥물에 청주나 식용유를 한 큰술 넣어주면 밥알에 윤기가 돌고 맛도 좋아진다. 그 외에 다시마 국물을 붓거나 소금을 조금 넣어 밥을 해도 감칠맛을 느낄 수 있다. 수돗물보다는 정수나 생수를 이용하면 밥맛이 더욱 좋아 진다. 부드러운 밥맛을 느끼려면 식초를 한 두 방울 떨어뜨려준다.

- 일반 솥이나 냄비 돌솥에 밥 짓기

뚝배기, 돌솥, 솥, 냄비 등 모두 해당되는데 뜸을 뭉근히 들일 수 있어 밥이 구수한 장점이 있다. 물의 양은 쌀의 1배~1.2배가 기본.
1 쌀을 깨끗하게 씻어 물에 30분정도 담갔다가 솥에 담기 전에 체에 밭여 물을 뺀다.
2 솥에 쌀을 안치고 밥물을 부어 밥을 짓는다. 처음에는 센불에서 끓이다가 중불로 줄여 5분에서 6분정도 뜸을 들인다. 물이 잦아들면 불을 아주 약하게 줄여 뭉근히 뜸을 들인다.
→뚝배기나 돌솥에서 밥을 하는 경우는 열이 천천히 오르면서 그 열이 오래도록 남아 있어 바닥이 타기 쉽다. 이럴 때에는 밥물이 끓으면 바로 불을 아주 약하게 줄이고 뜸을 오래도록 들이면서 중간에 한번 뒤섞여 주어야 밥이 눌지 않고 맛있다.

- 압력솥에 밥 짓기

가장 많은 가정에서 보편적으로 쓰이는 압력솥은 밥 짓는 시간이 짧고 찰기가 많아서 묵은쌀로 밥을 지으면 더욱 좋은데 잡곡밥을 지을 때에도 잡곡이 쉽게 물러 먹기에 편리한 장점이 있다. 밥물은 쌀과 동량이거나 1.1배가 적당하다.
1 쌀을 깨끗하게 씻어 물에 30분정도 담갔다가 밥 짓기 전에 체에 밭쳐 물기를 뺀다.
2 압력솥에 쌀을 안치고 밥물은 일반 솥보다 적게 잡아 밥을 짓는다.

- 전기밥솥에서 밥 짓기

예약기능과 보온기능을 갖고 있어서 가장 편리하지만 밥물을 자칫 잘못 잡으면 밥이 푸석거려 맛이 없고 오래두면 냄새가 나기도 한다. 밥물은 쌀의 1.2배가 적당하다.
1 쌀을 씻어서 물에 30분정도 담갔다가 체에 건져 물기를 뺀다.
2 전기밥솥에 쌀을 붓고 밥솥에 표시된 대로 물의 양을 잡아 밥을 짓는다. 쌀의 1.2배정도로 표시가 되어 있어서 초보가 이용하기에 알맞다.

- 잡곡밥

재료
수수 기장조 흑미 3큰술, 보리쌀 1/5컵, 현미 1/4컵, 멥쌀 1컵, 물 2 1/2컵

이렇게 만드세요!
1 수수는 빨간 물이 나오지 않을 때까지 씻어서 체에 밭쳐 1시간 이상 불리고, 기장조와 보리쌀도 각각 씻어서 체에 밭쳐 1시간 이상 불린다.
2 현미와 흑미, 멥쌀은 각각 씻어서 물에 30분 이상 담갔다가 건져 체에 밭쳐 1시간 이상 불린다.
3 솥에 수수와 보리쌀 현미 흑미 멥쌀을 섞어서 안치고 위에 기장조를 올려서 물을 분량만큼 붓는다.
4 불에 올려서 센불에서 10분정도 끓여 밥물이 끓으면 중간 불로 바꿔서 2분 정도 더 끓인다.
5 밥물이 잦아들면 불을 약하게 줄이고 뜸을 8분 이상 들인다.
6 뜸이 충분하게 들어 잡곡밥이 부드럽게 퍼지면 위아래를 뒤섞어서 윤기 있게 밥을 퍼 담는다.

Point
잡곡은 처음부터 모두 합해서 씻으면 잡곡 각각의 성분이 자칫 없어질 수 있다. 수수는 빨간물이 나오지 않을 때까지 씻어서 헹궈야 하고 기장조는 돌을 골라내고 체에 쳐서 씻어서 불려야 한다.
현미와 멥쌀, 흑미는 씻어서 잠시 물에 담갔다가 건져 체에서 1시간 이상 불려야 고슬하게 잘 퍼진 밥이 완성된다.

2009/07/18

gentoo apache mysql php pure-ftpd gd phpadmin qmail

http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
http://en.gentoo-wiki.com/w/index.php?search=march
http://en.gentoo-wiki.com/wiki/Index:Tutorials

======== kernel ======

# lspci
# lsmod

======== locale ======

# nano -w /etc/locale.gen

ko_KR.UTF-8 UTF-8

# locale-gen
# nano -w /etc/env.d/02locale

LANG="ko_KR.UTF-8"
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL="ko_KR.UTF-8"

# env-update && source /etc/profile

========== make.conf ===========

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

LINGUAS="ko en"
VIDEO_CARDS="vmware"
INPUT_DEVICES="keyboard mouse evdev"
GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ http://ftp.daum.net/gentoo/"

# for php
USE="apache2 mysql suhosin nls ssl gd ftp jpeg ipv6 truetype cgi"

# php for phpmyadmin
USE="crypt ctype pcre session unicode vhosts"

# php for phpBB
USE="zlib xml"

# for pure-ftpd
USE="pam"

# for apache
USE="php"

======== mysql apache php gd pure-ftpd phpmyadmin =====

// # echo 'dev-php5/phpdbg ~x86' >> /etc/portage/package.keywords
// # emerge dev-php5/phpdbg
# emerge dev-db/mysql apache php gd pure-ftpd
# mysql_setpermission
# emerge phpmyadmin
htdocs # webapp-config -I phpmyadmin 2.11.9.5 -d phpmyadmin

phpmyadmin webconfig
http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild

============= system ==================

# emerge --sync
# emerge system
# emerge world
# etc-update

============== config ===============

http://en.gentoo-wiki.com/wiki/Apache

============== cron ================

# crontab -e

0 3 * * 1 emerge --sync // 매주 월 새벽 3:00
0 3 * * 2 emerge system // 매주 화 새벽 3:00
0 3 * * 3 emerge world // 매주 수 새벽 3:00

분 시 일 월 주 명령

============== qmail ===============

============= webmin ==============

2009/07/16

make.conf

# 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 -march=i686 -pipe"
# CXXFLAGS="-O2 -march=i686 -pipe"
# 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="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LINGUAS="ko en"
VIDEO_CARDS="radeonhd radeon"
INPUT_DEVICES="keyboard mouse evdev"
GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ http://ftp.daum.net/gentoo/"

USE="X aac flac mp2 mp3 oggvorbis vorbis dts dvb httpd firefox mozilla ssl openmp gimp gimpprint asf avi live mpeg quicktime real realmedia win32codecs x264 xvid apache2 mysql ffmpeg encode gif jpeg pdf png dvd dvdr dvdread 3dnow 3dnowext sse sse2 mmx mmxext usb opengl alsa hardcode-tables ssse3 crypt pythonbitmap-fonts truetype truetype-fonts bzip2 bzlib zlib rar cups hal gstreamer gtk gtk2 java nsplugin ncurses readline userlocales xv pam unicode dbus xml mplayer svg ipv6 network xscreensaver nls php keyboard apm mad a52 modplug musepack theora v41 xcb xfce corefonts cxx perl acl gpm -gnome -kde -kde4 trash-plugin file-icons menu-plugin glitz"

source /usr/local/portage/layman/make.conf


=====================================================

torrent : transmission
image : mirage

test3

# emerge layman
# nano -w /etc/layman/layman.cfg

overlays : http://www.gentoo.org/proj/en/overlays/layman-global.txt
http://gentoo-kr.kldp.net/overlays.xml

# emerge dev-util/subversion
# emerge -avu dev-util/git // xfce 메뉴 아이콘 요고
# layman -f
# layman -L
# layman -a gentoo-kr
# layman -S
# echo "source /usr/local/portage/layman/make.conf" >> /etc/make.conf
# mkdir -p /usr/local/portage/profiles/
# echo "local_overlay" > /usr/local/portage/profiles/repo_name

File: /etc/portage/package.keywords

dev-python/compizconfig-python
x11-wm/compiz
x11-wm/compiz-fusion
x11-plugins/compiz-plugins-main
x11-plugins/compiz-plugins-extra
x11-plugins/compiz-plugins-unsupported
x11-wm/emerald
x11-themes/emerald-themes
x11-apps/ccsm
x11-libs/libcompizconfig
x11-libs/compizconfig-backend-gconf
x11-libs/compizconfig-backend-kconfig
x11-libs/compiz-bcop


# emerge -av compiz-fusion

File: /etc/X11/xorg.conf

Section "Extensions"
Option "Composite" "On"
EndSection

Section "ServerFlags"
Option "AIGLX" "On"
EndSection

2009/07/15

xorg.conf

============== ex : 1 ================

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "fglrx"
EndSection

============== ex : 2 ================

Section "ServerLayout"
Identifier "X.Org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "PS/2 Mouse" "AlwaysCore"
# InputDevice "Serial Mouse" "AlwaysCore"
InputDevice "USB Mouse" "AlwaysCore"
#No Synaptics touchpad found
EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail" "true"

EndSection

Section "Files"
FontPath "/usr/share/fonts/util"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/local/share/fonts"
FontPath "/usr/share/fonts/default"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/type1"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/arphicfonts"
FontPath "/usr/share/fonts/jisx0213"
FontPath "/usr/share/fonts/shinonome"
FontPath "/usr/share/fonts/baekmuk-fonts"
FontPath "/usr/share/fonts/kacst-fonts"
FontPath "/usr/share/fonts/sgi-fonts"
FontPath "/usr/share/fonts/unfonts"
FontPath "/usr/share/fonts/default/ghostscript"
FontPath "/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-cp1251-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-isocyr-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8r-misc"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
FontPath "/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection

Section "Module"
Load "ddc"
Load "vbe"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "bitmap"
Load "type1"
Load "freetype"
Load "record"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
# Option "XkbOptions" "grp:toggle,grp_led:scroll"
Option "XkbVariant" ",winkeys"
Option "XkbLayout" ""
EndSection

Section "InputDevice"
Identifier "Serial Mouse"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection

Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/misc/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Protocol" "event"
Option "Device" ""
Option "LeftEdge" "1900"
Option "RightEdge" "5400"
Option "TopEdge" "1900"
Option "BottomEdge" "4000"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.02"
Option "MaxSpeed" "0.10"
Option "AccelFactor" "0.0010"
Option "SHMConfig" "on"
EndSection

# Auto-generated by mkxf86config

Section "Monitor"
Identifier "Monitor0"
HorizSync 28.0 - 96.0
VertRefresh 50.0 - 75.0
EndSection

Section "Device"
### Available Driver options are:-
# sw_cursor is needed for some ati and radeon cards
Option "sw_cursor"
#Option "hw_cursor"
#Option "NoAccel"
#Option "ShowCache"
#Option "ShadowFB"
#Option "UseFBDev"
#Option "Rotate"
#Option "MonitorLayout" "LVDS, NONE"
Identifier "Card0"
# The following line is auto-generated by x11-misc/mkxf86config
Driver "ati"
VendorName "All"
BoardName "All"
# BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection


===================== me) ==============

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
Load "glx"
Load "dri"
Load "xtrap"
Load "dbe"
Load "record"
Load "extmod"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 35.0 - 81.0
VertRefresh 56.0 - 75.0
EndSection

Section "Device"

### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "AccelMethod" # []
#Option "offscreensize" # []
#Option "SWcursor" # []
#Option "ignoreconnector" # []
#Option "forcereduced" # []
#Option "forcedpi" #
#Option "useconfiguredmonitor" # []
#Option "HPD" #
#Option "NoRandr" # []
#Option "RROutputOrder" # []
#Option "DRI" # []
#Option "TVMode" # []
#Option "ScaleType" # []
#Option "UseAtomBIOS" # []
#Option "AtomBIOS" # []
#Option "UnverifiedFeatures" # []
Identifier "Card0"
Driver "radeonhd"
VendorName "ATI Technologies Inc"
BoardName "Radeon HD 3870"
BusID "PCI:5:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Extensions"
Option "Composite" "On"
EndSection

Section "ServerFlags"
Option "AIGLX" "On"
EndSection

2009/07/13

젠투 리눅스 (gentoo linux)

http://ko.wikipedia.org/wiki/젠투_리눅스


http://www.gentoo.org/
http://gentoo-portage.com/
http://en.gentoo-wiki.com/
http://www.gentoo-wiki.info/
http://forums.gentoo.org/

- 내 pc 내가 관리한다.-


커널(kernel)

- Soundcard

Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
[*] PCI sound devices --->
<*> Intel HD Audio --->
[*] Build Realtek HD-audio codec support
[*] Build ATI HDMI HD-audio codec support

- Network card (8168/8169/8101/8111)

Device Drivers --->
Network device suport -->
[*] Network device support
Ethernet (1000 Mbit) --->
<*> Realtek 8169 gigabit ethernet support

-Hardware 3D Acceleration Guide

Processor type and features --->
<*> MTRR (Memory Type Range Register) support
Device drivers --->
Graphics support --->
/dev/agpgart (AGP Support) --->
(The agpgart option is not present on 64-bit kernels; just choose your chipset support.)
Intel 440LX/BX/GX, I8xx and E7x05 support
(Enable your chipset instead of the above.)
Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
(Select your graphics card from the list)

-Using UTF-8 with Gentoo

File Systems -->
Native Language Support -->
(utf8) Default NLS Option
<*> NLS UTF8
(Also <*> other character sets that are in use in
your FAT filesystems or Joilet CD-ROMs.)
File Systems -->
DOS/FAT/NT Filesystems -->
(437) Default codepage for fat

-Power Management Guide

Power management and ACPI options --->
[*] Power Management Support
[ ] Software Suspend

ACPI( Advanced Configuration and Power Interface ) Support --->
[ ] Deprecated /proc/acpi/ files
[*] AC Adapter
[*] Battery
Button
Video
[ ] Generic Hotkey
Fan
Processor
Thermal Zone
< > ASUS/Medion Laptop Extras
< > IBM ThinkPad Laptop Extras
< > Toshiba Laptop Extras
(0) Disable ACPI for systems before Jan 1st this year
[ ] Debug Statements
[*] Power Management Timer Support
< > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)

CPU Frequency Scaling --->
[*] CPU Frequency scaling
[ ] Enable CPUfreq debugging
< > CPU frequency translation statistics
[ ] CPU frequency translation statistics details
Default CPUFreq governor (userspace)
<*> 'performance' governor
<*> 'powersave' governor
<*> 'ondemand' cpufreq policy governor
<*> 'conservative' cpufreq governor
<*> CPU frequency table helpers
ACPI Processor P-States driver
<*> CPUFreq driver for your processor

-Gentoo Printing

Device Drivers -->
<*> Parallel port support
<*> PC-style hardware

Device Drivers -->
Character Devices -->
<*> Parallel printer support
[*] IEEE 1284 transfer modes)

Device Drivers -->
USB Support -->
<*> Support for Host-side USB
(...)
--- USB Host Controller Drivers
(Select the HCD that your system uses. If you do not know which one
to select, run "lspci -v | grep HCI" from another terminal)
<*> EHCI HCD (USB 2.0) support ( or )
<*> OHCI HCD support ( or )
<*> UHCI HCD (most Intel and VIA) support
(...)
<*> USB Printer support

File systems -->
Network File Systems -->
<*> SMB file system support (to mount Windows shares etc.)
<*> CIFS support (advanced network file system for Samba, Windows and other CIFS compliant servers)

=========================================================

ex) vmware kernel

---------------------------------------------------------------------------------

Enable loadable module support --->
--- Enable loadable support
[*] Module unloading
[*] Forced module unloading
[*] Automatic kernel module loading
Processor type and features --->
+ Processor family (Core 2/newer Xeon)
(2) Maximum number of CPUs (2-255)
Device Drivers --->
+ SCSI device support --->
--- SCSI device support
<*> SCSI disk support
<*> SCSI generic support
++ SCSI Transports
[*] SCSI low-level drivers --->
+++ <*> BusLogic SCSI support
+++ [*] Omit FlashPoint support
+ Fusion MPT device support --->
++ <*> Fusion MPT ScsiHost drivers for SPI
++ <*> Fusion MPT ScsiHost drivers for FC
++ <*> Fusion MPT ScsiHost drivers for SAS
++ (128) Maximum number of scatter gather entries (16 - 128)
++ <*> Fusion MPT misc device (ioctl) driver
++ [*] Fusion MPT logging facility
+ Network device support --->
++ Ethernet (10 or 100Mbit) --->
+++ [*] EISA, VLB, PCI and on board controllers
+++ <*> AMD PCnet32 PCI support
+ Sound --->
++ Advanced Linux Sound Architecture --->
+++ <*> Advanced Linux sound Architecture
+++ <*> OSS Mixer API
+++ <*> OSS PCM (digital audio) API
++++ PCI devices --->
+++++ <*> (Creative) Ensoniq AudioPCI 1371/1373
File systems --->
+ DOS/FAT/NT Filesystems --->
++ (949) Default codepage for FAT
++ (EUC-KR) Default iocharset for FAT
++ <*> NTFS file system support
++ [*] NTFS debugging support
++ [*] NTFS write support
+ Native Language Support --->
++ (utf8) Default NLS Option
++ <*> Codepage 437 (United States, Canada)
++ <*> Korean charset (CP949, EUC-KR)
++ <*> NLS ISO 8859-1 (Latin 1; Western European Languages)
++ <*> NLS UTF8

---------------------------------------------------------------------------------

Kernel panic: VFS: Unable to mount root fs on xx xx

kernel 에 ext2 파티션 추가
자신의 하드디스크 관련 모듈 추가

2009/07/11

초기 설정

-- net config --
# modprobe r1000
# /etc/init.d/net.eth0 restart
# echo r1000 >> /etc/modules.autoload.d/kernel-2.6
(나중에 해줘도 되고, 커널에 포함됐을경우는 생략, r8169, pcnet32, r1000,

r8168:RTL8111/8168)

# echo 'config_eth0=( "dhcp" )' >> /etc/conf.d/net
or
# echo 'config_eth0=( "192.168.176.135" )' >> /etc/conf.d/net
# echo 'routes_eth0=( "default via 192.168.176.1" )' >> /etc/conf.d/net

# cat /etc/resolv.conf
nameserver 168.126.63.1
nameserver 168.126.63.2

-- end --

-- locale --

# nano -w /etc/locale.gen

ko_KR.UTF-8 UTF-8

# locale-gen
# nano -w /etc/env.d/02locale

LANG="ko_KR.UTF-8"
LC_CTYPE="ko_KR.UTF-8"
LC_NUMERIC="ko_KR.UTF-8"
LC_TIME="ko_KR.UTF-8"
LC_COLLATE="ko_KR.UTF-8"
LC_MONETARY="ko_KR.UTF-8"
LC_MESSAGES="ko_KR.UTF-8"
LC_PAPER="ko_KR.UTF-8"
LC_NAME="ko_KR.UTF-8"
LC_ADDRESS="ko_KR.UTF-8"
LC_TELEPHONE="ko_KR.UTF-8"
LC_MEASUREMENT="ko_KR.UTF-8"
LC_IDENTIFICATION="ko_KR.UTF-8"
LC_ALL="ko_KR.UTF-8"

# env-update && source /etc/profile

-- end locale --

-- adduser --
adduser 유저이름 -m -s /bin/bash -G wheel,audio,users
passwd 유저이름
-- end --


-- /etc/make.conf --

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

LINGUAS="ko en" // for korea
VIDEO_CARDS="radeonhd radeon"
INPUT_DEVICES="keyboard mouse"

USE="X aac flac mp2 mp3 oggvorbis vorbis dts dvb httpd firefox mozilla ssl

openmp gimp gimpprint asf avi live mpeg quicktime real realmedia win32codecs

x264 xvid apache2 mysql ffmpeg encode gif jpeg pdf png dvd dvdr dvdread

3dnow 3dnowext sse sse2 mmx mmxext usb opengl alsa hardcode-tables ssse3

crypt pythonbitmap-fonts truetype truetype-fonts bzip2 bzlib zlib rar cups

hal gstreamer gtk gtk2 java nsplugin ncurses readline userlocales xv pam

unicode dbus xml mplayer svg ipv6 network xscreensaver nls php keyboard apm

mad a52 modplug musepack theora v41 xcb xfce corefonts cxx perl acl gpm -

gnome -kde -kde4"

-- end --

-- nabi --

$ nano -w $HOME/.xinitrc

export XMODIFIERS="@im=nabi"
export GTK_IM_MODULE=hangul2
export GDK_USE_XFT=1
export G_BROKEN_FILENAMES=1
nabi &
exec startxfce4

# nano -w /etc/X11/Xmodmap

keycode 109 = Hangul_Hanja
keycode 113 = Hangul
( keycode 값은 xev로 확인 : emerge xev)

-- end nabi --

-- xfce4 --
# emerge -a xfce4
# emerge -a xfce4-extras
# emerge hal
# /etc/init.d/hald start
# rc-update add hald default

- starting xfce : xdm -
# emerge -a xdm
# echo 'XSESSION="Xfce4"' >> /etc/env.d/90xsession
# /etc/init.d/xdm restart
# echo 'xfce4-session' >> $HOME/.xsession
# rc-update add xdm default
# cat /etc/conf.d/xdm

DISPLAYMANAGER="xdm"

:use slim
# emerge -av slim
# emerge -av slim-themes
# nano -w /etc/conf.d/xdm

DISPLAYMANAGER="slim"

- end -

- startx -
# echo 'exec startxfce4' >> $HOME/.xinitrc
# startx
- end -

-- end --

-- sound -- http://www.gentoo.org/doc/en/alsa-guide.xml

# lspci |grep Audio
# modprobe snd-hda-intel
# emerge alsa-utils alsa-oss alsa-headers alsa-lib

//alsa-utils 까지만 해볼것
# /etc/init.d/alsasound snd-hda-intel
# rc-update add alsasound boot
# gpasswd -a audio
# /etc/init.d/alsasound start
# alsamixer
# emerge mplayer xfce4-mixer

-- end --

-- etc --
# emerge nabi pciutils baekmuk-fonts unfonts nabi mozilla-firefox xfmedia

Xfburn vim adobe-flash

# emerge -a bittorrent

xfce4-mixer xfce4-power-manager xfce4-settings xfce4-wmdock xfce4-notes

xfmedia xfburn
http://home.megapass.net/~webmagic/dg.mp3
emerge -pv << check portage
emerge -a << full setup

xfce4-extras :
xfce-extra/xfce4-clipman-0.8.1
gnome-extra/libgsf-1.14.11
dev-libs/libcroco-0.6.2
app-arch/xarchiver-0.5.2
media-libs/taglib-1.5
dev-libs/libtasn1-2.2
media-fonts/corefonts-1-r4
media-video/ffmpeg-0.5-r1
gnome-base/librsvg-2.22.3
xfce-extra/thunar-media-tags-0.1.2
xfce-extra/thunar-archive-0.2.4-r1
net-libs/gnutls-2.6.6
media-video/ffmpegthumbnailer-1.5.3
xfce-extra/xfce4-mailwatch-1.1.0
xfce-extra/xfce4-xkb-0.5.2
media-gfx/imagemagick-6.5.2.9
xfce-extra/thunar-thumbnailers-0.4.1
xfce-base/xfce4-extras-4.4.2

-- end --

-- update --
emerge --sync // 최신 패키지 목록 업데이트, 하루에 한번이상 하지 말것.
emerge system // 비교해서 필수 패키지 업뎃
emerge world // 전체 전체 패키지 업뎃
-- end --

-- compiz-fusion -- http://en.gentoo-wiki.com/wiki/Compiz-Fusion
# emerge -av compiz-fusion
# compiz-manager
# compiz-start
-- end --

-- radeon --
# emerge --search radeon
-- end --

//make.conf
cflags : http://en.gentoo-wiki.com/w/index.php?search=cflags&ns0=1&ns4=1&ns100=1&ns102=1&title=Special%3ASearch&fulltext=Search


2009/07/08

nabi

# emerge nabi
>>

# cat /etc/locale.gen
ko_KR.UTF-8 UTF-8

>>

#cat /etc/00basic

LC_ALL="ko_KR.UTF-8"
LC_LANG="ko_KR.UTF-8"
LC_MESSAGE="ko_KR.UTF-8"
LANG="ko_KR.UTF-8"

>>

# cat /etc/env.d/02locale
LC_CTYPE="ko_KR.UTF-8"

LANG="ko_KR.UTF-8"
LC_ALL="ko_KR.UTF-8"

#nabi for xim
XMODIFIERS="@im=nabi"
XIM_PROGRAM="/usr/bin/nabi"
GTK_IM_MODULE=xim
G_BROKEN_FILENAMES=1

>>

cat $HOME/.Xmodmap

! for using hangul key
keycode 109 = Hangul_Hanja
keycode 113 = Hangul

>> xev 설치 해서 사용할 키값을 구해온다.


은 폰트
# emerge alee-fonts

>>

백묵 글꼴
# emerge baekmuk-fonts

>>

/usr/share/fonts/

Bee Gees - Strayin' Alive