'FreeBSD APM'에 해당되는 글 3건

  1. 2012.05.11 FreeBSD - Xorg + Gnome2 + 데스크탑 프로그램설치.
  2. 2012.05.09 FreeBSD 8.2 APM 설치
  3. 2012.05.09 FreeBSD + APM + cacti 설치
FreeBSD2012. 5. 11. 11:32

출처 : http://visualnet.tistory.com/246

 


FreeBSD 8.2 base 로 설치 하였습니다
(지포스 gts 이상의 그래픽 카드인 경우 "gtx" 그놈 설치후 nvidia-driver 를 설치 하여야 그놈이 정상적으로 실행 됩니다.)
linux_enable="YES" (rc.conf 에 추가 하여야 리눅스 바이너리를 사용할수 있습니다.)
설치시 고려 사양
/ 600mb
swap 2g
tmp 2g
usr 70g
var 2g
home 나머지


#vi .cshrc 수정합니다.

set prompt = "%B`whoami`%b@`hostname`[%~]#"
#source .cshrc

#csup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile

국내 cvsup.kr.freebsd.org 섭도 있지만.. 가끔 연결상태가 안좋으면 일본서버를 이용해서.. csup 를 하는것도 괜찮습니다..


#vi /etc/rc.conf

sshd_enable="YES"
추가
(가끔 설치하다가 컴퓨터를 끌수 없을 상황때문에 고생한적이 있어서.. sshd 를 먼저 올리고 시작 합니다)

/etc/ssh/sshd_config  (설정파일 입니다) 
/etc/rc.d/sshd start|stop|restart

프비는 sshd_config 중에 검색하여 필요한 사항만 바꿔서 쓰시면 될듯 합니다.
예를 들어.. 22번 포트를.. 자신만의 포트로 바꾼다던가.. 등등..
root 로그인등..
sshd_config 중 필요한것만수정 하여 쓰시면 됩니다.

 

#인증실패시 재시도 횟수 설정 3회이상 인증 실패시 로그가 기록됩니다..
MaxAuthTries 3

--참고 사이트 --
http://system.neulwon.com/xe/?mid=linux_os&sort_index=readed_count&order_type=desc&comment_srl=933&document_srl=311


Freebsd Desktop
.cshrc

setenv  LANG ko_KR.UTF-8
setenv  LC_ALL ko_KR.UTF-8

Xorg 설치

#cd /usr/ports/x11/xorg
#make config-recursive
#make install clean

pkg_add -r xorg 보다 시간이 더 많이 걸립니다..

컴퓨터 사양이 좋다고 하여도.. 보통 시간이 많이 걸리니..
pkg_add -r xorg 로 설치하는게 빠르긴 합니다.
사용감이 약깐 느린게 있지만 그렇게 신경쓸 정도는 아닙니다.

gnome2 설치(## 24시간 정도 걸림..;;;)
http://www.freebsd.org/gnome/docs/faq2.html

#whereis gnome2
#cd /usr/ports/x11/gnome2
#make config-recursive
#make install clean

그놈의 경우 설치시간이 1일 정도 걸린거 같습니다. i7 을 사용하는 데탑인데도.. 그정도 시간이 걸렸으니..
pkg_add -r gnome2 해서 설치 하는게 좋아 보입니다.

은진체 설치

# cd /usr/ports/korean/aleefonts-ttf/ && make install clean


한글입력을 위한 SCIM설치

# cd /usr/ports/textproc/scim && make install clean

# cd /usr/ports/korean/scim-hangul/ && make install clean

PROC 파일 시스템 열기

$ vi /etc/fstab
# 아래 줄 추가
proc    /proc    procfs    rw    0    0

startup 스크립트 작성


gdm, kdm은 ~/.xsession에 설정하고 startx를 쓴다면 ~/.xinitrc에 아래의 사항을 적어놓고 저장합니다..
(없으면 파일을 만들면 됩니다)
.xsession을 쓰실때는 chmod +x ~/.xsession으로 실행권한을 줍니다.
.xinitrc 를 자신이 쓰는 계정 홈디렉토리에 저장 chown test:test .xinitrc 로 권한 변경 합니다.

#!/bin/sh
 
LANG=ko_KR.UTF-8
LC_ALL=ko_KR.UTF-8
LINGUAS=ko_KR.UTF-8
export XMODIFIERS="@im=SCIM"
export LANG LC_ALL LINGUAS
export GDK_USE_XFT=1
export G_BROKEN_FILENAMES=1
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
#export XIM_PROGRAM="scim -d"
export FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0

scim -d

exec /usr/local/bin/gnome-session
--------------------------------------------------------------------------------------------

Xorg -configure
cp xorg.conf.new /etc/X11/xorg.conf

Xorg -configure 로 만든 xorg.conf.new 파일을 /etc/X11/ 로 저장 합니다.


--------------------------------------------------------------------------------------------
/etc/rc.conf

sendmail_enable="NONE" // 센드메일 정지
linux_enable="YES"  //리눅스 바이너리 사용
moused_enable="YES" // 마우스 사용
gnome_enable="YES" // 그놈 자동실행
dbus_enable="YES" // dbus 자동실행
sshd_enable="YES" // ssh 사용

rc.conf 수정후 리붓


최신 그래픽 카드 gtx 급 그래픽카드를 사용하기 위해선.. 엔비디아 드라이버를 먼저 설치해 주어야.. gnome을 실행할수 있습니다.
Installing the nVidia driver

#cd /usr/ports/x11/nvidia-driver
#make install clean

#vi /boot/loader.conf

nvidia_load="YES"

#vi /etc/X11/xorg.conf

Driver "nv" 를 Driver "nvidia" 로 수정

x11/nvidia-xconfig 와 x11/nvidia-settings 를 설치

whereis nvidia-xconfig
whereis nvidia-sttings

##### 모니터 환경 설정 ######
# nvidia-xconfig --add-argb-glx-visuals
# nvidia-xconfig --composite
# nvidia-xconfig --depth=24
#####

------------------------------------------------------------------------------------------------------------------------------------------------------------
리붓후 그놈으로 로그인 하여
xchat 을 설치해 줍니다.
whereis xchat
make install clean
------------------------------------------------------------------------------------------------------------------------------------------------------------
compiz-fusion 설치
whereis compiz-fusion
make install clean
compiz-fusion 을 위해 xorg.conf 를 수정

Section "Extensions"
Option         "Composite" "Enable"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1920x1080"
                Option    "AddARGBGLXVisuals" "True"
        EndSubSection
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
    HorizSync   30-81
    VertRefresh 56-60
EndSection

//nvidia 설정 끝

compiz-fusion 설치

#cd /usr/ports/x11-wm/compiz-fusion
#make install clean

 

/home/usrname 에

vi .start-compiz 파일 생성

#! /bin/sh
compiz --replace --sm-disable --ignore-desktop-hints ccp &
emerald --replace &


chmod +x .start-compiz 해서 실행할수 있게합니다.
chown sanjuk:sanjuk .start-compiz 소유권 변경합니다.
시스템 -> 기본설정 -> 시작 프로그램에서 추가 시킵니다..
ex) 이름 compiz-fusion
     명령 /home/usrname/.start-compiz
