728x90
300x250

Centos 4, 5에서 Java SE 설치하기.

jdk-6u14-linux-i586-rpm.bin 이 파일을 다운받아야 합니다.
주소 : http://developers.sun.com/downloads/top.jsp


1. 설치 방법



설치방법

1. 터미널에서 다음을 입력합니다.
vi /etc/inittab

id:5:initdefault를
id:3:initdefault로 바꿔줍니다.

2. 재부팅합니다.
3. 해당 다운로드 받은 파일의 위치로 이동합니다.
4. ./jdk-6u14-linux-i586-rpm.bin을 입력합니다.

오류가 뜰것입니다. 오류가 뜬다면 정상입니다.
-> chmod 755 jdk-6u14-linux-i586-rpm.bin(파일명)
권한을 부여해줍니다.

5. ./jdk-6u14-linux-i586-rpm.bin를 입력합니다.
6. 엔터를 계속누르다보면 'Yes'를 입력하라고 뜹니다.
Yes라고 입력한 후 엔터키를 누릅니다.
7. 설치가 진행됩니다.
8. 설치가 완료가 되었습니다.

- 참고 -
설치 후에 RPM파일이 여러개가 생성이 되는데 지우셔도 상관없습니다.
(왜냐하면 설치마법사를 통해 RPM들을 모두 설치하였기 때문입니다.)
반응형
728x90
300x250

Centos 4, 5에서 Nvidia 그래픽 카드 - 설치 방법

간혹 모니터 주파수 대역을 벗어나는 사례가 종종 발생하기 때문에 글을 올리게 되었다.

이곳에서 적당히 다운받으시면 된다.
http://www.nvidia.com/Download/index.aspx?lang=en-us


[이 글을 읽으면 도움이 되는 경우]
예) X-Windows로 부팅한 상태에서 설치가 가능하다고 생각하는 사람...


1. 해결 방법

먼저 X-Windows를 끄기 위해 vi /etc/inittab 를 입력한다.

id:5:initdefault (GUI 모드를 CUI로)
id:3:initdefault 로 변경한다.

:wq
shutdown -r now
재부팅 합니다.

./Nvidia파일.run
절차에 맞게 설치를 진행하면 된다.

[재부팅 하기 전에]
inittab 파일을 원상 복귀 시킨다.

id:5 값으로 바꾸라고

[재부팅해도 화면이 안뜨면]

ctrl + alt + f1 키로 콘솔로 전환해서 재 작업할 것

[참고] ctrl + alt + f7은 GUI화면으로 전환하는 키이다.

수정일자 : 2009/06/14


반응형
728x90
300x250

[Linux] Centos 4, 5 Ndiswrapper 사용하는 방법

여기저기에서 ndiswrapper와 관련된 정보가 올라오고 있습니다.
하지만 가끔은 지나친 정보로 인해 혼돈이 되는 경우가 있습니다. 저는 ndiswrapper를 설치만 하려고 20번 정도 삽질을 했었습니다.(Fedora에서)
Centos로 전환하고 나서 커널에 대한 걱정은 조금 덜수가 있었습니다.(커널에 대한 걱정을 해소하게 된건 yum 업데이터의 도움으로 해소할 수가 있었습니다...;;;)

[ndiswrapper 소스]
http://sourceforge.net/projects/ndiswrapper/

Stable 버전으로 받으시거나 아래 첨부된 파일로 설치하시면 되겠습니다.

[첨부(Attachment)]
ndiswrapper-1.54.tar.gz


1. 설치 전에 준비해야 할 일

You need a recent kernel, at least 2.6.16, with header files for the
kernel. Make sure there is a link to the kernel source from the modules
directory. The command

  ls /lib/modules/`uname -r`/build

(커널을 최신버전으로 업데이트 해주시기 바랍니다. - 뭐 요즘은 리눅스도 기능이 좋아져서 yum 명령어 하나로 커널부터 시작해서 왠만한 것들은 다 설치하기에 쉽게 하실 수 있을 거라 믿습니다.)

[압축풀기]
tar xvfz (ndiswrapper 압축 파일명)
cd (ndiswrapper 압축 풀린 폴더명)

[설치하기]
make (공식 메뉴얼에 보니 make를 입력하라고 적혀있네....)
make install

