출처: http://algo79.tistory.com/279

samba log를 하도록 이미 설정은 했지만, default로 해놓으니, 도대체 뭐가 어디서 어떻게 기록되는지 알 수가 없었다.
그래서 좀 세팅을 해야 겠다 싶어서 찾아본 결과, 위의 출처에서 아래와 같이 log 설정을 할 수 있다.
(vfs 에 대한 세부적인 설정은 http://www.samba.org/samba/docs/man/manpages-3/vfs_full_audit.8.html 를 참조하자.)



/etc/samba/smb.conf


        #log
        vfs objects = full_audit
        full_audit:prefix = %u|%m
        full_audit:success = read pread write pwrite chmod rmdir unlink mkdir rename
        full_audit:failure = none
        full_audit:facility = local7
        full_audit:priority = ALERT


마찬가지로 syslog도 바꿔줘야 하는데, (리눅스 배포판에서는 rsyslog.conf를 참조하자)



/etc/rsyslog.conf

local7.*                        /var/log/samba/log.audit


이렇게 설정을 한 뒤,

service smbd restart
service rsyslog restart

로 samba와 syslog 를 재시작 해주면, samba를 통한 파일 operation(위의 경우, 
read pread write pwrite chmod rmdir unlink mkdir rename)에 대해서 로깅이 된다.


Posted by code cat
리눅스/커널2014. 8. 28. 10:52

BSD 와 리눅스 배포판에서는 /etc/rsyslog.conf 파일을 사용하는데, rsyslog.conf는 syslog(결국 rsyslogd)의 설정 파일이다.

그리고 local7은 0~7 로 나눠진 user defined local facility이며, 특정 daemon에 대한 로깅을 하기 위한 수단이라고 생각하면 된다.

'리눅스 > 커널' 카테고리의 다른 글

커널 디버깅 방법  (0) 2014.09.19
Dentry cache hash table 사이즈  (0) 2014.04.08
Memory 정보 출력되는 곳  (0) 2014.04.07
driver 초기화 시에 쓰이는 module_init  (0) 2014.04.04
Machine 이름 바꾸기  (0) 2014.04.03
Posted by code cat
리눅스2014. 8. 26. 15:37

samba 설정 시 공유기에 물린 서버면 포트 포워딩이 필요 할 수도 있다.

포트 135~139까지는 포워딩 해 주어야 한다.

방법은 각 공요기마다 틀리지만 공유기 admin페이지에서 고급옵션등으로 들어가 포트 포워딩 메뉴에서 포트를 추가해 주면 된다.

Posted by code cat

vimrc 설정에

set fileencodings=utf-8,euc-kr

이라고 설정해 주면 된다.

Posted by code cat
리눅스2014. 8. 2. 13:50

iconv --from-code=iso-8859-1 --to-code=utf-8 file.iso-88590-1.txt > file.utf-8.txt

'리눅스' 카테고리의 다른 글

[wireshark] there are no interfaces on which a capture can be done  (0) 2014.09.02
samba 포트 포워딩  (0) 2014.08.26
GMainLoop 동작방식  (0) 2014.07.14
Alien을 이용한 RPM 패키지 인스톨  (0) 2014.07.02
sysroot  (0) 2014.03.14
Posted by code cat

데비안 계열에서만 동작할려는지 모르겠는데...
어쨌든 다음과 같이 해서 현재 사용중인 java에 대한 설정을 확인 할 수 있다. (옵션은 소문자 'L' 이다 )

$> update-java-alternatives -l
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64

그러면 위와 같이 jdk 버전과 패스가 나온다.  이를 보고 필요에 따라   JAVA_HOME, JRE_HOME 을 설정하면 되겠다.

Posted by code cat
리눅스2014. 7. 14. 16:08

출처:https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html

The GMainLoop data type represents a main event loop. 

A GMainLoop is created with g_main_loop_new()After adding the initial event sources, g_main_loop_run() is called. This continuously checks for new events from each of the event sources and dispatches them. Finally, the processing of an event from one of the sources leads to a call to g_main_loop_quit() to exit the main loop, andg_main_loop_run() returns.

'리눅스' 카테고리의 다른 글

samba 포트 포워딩  (0) 2014.08.26
파일 캐릭터 인코딩 바꾸기  (0) 2014.08.02
Alien을 이용한 RPM 패키지 인스톨  (0) 2014.07.02
sysroot  (0) 2014.03.14
[EXT4] noauto_da_alloc 옵션에 대해서  (0) 2013.11.25
Posted by code cat

file -bi file_name

하면 간단하게 다음과 같이 나온다.

text/x-c; charset=utf-8


Posted by code cat
리눅스2014. 7. 2. 14:18

우선 Alien을 받자.

sudo apt-get install alien

 

설치된 Alien을 통해 rpm 패키지를 설치해보자.

sudo alien -i package_name.rpm


너무 간단한가....

'리눅스' 카테고리의 다른 글

파일 캐릭터 인코딩 바꾸기  (0) 2014.08.02
GMainLoop 동작방식  (0) 2014.07.14
sysroot  (0) 2014.03.14
[EXT4] noauto_da_alloc 옵션에 대해서  (0) 2013.11.25
[EXT4] barrier=1 혹은 0에 대한 옵션 설명  (0) 2013.11.24
Posted by code cat

1. Account settings -> Composition and Addressing 에서 "Compose message in HTML format"을 uncheck


2. Preferences -> Composition -> Send Options -> Text Format에서 "Convert the message to plain text"로 변환


Posted by code cat