설치한 후에..
컴피즈 퓨전 관리자 에서

창장식 활성화 체크 (효과 -> 창 작식 "체크")
alt+F2
emerald --replace

로 에메랄드 제실행 해야.. 작업표시줄 상위에 제대로 적용 된다.. -_- (귀찮을시는 그냥 리붓 해도 무방하다)
Splash

/usr/local/share/compiz/splash_background.png

Ctrl + F11 를 누르면 로고가 나오게 됩니다.
metacity --replace    compiz 끄기

-------------------------------------------------------------------------------------------------------------------------------------------------------
네이트 온 설치

pidgin 설치 (통합메신저)
nateon 설치

통헙메신저 설치  http://ssoog.egloos.com/1732700

pidgin  설치
#whereis pidgin

# cd /usr/ports/devel/subversion
# make install clean

make install WITHOUT_BDB=yes

# cd /usr/ports/devel/gmake/
# make install clean


홈 디렉토리에 nateon이라고 만든다

# pwd
/usr/homefolder/nateon
# svn co http://dev.haz3.com/svn/nateon/trunk
(헤즈님의 소스를 이용하여 설치 합니다)
소스를 주루룩 받아올겁니다.

# cd trunk/

(8월1일 부터 피진을 이용한 접속이 안되는거 같습니다. 아무래도.. 네이트온은 나중에 다시 설치해봐야 할듯 합니다)


소스는 trunk라는 디렉토리에 저장되므로 cd하시고.

# env CPPFLAGS=-I/usr/local/include GMSGFMT=/usr/local/bin/msgfmt ./configure
# env GMSGFMT=/usr/local/bin/msgfmt gmake
# gmake install

pidgin 에서 nateon 셋팅하여 사용하면 끝
-----------------------------------------------------------------------------------------------------------------------
컬러 ls 사용

ls-colors 사용

#whereis gnuls

#make install clean

#vi .cshrc 수정
alias  ls               'gnuls --color'

-------------------------------------------------------------------------------------------------------------------------
ftp-client 설치

whereis filezilla
make install clean

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

torrent client 설치

/usr/ports/net-p2p/transmission

-------------------------------------------------------------------------------------------------------------------------
comix 설치 (만화책 뷰어)

whereis comix
make install clean
-------------------------------------------------------------------------------------------------------------------------
sound 설정

사운드 설정

# cp /usr/share/examples/cvsup/standard-supfile /root/
# # vi /root/standard-supfile (특별히 수정할 필요는 없다.)
# csup -g -L 2 -h cvsup.jp.freebsd.org/root/standard-supfile

 


# cd /usr/src/sys/i386/conf
# cp GENERIC MYKERNEL
# vi MYKERNEL

cpu             I686_CPU
ident           MYKERNEL

맨아래 사운드 카드 디바이스 추가

# sound
device   sound
device snd_emu10kx  (사운드 블라스터)
device snd_hda  (인텔 사운드 카드)

1. `cd /usr/src' (or to the directory containing your source tree).
2. `make buildworld'
3. `make buildkernel KERNCONF=SANJUK (default is GENERIC)
4. `make installkernel KERNCONF=SANJUK (default is GENERIC)

# vi /boot/loader.conf

loader.conf 에 내용을 추가합니다.
sound_load="YES"
snd_hda_load="YES"


vi /boot/defaults/loader.conf
sound_load="YES"                # Digital sound subsystem
snd_hda_load="YES"              # Intel High Definition Audio (Controller)
snd_ich_load="YES"              # Intel ICH

사운드 모듈을 사용하기 위에 위 사항을 수정 한다.

 

저장후 리붓

# reboot

 

http://www.optro.co.kr/~silpapa/?page=view&ctn=qanda&id=2245&num=0
cat /dev/sndstat
dmesg | grep pcm

sysctl hw.snd.default_unit=4
#cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
pcm1: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
pcm2: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play)
pcm4: <HDA Realtek ALC889 PCM #0 Analog> (play/rec) default
pcm5: <HDA Realtek ALC889 PCM #1 Analog> (play/rec)
pcm6: <HDA Realtek ALC889 PCM #2 Digital> (play)
pcm7: <HDA Realtek ALC889 PCM #3 Digital> (play)

위에.. pcm0 으로 잡혀 있는 default 사운드 부분을

sysctl hw.snd.default_unit=4 명령어를 통해 디폴트를 변경 합니다..
/etc/sysctl.conf
hw.snd.default_unit=4 추가 해 준다. (차후 계속 해서 잡어줄 필요 없슴)

vi /boot/defaults/loader.conf
sound_load="YES"                # Digital sound subsystem
snd_hda_load="YES"              # Intel High Definition Audio (Controller)
snd_ich_load="YES"              # Intel ICH

작업중...


oss 를 사용하면 최신사운드 카드 제품을 사용할수 있지만
제가 쓰는 creative extream music 은 정상적으로 사용이 안되었습니다.
그놈에서 음악을 듣고 있으면 한.. 10분 만에 리붓이 되곤 합니다..
차후 구굴링을 통해 정상적으로 이용가능할때 다시 정리해 놓겠습니다.