[설치완료 후 확인하기]
커맨드라인(혹은 쉘이라 불리우는)에 ndiswrapper라고 입력합니다.
설치가 되면 무슨 반응이 나오겠지요....??

[드라이버 설치]
ndiswrapper -i 드라이버.inf(혹시 이것도 모르는 사람은 없겠지? 드라이버 있는 폴더에 이동 후에 사용한다는거...다들 알고 있을거라 믿어...)

[PCI 인터페이스, USB 인터페이스 확인]
lsusb (USB 확인)
lspci -n (PCI 인터페이스 넘버 확인)
lspci (PCI 인터페이스 전체 확인???)

[Alias 설정]
재부팅시 모듈 올리기 위해서 하는 작업이에요..

vi /etc/modprobe.conf
적당한 줄에
alias wlan0 ndiswrapper 추가해라

재부팅하세요. - 2009.6.14일 추가

[Ndiswrapper 설정]
ndiswrapper -ma
(오류가 나올수도 있습니다.)

[무선 네트워크 확인]
iwconfig

iwconfig wlan0 essid (채널명)
iwconfig wlan0 key restricted (암호명) - 오타 났네요. 죄송합니다.
iwconfig wlan0 (아이피주소)
iwconfig wlan0 up(올리기)

(더 자세한 사항은 iwconfig -h을 통해 확인하시기 바랍니다.)

[modprobe로 장치 올리기]
modprobe ndiswrapper  - 2009.6.14 추가

[무선랜 상태 확인]
무선랜 올라와 있으면
ifconfig에 올라와 있는가 확인할것

확인이 되었으면

etc/sysconfig/network-scripts/ifcfg-wlan0

[옵션 안내]

GATEWAY= 게이트웨이주소입력
TYPE=(무선=Wireless, 유선=Ethernet)
Device=(장치명)
HWADDR=(MAC주소)
NETMASK=(네트워크 마스크 범위)
IPADDR=(IP주소)
ONBOOT=(부팅시 네트워크 시동 여부)
ESSID=(무선랜 AP 이름)
KEY=(WEP암호)
입력방법 : HEX키 경우 : 0x(키입력)
               나머지키는 그냥 입력하시면 됩니다.
2009.6.14 추가

PEERDNS=yes(1:1 DNS) - 2009.6.14 추가

[ndiswrapper 명령어]
modprobe ndiswrapper (Module로 올리기)
ndiswrapper -i 드라이버.inf (네트워크 드라이버)
ndiswrapper -h (도움말)
ndiswrapper -l (ndiswrapper로 올린 네트워크 드라이버 리스트)
ndiswrapper -v (ndiswrapper 버전)

[iwlist는?]
iwlist는 무선랜이 연결되었는지 확인하는 기초적인 명령어로 윈도우에서는 WZC와 비슷한 역할을 수행하고 있다고 보시면 됩니다.

iwlist (장치명) scanning
무선랜 스캔

반응형
728x90
300x250

[Linux] GD 라이브러리 설치

(사실 제가 쓰려고 메모해두는 것이기도 합니다)
GD라이브러리 설치 순서는 크게 아래와 같습니다.

1. zlib 설치
2. png 설치
3. jpeg 설치
4. freetype 설치
5. gd 설치

아래에 각각의 라이브러리에 대한 다운로드 자료가 있습니다.
각각 서버에 설치하도록 합니다.


1. 참고 링크

1. zlib 다운로드 : http://www.zlib.net/
(zlib-1.2.3.tar.gz) = 예제에서 사용하고 있는 버전입니다.

 

 

2. png 다운로드 : http://www.libpng.org/pub/png/libpng.html
(libpng-1.2.34.tar.gz) = 예제에서 사용하고 있는 버전입니다.

3. JPEG 다운로드 : http://quox.org/install/graphics/jpeg-6b.html
(jpegsrc.v6b.tar.gz) = 예제에서 사용하고 있는 버전입니다.

4. freetype 다운로드 : http://freetype.sourceforge.net/index2.html
(freetype-2.3.8.tar.gz) = 예제에서 사용하고 있는 버전입니다.

5. GD 다운로드 (gd-2.0) : http://www.libgd.org/Main_Page

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

파일 압축 해제

[root@server3 GD-library]# pwd
/root/Desktop/GD-library

