Tuesday, June 23, 2009

Cron

Cron은 일정한 시각에 특정 작업을 수행한다.

특정 작업은 crontab 파일에 정의된다.

minute (0-59), hour (0-23, 0 = midnight), day (1-31), month (1-12), weekday (0-6, 0 = Sunday), command

crontab 파일의 각 필드는 위와 같이 구성된다.

crontab 사용법은 아래와 같다.
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)

/etc 디렉토리에 보면 시스템 상에 이미 정의되어 있는 crontab 파일을 볼 수 있으며
/etc/cron.{hourly | daily | weekly | monthly} 이름의 디렉토리가 존재한다.

https://help.ubuntu.com/community/CronHowto

Wednesday, June 17, 2009

Mounting the Samba filesystem

# mount -t smbfs //server /mountpoint -o user=userid,password=userpasswd,iocharset=utf8

or

# smbmount //server /mountpoint -o credentials=filename,iocharset=utf8

스트림 동영상 깨짐 - ATI 비디오카드

Windows Media Video Acceleration 기능을 해제하면 된다.

[Catalyst Control Center] - [Video] - [All Setting] 메뉴에서 Windows Media Settings 항목의 'Windows Media Video Acceleration' 의 체크를 해제

Friday, June 12, 2009

svn 사용자 패스워드 설정

# htpasswd [options] passwordfile username

Thursday, March 26, 2009

5.1 channel

reference
http://www.cse.ohio-state.edu/~bondhugu/surround-pulse.shtml
http://nemonein.egloos.com/4164489

1. vi /etc/pulse/daemon.conf

uncomment default-sample-channels line
and

default-sample-channels = [the number of channels]
(6 for 5.1 ch, 8 for 7.1 ch)

2. alsamixer -c 0

control the volumes and save

alsactl store

3. restart

Tuesday, March 24, 2009

vsftp

1. apt-get install vsftpd

2. vi /etc/vsftpd.conf

modify anonymous_enable=YES
to
anonymous_enable=NO

uncomment
#local_enable=YES

3. /etc/init.d/vsftpd restart

Wednesday, February 25, 2009

error C2061: syntax error : identifier 'THIS_FILE'

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

의 밑에 있는 헤더파일을

이 문장들 위에서 인클루드 한다