아래사용한예는 일딴 올려 놓아 봅니다.
oss sound 로 교체
/usr/ports/audio/oss
make install clean

ossinfo 로 정상적으로 잡혔나 확인해 볼수 있다.
-----------------------------------------------------------------------------------------
freebsd Web Browsers

http://www.freebsd.org/doc/handbook/desktop-browsers.html
(참고 페이지)
freebsd firefox3.6 설치
whereis firefox36
make install clean
firefox36-i18n // firefox 한글화
about:config에서 general.useragnet.locale 의 값을 ko-KR 로 변경
firefox and java plugin 설치

for firefox 3.6

cd /usr/ports/java/openjdk6
make config install clean

 

Note: The above site does not provide binary packages for FreeBSD 8.X. It is however possible to use the packages for FreeBSD 7.X on an 8.X system. Simply install the misc/compat7x port before installing the package.
/usr/ports/misc/compat7x
make install clean


Make sure you have selected the WEB option.

(설치 중간에 time tools 파일을 다운 로드 받아.. /usr/ports/dist 파일로 카피후 다시 make install clean 한다)


Each user will have to run the following command:

% ln -s /usr/local/openjdk6/jre/lib/IcedTeaPlugin.so \
  $HOME/.mozilla/plugins/
Start your browser, enter about:plugins in the location bar and press Enter. A page listing the installed plugins will be displayed; the Java plugin should be listed there now.

 

firefox and adobe flash plugin 8.x 기준 설치

 

Under FreeBSD 8.X

Install the www/nspluginwrapper port. This port requires emulators/linux_base-f10 which is a large port.

The next step is to install the www/linux-f10-flashplugin10 port. This will install Flash 10.X, this version is known to run correctly under FreeBSD 8.X.

This version will require the following link to be created:

whereis nspluginwrapper
make install clean

whereis linux_base-f10
make install clean

whereis linux-f10-flashplugin10
make install clean

(설치 하다 보면 자동으로 설치 되어 있는 것들도 있다.. linux_base-f10  제경우 자동으로 설치 되어 있었습니다. )

make makesum

Then...

make install

make install clean 대신 사용하여 설치 합니다.

# ln -s /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so \
  /usr/local/lib/browser_plugins/
The /usr/local/lib/browser_plugins directory will have to be created manually if it does not exist on the system.

Once the right Flash port, according to the FreeBSD version you run, is installed, the plugin must be installed by each user with nspluginwrapper:

% nspluginwrapper -v -a -i


리눅스 에뮬레이터 사용의 경우
rc.conf 에 linux_enable="YES"
라고 한줄 적어 줍니다.

fstab 에

linproc            /usr/compat/linx/proc    linprocfs    rw    0    0

를 추가 해 줍니다.

vi /etc/make.conf

OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
추가해 준다.

vi /boot/loader.conf
linux_load="YES"


# nspluginwrapper -v -i /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
# cd /usr/local/lib/firefox3/plugins
# ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so

http://www.digitalfoo.net/posts/2009/07/FreeBSD_Firefox_with_Flash_10/
http://www.freebsd.org/doc/handbook/desktop-browsers.html

oss gnome + firefox3 사용가능하게 세팅
oss 작업중(오픈소스 사운드 드라이버 정도로 생각하면 됩니다..)
--------------------------------------------------------------------------------------------------
멀티 미디어 multimedia
audacious 설치
whreis aaudacious
make install clean
audacious-plugins
make install clean

whereis  xmms

make install clean

gdb /usr/local/bin/audacious2
run
quit
한번 하고 리붓 하고 나면 프로그램에서 정상적으로 .. 설치된 audacious를 볼수 있습니다.

vlc 설치(동영상 파일 재생 )
whereis vlc
make install clean
/dev/oss/oss_sbxfi0/pcm0
(creative x-fi 사용을 위해 // audacious 도 동일한 설정을 하면 된됩니다. 현제는 셋팅이 잘못되었는지 리붓을해서 사용하고
있지 않습니다.)

audio/linux-f10-alsa-plugins-oss 설치
make install

cd /usr/ports/audio/linux-f10-alsa-plugins-oss/work && /usr/bin/find * -type d -exec /bin/mkdir -p "/compat/linux/{}" \;
cd /usr/ports/audio/linux-f10-alsa-plugins-oss/work && /usr/bin/find * ! -type d | /usr/bin/cpio -pm -R root:wheel /compat/linux


vi /etc/make.conf

OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
(위 사항을 삭제 하였다 과거 7.x 버젼의 경우 위에 값을 적어 줘야 정상 작동 하였다. 8.x 부터는 아직까지는 별문제 없이 플래쉬를 쓰고 있습니다..)
oss (웹 동영상의 경우  동영상 flash 의 경우 정상적으로 동작하지 않는다. 리눅스 firefox 설치시 작동이 잘될수도 있으나.. 그냥 기존 사운드 카드만 사용하기로 했습니다.. )


-------------------------------------------------------------------------------------
개발 환경 조성을 위해 eclipse // jdk16 // virtualbox // emacs // code::blocks // jedit
 설치

whereis eclipse
make isntall clean


(디폴트로 설치 " 설치중 오류가 날수도 있으니 반드시 디폴트로 설치 한다 .. 오류가 날경우 eclipse-devel 로 다시 설치 합니다..)
(설치중 오류 " jdk16 부터 설치")
(pkg_add -r eclipse  로 설치 )
whereis jdk16
make install clean
jdk 셋팅
/etc/profile

export JAVA_HOME=/usr/local/jdk1.6.0
export JRE_HOME=/usr/local/jdk1.6.0/jre

java -version 으로 버젼 확인
java version "1.6.0_03-p4"
Java(TM) SE Runtime Environment (build 1.6.0_03-p4-usrname_24_may_2011_05_15-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p4-usrname_24_may_2011_05_15-b00, mixed mode)

정상 적인 확인

상위 작업 표시줄 시스템에 있는 자바 콘솔에서는.. 한글로 안나오는게 정상입니다.
자바 라이센스 때문에.. root 유저가 아닌 이상 정상적인 한글로 나오지 않고 깨져 나옵니다. 


jedit
 /usr/ports/editors/jedit
make install clean
(자바기반의 에디터 )

codeblocks
/usr/ports/devel/codeblocks
make install clean

emacs
whereis emacs
make install clean

VirtualBox 설치
참고 페이지

http://wiki.freebsd.org/VirtualBox


# portsnap fetch update
# cd /usr/ports/emulators/virtualbox-ose && make install clean

/boot/loader.conf
vboxdrv_load="YES"

/etc/rc.conf
vboxnet_enable="YES"

Add all users that need virtualbox to the vboxusers group:

# pw groupmod vboxusers -m usrname // testuser :사용자 이름 으로 적어 주면 됩니다..

/usr/ports/devel/py-setuptools 오류가 생길때는..
/etc/make.conf 에 아래 사항을 추가 시켜 줍니다.
FORCE_PKG_REGISTER=YES

/usr/ports/devel/py-setuptools]#make clean && make install
설치 완료 후 다시 VirtualBox 를 설치 하여 줍니다.
cd /usr/ports/emulators/virtualbox-ose && make install clean

