10월, 2015의 게시물 표시

oracle database directory 변경

문제 : linux에서 파일 시스템에 오라클 database 저장소를 정했을 때, 다른 스토리지나 경로를 변경해야 할 문제가 생겼다. 1. 오라클을 실행 중지 한다.   ->sqlqlus '/as sysdba'   ->shutdown IMMEDIATE; 2. 리스너를 중지한다.   ->lsnrctl stop 3. 설치된 파일을 사용자가 바꾸고 싶은 곳으로 복사한다.   ->cp -a /u10/app/oracle/product/11.2.0/xe /home/oracle/t10    4. ORACLE_HOME path를 변경해준다.    ->vi /etc/environment   ->PATH="...........:/home/oracle/t01/bin"   ->ORACLE_HOME=/home/oracle/t01/xe   ->LD_LIBRARY_PATH=/home/oracle/t01/xe/lib 5. 오라클을 실행한다. 6. 리스너를 실행한다. * 주의 : 복사할 때 소유자와 그룹이 각각 oracle / dba 되어 있는것을 확인 해야한다.

seadas 설치

seadas http://seadas.gsfc.nasa.gov/ 에서 다운로드 하고 메뉴얼 대로 설치하면 다음과 같은 에러 발생  원인 : git version 에러 발생 [root@localhost kwanalysis]# cd /root/ocssw/run/data/common; git checkout -t -B master remotes/origin/master -q > /dev/null error: unknown switch `B' usage: git checkout [options] <branch>    or: git checkout [options] [<branch>] -- <file>...     -q, --quiet           be quiet     -b <new branch>       branch     -l                    log for new branch     -t, --track           track     -2, --ours            stage     -3, --theirs          stage     -f, --force           force     -m, --merge           merge     --conflict ...

gdal HDF5 -> tiff로 변환하기

1. Longitude vrt 만들기  -->gdal_translate -of VRT HDF5:/home/lee/TEST/1B.GPM.GMI.TB2014.20151012-S000141-E000639.V03C.RT-H5://S1/Longitude /home/lee/TEST/long.vrt 2. Latitude vrt 만들기  -->gdal_translate -of VRT HDF5:/home/lee/TEST/1B.GPM.GMI.TB2014.20151012-S000141-E000639.V03C.RT-H5://S1/Latitude /home/lee/TEST/lat.vrt 3. Img vrt 만들기 gdal_translate -of VRT HDF5:/home/lee/TEST/1B.GPM.GMI.TB2014.20151012-S000141-E000639.V03C.RT-H5://S1/Tb /home/lee/TEST/img.vrt 4.  img.vrt 파일을 열어서    <metadata domain="GEOLOCATION">        <mdi key="X_DATASET">lon.vrt</mdi>        <mdi key="X_BAND">1</mdi>        <mdi key="Y_DATASET">lat.vrt</mdi>        <mdi key="Y_BAND">1</mdi>        <mdi key="PIXEL_OFFSET">0</mdi>        <mdi key="LINE_OFFSET">0</mdi>     ...

인터넷 안되는 곳에서 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는 따로설치해야한다(주의)

ubuntu 14.04 desktop에 root 추가하기

우분투에서 root 계정 암호 설정하기 >sudo passwd root Step 1. Execute the following command in terminal. sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf Step 2: Add the following statement. greeter-show-manual-login=true Step 3: Save and close gedit.

geoserver 설치

Centos에서 Geoserver 설치 방법 Install Geoserver as a WAR in Apache tomcat (recommended) Get the Apache Tomcat from  http://tomcat.apache.org/  (Binary Distributions - Core) In this case we are going to use  Apache Tomcat Zipped Binary Distribution 6.0.26 . Get the Geoserver WAR file from  http://geoserver.org/display/GEOS/Stable  (Web Archive Format) In this case we are going to use  Geoserver 2.0.1 Unzip the tomcat file and place it in a location of your choice and put the Geoserver WAR file in the folder $TOMCAT/webapps/geoserver.war Start Tomcat by running $TOMCAT/bin/startup.sh or $TOMCAT/bin/startup.bat according to your OS. Go to URL  http://localhost:8080/geoserver  and sign in using the default username:  admin  password:  geoserver How to change the port Shutdown Tomcat running $TOMCAT/bin/shutdown.sh or $TOMCAT/bin/shutdown.bat Open file $TOMCAT/conf/server.xml Search line  <Connector port=...

python UserWaning

<-----------파이썬과 크루즈컨트롤을 연동할 때 발생한 경고문 없애기--------------> /usr/local/lib/python2.7/site-packages/setuptools-1.4.2-py2.7.egg/pkg_resources.py:979: UserWarning: /home/kwcollect/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename . Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). 위와 같은 에러는 니 계정에서 생성된 디렉토리가 보안에 취약하다는 경고문이다. chmod를 이용해서 사용자에게만 권한을 설정하면 경고문은 나오지 않는다.