Please assign a menu to the primary menu location under menu

FreeBSD – 커널 컴파일

FreeBSD 커널 컴파일- 32Bit# cd /usr/src/sys/i386/conf# cp GENERIC Yongbok- 64Bit# cd /usr/src/sys/amd64/conf# cp GENERIC Yongbok복사한 커널 설정 파일에 내용 중 ident 부분에는 복사한 파일명 Yongbok 이름을 넣어줍니다. 만약에 CPU가 멀티를 지원하면 옵션에 options SMP를 적어줍니다. 뭐..기타 서비스, 장치 중 필요 없는 것은 주석처리를 하시면 됩니다.이제 /usr/src 로 가서 커널 빌드를 시작합니다.# cd /usr/src/# make buildkernel KERNCONF=Yongbok커널 빌드가 정상적으로 완료 되었으면 이제 새로 빌드한 커널을 설치 하는 작업을 해야합니다.빌드와 비슷하게 커널설치는 make installkernel KERNEL=커널 설정 파일명 으로 하면 됩니다.# make installkernel KERNCONF=Yongbok적용을 위해 시스템을 재시작 합니다.# reboot커널 설치가 끝나고 재부팅 후에 uname -a 해서 커널 버전이 새롭게 올라온것을 볼수 있습니다.# uname

CentOS – 한글 로케일 EUC-KR 설정

CentOS 설치할때 언어를 한글로 설치 하였다면 UTF-8 로 기본 설정이 되어 있을 것입니다./etc/sysconfig/i18n 파일 내용중 LANG=”ko_KR.UTF-8″ 부분을 LANG=”ko_KR.eucKR” 로 변경  해주시면 됩니다.* 변경 전# vi /etc/sysconfig/i18nLANG=”ko_KR.UTF-8″SYSFONT=”latarcyrheb-sun16″* 변경 후# vi /etc/sysconfig/i18nLANG=”ko_KR.eucKR”SYSFONT=”latarcyrheb-sun16″수정하신 후 바로 적용하고 싶을 경우 Bash 를 입력하면 됩니다. 제대로 변경 되었는지 로케일 정보를 봅니다.# bash# localeLANG=ko_KR.eucKRLC_CTYPE=”ko_KR.eucKR”LC_NUMERIC=”ko_KR.eucKR”LC_TIME=”ko_KR.eucKR”LC_COLLATE=”ko_KR.eucKR”LC_MONETARY=”ko_KR.eucKR”LC_MESSAGES=”ko_KR.eucKR”LC_PAPER=”ko_KR.eucKR”LC_NAME=”ko_KR.eucKR”LC_ADDRESS=”ko_KR.eucKR”LC_TELEPHONE=”ko_KR.eucKR”LC_MEASUREMENT=”ko_KR.eucKR”LC_IDENTIFICATION=”ko_KR.eucKR”LC_ALL=

CentOS – yum 업데이트 저장소 바꾸기

yum 업데이트 저장소를 변경 하는 방법입니다. CentOS-Base.repo 파일을 편집합니다. # nano /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo 에 mirrorlist 주석 체크 후 baseurl 안에 원하는 서버주소를 써주시면 됩니다. # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client.  You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.

우분투 – 아파치 mod_evasive 모듈

환경 : 우분투- mod_evasive 모듈 설치# apt-get install libapache2-mod-evasive설치가 완료되면 자동으로 모듈이 올라가고 아파치가 재시작 됩니다.모듈이 안올라갈 경우 심볼링크로 링크를 걸어 줍니다.- 심볼링크 생성# cd /etc/apache2/mods-enabled# ln -s ../mods-available/mod-evasive.load ./mod-evasive.loadapache2.conf 맨 아래 추가# vi /etc/apache2/apache2.conf<IfModule mod_evasive20.c>    DOSHashTableSize  3097    DOSPageCount        5    DOSSiteCount          50    DOSPageInterval      1    DOSSiteInterval        1    DOSBlockingPeriod  30    DOSLogDir              “/var/log/mod_evasive.log”    DOSWhitelist            127.0.0.1</IfModule>아파치 재시작# /etc/init.d/apache2 restart- mod_evasive 옵션- DOSHashTableSize 각 자식 해쉬테이블 마다 탑레벨 노드의 수를 지정한다.수치가 높으면 높을수록 더 많은

FreeBSD – Networking Settings

# ee /etc/rc.conf# — sysinstall generated deltas — # Sat Sep 20 23:57:51 2008# Created: Sat Sep 20 23:57:51 2008# Enable network daemons for user convenience.# Please make all changes to this file, not to /etc/defaults/rc.conf.# This file now contains just the overrides from /etc/defaults/rc.conf.# 기본 라우터 아이피 (기본 게이트웨이)defaultrouter=”192.168.1.1″# 호스트네임 설정hostname=”yongbok.net”# le0 아이피 설정 , 넷마스크 설정ifconfig_le0=”inet 192.168.1.30  netmask 255.255.255.0″keymap=”us.iso”linux_enable=”YES”sshd_enable=”YES”DNS Server 설정# ee /etc/resolv.conf nameserver 168.126.63.1nameserver 168.126.63.2

1 42 43 44 45