cd /usr/ports/emulators/virtualbox-ose-additions && make install clean (설치가 안될경우 설치 하지 않습니다.)
vi /etc/rc.conf

vboxguest_enable="YES"
vboxservice_enable="YES"

 portsnap fetch update

vi /etc/X11/xorg.conf

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        Identifier "Card0"
        Driver "vboxvideo"
        VendorName "InnoTek Systemberatung GmbH"
        BoardName "VirtualBox Graphics Adapter"
        BusID "PCI:0:2:0"
EndSection

Section "InputDevice"
        Identifier "Mouse0"
        Driver "vboxmouse"
EndSection

90-vboxguest.fdi
HAL users should create this in /usr/local/etc/hal/fdi/policy/90-vboxguest.fdi or copy it from /usr/local/share/hal/fdi/policy/10osvendor/90-vboxguest.fdi:

<?xml version="1.0" encoding="UTF-8"?>
<!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: 90-vboxguest.fdi 21412 2009-07-08 21:18:57Z vboxsync $

     Copyright (C) 2008-2009 Sun Microsystems, Inc.

     This file is part of VirtualBox Open Source Edition (OSE), as
     available from http://www.virtualbox.org. This file is free software;
     you can redistribute it and/or modify it under the terms of the GNU
     General Public License (GPL) as published by the Free Software
     Foundation, in version 2 as it comes in the "COPYING" file of the
     VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.

     Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     Clara, CA 95054 USA or visit http://www.sun.com if you need
     additional information or have any questions.
-->
<deviceinfo version="0.2">
  <device>
    <match key="info.subsystem" string="pci">
      <match key="info.product" string="VirtualBox Guest Service">
        <append key="info.capabilities" type="strlist">input</append>
        <append key="info.capabilities" type="strlist">input.mouse</append>
        <merge key="input.x11_driver" type="string">vboxmouse</merge>
        <merge key="input.device" type="string">/dev/vboxguest</merge>
      </match>
    </match>
  </device>
</deviceinfo>


/boot/loader.conf
atapicam_load="YES"

/etc/rc.conf
hald_enable="YES"

---------------------------------------------------------------------------------------
의존성 작업 때문에 중간에 포트업그레이드를 해야 할때도 있습니다.

(포트 업그레이드)
csup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile
 처음:  portsnap fetch; portsnap extract
 나중에: portsnap fetch update

$ portupgrade -arR
$ pkgdb -F


의존성 작업
# cd /var/db/pkg
# mv pkgdb.db pkgdb.db.bak
# pkgdb -u

------------------------------------------------------------------------
emacs - 개발툴 설치
whereis emacs
make install clean
 

view 설치
epdfview - pdf 리더기
whereis epdfview
make install clean

gimp 설치
whereis gimp
make install clean


openoffice - 워드 프로세서
/usr/ports/editors/openoffice.org-3]#make LOCALIZED_LANG=ko install
(언어팩 설치) - ports 파일에 문제로 차후에 설치.
/usr/ports/editors/openoffice.org-2 make LOCALIZED_LANG=ko install
만약 3 버젼이 설치가 안된다면 2버젼을 설치 해보자.
----------------------------------------------------------------------------------------------------------------
OpenOffice.org Build OOO330_m20 Personal Install How-To

Written by:    Martin Blapp <mbr@freebsd.org>
        and Maho Nakata <maho@FreeBSD.org>

OpenOffice.org OOO330_m20 will soon been installed in
/usr/local/openoffice.org-3.3.0

1. User installation
--------------------

Just type "openoffice.org-3.3.0" after you have successfully
installed the package. If there is no installed OO.org dir
in your homedir, the setup installs ".openoffice.org3" folder.

2. Starting OO.org
------------------

There are some wrappers installed for faster startup.
Add "/usr/local/bin/" to your PATH and you will be able
to use them.

/usr/local/bin/openoffice.org-3.3.0
/usr/local/bin/openoffice.org-3.3.0-sbase
/usr/local/bin/openoffice.org-3.3.0-scalc
/usr/local/bin/openoffice.org-3.3.0-sdraw
/usr/local/bin/openoffice.org-3.3.0-setofficelang
/usr/local/bin/openoffice.org-3.3.0-smath
/usr/local/bin/openoffice.org-3.3.0-simpress
/usr/local/bin/openoffice.org-3.3.0-spadmin
/usr/local/bin/openoffice.org-3.3.0-swriter

OO.org does need $LANG to be set to a suitable value.

3. If you run into problems
--------------------------------------------------
If you somehow run into problems, please remove the already
installed ".openoffice.org3" dir in your homedir. Redo the user
installation and the problems should go away.

===>   Registering installation for ko-openoffice.org-3.3.0
===> SECURITY REPORT:
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/openoffice.org-3.3.0/openoffice.org/basis3.3/program/python-core-2.6.1/lib/lib-dynload/_socket.so
/usr/local/openoffice.org-3.3.0/openoffice.org/basis3.3/program/libcurl.so.4
/usr/local/openoffice.org-3.3.0/openoffice.org/ure/lib/libuno_sal.so.3
/usr/local/openoffice.org-3.3.0/openoffice.org/basis3.3/program/libneon.so

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://www.openoffice.org/

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

 

