Dec 21 2009

Eclipse에서 Trac Server Wiki 편집하기

분류: CDE, Eclipse, Trac, Wiki최 태현 @ 11:00 오전

Trac을 설정하다보니까 여기저기 좋은 plugin이 많이도 나온다.

프로그램과정에 시간을 쏟아야 되는데 셋팅에 너무 시간을 많이 보내는것 같다.

이것은 Eclipse에서 Trac관련 문서(Wiki로 작성)들을 편비할 수 있도록 하는 Plugin 입니다.

eclipse에서 help->install new software를 선택하고 다음 사이트를 추가해준다.

Name : Eclipse Trac Integration ( 편한대로 주세요 )

Location : http://trac-hacks.org/svn/eclipsetracplugin/eclipse/update/

설치가 끝나고 나면 eclipse상에서 window -> Open Perspetive -> Trac 을 선택하고 Trac Server를 등록해 준다.

그러면 Trac Navigation에 주욱~~ Wiki 파일이 올라온다.

Wiki 문법을 잘 모르는 내입장에선 참 편할것 같다.


Dec 21 2009

SVN commit을 trac으로 연동

분류: CDE, Eclipse, Subversion, Trac최 태현 @ 8:41 오전

SVN commit을 trac과 연동하여 특정 동작을 수행하도록 지정할 수 있다.

trac에서는 bug, 개발작업, 등의 내용을 ticket을 작성하여 관리한다. ticket을 작성하는 경우 일반적으로, ticket을 open한다고 한다.
ticket을 open하면, 해당 ticket의 내용을 보고, 관련 작업이 source와 관련된 경우, source code작업을 완료한 후 ticket을 close한다.
이때, ticket을 close하는 작업을 svn commit시에 자동으로 이루어 지도록 할 수 있다.

실제로는, svn commit이 발생할때 log를 hooking해서, 해당 log에 ticket 정보가 있는지 확인하고, ticket정보가 있다면,
해당 ticket을 close하거나, 해당 ticket에 log를 남기게 된다.

0. trac plugin 설치

solove@sage:/etc$ sudo easy_install http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10
Downloading http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10
Doing subversion checkout from http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10 to /tmp/easy_install-WAd3o4/0.10
Processing 0.10
Running setup.py -q bdist_egg –dist-dir /tmp/easy_install-WAd3o4/0.10/egg-dist-tmp-NO2eTd
Adding TracExtendedXmlRpc 0.1 to easy-install.pth file

Installed /usr/local/lib/python2.6/dist-packages/TracExtendedXmlRpc-0.1-py2.6.egg
Processing dependencies for TracExtendedXmlRpc==0.1
Finished processing dependencies for TracExtendedXmlRpc==0.1

Trac과 Mylyn을 연결하기 위해 필요한 connector를 설치한다.  설치할 플러그인의 URL은

http://download.eclipse.org/tools/mylyn/update/extras/  이다.

Mylyn integration > Mylyn Connector:Trac을 설치한다.

http://download.eclipse.org/tools/mylyn/update/extras/
위와 같다.

Continue reading “SVN commit을 trac으로 연동”


Dec 19 2009

Apache2 Error…

분류: Apache2, How to, Server, Ubuntu, Web Server최 태현 @ 10:24 오전

시스템 upgrade후 다음과 같은 오류메세지가 나오면서 apache 접속이 되지 않았다. 그 이유는??? 아직 모르겠다.

starting httpd: (98)address already in use: make_sock: could not bind to address [::]:80
(98)address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
unable to open logs
[failed]

어째든 80port를 무언가 잡아먹는것 같아서 확인해 보니까