- 압축 해제 -
[root@server3 GD-library]# tar xvfz freetype-2.3.8.tar.gz
[root@server3 GD-library]# tar xvfz gd-2.0.36RC1.tar.gz
[root@server3 GD-library]# tar xvfz jpegsrc.v6b.tar.gz
[root@server3 GD-library]# tar xvfz libpng-1.2.34.tar.gz
[root@server3 GD-library]# tar xvfz zlib-1.2.3.tar.gz

- 폴더 이동 : 꼭 이동할 필요는 없지만 소스 설치시 구분하기 쉽게 하기 위해 이동해 준다. -
[root@server3 GD-library]# mv freetype-2.3.8 /usr/local/src
[root@server3 GD-library]# mv gd-2.0.36RC1 /usr/local/src
[root@server3 GD-library]# mv jpeg-6b/ /usr/local/src
[root@server3 GD-library]# mv libpng-1.2.34 /usr/local/src
[root@server3 GD-library]# mv zlib-1.2.3 /usr/local/src

- 설치 폴더 생성 : 꼭 만들어 줄 필요는 없지만 구분하기 쉽게 하기 위해 만들어준다. -
[root@server3 GD-library]# cd /usr/local
[root@server3 local]# pwd
/usr/local
[root@server3 local]# mkdir gd-lib

1. zlib 설치

[root@server3 src]# cd zlib-1.2.3/
[root@server3 zlib-1.2.3]# ./configure --help
usage:
  configure [--shared] [--prefix=PREFIX]  [--exec_prefix=EXPREFIX]
     [--libdir=LIBDIR] [--includedir=INCLUDEDIR]

[root@server3 zlib-1.2.3]# ./configure --shared --prefix=/usr/local/gd-lib/zlib-1.2.3
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.2.3 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.

[root@server3 zlib-1.2.3]# make

- 중략

ln -s libz.so.1.2.3 libz.so
ln -s libz.so.1.2.3 libz.so.1
gcc -fPIC -O3 -DUSE_MMAP -o example example.o -L. libz.so.1.2.3
gcc -fPIC -O3 -DUSE_MMAP   -c -o minigzip.o minigzip.c
gcc -fPIC -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.so.1.2.3

[root@server3 zlib-1.2.3]# make install

- 중략

cp zlib.3 /usr/local/gd-lib/zlib-1.2.3/share/man/man3
chmod 644 /usr/local/gd-lib/zlib-1.2.3/share/man/man3/zlib.3
[root@server3 zlib-1.2.3]#

2. png 설치

[root@server3 src]# cd libpng-1.2.34/
[root@server3 libpng-1.2.34]# ./configure --help
`configure' configures libpng 1.2.34 to adapt to many kinds of systems.

- 중략

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <png-mng-implement@lists.sourceforge.net>.

[root@server3 libpng-1.2.34]# ./configure --prefix=/usr/local/gd-lib/libpng-1.2.34

- 중략

checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... yes
checking if libraries can be versioned... yes
checking for symbol prefix...
configure: pkgconfig directory is ${libdir}/pkgconfig
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpng.pc
config.status: creating libpng-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

[root@server3 libpng-1.2.34]# make

- 중략

cp libpng-config libpng12-config
cp libpng.pc libpng12.pc
make[1]: Leaving directory `/usr/local/src/libpng-1.2.34'

[root@server3 libpng-1.2.34]# make install

- 중략