gnuls- 컬러 ls
bluefish - HTML_Edit
vlc - 멀티미디어 플레이어
jedit - java 기반 에디터
xchat - irc 클라이언트
pidgin - 통합 메신저
firefox3 - 웹브라우져
gimp - 그래픽 작업
compiz-fusion - 3d desktop
acroread - pdf 리더기
xpdf - pdf 리더기(장점:: 가벼움)
eclipse - 개발도구
audacious - mp3 플레이어 / xmms 을 설치해 줘야 정상작동함
/usr/ports/multimedia/xmms -- mp3 플레이어 설치
filezilla - ftp 클라이언트
bittorrent - p2p   cd /usr/ports && make search display=path key=torrent (검색)
/usr/ports/net-p2p/transmission    torrent client p2p
/usr/ports/net-p2p/azureus (bittorrent)
wine - windows 에뮬레이터
comix - 만화책 볼때...ㄷㄷㄷ;
subversion - 개발툴
mplayer - 멀티미디어 플레이어
streamtuner -- mp3 방송 청취
anjuta - c c++ 개발툴
code::blocks - 개발툴
emacs - 개발툴
virtualbox - 버추얼 머신 vm
jdk16 - java 개발툴
openoffice - 워드 프로세서
docky - dock
google-earth 구굴 어스

 

 

------------------------------------------------------------------------------------------------------------------
ntp 설정

http://saturnsoft.blogspot.com/2010/03/freebsd-7x-ntp.html
http://h1skies.blogspot.com/2009/11/스크랩freebsd-데스크탑을-위한-ntp-설정.html
rc.conf 에

ntpd_enable="YES"
ntpd_sync_on_start="YES"
ntpdate_enable="YES"


eclipse 다시 설치
http://shinnara.tistory.com/128
/etc/profile
export JAVA_HOME=/usr/local/jdk1.6.0
export JRE_HOME=/usr/local/jdk1.6.0/jre


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

pkg_remove  설치
whereis pkg_remove
make install clean

compiz 오류 관련 삭제
pkg_remove compiz
컴피즈 관련 패키지가 삭제 된다.
pkg_delete 와 pkg_remove 와의 차이점은 delete 는 패키지 한개만 삭제 하지만 remove 는 의존성 패키지 까지 전부 삭제 해 버린다.

/usr/local/bin/ccsm 까지 전부 삭제가 된걸 확인하였다.
다시 리붓후 compiz 를 설치 한다.

Section "InputDevice"
Identifier "Generic Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "XkbRules" "xorg"
Option  "XkbModel" "kr106"
Option  "XkbLayout" "kr"
EndSection
http://my-debian-linux.blogspot.com/2007/10/blog-post.html

 Option "Protocol" "standard"
(**) AT Keyboard: Protocol: standard
(**) Option "XkbRules" "base"
(**) AT Keyboard: XkbRules: "base"
(**) Option "XkbModel" "pc105"
(**) AT Keyboard: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) AT Keyboard: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) AT Keyboard: CustomKeycodes disabled

http://3leafs.blogspot.com/2007/05/port.html
# portsclean -C쓰지 않는 소스를 지우려면

portupgrade -R gnome (gnome 의존성 패키지 업데이트)
portupgrade -r gnome

가령 버전이 낮은 wget 을 현재 포트 트리에 맞는 최신 버전으로 업그레이드하려고 해 보자. 포트 트리만 최신으로 유지하고 있다면 다음 명령으로 간단하게 처리할 수 있다.

portupgrade -o lang/python26 lang/python25


/usr/ports/x11-toolkits/py-gtk 설치
설치 안됨
/usr/ports/x11-toolkits/py-gtk2 설치

설치후
vi /usr/local/bin/ccsm
#!/usr/local/bin/python
#!/usr/local/bin/python2.6

로 교체후 ccsm 성공.. ㅎㅎ

xorg.conf
 Section "ServerFlags"
     Option "AutoAddDevice" "False"
 EndSection

 Section "ServerFlags"
     Option "AutoAddDevice" "True"
 EndSection

Section "InputDevice"
 Identifier "Keyboard0"
  Driver "kbd"
 option  "XkbLayout" "ko"
EndSection 

keyboard 설정중 ... 아직 한영키를 쓸수 없다.
아이락스 usb 키보드를 쓰고 있지만 아직 한영키를 불러올수가 없더군요..


rc.conf

# -- sysinstall generated deltas -- # Tue May 10 09:53:40 2011
# Created: Tue May 10 09:53:40 2011
# 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.0.1"
hostname="desk.test.net"
ifconfig_em0="inet 192.168.0.222  netmask 255.255.255.0"
keymap="us.iso"
keyrate="fast"

# Gnome DeskTop Section
gnome_enable="YES"
dbus_enable="YES"
linux_enable="YES"
linux_enable="YES"
nvidia_enable="YES"
hald_enable="YES"
moused_enable="YES"

# Virtual Box Section
vboxguest_enable="YES"
vboxservice_enable="YES"
vboxnet_enable="YES"

# Web Server Section
pureftpd_enable="YES"
sshd_enable="YES"
sendmail_enable="NONE"
mysql_enable="YES"

# ntp Server Section
ntpd_enable="YES"
ntpd_sync_on_start="YES"
ntpdate_enable="YES"

 

----------------------------------------------------------------------------------------------------------------
(포트 업그레이드)
csup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile
 처음:  portsnap fetch; portsnap extract
 나중에: portsnap fetch update

$ portupgrade -arR
$ pkgdb -F

쓰고 있던 데스크 탑에서 portupgrade 를 해주면.. 잘쓰던 compiz-fusion 이나.. 파이어폭스
등등에서 문제가 생길수도 있습니다. 의존성 문제가 있어서 그런듯 싶은데..
문제가 있는 프로그램을 whereis compiz-fusion 으로 검색하여.. make reinstall 등으로 해결을 하면 됩니다.
(정확히.. make reinstall 로 해결 했다고 까지는 말씀 못드리겠습니다. ;; )


