Nov 27 2009

Ubuntu 9.10 에서 eclipse 3.5 / Galileo / PDT 2.1 설치하기

분류: Ubuntu최 태현 @ 12:14 오전

All-In-One Package 설치

  • 기본적으로 JDK or JRE 는 설치 되어 있어야 함.
  • 압축파일을 원하는 곳에 풀고 ./eclipse 로 실행시켜본다.
  • 윈도우와 동일한 실행화면을 볼 수 있을 것이다. ( :-; 여기가 끝이 아니다 ^^;)

Eclipse 실행환경 설정

  • Eclipse 설치 디렉토리에 있는 eclipse.ini 에 다음을 추가해준다.
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/opt/sun-jdk-1.6.0.02/bin/java
--> 본인이 설치한 자바 디렉토리를 설정해준다.
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m           ; Java heap error 발생에 따라 메모리 증가 시켜줌
-Xms40m
-Xmx512m                       ; Java heap error 발생에 따라 메모리 증가 시켜줌
  • Eclipse 에서 버튼이 눌러지지 않는 현상이 발생한다. 다음과 같이 .bashrc 에 추가시켜준다.

export GDK_NATIVE_WINDOWS=1

  • 이제 기본적인 부분이 된다.  ㅋㅋㅋㅋ
  • 근데 윈도우 XP 는 환경이 다르네요. 확인은 못했지만 다음 참조하세요

–launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize
512m
--vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

Tags: ,


Nov 13 2009

Oracle SQL Developer 설치하기

분류: Database, How to, Ubuntu최 태현 @ 11:38 오전

Oracle SQL Developer is a free SQL development environment from Oracle. It provides a graphical tool to interact with your database. Furthermore, it is a complete standalone application thus neither SQL*Plus or Oracle Database Client software need to be installed beforehand in order to use it.

It does however, require that the Sun Java 6 JDK be installed on your system. Install it by typing:
sudo apt-get install sun-java6-jdk

Note:
You may also use OpenJDK

To obtain the installable package, navigate to Oracle’s SQL Developer download page at:
http://www.oracle.com/technology/software/products/sql/index.html

You must agree to the OTN License Agreement for SQL Developer in order to download the software. Once doing so, choose the Accept License Agreement radio button.

Scroll down and select the package entitled ‘Oracle SQL Developer RPM for Linux’ to download the package.

Note:
If you do not have an account with the Oracle Technology Network, go ahead and create one. It’s free and also required in order to download the package.

Next we will convert the .rpm to a .deb to install it in Ubuntu. We’ll do this by using an application called ‘alien’. Install it by typing:
sudo apt-get install alien

Next, navigate to where you saved the SQL Developer .rpm package and type:
sudo alien -k –scripts sqldeveloper*.rpm

This will create a .deb package ready to be installed into our system. We do so by typing:
sudo dpkg -i sqldeveloper*.deb

Oracle SQL Developer is now installed. However, in order to run it, we need to point it to the JDK. Failure to do so, will result in the following message when trying to run Oracle SQL Developer:

Oracle SQL Developer
Copyright (c) 2008, Oracle. All rights reserved.

Type the full pathname of a J2SE installation (or Ctrl-C to quit), the path will be stored in ~/.sqldeveloper/jdk

Looking at the message we can see that it’s trying to obtain the JDK path by reading a file called ‘jdk’ in a directory called ‘~/.sqldeveloper’. Let’s resolve this dependency.

First we’ll create the missing directory by typing:
mkdir -p ~/.sqldeveloper

Next we’ll create an empty jdk file by typing:
touch ~/.sqldeveloper/jdk

Edit this file and input the path to the JDK by typing:
gedit ~/.sqldeveloper/jdk
and pasting into it:
/usr/lib/jvm/java-6-sun

You may now run Oracle SQL Developer by typing:
sqldeveloper
Or by going to:
Applications > Programming > SQL Developer

You may also go ahead and delete the .rpm downloaded and subsequent .deb that was created.

Tags: , ,


Jun 12 2009

Oracle xe 환경설정하기(Tora 접속방법)

분류: Database, How to, Ubuntu최 태현 @ 4:21 오전
  1. Go to the following directory:

    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin

  2. Look for the following scripts:
    • oracle_env.csh (for C or tcsh shell)
    • oracle_env.sh (for Bourne, Bash, or Korn shell)
  3. Run the appropriate script for your shell. For example:
    • Bourne, Bash, or Korn shell:
      $ . ./oracle_env.sh
    • C or tcsh shell:
      % source oracle_env.csh

You may also want edit your login or profile files so that these environment variables are set properly each time you log in or open a new shell.

For Bourne, Bash, or Korn shell, enter the following line into the .bash_profile (to log in) or .bashrc file (to open a new shell):