make  install-data-hook
make[2]: Entering directory `/usr/local/src/libpng-1.2.34'
cd /usr/local/gd-lib/libpng-1.2.34/include; rm -f png.h pngconf.h
cd /usr/local/gd-lib/libpng-1.2.34/include; ln -s libpng12/png.h png.h
cd /usr/local/gd-lib/libpng-1.2.34/include; ln -s libpng12/pngconf.h pngconf.h
cd /usr/local/gd-lib/libpng-1.2.34/lib/pkgconfig; rm -f libpng.pc
cd /usr/local/gd-lib/libpng-1.2.34/lib/pkgconfig; ln -s libpng12.pc libpng.pc
make[2]: Leaving directory `/usr/local/src/libpng-1.2.34'
make[1]: Leaving directory `/usr/local/src/libpng-1.2.34'
[root@server3 libpng-1.2.34]#

3. jpeg 설치 - http://quox.org/install/graphics/jpeg-6b.html 참고  

[root@server3 src]# cd jpeg-6b/
/usr/local/src/jpeg-6b
[root@server3 jpeg-6b]# ./configure --help

- 중략

Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:
  --enable-shared         build shared library using GNU libtool
  --enable-static         build static library using GNU libtool
  --enable-maxmem[=N]     enable use of temp files, set max mem usage to N MB

[root@server3 jpeg-6b]# ./configure --prefix=/usr/local/gd-lib/jpeg-6b/ --enable-shared --enable-static

- 중략

checking for objdir... .libs
creating libtool
checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
jconfig.h is unchanged

[root@server3 jpeg-6b]# make

- 중략

mv -f rdjpgcom.o rdjpgcom.lo
gcc -O2 -I. -c ./rdjpgcom.c >/dev/null 2>&1
./libtool --mode=link gcc  -o rdjpgcom rdjpgcom.lo
gcc -o rdjpgcom rdjpgcom.o
./libtool --mode=compile gcc -O2  -I. -c ./wrjpgcom.c
gcc -O2 -I. -c -fPIC -DPIC ./wrjpgcom.c
mv -f wrjpgcom.o wrjpgcom.lo
gcc -O2 -I. -c ./wrjpgcom.c >/dev/null 2>&1
./libtool --mode=link gcc  -o wrjpgcom wrjpgcom.lo
gcc -o wrjpgcom wrjpgcom.o

[root@server3 jpeg-6b]# strip rdjpgcom wrjpgcom .libs/{cjpeg,djpeg,jpegtran}

-------------------------------------------------------------------
- make 시 에러가 발생하면 아래와 같은 폴더를 생성해 준 다음 make clean 명령어를 해준 후 재 컴파일 해준다.
[root@server3 jpeg-6b]# pwd
/usr/local/gd-lib/jpeg-6b
[root@server3 jpeg-6b]# mkdir include
[root@server3 jpeg-6b]# mkdir bin
[root@server3 jpeg-6b]# mkdir lib
[root@server3 jpeg-6b]# mkdir man
[root@server3 jpeg-6b]# mkdir ./man/man1
-------------------------------------------------------------------

[root@server3 jpeg-6b]# pwd
/usr/local/src/jpeg-6b
[root@server3 jpeg-6b]# make install

- 중략

./libtool --mode=install /usr/bin/install -c cjpeg /usr/local/gd-lib/jpeg-6b//bin/cjpeg
/usr/bin/install -c .libs/cjpeg /usr/local/gd-lib/jpeg-6b//bin/cjpeg
./libtool --mode=install /usr/bin/install -c djpeg /usr/local/gd-lib/jpeg-6b//bin/djpeg
/usr/bin/install -c .libs/djpeg /usr/local/gd-lib/jpeg-6b//bin/djpeg
./libtool --mode=install /usr/bin/install -c jpegtran /usr/local/gd-lib/jpeg-6b//bin/jpegtran
/usr/bin/install -c .libs/jpegtran /usr/local/gd-lib/jpeg-6b//bin/jpegtran
./libtool --mode=install /usr/bin/install -c rdjpgcom /usr/local/gd-lib/jpeg-6b//bin/rdjpgcom
/usr/bin/install -c rdjpgcom /usr/local/gd-lib/jpeg-6b//bin/rdjpgcom
./libtool --mode=install /usr/bin/install -c wrjpgcom /usr/local/gd-lib/jpeg-6b//bin/wrjpgcom
/usr/bin/install -c wrjpgcom /usr/local/gd-lib/jpeg-6b//bin/wrjpgcom
/usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/gd-lib/jpeg-6b//man/man1/cjpeg.1
/usr/bin/install -c -m 644 ./djpeg.1 /usr/local/gd-lib/jpeg-6b//man/man1/djpeg.1
/usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/gd-lib/jpeg-6b//man/man1/jpegtran.1
/usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/gd-lib/jpeg-6b//man/man1/rdjpgcom.1
/usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/gd-lib/jpeg-6b//man/man1/wrjpgcom.1

[root@server3 jpeg-6b]# cp jversion.h /usr/local/gd-lib/jpeg-6b/include/ - 설치폴더의 include 폴더에 파일을 복사해준다.

4. freetype 설치

[root@server3 src]# cd freetype-2.3.8/
[root@server3 freetype-2.3.8]# pwd
/usr/local/src/freetype-2.3.8

[root@server3 freetype-2.3.8]# ./configure --prefix=/usr/local/gd-lib/freetype-2.3.8

FreeType build system -- automatic system detection

- 중략

configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating freetype-config
config.status: creating freetype2.pc
config.status: creating ftconfig.h
config.status: executing libtool commands
make: `unix'를 위해 할 일이 없습니다