Freebsd 의 ports 시스템이 좋아서 입문하였다가. 데스크탑 설치까지 해보고 현제도 .. 잘쓰고 있는중입니다.
데스크탑도 시간날때 공부 삼아서 설치해서 쓰면 좋을듯 합니다. 우분투 보다는 많은 구굴링과 삽질이 필요하지만..
시간이 나면 한번쯤 설치해 보는것도 좋을듯 합니다.

위에 있는 내용의 베이스는 freebsdcity.org 에서  freebsd + xorg + gnome2  (프비데스크탑설치)의 글에서 발취한글과..
제가 사용하면서 적은것과 검색을통해.. 적어놓은것과 합쳐져 있습니다.

xorg + gnome2 올려놓고 틈틈히 정리한 문서입니다.
혹시나 필요한 분이 계시지 않을까 싶어서 이렇게 올려놓아 봅니다.
잘못된 부분이 있으면 코멘트 달아 주시면 감사하겠습니다.
 

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

SCIM 에서 한영키와 한자 키가 안되는 부분은.. 106 를 이용한 입력 대신

타자칠때 오른손자리아래 있는 알트와 컨트롤 키로 해결 했습니다..

xev 에서 확인해 보고.. scim 에서 키코드 불러 올때 각각 한영키와 한자키로 불러 올수 있습니다.;

한국어 키자판은 104 키로 인식하기 때문인듯 합니다.

'FreeBSD' 카테고리의 다른 글

FreeBSD SNMP  (0) 2015.02.09
FreeBSD 7.x 에서 ntp 설정하기  (0) 2015.02.09
FreeBSD ports 좀더 자세히 알기  (0) 2012.05.11
FreeBSD SNMP 설치 (net-snmp)  (0) 2012.05.10
FreeBSD ssh root 계정 접속  (0) 2012.05.10
Posted by 배움나눔
FreeBSD2012. 5. 9. 10:48

출처 : http://toybsd.tistory.com/900

 

FreeBSD 8.2에서 APM환경을 구축해보자!

이번에 CentOS에서 FreeBSD로 넘어오면서 Apache + PHP + MySQL환경을 구축을 새로하게 되었다. 내가 마지막으로 사용하던 FreeBSD버전은 8.0이였는데 지난 2월달에 8.2버전이 새로 나와서 설치를 하게 되었다.

이번 글에선 FreeBSD에서 APM환경 구축하기이다. 원래는 MySQL말고 PostgreSQL을 설치를 하고 싶었지만, 지금 사용하고 있는 워드프레스에선 MySQL만 지원을 하기 때문에 어쩔수 없이 MySQL을 설치를 하게 되었다.(플러그인을 사용하면 PostgreSQL도 사용이 가능하지만, MySQL을 사용하는 플러그인도 있기때문에 어쩔수 없이 MySQL을 구축했다. PostgreSQL하고 MySQL하고 포트가 달라서 둘다 설치해도 되지만 서버 스펙이..)

난 포트로 구축을 했다. 설치 순서는 MySQL->Apache22->PHP->PHP-Extension 순이다.

1. MySQL 설치 및 설정

[root@localhost ~]# cd /usr/ports/databases/mysql51-server && make install clean

설치가 끝난뒤 mysql을 활성화 시켜줘야 한다. /etc/rc.conf에 mysql_enable=”YES”를 추가를 해준다.
[root@localhost ~]# echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf

그다음은 mysqld를 올린다.
[root@localhost ~]# /usr/local/etc/rc.d/mysqld start

그런뒤 root패스워드를 지정을 해준다. %%%%부분에 사용할 패스워드를 입력해주면 된다.
[root@localhost ~]# mysqladmin -u root password ‘%%%%%’

이것으로 MySQL은 손쉽게 설치가 되었다. 난 my.cnf는 디폴트로 사용하기로 했다. (나중에 튜닝할 예정)

2. Apache 설치 및 설정

[root@localhost ~]# cd /usr/ports/www/apache22 && make install clean

위 와같이 설치를 하면 도중에 어떤 모듈도 설치할건지가 나오는데, 자기가 필요한 모듈을 선택하고 진행하면 된다. 이후 설치가 끝나면 httpd.conf파일을 조금 수정을 해야할 필요가 있다.

[root@localhost ~]# vim /usr/local/etc/apache22/httpd.conf

149번째줄에 있는 ServerName부분을 주석을 해제 시키고 다음과 같이 수정을 한다.
ServerName 127.0.0.1:80

설정이 간단하게 끝났다. httpd.conf는 자신의 입맛에 맞게 설정을 해주면 된다.

마지막으로 apache22를 활성화를 해준다.

[root@localhost ~]# echo ‘apache22_enable=”YES”‘ >> /etc/rc.conf

3. PHP 설치 및 설정

[root@localhost ~]# cd /usr/ports/lang/php5 && make install clean

위의 명령어를 치면 어떤 모듈을 설치할것인지 나오는데, ‘APACHE’부분을 꼭! 체크하고 설치를 해준다.

설치가 끝나면 extension을 설치를 한다.
[root@localhost ~]# cd /usr/ports/lang/php5-extensions && make install clean

여기서 자신이 필요한 모듈을 설치를 해준다. 필수적으로 해주어야 할것은 ‘MySQL’부분이다. MySQL 모듈을 설치를 해주어야지만 MySQL에 연결을 할수가 있다. xpressengine같은것을 사용하려면 gd 라이브러리도 필요하므로 ‘gd’정도도 체크하면 된다. 나머지는 사용자가 필요에 따라 선택한다.

php 설치가 끝나면 이제 apache에 mime type을 추가를 해주어야 한다.
[root@localhost ~]# echo ‘application/x-httpd-php php’ >> /usr/local/etc/apache22/mime.types

DirectoryIndex에서 php도 추가를 해주어야 한다.
[root@localhost ~]# vim /usr/local/etc/apache22/httpd.conf
httpd.conf에서 217번째 줄에서 다음과 같이 수정한다.
DirectoryIndex index.html index.htm index.php

그리고 apache 데몬을 올린다.
[root@localhost ~]# /usr/local/etc/rc.d/apache22 start

이제 웹브라우저로 접속을 해서 잘 접속이 되는지 확인을 하고  phpinfo()도 넣어서 잘 연동이 되는지도 확인을 해보면 된다.

Posted by 배움나눔
FreeBSD2012. 5. 9. 10:44

