모종의 음모/Notepad22009. 5. 8. 13:22


간만에 백신을 돌려보았더니
notepad2를 실행하는 부분의 레지스트리가 바이러스로 검출이 되도록 패턴이 수정되었다.


...
어떻게 피해가야 하나 -ㅁ-?
Posted by 구차니
출근길에 SVN 설명서를 읽어 보니..

svn에 접속하는 방법으로는

file://
svn://
svn+ssh://
http://

정도가 있다고 한다.

근데.. http:// 를 이용하는 방법 외에는
svn 사용 로그가 남는 방법이 없다고 한다.

cvs에 비해서는 사용로그가 남지 않는 다는 건 관리자 측면에서는 아쉽지만,
사용자 측면에서는 아무런 아쉬움이 없으니 음..



[출처  : http://svnbook.red-bean.com/nightly/en/svn-book.pdf]
Posted by 구차니
예를 들어
/home/svn 이 svn의 저장소를 놓을 위치이고
그 아래에 각각의 프로젝트가 들어 간다면

저장소의 위치는 /home/svn이다.

svnserve -d로 구동할때 의 경로는 /home/svn이 되고
svn으로 checkout을 할때의 경로는 각 프로젝트를 넣어 준다.

예를 들어

/home/svn/proj1
/home/svn/proj2
가 있다면

svn://svnserver.ip.addr/proj1
이런식으로 접속하면 프로젝트에 대해서 보인다.

음.. 그런데 굳이 각각의 저장소로 여러개의 저장소에 구분을 해야 하는 이유가 있을려나..
그냥 repos 이런식으로 하나의 저장소만을 만들고
그 아래에 디렉토리/폴더로 구분하면 될텐데 말이다...

아무튼 각 저장소별 ./conf 디렉토리에는
passwd / auth / svnserve.conf가 존재하며

svnserve.conf의 주석 몇개와
passwd에 사용자 계정을 추가하면
svn:// 식으로 접속하여 사용이 가능하다.
svn+ssh://은 아직.. OTL


svnserve.conf
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file.  If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256

passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
userid = password

위의 경우는 사용자명 userid, 암호가 password인 경우이며,
svn에 수정/삭제 시 아래와 같이 인증을 요구하게 된다.



[참고 : http://www.pyrasis.com/main/Subversion-HOWTO#s-4.3]
Posted by 구차니
Linux/Ubuntu2009. 5. 7. 23:35
문득.. 방화벽에서 특정포트를 열어줄려고 습관적으로
$ ps -ef | grep iptable
을 실행했는데... 없다!!
iptables가 없다는건.. 방화벽이 없는건가!?!? 라는 생각에 검색을 해보니
오래전 우분투 5.x 대 이야기들, 그리고 없다라는 이야기마저도 존재하는데..


아무튼 요 근래 문서로 발견한 내용중에
$ sudo ufw enable
이라는 내용을 발견하였다.
[링크 : http://ubuntu.or.kr/viewtopic.php?p=16788]


그래서 ufw를 검색해보니
위키가 나오고 나름 편하게 사용이 가능한 방화벽으로 보인다.
[링크 : https://wiki.ubuntu.com/UbuntuFirewall]

 The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall.

ufw by default is initially disabled. From the ufw man page:

“ ufw is not intended to provide complete firewall functionality via its command interface, but instead provides an easy way to add or remove simple rules. It is currently mainly used for host-based firewalls. ”


[출처 : https://help.ubuntu.com/9.04/serverguide/C/firewall.html]


그래도.. 아쉬운건.. 페도라에서 사용하던 방화벽/ SELinux 설정용 프로그램이 안보인다는 점..
그리고... 방화벽이 없다는 사실은 웬지.. 충격적이다.
(가짜 진실에 속아 왔던 것일까?)

'Linux > Ubuntu' 카테고리의 다른 글

우분투에서 rpm 설치하기 - install rpm package on ubuntu  (0) 2009.08.31
ubuntu에서 compiz 돌리기  (2) 2009.06.02
ubuntu에 cvs / svn 설치하기  (0) 2009.04.30
ubuntu 내장 VNC 서버 - vino-server  (0) 2009.04.30
삼바 설치하기  (0) 2009.04.29
Posted by 구차니
내가 일하는데는 OOO을 만드는 곳이다.
그러다 보니 완제품보다는 개발품이다 보니, 항상 열어 놓고 사는 편인데..

간혹 방심하다가 220V의 피카츄 빰치는 짜릿함을 맛보게 된다.




그게 아니라면....
회사 전체를 정전시키게 된다.


물론 갈굼은 기본 욕은 옵션?!

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

아 손발이 오그라든다 -ㅁ-!  (6) 2009.05.12
panic  (4) 2009.05.12
출근일기 - 20090430  (2) 2009.04.30
출근일기 - 20090428  (4) 2009.04.28
예비군 보충훈련 통지서.. 택배로 받다 & 400회 기념  (0) 2009.04.26
Posted by 구차니
Linux2009. 5. 7. 00:30
$ update-rc.d
usage: update-rc.d [-n] [-f] <basename> remove
       update-rc.d [-n] <basename> defaults [NN | SS KK]
       update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force

$ man update-rc.d
NAME
       update-rc.d - install and remove System-V style init script links

SYNOPSIS
       update-rc.d [-n] [-f] name remove

       update-rc.d [-n] name defaults [NN | SS KK]

       update-rc.d   [-n]   name   start|stop  NN  runlevel  [runlevel]...   .
              start|stop NN runlevel [runlevel]...  . ...

예를 들어 svnserve를 구동하기 위해 /etc/init.d/svnserve 구동 스크립트를 작성하고
이것을 런레벨 마다 S00svnserve / K00svnserve 이런식으로 복사를 해주어야 하는데
이러한 노가다성 작업을 자동화 시켜주는 유틸리티이다.
Posted by 구차니
우분투에 ssh를 설치후 접속하면 아래와 같이 무진장 긴 메시지가 나온다

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

/etc/motd.tail 파일을 수정하면 우분투 ssh 접속시 나오는 메시지를 바꿀수 있다고 한다.
하지만 데비안 계열은 이 내용을 수정하는 것은 불법이라고 하는데.. 조금 짜증나도 냅둬야 하나?

[링크: http://www.coveredjin.com/tag/ssh%20%EB%A9%94%EC%84%B8%EC%A7%80]

2010.02.04 추가
/etc/issue 파일에 일반적으로 로그인시 출력하는 메시지가 들어있다.
Posted by 구차니
Linux2009. 5. 6. 23:57
Gedit에 플러그인 중에 Ctags 기능을 확장해주는 것이 있다.
일단 몇가지는 설치를 하려면 Gedit 소스코드가 있어야 하고 꽤나 복잡해서 성공한건 두개 뿐이다.

Class Browser

A class browser located in the side pane. Based on ctags, it supports a wide range of languages. Download: http://www.stambouliote.de/projects/gedit_plugins.html

Function browser

GEdit function browser plugin provides an easy way to navigate through sources files with GEdit. This plugin uses Exuberant CTags for parsing process and returned back results in GEdit left panel. Mostly tested under C and C++ files. A Bookmarking support has been delivered in version 0.2. More: http://sourceforge.net/projects/gedit-funcbrows/


위의 링크에서 다운로드 받아, 위의 경로에 압축을 해제한다.
그리고 Gedit를 다시 시작하고 Plugin을 설정해준다.


Class Browser를 실행한 예제

Functions Browser를 실행한 예제


Posted by 구차니
Linux2009. 5. 6. 16:11
Linux에서 가장 무난하고 편하게 사용하는 편집기로 Gedit가 있다.
Gnome에서는 Gedit을 사용할 것이고, 대부분의 배포판에서 KDE보다는 Gnome을 채택하였고,
윈도우즈의 메모장(notepad)와 거의 유사한 단축키를 사용하기에 더더욱 친숙한 프로그램이다.

아마, gedit를 실행하면 아래와 같은 모양이 기본으로 보일것이다.
문법강조를 지원한다.

플러그인을 선택하고 Side Pane을 켜면 아래와 같이 Plugin이 작동을 한다.
현재는 기본 내장된 File Browser Pane을 선택한 모습이다. (간단하게 파일 탐색기)

잘 들어가지 않는 환경설정 메뉴이다. 첫 메뉴로 View가 있는데, 프로그래밍을 한다면
Display line numbers를 선택하고 (지금이 몇째 줄인지 보여주는 기능)
Highlight current line도 선택하고  (선택된 줄을 약간 회색으로 선택하여 선택된 줄을 보여주는 기능)
Highlight matching bracket도 선택한다. (괄호가 있을경우, 짝을 찾아 표시해주는 기능)


plugins에는 기본적으로 Document Statistics와 Insert Date/Time이 선택되어 있다.
파일 탐색기는 File browser pane이고 http://live.gnome.org/Gedit/Plugins 에서 다른 플러그인들을 찾을 수 있다.

Posted by 구차니
작년 부모님 결혼기념일에 제주도 다녀오셔서 어머니의 불만에
올해 중국으로 모셨습니다(작년 환율로 인해서 아버지가 강력히 제주도를...)

아무튼.. 날씨가 너무 좋아서.. 마음에 드는 사진이 없었습니다.
(역시 사람 눈 만큼 좋은 카메라가 없다는.. OTL)

유일하게 마음에 드는 사진입니다 ^^;

용경협에서 거꾸로 뜬 무지개와 함께
(클릭하면 매우 커집니다)















북경의 밤(뮤지컬) 보고 나오다가 내 앞에 주저앉은 소같이 걷는 dog
게다가 무려!!! 붉은 악마 머리띠를 한 dog!

쇼핑점에서 단체로 굽신거리는 굽신팬더들

개풀 뜯어먹는 팬더?

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

쌍무지개!  (6) 2009.05.15
왕푸징(왕부정) 거리 지표  (0) 2009.05.10
쿨러야 한판 붙자 ㅡㅡ^  (0) 2009.04.29
내가 상담을 해줘도 되는건가?  (5) 2009.03.02
롯데리아에 새로 나온 한우버거  (8) 2009.03.01
Posted by 구차니