[root@server3 freetype-2.3.8]# make

- 중략

libtool: link: ranlib /usr/local/src/freetype-2.3.8/objs/.libs/libfreetype.a
libtool: link: ( cd "/usr/local/src/freetype-2.3.8/objs/.libs" && rm -f "libfreetype.la" && ln -s "../libfreetype.la" "libfreetype.la" )

[root@server3 freetype-2.3.8]# make install

- 중략

/usr/bin/install -c -m 644 ./builds/unix/ft2unix.h \
          /usr/local/include/ft2build.h
/usr/bin/install -c -m 644 ./builds/unix/ftconfig.h                        \
          /usr/local/include/freetype2/freetype/config/ftconfig.h
/usr/bin/install -c -m 644 /usr/local/src/freetype-2.3.8/objs/ftmodule.h                          \
          /usr/local/include/freetype2/freetype/config/ftmodule.h
/usr/bin/install -c -m 755 ./builds/unix/freetype-config \
          /usr/local/bin/freetype-config
/usr/bin/install -c -m 644 ./builds/unix/freetype2.m4 \
          /usr/local/share/aclocal/freetype2.m4
/usr/bin/install -c -m 644 ./builds/unix/freetype2.pc \
          /usr/local/lib/pkgconfig/freetype2.pc
[root@server3 freetype-2.3.8]#

5. gd 설치

[root@server3 src]# cd gd-2.0.36RC1/
[root@server3 gd-2.0.36RC1]# pwd
/usr/local/src/gd-2.0.36RC1

[root@server3 gd-2.0.36RC1]# ./configure --help
`configure' configures GD 2.0.36 to adapt to many kinds of systems.

- 중략

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <http://bugs.libgd.org>.

[root@server3 gd-2.0.36RC1]# ./configure --prefix=/usr/local/gd-lib/gd-2.0.36RC1 --with-png=/usr/local/gd-lib/libpng-1.2.34 --with-jpeg=/usr/local/gd-lib/jpeg-6b/ --with-freetype=/usr/local/gd-lib/freetype-2.3.8

- 중략

** Configuration summary for gd 2.0.36: - 확인해준다.

   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: yes - 무료 폰트 렌더링 라이브러리
   Support for Fontconfig library:   no
   Support for Xpm library:          no - unix의 이미지 포맷 라이브러리
   Support for pthreads:             yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands

[root@server3 gd-2.0.36RC1]# make

- 중략

make[2]: Leaving directory `/usr/local/src/gd-2.0.36RC1'
make[1]: Leaving directory `/usr/local/src/gd-2.0.36RC1'

[root@server3 gd-2.0.36RC1]# make install

- 중략

make[2]: Leaving directory `/usr/local/src/gd-2.0.36RC1'
make[1]: Leaving directory `/usr/local/src/gd-2.0.36RC1'
[root@server3 gd-2.0.36RC1]#

6. php 재컴파일


[root@server3 src]# cd php-5.2.8
[root@server3 php-5.2.8]# pwd
/usr/local/src/php-5.2.8

[root@server3 php-5.2.8]# make clean - 이전 컴파일 정보 삭제
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp5.la sapi/cli/php libphp5.la modules/* libs/*

[root@server3 php-5.2.8]# ./configure
--with-apxs2=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/apache/conf \
--with-exec-dir=/usr/local/apache/bin \
--enable-mbstring --with-mcrypt=/usr/local/libmcrypt \
--with-gd=/usr/local/gd-lib/gd-2.0.36RC1 \
--with-jpeg-dir=/usr/local/gd-lib/jpeg-6b \
--with-freetype-dir=/usr/local/gd-lib/freetype-2.3.8 \
--with-png-dir=/usr/local/gd-lib/libpng-1.2.34 \
--with-zlib-dir=/usr/local/gd-lib/zlib-1.2.3 - 녹색 부분만 재컴파일시 추가해준다.

+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

[참고사항]

[root@server3 php-5.2.8]# make && make install or make -> make test -> make install 로 하면 좀더 정확하게 확인하며 설치할 수 있습니다.

반응형

+ Recent posts