출처 : http://visualnet.tistory.com/334

 

FreeBSD + APM + cacti 설치

#vi .cshrc 수정


setenv  LANG ko_KR.UTF-8
setenv  LC_ALL ko_KR.UTF-8
(로케이션 한글 설정)
set prompt = "%B`whoami`%b@`hostname`[%~]#"

#source .cshrc


port 업데이트

cvsup -g -L 2 -h cvsup.jp.freebsd.org /usr/share/examples/cvsup/ports-supfile


1.apache22 설치

whereis apache22

cd /usr/ports/www/apache22
make WITH_MPM=worker install clean (2코어 활성)

선택 옵션에서 mysql 선택하고 탭ok 누르면 된다.

apache22 셋팅은 mysql55-server 와.. php5 를 설치 하고나서 한번에 셋팅 한다..


2. mysql55-server 설치

cd /usr/ports/databases/mysql55-server

#make WITH_CHARSET=utf8 WITH_COLLATION=utf8_general_ci install clean
* EUC-KR을 사용하기 위한 옵션 설치
 # > make WITH_CHARSET=euckr WITH_COLLATION=euckr_korean_ci install clean

utf8로 설치 한다..

#make WITH_CHARSET=utf8 WITH_COLLATION=utf8_general_ci install clean

 특별히 설정할껀 없다.

 

 * mysql 설정파일 복사
 # > cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf


3. php5 설치

apache22 와 연동하기 위하여..

cd /usr/ports/lang/php5 && make config

설정 화면에서 Build Apache module 선택후.. ok 버튼으로 넘김

cd /usr/ports/lang/php5-extensions

make config install 로 설치

설치 옵션에서 FTP GD MYSQL SOCKETS SNMP 선택후 OK 눌러 설치

설치중 나오는 옵션은 전부 탭눌러서 넘긴다.
설정


1. apache22 설정

cd /usr/local/etc/apache22

vi httpd.conf

AddType 로 검색하여 적당한 곳에..
AddType application/x-httpd-php .php .inc .html
AddType application/x-httpd-php-source .phps


추가한다.


    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php .inc .html
    AddType application/x-httpd-source .phps
이런식으로 적어 주면 된다.

DirectoryIndex 를 검색하여.

DirectoryIndex index.html index.php  추가해준다.


# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf

Include 앞에 주석 해제 위와 같이 변경
vi /etc/rc.conf
apache22_enable="YES"


2. mysql 설정

cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf
vi /etc/rc.conf
mysql_enable="YES" 추가후 리붓

 

3.php 설정
cd /usr/local/etc

cp  php.ini-development php.ini 로 카피 한다.

리붓후
sockstat -4 로 mysql 과 httpd 작동을 확인 한다..

root     sshd       1174  4  tcp4   *:22                  *:*
root     httpd      1147  3  tcp4 6 *:80                  *:*
root     httpd      1147  4  tcp4   *:*                   *:*
mysql    mysqld     1081  11 tcp4 6 *:3306                *:*

4. mysql 나머지 설정..

* 기본 사용자가 mysql로 사용하는 기본 관리 DB 설치
/usr/local/bin/mysql_install_db --user=mysql

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

FATAL ERROR: Could not find ./bin/my_print_defaults

 


If you compiled from source, you need to run 'make install' to

copy the software into the correct location ready for operation.

 


If you are using a binary release, you must either be at the top

level of the extracted archive, or pass the --basedir option

pointing to that location.

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

위와 같은 오류때문에.. mysql_install_db 가 설치가 안된다고 하면 아래 방법으로 설치

/usr/local/bin/mysql_install_db --user=mysql --basedir=/usr/local

* 관리자 비밀번호 지정 하기
/usr/local/bin/mysqladmin -u root password '패스워드' (패스워드 앞에 '은 엔터옆에 '임)

* 캐릭터셋 점검
 # > mysql -u root -p
      Enter password:
      Welcome to the MySQL monitor.  Commands end with ; or \g.
      Your MySQL connection id is 9 to server version: 5.1.34-log

      Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

      mysql> use test;
      Database changed
      mysql> show variables like 'c%';
      +--------------------------+----------------------------------+
      | Variable_name            | Value                            |
      +--------------------------+----------------------------------+
      | character_set_client     | utf8                            |
      | character_set_connection | utf8                            |
      | character_set_database   | utf8                            |
      | character_set_results    | utf8                            |
      | character_set_server     | utf8                            |
      | character_set_system     | utf8                            |
      | character_sets_dir       | /usr/local/share/mysql/charsets/ |
      | collation_connection     | utf8_general_ci                  |
      | collation_database       | utf8_general_ci                  |
      | collation_server         | utf8_general_ci                  |
      | concurrent_insert        | ON                              |
      | connect_timeout          | 5                                |
      +--------------------------+----------------------------------+
      12 rows in set (0.00 sec)
     
      mysql >

mysql > quit
- 서버설정에 타라 위의 내용이 다를 수 있습니다.
quit 로 빠져 나온다..

 

mysql utf8 적용

vi /etc/my.cnf


[client]
default-character-set=utf8

 

[mysqld]
character-set-server=utf8

 

[mysql]
dafault-character-set=utf8


mysql> use test;
Database changed
mysql> show variables like 'c%';
+--------------------------+----------------------------------+
| Variable_name            | Value                            |
+--------------------------+----------------------------------+
| character_set_client     | utf8                             |
| character_set_connection | utf8                             |
| character_set_database   | utf8                             |
| character_set_filesystem | binary                           |
| character_set_results    | utf8                             |
| character_set_server     | utf8                             |
| character_set_system     | utf8                             |
| character_sets_dir       | /usr/local/share/mysql/charsets/ |
| collation_connection     | utf8_general_ci                  |
| collation_database       | utf8_general_ci                  |
| collation_server         | utf8_general_ci                  |
| completion_type          | NO_CHAIN                         |
| concurrent_insert        | AUTO                             |
| connect_timeout          | 10                               |
+--------------------------+----------------------------------+
14 rows in set (0.01 sec)

mysql>


apm 설치및 셋팅이 끝났다..

 

mysql> status

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

