Codebreaker 2bc08752a0894eb2c7afb345286e391d

22Sep/090

Mounting Remote Filesystem over SSH

I've been using this shell script for a long time and it works pretty well unless I have really slow network connection. When I upgraded to Snow Leopard from Leopard, the installer got rid of all files under /Volumes directory where this script was located. I probably should've put the file under /usr/bin. So I'm posting this as a backup just in case I lose the file again, but please feel free to use it if you have sshfs installed on your system.

#!/bin/sh
# @author Sumin Byeon

URI=user@dev.sumin.us
MOUNTPOINT=/Volumes/dev.sumin.us
OPTIONS="reconnect,follow_symlinks"

if [ ! -d $MOUNTPOINT ]; then
    mkdir $MOUNTPOINT
fi

sshfs -o $OPTIONS $URI: $MOUNTPOINT
Tagged as: , , No Comments
29Dec/060

데비안 리눅스로 갈아타기

2년간 써온 젠투를 버리고 데비안으로 갈아탔다.

ssl14203.jpg

원래 ODD 는 없었는데, 마침 하나 주워다 놓은게 있길래 달아놨다.

ssl14212.jpg

배선 정리도 다시 했다.

ssl14140.jpg

OS 설치하는 모습

ssl14214.jpg

개인적으로 데비안 로고를 좋아한다.

183832.png

데비안에서 가장 마음에 드는걸 꼽는다면 aptitude. 젠투의 emerge 와는 다른 매력이 있다.

APM 설치

다음의 패키지들을 설치해준다.

apache2
apache2-common
libapache2-mod-php4
php4
php4-common
php4-gd
php4-mysql
mysql-client-4.1
mysql-server-4.1
mysql-common-4.1

MySQL 이 UTF-8 을 사용하도록 /etc/mysql/my.cnf 파일에 다음과 같은 값을 추가해준다.

default-character-set = utf8

(2007년 1월 28일에 추가됨) Apache2.2 + PHP5 + MySQL5.0 으로 업그레이드 하였더니 한글이 ?로 나오는 희한한 현상이 일어났었다. my.cnf 의 mysqld 섹션에 다음과 같은 문구를 추가해주면 해결된다.

init_connect=SET NAMES utf8

JDK 설치

/etc/apt/source.list

deb http://ftp.us.debian.org/debian unstable main

unstable 패키지를 받을 수 있도록 바꿔준다.

apt-get update
apt-get install sun-java5-jdk

패키지 리스트 캐시를 업데이트 하고, JDK 를 설치해준다.

1Dec/060

리눅스 시스템, 절체절명의 순간

SSL13620.jpg

연출된 상황이다^^;

Tagged as: No Comments