. /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh

For C or tcsh shell, enter the following line into the .login file (to log in) or .cshrc file (to open a new shell):

source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.csh

Tags: ,


Jun 11 2009

Oracle 10g 설치하기

분류: Database, How to, Ubuntu최 태현 @ 8:42 오후

OCI를 ubuntu에서 설치해보고 아예 오라클 자체를 Desktop에 설치하고 study할때 써보기로 맘 먹었습니다.

  • $ sudo vi /etc/sources.list <- 다음 라인을 맨 끝에 추가
  • deb http://oss.oracle.com/debian unstable main non-free
  • $ sudo wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -
    $ sudo apt-get update
    $ sudo apt-get install oracle-xe-universal
  • $ sudo /etc/init.d/oracle-xe configure <- 웹 관리 포트 및 리스너 포트, 비밀번호 등을 설정. sid는 기본 xe로 설정되어 있음.
  • $ 웹 브라우저에서 http://localhost:8080/apex 로 접속해서 시험해본다.
  • $ sudo vi /etc/environment
    ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_HOME
    export ORACLE_SID=XE
    export NLS_LANG=’KOREAN_KOREA.AL32UTF8
  • $ source /etc/environment
  • $ sqlplus ’sys /as sysdba’ 로 접속해서 테스트 해본다.
  • $ sudo /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh

첫줄의 #!/bin/sh를 #!/bin/bash로 변경한다.

참고사이트 : http://nameslayer.tistory.com/286

http://ids.snu.ac.kr/wiki/Oracle_Express_Edition

Tags: ,


Jun 11 2009

PHP + OCI8 설치

분류: Apache2, Desktop, How to, Web Server최 태현 @ 7:43 오후

도서관리시스템(KOLAS)이 오라클 DB를 사용해서 홈페이지 개발시 oracle instant client를 설치 했습니다.

  • $ sudo apt-get install build-essential php5-dev php-pear alien
  • Oracle 에서 Instant client 프로그램(instantclient-basic, instantclient-SDK)를 다운받는다. deb 파일 전환을 위해 rpm 파일을 다운받는다.
  • $ sudo alien -k oracle-instantclient-basic-10.2.0.4-1.i386.rpm
  • $ sudo alien -k oracle-instantclient-devel-10.2.0.4-1.i386.rpm
  • $ sudo dpkg -i oracle-instantclient-basic_10.2.0.4-1_i386.deb
  • $ sudo dpkg -i oracle-instantclient-devel_10.2.0.4-1_i386.deb
  • $ sudo pecl install oci8 ; pecl로 php rebuild

Continue reading “PHP + OCI8 설치”

Tags: , ,


Jun 07 2009

Ubuntu Desktop에서 Eclipse를 활용한 개발환경 구성하기(2)

분류: Desktop, Eclipse, How to최 태현 @ 5:21 오후

메뉴만들기

sudo gedit /usr/share/applications/eclipse.desktop

With this contents

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=eclipse
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

After executing this command, you can run from the menu item
applications/programming/eclipse

http://www.hui-wang.info/?p=117

Tags: ,


May 24 2009

Doxygen ????

분류: Ubuntu최 태현 @ 6:50 오후
sudo apt-get -y install doxygen doxygen-gui doxygen-doc graphviz

Tags: ,


May 19 2009

Ubuntu에서 “nabi” 설치하기

분류: Ubuntu최 태현 @ 1:30 오후

Ubuntu에 기본적으로 한글입력기가 scim이 설치되어 있는데 이를 nabi로 바꾸는 방법입니다.

  • 먼저 nabi를 설치한다.

sudo apt-get install nabi

  • nabi를 설치한후 입력기를 변경시켜준다.

sudo im-switch -c

  • 설치된 입력기 목록이 나오면 그중에서 설치한 nabi로 변경하고 Reboot이나 ctrl+alt+backspace로 다시 실행 시키면 nabi로 변경된다.

Tags: , ,


Apr 28 2009

Ubuntu Server and Apache2 Virtual Hosts

분류: Apache2, Ubuntu최 태현 @ 9:06 오후

1.  /etc/apache2/ports.conf

NameVirtualHost *:80

Listen 80

<IfModule mod_ssl.c>

    # SSL name based virtual hosts are not yet supported, therefore no

    # NameVirtualHost statement here

    Listen 443

</IfModule>

2. edit /etc/apache2/site-available/yourdomain.com
<VirtualHost *>
ServerName blogs.mydomain.org
ServerAdmin youremail@mydomain.org
…..
</virtualHost>
3. sudo a2ensite yourdomain.com
4. sudo /etc/init.d/apache2 reload

Tags: ,