mysql  Ver 14.14 Distrib 5.1.60, for portbld-freebsd8.2 (amd64) using  5.2


Connection id: 1048

Current database:

Current user: root@localhost

SSL: Not in use

Current pager: more

Using outfile: ''

Using delimiter: ;

Server version: 5.1.60-log FreeBSD port: mysql-server-5.1.60

Protocol version: 10

Connection: Localhost via UNIX socket

Server characterset: utf8

Db     characterset: utf8

Client characterset: utf8

Conn.  characterset: utf8

UNIX socket: /tmp/mysql.sock

Uptime: 1 day 16 hours 37 min 20 sec


Threads: 1  Questions: 109705  Slow queries: 0  Opens: 1107  Flush tables: 1  Open tables: 54  Queries per second avg: 0.750

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


cacti 를 설치 합니다.

기본적으로 apm 이 설치 되어 있어야 한다. php 설치 옵션중 snmp

test# whereis cacti
cacti: /usr/ports/net-mgmt/cacti


cacti: /usr/ports/net-mgmt/cacti
test# cd /usr/ports/net-mgmt/cacti && make install clean

 

mysql 의 db와 계정을 셋팅한다.

# mysql -u root -p

Enter password: **********

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


mysql> create database cacti;

mysql> use mysql;

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'password';

mysql> FLUSH privileges;

mysql> quit


mysql -u root -p cacti < /usr/local/share/cacti/cacti.sql

php.ini timezone 수정

vi /usr/local/etc/php.ini

date.timezone = Asia/Seoul

로 수정

# vi /usr/local/share/cacti/include/config.php
--------------->modify<------------------

#database_type = "mysql";

#database_default = "cacti";

$database_hostname = "127.0.0.1";

$database_hostname = "localhost";

$database_username = "cacti";

$database_password = "password";

$database_port = "3306";

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


vi /etc/rc.conf

snmpd_enable="YES"
snmptrapd_enable="YES"
linux_enable="YES"

cd /usr/local/share/snmp/

cp snmpd.conf.example snmpd.conf

vi snmpd.conf

#trap2sink    localhost public

#rocommunity public  localhost

주석 제거 해 준다.

vi /etc/crontab

*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1

추가 해 준다.

리눅스 에뮬레이터 설치
메모리 부분 스크립트가 linux 전용으로 되어 있기 때문에 linux에뮬레이터를 설치 해야 정상적으로 작동한다.
위에 rc.conf 수정에서 linux_enable="YES" 로 한후 리붓을 해야 정상적으로 설치가 가능하다.

rc.conf 를 수정 하지 않고 설치 했을경우

root@cacti.test.com[/usr/ports/emulators/linux_base-f10]#make install clean
===>  linux_base-f10-10_4 linuxulator is not (kld)loaded.
*** Error code 1

Stop in /usr/ports/emulators/linux_base-f10.

와 같은 오류 메시지를 볼수 있다
리눅스 에뮬레이터 사용시 시작스크립트인 rc.conf 에서 리눅스 모듈? 을 불러와야 정상적으로 설치가 된다.

리붓후 다시 설치 하도록 한다.

root@test.crois.net[~]#cd /usr/ports/emulators/linux_base-f10/
root@test.crois.net[~]#make install clean

cacti 메모리 부분 스크립트 변경
리눅스 용으로 작성이 되어 있기때문에 freebsd 에서 구동시키면 정상 작동이 되질 않습니다.
 test# cd /usr/local/share/cacti/scripts/
 test# vi linux_memory.pl

#!/usr/bin/perl

$mem = `cat /compat/linux/proc/meminfo | grep -w "$ARGV[0]"`;
$mem =~ s/($ARGV[0].*\s)(.*[0-9])( kB)//;

print $2;


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

linux 에뮬레이터 사용을 위해.
fstab 부분에 설정을 합니다.

 vi /etc/fstab
 linproc   /compat/linux/proc linprocfs rw 0 0

 

vi /etc/crontab

*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1


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

root@cacti.test.com[/usr/local/share/cacti/scripts]#cd /usr/local/etc/apache22/
vi httpd.conf

apache 설정

Alias /cacti /usr/local/share/cacti
<Directory "/usr/local/share/cacti">
    AllowOverride None
    Order Allow,deny
    Allow from all
</Directory>

 


root@cacti.test.com[~]#/etc/rc.d/cron restart


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


01/09/2012 10:35:02 AM - PCOMMAND: Poller[0] Host[1] WARNING: Recache Event Detected for Host

오류가 뜨면
php -q /usr/local/share/cacti/cli/poller_reindex_hosts.php -id=2 -d

php -q /usr/local/share/cacti/cli/poller_reindex_hosts.php -id=All

삭제 해 줘야 한다.
오류 관련 설정 페이지

http://docs.cacti.net/manual:087:6_reference.4_cli_script.2_reindex_hosts


정상적으로 snmpd 가 작동 하는걸 보기 위해.. 아래 명령어를 실행해 본다.

snmpwalk -v 2c -c public localhost


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

cacti 설정


admin:admin 으로 로그인 하고 로그인 후에 비번을 만들어 주면 된다.



 

Devices 부분


Host Template 부분을 ucd/net SNMP Host 로 바꿔 준다.

SNMP Version 을 Version 2 로 바꿔준다.

Associated Graph Templates 에서

2) ucd/net - CPU Usage  Not Being Graphed   
3) ucd/net - Load Average  Not Being Graphed   
4) ucd/net - Memory Usage  Not Being Graphed 


위와 같이 추가를 해준다.

Associated Data Queries 부분에서

1) SNMP - Interface Statistics 추가


그리고 저장.

Management 부분에서

Graph Management

기본으로 되어 있던 설정을 전부 삭제 한다.


다시
Create
New Graphs  부분에서 그래프를 만들어 준다.

 

Collection Methods
Data Queries

부분에서 SNMP - Interface Statistics 를 추가

전부 설치 하고 나면 5분 후 아래와 같은 그래프를 볼수 있다.




----------------------------------------------
설명이 너무 부실하여 도움이 될지는 모르겠지만..
차후좀더 수정 보완하겠습니다.
어설픈글 읽어 주셔서 감사합니다 _(__)_

Posted by 배움나눔