라벨이 centos인 게시물 표시

centos에서 gdal_landsat_pansharp 커멘드 사용하기

gina-alaska에서 제공하는 dans-gdal-scripts 사용 방법 1. 기본사용 방법    a. GitHub에서 dans-gdal-scripts를 검색하면 기본적으로 우분투를 사용해서 설치하는 방법을 제공한다.    b. 우분투 사용자라면 쉽게 설치를 할 수 있다. 하지만 centos 사용자에 대한 설치 방법은 제공하고 있지 않기 때문에 아래와 같이 하면 해결할 수 있다. 문제 : centos에서 dans-gdal-scripts 설치 안되는 문제 해결방법 : dans-gdal-scripts를 centos에서 사용하려면 기본적으로 gdal 과 boost lib를 설치해야 한다. (gdal의 사용법은 본 블로그에서 검색하면 알 수 있다.) boost lib는 yum으로 설치할 수 있으나 버전의 호환성을 가지기 때문에 나는 소스를 다운로드 받아 설치하였다.  http://www.boost.org/doc/libs/1_46_1/more/getting_started/unix-variants.html 경로를 통하면 boost 소스파일을 다운로드 받을 수 있고 또한 설치 방법도 소개하고 있기 때문에 따라하면 된다. boost 설치방법 1. 다운로드 받은 파일을 압축해제한다. 2. 압축해제한 폴더로 이동한다. 3. ./bootstrap.sh 또는  ./bootstrap.sh --prefix= path / to / installation / prefix 4.  ./bjam install 명령어를 실행하면 정상적으로 설치된다. gdal 과 boost가 정상적으로 설치되면 gans-gdal-scripts를 압축해제한 폴더에서 아래와 같은 명령어를 입력한다. 1. ./autogen.sh 2. ./configure # --prefix=/your/favorite/prefix 3. make 4. make install

centos apache http 서버 구동시키기

<아파치를 이용해 파일을 http로 제공하기> <centos6.5> 설치하기 # yum -y install httpd* 시작하기 # service httpd start    or   # /etc/rc.d/init.d/httpd start apache 데몬 활성화 # chkconfig httpd on ( 서버 부팅 시 자동으로 Apache 데몬을 실행할 수 있게 추가 합니다) 설정파일 # vi /etc/httpd/conf/httpd.conf    <- 설정 파일 경로 설정파일 변경 # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # #DocumentRoot "/var/www/html" DocumentRoot "/home/inspace/TEST_WEB" # # This should be changed to whatever you set DocumentRoot to. # <Directory "/home/~~/~~"> # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories).  # # First, we configure the "default" to be a very restrictive set of...

centos ftp VSFTP설정

<설치관련> http://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_vsftpd_%EC%84%A4%EC%B9%98_%EB%B0%8F_%EC%84%A4%EC%A0%95 <500oops - 에러발생> http://matthew.kr/centos-%EC%9D%98-vsftpd-%EC%A0%91%EC%86%8D%EC%8B%9C-500-oops-cannot-change-directoryroot-%EC%97%90%EB%9F%AC/ [root@fiamm ~]# setsebool allow_ftpd_full_access on [root@fiamm ~]# service vsftpd restart

centos scidb(v14.08) 구축 (cluster)

최신버전이 아닌 14.08은 예전에 다운 받아놓았던 것을 이용해 설치해야 한다. 설치 파일명 : deployment-master scidb 계정으로 아이디를 생성한다. 계정명은 꼭 scidb로 만들어야 한다. 기존에 회원 가입이 없이 다운로드 받을 수 있었던 14.08을 설치 한다. *scidb는 ssh를 이용한 cluster 연동을 하기 때문에 각각의 물리적 서버에 대해서 ssh 설정을 해줘야 한다. $vi /etc/hosts #아이피와 이름을 등록한다. $ssh-keygen #키를 만들어 사용하고자하는 cluster에게 모두 등록시켜준다. #unzip deployment-master #./cluster_install -s config.ini 아래는 config.ini 내용 [cluster] server-0=SCIDB2,1 -> master scidb(instance 1) server-1=SCIDB1,2 -> cluster scidb(instance 2) install_root=/opt/scidb/14.8 metadata=/opt/scidb/14.8/share/scidb/meta.sql pluginsdir=/opt/scidb/14.8/lib/scidb/plugins logconf=/opt/scidb/14.8/share/scidb/log4cxx.properties db_user=pguser db_passwd=pguserpwd base-port=1239 base-path=/home/scidb/scidb_data redundancy=0 execution-threads=1 result-prefetch-threads=1 result-prefetch-queue-size=1 operator-threads=1 *cluster를 기본적으로 여러 대를 사용 하려면 여러 서버에 각각 scidb를 설치할 필요는 없다. 다만 각 서버에 "scidb" 계정이 반드시 존재해야 한다.  그리고나서 ma...

Centos gdal_translate -of vrt HDF5 에러

문제발생 1.Centos에서 gdal을설치하면 yum으로 지원하지 않아서 rpm으로설치해야한다. 2.이때 발생하는 에러중 하나로 gdal_translate 명령어중 HDF5 파일을 읽어들이는 vrt 옵션이 있는데 여기서 os에 hdf lib 가 설치되어 있지 않다면 파일을 읽어오지 못하는 에러가 발생한다 해결방안 hdf5 Source 설치파일을 다운받는다. 설치명령으로 설치한다 *hdf5 Release로 받으면 설치명령을 실행 할 수 없다. 다시 gdal install 과정을 진행한다 다만 아래내용으로 진행한다 >./configure --with-python --with-hdf5=(hdf5 lib path)

LD_LIBRARY_PATH 설정

문제점 -> gdal 설치시 파이썬에서 lib형태로 사용하기 위해서 확인 해야 할 사항 해결책 Centos 일 때 >vi /etc/profile (root) >GDAL_LIB=/usr/local/lib >LD_LIBRARY_PATH=$GDAL_LIB 추가 후 source /etc/profile 실행 하면된다.

인터넷 안되는 곳에서 gdal install 하기

1. 원하는 버전의 gdal을 다운로드 받는다.    -->https://trac.osgeo.org/gdal/wiki/DownloadSource 2. make 하기   -->./configure --with-python(이렇게 하면 python에서 lib를 사용할 수 있다.)   -->make   -->sudo make install   -->sudo ldconfig     *   ImportError: libgdal.so.1: cannot open shared object file: No such file or directory   --> /usr/local/lib/libgdal.so.1 을 /usr/lib로 옮겨준다.   --> sudo ldconfig 실행 3. HDF lib는 따로설치해야한다(주의)