$ sudo netstat -anp | grep 80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      3836/apache2
unix  2      [ ACC ]     STREAM     LISTENING     6380     2540/amavisd (maste /var/lib/amavis/amav

apache2가 왜그런지 모르게 별도로 뜨고 있었다. 우선 다음과 같이 Process를 kill하고 다시 올렸다. 시간있을때 이유를 찾아봐야 겠다.

$ ps aux|grep 3836/apache2
solove    4360  0.0  0.0   3368   800 pts/0    R<+  10:10   0:00 grep 3836/apache2
solove@sage:~$ ps aux|grep apache2
root      3820  0.0  0.0   1872   588 tty8     S+   10:03   0:00 /bin/sh -e /etc/rc2.d/S91apache2 start
root      3831  0.0  0.0   1872   532 tty8     S+   10:03   0:00 /bin/sh /usr/sbin/apache2ctl start
root      3836  0.0  0.2  24336  6584 tty8     S+   10:03   0:00 /usr/sbin/apache2 -k start
solove    4363  0.0  0.0   3368   796 pts/0    R<+  10:10   0:00 grep apache2

$ sudo killall apache2
$ ps aux|grep apache2
solove    4407  0.0  0.0   3368   800 pts/0    R<+  10:11   0:00 grep apache2
solove@sage:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2                                                                                                       Apache/2.2.11 mod_ssl/2.2.11 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server trac.sourceforge.kr:443 (RSA)
Enter pass phrase:

OK: Pass Phrase Dialog successful.


Dec 06 2009

Kubuntu 9.04를 9.10으로 업그레이드 했을때 nVidia Kernel 오류

분류: Ubuntu최 태현 @ 8:57 오후

apt-get install linux-headers-`uname -r`
sudo aptitude reinstall nvidia-173-kernel-sourc


Dec 01 2009

Windos XP에서 APM 설치하기

분류: Apache2, Desktop, PHP, mysql최 태현 @ 10:22 오전

1. Apache, MySQL, PHP 설치하기

1. Apache 설치하기

  • 윈도우용 Apache Download ( 저는 apache_2.2.14-win32-x86-openssl-0.9.8k.msi 를 받았습니다. )
  • Run the Apache Installer
Server Information 설정화면

Continue reading “Windos XP에서 APM 설치하기”

Tags: , , ,


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 14 2009

Ubuntu에서 글꼴 설치하기

분류: Desktop, Ubuntu최 태현 @ 2:49 오후

1. 개인용 글꼴 설치하기

  1. ~/.fonts/ 아래에 글꼴을 설치할 디렉터리를 생성한다.
  2. 디렉터리에 글꼴 파일을 복사한다.
mkdir -p ~/.fonts/NanumFont
$ cp ~/나눔*.ttf ~/.fonts/NanumFont/
$ rm -rf ~/.fonts/NanumFont

2. 전체 사용자 사용

/usr/share/fonts/truetype 디렉터리에 글꼴 파일을 복사 후, 퍼미션을 변경하고, 글꼴 캐시를 갱신함으로써 설치할 수 있다.

  1. Alt+F2 눌러 ‘프로그램 실행’에서 gksu nautilus를 입력해 관리자 계정으로 노틸러스를 실행한다.
  2. /usr/share/fonts/truetype/ 아래에 글꼴을 설치할 디렉터리를 생성한다.
  3. 생성한 디렉터리에 글꼴 파일을 복사한다.
  4. 복사한 글꼴 파일의 퍼미션을 644로 변경한다.
  5. sudo fc-cache -f를 실행하여 글꼴 캐시를 갱신한다.

터미널에서 설치하려면, 아래 코드를 실행해 글꼴을 설치한다.

$ sudo mkdir -p /usr/share/fonts/truetype/NanumFont
$ sudo cp ~/나눔*.ttf /usr/share/fonts/truetype/NanumFont/
$ sudo chmod 644 /usr/share/fonts/truetype/NanumFont/*
$ sudo fc-cache -f

글꼴 삭제

터미널에서 아래 코드를 실행해 글꼴을 설치한 디렉터리를 삭제함으로써 삭제할 수 있다.

$ sudo rm -rf /usr/share/fonts/truetype/NanumFont


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: , ,


Nov 06 2009

‘책 읽는 도시’ 김해의 ‘작은 도서관’ 혁명

분류: Ubuntu최 태현 @ 8:26 오후

경남 김해시에선 누구나 어디서든 책을 빌려 볼 수 있다. 버스정류장부터 아파트 관리사무소, 마을회관, 외국인근로자센터, 경찰서 유치장에 이르기까지 도시 구석구석 64곳에 작은 도서관들이 마련돼 있다. 시민들은 어느 곳에서든 책을 빼 읽거나 빌려간다. 읽고 난 뒤엔 가까운 도서관에 반납하면 된다. 4개 시립도서관과 작은 도서관들의 장서 50만권을 통합 관리하는 시스템 덕분이다. 보고 싶은 책이 집 근처 도서관에 없을 때는 인터넷으로 신청하면 택배로 보내준다. 김해시는 올해 안에 도서관 통합시스템을 대학 등으로 넓혀 모두 165만권을 시민에게 개방할 예정이라고 한다.
Continue reading “‘책 읽는 도시’ 김해의 ‘작은 도서관’ 혁명”

Tags:


Nov 06 2009

영국의 독서교육

분류: Ubuntu최 태현 @ 8:23 오후

〈영국의 독서교육〉 김은하 지음/대교·1만8000원

영국은 전체 고용인구의 80%가 서비스 산업에 종사한다. 음악·서적·영화처럼 지적재산권이 중요한 산업이나 스포츠·관광 등의 산업을 창의산업(Creative Industry)이라고 하는데, 빈약한 제조업과 천연자원을 가진 영국으로 하여금 세계 5위의 경제규모를 유지하게 해주는 일등공신이 바로 창의산업이다. 1997년 이후 10년 동안 우리나라의 주력 산업인 반도체로 벌어들인 수출 총액 231조원은, 같은 기간 조앤 캐슬린 롤링이 <해리 포터> 시리즈와 파생상품으로 벌어들인 308조원보다 적다.

Continue reading “영국의 독서교육”


« 앞 쪽뒷 쪽 »