gnutls - GNU Tranport Layer Seucity Library
[링크 : http://www.gnu.org/software/gnutls/]

SWAT - Samba Web Administration Tool
[링크 : http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html]
웹으로 삼바를 설정하는 웹어플리케이션. 굳이 필요없다면 제외가능

CUPS - Common Unix Printing System
[링크 : http://en.wikipedia.org/wiki/CUPS]
삼바에서 프린터도 공유하는 이유로 CUPS 지원항목이 들어있는 것으로 추측된다.

FHS - Filesystem Hierarchy Standard
[링크 : http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard]
일반적인 리눅스에서 사용하는 RootFS의 구조 / /dev /etc /var 이런 구조를 지칭한다.

talloc - talloc is a hierarchical pool based memory allocator with destructors
[링크 : http://talloc.samba.org/]

winbind - winbind is a component of the Samba suite of programs that solves the unified logon problem. Winbind uses a UNIX implementation of Microsoft RPC calls, Pluggable Authentication Modules (PAMs), and the name service switch (NSS) to allow Windows NT domain users to appear and operate as UNIX users on a UNIX machine.
[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html]
이 녀석은 있으면 좋고 없으면 그만이다.

tdb - Trivial DB. The directory in which Samba stores the tdb files is determined by compile-time directives.
[링크 : http://www.linuxtopia.org/online_books/network_administration_guides/samba_reference_guide]
[링크 : http://tdb.samba.org/]
Posted by 구차니
FEATURE default 설명
debug no Turn on compiler debugging information
developer no Turn on developer warnings and debugging
krb5developer no Turn on developer warnings and debugging, except -Wstrict-prototypes
picky-developter - Halt compilation on warnings
largefile - omit support for large files
external-libtalloc auto Enable external talloc
socket-wrapper no Turn on socket wrapper library
nss-wrapper no Turn on nss wrapper library
swat yes Build the SWAT tool
dmalloc no Enable heap debugging
cups auto Turn on CUPS support
iprint yes if cups is yes Turn on iPrint support
static=PKGS no build static libraries default
shared=PKGS yes build shared libraries default
pie yes Turn on pie support if available
relro yes Turn on Relocations Read-Only (relro) support if available
fam auto Turn on FAM support
shared-libs yes Use shared libraries internally
dnssd no Enable DNS service discovery support
avahi auto Enable Avahi support
merged-build - Build Samba 4 as well
gnutls yes Turn on gnutls support

configure --help 에서 정리

Posted by 구차니
테스트용으로 notepad2의 소스로 한번 프로젝트를 구성해보았다.

Project - Add files recursively 를 클릭한다.
그러면 경로를 선택 후, 어떤 파일을 추가할지를 물어보는데, 귀찮으면 Select All을 누르고 OK

어떤 build에 속하게 할지 하는건데, 귀찮으니 일단 여기도 Select All 하고 OK

프로젝트가 생성되어 notepad2.c 파일을 열어 놓은 모습이다.
Source Insight 처럼 Ctrl-O로 모든 파일중에 비슷한 이름으로 검색하여 열어주는 기능이 없어서 조금 아쉽다.

개인적으로 마음에 드는 기능으로 화면분할기능이다(split) 간혹 동일 소스에서 여러군데를 수정해야 할때
왔다 갔다 하지 않고 보면서 할 수 있어서 편한 기능이다. (그래도 차라리 위치 네비게이션이 있는 낫다)

함수의 컨텍스트 메뉴이다. Find declatation 은 프로토타입, Find implementation은 함수의 위치를 추적하는 기능이다.

'프로그램 사용 > Code::Blocks' 카테고리의 다른 글

Code::Blocks  (0) 2009.09.14
Code::Blocks - C++ 에디터 for linux  (2) 2009.09.12
Posted by 구차니
Code::Blocks 는 아래의 About에서 보이듯, open source의 IDE 이다.
물론 KDE용으로 Kscope 등이 있지만, 윈도우용으로도 상용에 뒤지 않을 정도의 프로젝트를 지원하고
깔끔한 UI를 가진 녀석은 보기 힘들었는데, 이녀석은 컴파일러/디버거 까지 cygwin에서 끌어왔는지,
하나의 패키지로 구성을 해놓았다.

일단 메뉴 구성을 보니...
Scintilla 기반에 code folding 적용하고(Syntax highlight)
wxPython으로 만든게 아닐까라는 생각이 든다.(About의 wx2.8.7)


단점 :
그래도 아쉬운건.. Source Insight 급의 자동 추적 기능이 없다는점
- 이래서는 머.. Visual Studio에서 Prototype 따라다니는거나 다를바가 없다는 정도랄까..

Eclipse에서는 그래도 이전 위치로 오가는 기능이 있었는데,
아직 Code::Blocks에서는 발견하지 못했다.

장점 :
깔끔하게 gdb/gcc 를 윈도우 패키지로 묶어 놨다는 점
UI가 생각보다 깔끔하다는 점
cygwin이 아니라 윈도우 프로그램이라 구동도 빠르다는 점





아래는 설치중 컴파일러를 고르는 화면이다. minGW 패키지로 설치할경우 gcc가 설치되므로 기본으로 detect가 된다.


아래는 프로젝트를 생성하는 wizard이다. 일단 위찮으니 콘솔 프로그램으로 하고

"환영합니다" 정도는 무시하고 넘어가는 센스~ 다시 보고 싶지 않으면 체크해주고 넘어가는 센스!

사용될 언어를 고르라는데 기본값은 C++ 이었다.

프로젝트 이름과, 프로젝트 파일이 지정될 위치를 정해준다.
기본적으로 프로젝트 이름이 저장될 폴더 이름이 되므로, 적당하게 구분이 되도록 적어준다.

머.. 원래 아래 두개는 체크가 꺼져있는데 웬지 끄면 안될꺼 같아서 체크하고 스샷~!
Debug와 Release로 구분되어 있는데 마치 Visual Studio 같았다.

'프로그램 사용 > Code::Blocks' 카테고리의 다른 글

Code::Blocks C++ 프로젝트  (0) 2009.09.14
Code::Blocks - C++ 에디터 for linux  (2) 2009.09.12
Posted by 구차니
프로그램 사용/winscp2009. 9. 12. 22:29


winscp에서 한글 파일명을 복사하려고 하면 위와 같은 에러가 발생한다.

$ more i18n
LANG="ko_KR.UTF-8"
SYSFONT="lat0-sun16"

서버의 언어 설정은 위와 같지만.. UTF-8 관련 지정을 해주어도 여전히 파일은 복사되지 않았다..
winscp 프로젝트 팀에 항의를 해야 하나 -0-?

'프로그램 사용 > winscp' 카테고리의 다른 글

winscp 로 서로 다른 시스템으로 복사하기  (0) 2015.01.20
winscp sftp 접속불가 문제  (0) 2013.02.09
winscp - passive/active mode  (0) 2012.04.28
winscp UTF-8 한글 적용하기  (2) 2012.01.16
sftp 접속하기  (0) 2009.05.10
Posted by 구차니
구성을 대충보니, minGW + cygwin 등으로 윈도우 패키지도 있는 듯 한데..
일단은 kscope 보다는 좋아보인다.



이런 프로그램 있다는걸 제보해준 용훈군에게 감사를 ㅋㅋ

[링크 : http://www.codeblocks.org/]

'프로그램 사용 > Code::Blocks' 카테고리의 다른 글

Code::Blocks C++ 프로젝트  (0) 2009.09.14
Code::Blocks  (0) 2009.09.14
Posted by 구차니
sh4-linux 용으로 samba3.4.0 버전을 크로스컴파일을 시도하는데
이래저래 자꾸만 에러가 나서 검색을 해봤다.

결론 : 검색하고 꼼꼼하게 읽어보자.. OTL


실질적으로 크로스컴파일에서 필요한건 CC 환경변수 설정과 configure에서 --host=i686(혹은 현재 아키텍쳐)를
해주는 것 외에는 별다른 것이 없다.

Step 1. 다운받고 압축푼다.
Step 2. samba-3.4.0/source3/ 에서 ./autogen.sh 를 실행시킨다.
Step 3. 환경을 설정한다.
           export CC=sh4-linux-gcc
           export samba_cv_CC_NEGATIVE_ENUM_VALUES=yes

export samba_cv_CC_NEGATIVE_ENUM_VALUES=yes 를 해주는 이유는

checking that the C compiler understands negative enum values...
                                                    configure: error: cannot run test program while cross compiling

이런 에러가 발생을 하기 때문이다.
원래대로라면, 크로스 컴파일시에는 이 부분이 실행불가능 하므로 넘어가야 하는데,
이 부분이 제대로 처리되지 않아서 그런것으로 생각된다.

Step 4. configure를 실행한다. --target은 지정하지 않아야 컴파일이 진행된다.
           ./configure --host=i686

컴파일 하다가 winbind 와 ldap 오류가 나면 귀차니즘으로
./configure --host=i686 --without-winbind --without-ldap --disable-swat
라고 해주면 winbind와 ldap를 컴파일 하지 않는다.
SWAT(Samba Web Admin Tool)는 사용하지 않는다면 꺼주면 된다.

Step 5. Makefile을 수정한다.
           make install 시에 설치될 위치를 정해준다.
prefix=/usr/local/samba
exec_prefix=${prefix}
...
CONFIGDIR = ${exec_prefix}/lib

원래 내용은 위와 같지만,
prefix 의 주소는 target NFS 주소의 root를 정해주고
/etc/smb.conf가 기본 환경파일의 위치이므로, 이를 정해주기 위해
CONFIGDIR의 위치를 /etc로 정해준다.

prefix=$(HOME)/target
exec_prefix=${prefix}
...
CONFIGDIR = /etc

컴파일 시에 talloc.c 에서 lber.h ldap.h 에러가 나면
Compiling ../lib/talloc/talloc.c
In file included from ../lib/talloc/talloc.c:36:
include/includes.h:156:18: error: lber.h: No such file or directory
include/includes.h:172:18: error: ldap.h: No such file or directory

CPPFLAGS=-DHAVE_CONFIG_H -I/usr/include -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt
를 추가해주면 해결된다. lber.h의 경로가 제대로 추가되지 않아서 발생하는 문제이다.

Step 6. 컴파일 및 설치 한다.
          make
          make install

Step 7. 파일이 부족하면 복사한다.
          나의 경우에는 libnsl.so libdl.so가 부족했다.

[링크 : http://en.wikibooks.org/wiki/Samba/Compiling_Samba_from_Source]
Posted by 구차니
$ ll /usr/bin/smb*
-rwxr-xr-x 1 root root 2109576 Sep  2  2006 /usr/bin/smbcacls
-rwxr-xr-x 1 root root 1177152 Sep  2  2006 /usr/bin/smbclient
-rwxr-xr-x 1 root root  748836 Sep  2  2006 /usr/bin/smbcontrol
-rwxr-xr-x 1 root root 2002796 Sep  2  2006 /usr/bin/smbcquotas
-rwxr-xr-x 1 root root 2080776 Sep  2  2006 /usr/bin/smbget
-rwxr-xr-x 1 root root 2006920 Sep  2  2006 /usr/bin/smbpasswd
-rwxr-xr-x 1 root root    2295 Sep  2  2006 /usr/bin/smbprint
-rwxr-xr-x 1 root root  911124 Sep  2  2006 /usr/bin/smbspool
-rwxr-xr-x 1 root root  727968 Sep  2  2006 /usr/bin/smbstatus
-rwxr-xr-x 1 root root    4896 Sep  2  2006 /usr/bin/smbtar
-rwxr-xr-x 1 root root 1091552 Sep  2  2006 /usr/bin/smbtree

다른건 잘 모르겠고,
smbtree는 workgroup / computer 별로 공유되어 있는 목록을 보여주는 프로그램이다.

$ smbtree
Password:
WORKGROUP
        \\STREAM
                \\STREAM\C$                     Default share
                \\STREAM\ADMIN$                 Remote Admin
                \\STREAM\temp
                \\STREAM\D$                     Default share
                \\STREAM\IPC$                   Remote IPC
                \\STREAM\Stream Data
                \\STREAM\E$                     Default share
MSHOME
        \\KSJEON
cli_rpc_pipe_open: cli_nt_create failed on pipe \srvsvc to machine KSJEON.  Error was NT_STATUS_ACCESS_DENIED

이런식으로 쭈욱 나온다.

[링크 : http://master.samba.org/samba/docs/man/manpages-3/smbtree.1.html]
--------------------
smbstatus는 현재 삼바서버에 접속중인 클라이언트의 목록을 보여준다.

$ smbstatus

Samba version 3.0.23c-2
PID     Username      Group         Machine
-------------------------------------------------------------------
 2515   nevis1        dev           kwangho      (192.168.10.5)

Service      pid     machine       Connected at
-------------------------------------------------------
nevis1       2515   kwangho       Mon Aug 17 17:39:15 2009

No locked files

[링크 : http://master.samba.org/samba/docs/man/manpages-3/smbstatus.1.html]


-----------------
c 언어에서 조작하는 방법(source of smbtree.c)

[링크 : http://www.koders.com/c/fidB866C576E4391966493432682AF098446FDE9468.aspx?s=%22sam%22#L199]
[링크 : http://www.codase.com/search/display?file]
Posted by 구차니
프로그램 사용2009. 9. 5. 11:55
삼바 문서를 긁어 오다가 귀찮아서 한번에 받는 방법을 강구하다가, free 프로그램이 있다길래
한번 사용해 보았다.

Step 1. 실행하면 아래와 같은 화면이 나오고


Step 2. New 버튼을 누르면 아래와 같이 나오는데, URL은 받으려고 하는 페이지의 시작 주소이고
           Depth는 그 페이지의 링크를 몇단계 까지 추적해서 받아오냐는 것을 의미한다.


사용법도 간단하고, 속도도 빠르고 괜찮은 듯 하다.

[발견 : http://hompy.info/535]
[링크 : http://www.spadixbd.com/backstreet/]
Posted by 구차니
samba는 윈도우에서 파일 공유 하듯, 리눅스 - 윈도우 간에 파일 공유 하도록 해주는 녀석이다.
원래 약자로 SMB를 읽기 쉽게 s m b 가 들어가는 단어를 찾다가 samba가 되었다고 하는데...

아무튼 리눅스에서 사용하는 명령어는

smbclient 이녀석은 단일 파일을 조작하는 녀석으로 보인다.
$ smbclient //mypc/yshare "" -N -Tx backup.tar

[링크 : http://linux.die.net/man/1/smbclient]
[링크 : http://linux.die.net/man/7/samba]

$ sudo mount -t cifs //SERVERIP/ /home/me/Desktop/SERVER/ -o user=myusername,password=mypass

cifs 타입으로 마운트 해서 사용도 가능하다.
[링크 : http://ubuntuforums.org/showthread.php?t=280473]

mount시에 //SERVERIP/path가 아닌 SERVERIP/path로 할 경우 아래의 에러가 발생하니 //를 꼭 넣어주도록 하자
CIFS: UNC Path does not begin with // or \\

만약에
mount: bad address 'SERVERNAME'
이라고 에러가 발생하면 SERVERNAME대신 SERVERIP로 해주면된다.

UNC는 Unified Naming Convention 의 약자로고 한다.
[링크 : http://www.terms.co.kr/UNC.htm ]

CIFS는 Common Internet File System 의 약자라고 한다(Interface가 아니군..)
[링크 : http://www.terms.co.kr/CIFS.htm]


Posted by 구차니