U E D R , A S I H C RSS

FrontPage › king/2004-09

Sep 28, 2004
커널 2.6으로 업그레이드!「A to Z」
Submitted by king @ 09-28 [01:35 am]

ximian-openoffice 펜티엄 4용 binary (한글메뉴)
Submitted by king @ 09-28 [12:26 am]

gnome theme
Submitted by king @ 09-27 [10:33 pm]


이하 위 파일들은 /usr/share/themes 에 압축을 풀면 테마를 변경할 수 있다.


아이콘은 /usr/share/icons 에 압축을 풀면 아이콘 테마를 변경할 수 있다.

/etc/fonts/local.conf
Submitted by king @ 09-27 [10:29 pm]

  • 고정폭 글꼴 버그해결 (xxChe 글꼴 사이벌어짐 해결)
  • 볼드글꼴 없는 글꼴을 위한 볼드
  • 오토힌팅
  • 터미널 글꼴 (monospace 선택시 영문 : Luxi Mono, 한글 : YoonGothic)

Sep 22, 2004
openoffice-ximian-1.3.5
Submitted by king @ 09-22 [04:44 pm]

Sep 20, 2004
ps -ef | grep sendmail 에서 grep sendmail 줄 빼고 출력하기
Submitted by king @ 09-20 [07:31 pm]

[tongseob@WebHost tongseob]$ ps -ef | grep sendmail
root       880     1  0 Aug25 ?        00:00:00 sendmail: accepting connections
smmsp      889     1  0 Aug25 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
tongseob  2931  2299  0 19:26 pts/4    00:00:00 grep sendmail
\

grep sendmail 이 보기 안 좋다 이럴때는

[tongseob@WebHost tongseob]$ ps -ef | grep sendmail | grep -v grep
root       880     1  0 Aug25 ?        00:00:00 sendmail: accepting connections
smmsp      889     1  0 Aug25 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
\
grep -v 로 한번 더 걸러주면 된다 :)

Sep 19, 2004
cat nabi-0.14.ebuild
Submitted by king @ 09-19 [09:25 pm]
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/nabi/nabi-0.14.ebuild,v 1.1 2004/08/ 30 16:50:48 usata Exp $

DESCRIPTION="Simple Hanguk X Input Method"
HOMEPAGE="http://nabi.kldp.net/"
SRC_URI="http://download.kldp.net/nabi/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~x86 ~ppc"

DEPEND=">=x11-libs/gtk+-2.2"

src_compile() {
        econf || die
        emake || die
}

src_install() {
        make DESTDIR=${D} install || die

        dodoc AUTHORS COPYING* ChangeLog README NEWS
}

pkg_postinst() {
        einfo "You MUST add environment variable...                           "
        einfo "                                                               "
        einfo "export XMODIFIERS=\"@im=nabi\"                                 "
        einfo "export XIM_PROGRAM=/usr/bin/nabi // for /xinit.xinitrx.d/xinput"
        einfo "                                                               "
}
\

Sep 14, 2004
2004년도 내 증명사진
Submitted by king @ 09-14 [04:11 pm]

xorg 6.8.1 bold patch & fonts.conf
Submitted by king @ 09-14 [11:26 am]

Sep 13, 2004
xgrep - 가난하고 게으른 사람들을 위해서..
Submitted by king @ 09-13 [04:34 pm]
소스코드 디렉토리에서 뭔가 찾을때 ctags 를 쓰는데
원하는게 나오지 않을 때가 많습니다. 그래서 결국
grep -r 을 쓰게 되는데, 이건 쉽게 쓰면 바이너리까지
다 검사해 버리죠. 그래서 머리 굴려서 간단한 스크립트를
만들었습니다. 이걸 돌리기 위해서는
grep, tee, less, wc, vim, cut, find, xargs 등이
설치되어 있어야 합니다.

사용법은 다음과 같습니다:


xgrep SetClockFrequency

현재 디렉토리와 서브 디렉토리에서 소스코드일 것 같은
파일들을 뒤져서 SetClockFrequency 라는 문자열을
찾습니다.

찾은 다음에는 이것을 less로 보여주고,
less를 빠져 나가면 다시 vim -q 명령으로
하나씩 열어서 보여 줍니다.
vim 안에서 다음에 나온 SetClockFrequency를
찾는 명령은 :cn 이라는 것은 기억 하시는지?

xgrep +*.h SetClockFrequency

현재/서브 디렉토리에서 *.h 파일들만을 골라서 이들 중
SetClockFrequency 가 들어 있는 파일을 찾습니다.
그 이후는 위와 같습니다.

xgrep +*.h +*.c SetClockFrequency

현재/서브 디렉토리에서 *.h 와 *.c 파일들만을 골라서
SetClockFrequency 들어 있는 줄을 찾습니다.
그 이후는 위와 같습니다.


만약! emacs를 쓰시는 분이라면, 아래 스크립트에서

browse=어쩌구저쩌구

라고 되어 있는 줄을 지우시면 emacs 의 grep 모드용
명령으로 사용하실 수 있습니다.

음 별거 아닌 줄은 저도 알지만, 갑자기 누군가 이런게
필요할 것 같은 예감이 갑자기 스쳐서 적어 봤습니다.

#!/bin/sh

browse="|tee xgrep.out |less -eR; (wc xgrep.out && vim -q xgrep.out)"

opts=
pats=
root=.
query=

while [ ! -z "" ]; do
    case  in
        +*)  newpat=`echo  |cut -c2-`; if [ -z "$pats" ]; then pats="-iname $n
ewpat"; else pats="-o -iname $newpat"; fi; ;;
        *)   query=; shift; break; ;;
    esac
    shift
done
rest=$*

if [ -z "$pats" ]; then
  pats="-iname \*.h -o -iname \*.hpp -o -iname \*.inc -o -iname \*.c -o -iname \
*.cpp -o -iname \*.s -o -iname \*.asm -o -iname \*.java"
fi

cmd="find ${root} ${pats} |xargs grep -n ${opts} '${query}' ${rest} ${browse}";

#echo "Running: $cmd"
eval $cmd
\

apache 1.3.x 256 limit 변경하는법
Submitted by king @ 09-13 [04:31 pm]
# cd /usr/portage/distfiles/apache_1.3.31/src/include
# vi httpd.h
\

에서

#ifndef HARD_SERVER_LIMIT
#ifdef WIN32
#define HARD_SERVER_LIMIT 1024
#elif defined(NETWARE)
#define HARD_SERVER_LIMIT 2048
#else
#define HARD_SERVER_LIMIT 256
#endif
#endif
\

부분에서 주석을 풀어주면 된다

그리고 apache 2.0.x 에서는 이러한 제한이 없다.

Sep 12, 2004
gentoo 에서 윈도우와 clock 공유하기
Submitted by king @ 09-12 [11:49 pm]
/etc/rc.conf

CLOCK="local" 으로 수정

Sep 01, 2004
jenix 옹 my portage
Submitted by king @ 09-01 [04:01 pm]

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2004-09-28 11:53:35
Processing time 0.0167 sec