프로그램 사용/busybox2009. 12. 29. 14:47
windows나 linux에서는 static / dhcp 변환이 자유롭다.
박스에서 이 기능을 구현하기 위해 ifup / ifdown 을 사용하여 구현을 하려고 했다.

일단 구현되어야 할 내용은
static -> dhcp
dhcp -> static
인데, 문제는 dhcp -> static이었다.

이유는 모르겠지만,
# ifdown -i interface.dhcp eth0
# ifup -i interface.static eth0
를 해도 dhcp에서 받아왔던 아이피로 남아있는데

일단 미봉책으로
# ifdown -i interface.dhcp eth0
# ifup -i interface.static eth0
# ifdown -i interface.static eth0
# ifup -i interface.static eth0
이렇게 static한 설정을 한번더 down/up 해주니 문제없이 아이피가 설정이 된다.

대부분의 예제 파일들이,

static up/down
dhcp up
예제만 있지,

dhcp down
static -> dhcp
는 존재하지 않는다.

아무튼, 일단은 되는게 장땡 -ㅁ-!
Posted by 구차니
프로그램 사용2009. 12. 27. 14:59
Windows XP일 경우  SP3 이상에서만 실행이 된다고 한다.


업데이트 해야 하나 ㅠ.ㅠ

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

freeciv - 문명 오픈소스  (6) 2010.01.20
Cooliris (piclens)  (6) 2010.01.05
BeeGIF - 대박 GIF 프로그램!  (2) 2009.12.13
rtsp를 지원하는 스트리밍 서버 - live555  (0) 2009.11.13
Free 3D 프로그램  (0) 2009.10.01
Posted by 구차니
프로그램 사용/busybox2009. 12. 23. 15:58
udhcp는 dhcp client 겸, network setting tool이다.
아무튼 busybox에서 채택하고 있는 dhcp client 이며, 나름 쓸만한 녀석이다.

######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
#
# A "#" character in the very first column makes the rest of the line
# be ignored. Blank lines are ignored. Lines may be indented freely.
# A "\" character at the very end of the line indicates the next line
# should be treated as a continuation of the current one.
#
# The "pre-up", "up", "down" and "post-down" options are valid for all
# interfaces, and may be specified multiple times. All other options
# may only be specified once.
#
# See the interfaces(5) manpage for information on what options are
# available.
######################################################################

# We always want the loopback interface.
#
# auto lo
# iface lo inet loopback

# An example ethernet card setup: (broadcast and gateway are optional)
#
# auto eth0
# iface eth0 inet static
#     address 192.168.0.42
#     network 192.168.0.0
#     netmask 255.255.255.0
#     broadcast 192.168.0.255
#     gateway 192.168.0.1

# A more complicated ethernet setup, with a less common netmask, and a downright
# weird broadcast address: (the "up" lines are executed verbatim when the
# interface is brought up, the "down" lines when it's brought down)
#
# auto eth0
# iface eth0 inet static
#     address 192.168.1.42
#     network 192.168.1.0
#     netmask 255.255.255.128
#     broadcast 192.168.1.0
#     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
#     up route add default gw 192.168.1.200
#     down route del default gw 192.168.1.200
#     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2

# A more complicated ethernet setup with a single ethernet card with
# two interfaces.
# Note: This happens to work since ifconfig handles it that way, not because
# ifup/down handles the ':' any differently.
# Warning: There is a known bug if you do this, since the state will not
# be properly defined if you try to 'ifdown eth0' when both interfaces
# are up. The ifconfig program will not remove eth0 but it will be
# removed from the interfaces state so you will see it up until you execute:
# 'ifdown eth0:1 ; ifup eth0; ifdown eth0'
# BTW, this is "bug" #193679 (it's not really a bug, it's more of a
# limitation)
#
# auto eth0 eth0:1
# iface eth0 inet static
#     address 192.168.0.100
#     network 192.168.0.0
#     netmask 255.255.255.0
#     broadcast 192.168.0.255
#     gateway 192.168.0.1
# iface eth0:1 inet static
#     address 192.168.0.200
#     network 192.168.0.0
#     netmask 255.255.255.0

# "pre-up" and "post-down" commands are also available. In addition, the
# exit status of these commands are checked, and if any fail, configuration
# (or deconfiguration) is aborted. So:
#
# auto eth0
# iface eth0 inet dhcp
#     pre-up [ -f /etc/network/local-network-ok ]
#
# will allow you to only have eth0 brought up when the file
# /etc/network/local-network-ok exists.

# Two ethernet interfaces, one connected to a trusted LAN, the other to
# the untrusted Internet. If their MAC addresses get swapped (because an
# updated kernel uses a different order when probing for network cards,
# say), then they don't get brought up at all.
#
# auto eth0 eth1
# iface eth0 inet static
#     address 192.168.42.1
#     netmask 255.255.255.0
#     pre-up /path/to/check-mac-address.sh eth0 11:22:33:44:55:66
#     pre-up /usr/local/sbin/enable-masq
# iface eth1 inet dhcp
#     pre-up /path/to/check-mac-address.sh eth1 AA:BB:CC:DD:EE:FF
#     pre-up /usr/local/sbin/firewall

# Two ethernet interfaces, one connected to a trusted LAN, the other to
# the untrusted Internet, identified by MAC address rather than interface
# name:
#
# auto eth0 eth1
# mapping eth0 eth1
#     script /path/to/get-mac-address.sh
#     map 11:22:33:44:55:66 lan
#     map AA:BB:CC:DD:EE:FF internet
# iface lan inet static
#     address 192.168.42.1
#     netmask 255.255.255.0
#     pre-up /usr/local/sbin/enable-masq $IFACE
# iface internet inet dhcp
#     pre-up /usr/local/sbin/firewall $IFACE

# A PCMCIA interface for a laptop that is used in different locations:
# (note the lack of an "auto" line for any of these)
#
# mapping eth0
#    script /path/to/pcmcia-compat.sh
#    map home,*,*,*                  home
#    map work,*,*,00:11:22:33:44:55  work-wireless
#    map work,*,*,01:12:23:34:45:50  work-static
#
# iface home inet dhcp
# iface work-wireless bootp
# iface work-static static
#     address 10.15.43.23
#     netmask 255.255.255.0
#     gateway 10.15.43.1
#
# Note, this won't work unless you specifically change the file
# /etc/pcmcia/network to look more like:
#
#     if [ -r ./shared ] ; then . ./shared ; else . /etc/pcmcia/shared ; fi
#     get_info $DEVICE
#     case "$ACTION" in
#         'start')
#             /sbin/ifup $DEVICE
#             ;;
#         'stop')
#             /sbin/ifdown $DEVICE
#             ;;
#     esac
#     exit 0

# An alternate way of doing the same thing: (in this case identifying
# where the laptop is is done by configuring the interface as various
# options, and seeing if a computer that is known to be on each particular
# network will respond to pings. The various numbers here need to be chosen
# with a great deal of care.)
#
# mapping eth0
#    script /path/to/ping-places.sh
#    map 192.168.42.254/24 192.168.42.1 home
#    map 10.15.43.254/24 10.15.43.1 work-wireless
#    map 10.15.43.23/24 10.15.43.1 work-static
#
# iface home inet dhcp
# iface work-wireless bootp
# iface work-static static
#     address 10.15.43.23
#     netmask 255.255.255.0
#     gateway 10.15.43.1
#
# Note that the ping-places script requires the iproute package installed,
# and the same changes to /etc/pcmcia/network are required for this as for
# the previous example.

# Set up an interface to read all the traffic on the network. This
# configuration can be useful to setup Network Intrusion Detection
# sensors in 'stealth'-type configuration. This prevents the NIDS
# system to be a direct target in a hostile network since they have
# no IP address on the network. Notice, however, that there have been
# known bugs over time in sensors part of NIDS (for example see
# DSA-297 related to Snort) and remote buffer overflows might even be
# triggered by network packet processing.
#
# auto eth0
# iface eth0 inet manual
#     up ifconfig $IFACE 0.0.0.0 up
#       up ip link set $IFACE promisc on
#       down ip link set $IFACE promisc off
#       down ifconfig $IFACE down

# Set up an interface which will not be allocated an IP address by
# ifupdown but will be configured through external programs. This
# can be useful to setup interfaces configured through other programs,
# like, for example, PPPOE scripts.
#
# auto eth0
# iface eth0 inet manual
#       up ifconfig $IFACE 0.0.0.0 up
#       up /usr/local/bin/myconfigscript
#       down ifconfig $IFACE down

[링크 : http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/]

[링크 : http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html]

[링크 : http://pig.cs.upt.ro/cgi-bin/man/man2html?interfaces+5]
Posted by 구차니
프로그램 사용/nfs2009. 12. 22. 17:26
검색은 해봤지만, 딱히 추천할 만한 조합은 아니라고 한다.

NFS is known for having locking problems. That is why it is never used for shared directories. Usually you would mount an NFS directory read only or as a home folder where only one user can open and lock each file.

I recommend dropping NFS and using only Samba shares. Samba handles file locking very well and it also has user authentication whereas NFS handles only host based authentication. Plus Windows utilities for NFS are very rare and poor in design.

Samba is called The NFS Bloodbath. NFS has litteraly been fazed out by Samba. Another very promissing file sharing method is sshfs which is user based and with high encryption (excellent sharing directories over WAN connections).

[링크 : http://www.linuxquestions.org/questions/linux-software-2/samba-on-nfs-file-locking-476005/]

No, it will always be both slower and more dangerous to run Samba on an
NFS client.  Slower, because the traffic must traverse 2 network links.
More dangerous, because Samba cannot detect NFS access to the files it
shares, and therefore Oplocks break.

Always run just one file-server, sharing out multiple protocols (if possible).


[링크 : http://www.unixresources.net/linux/lf/56/archive/00/00/06/13/61337.html]


아무튼 현재 겪고 있는 증상은,
smbtree 명령을 이용해서 NFS Client에서 네트워크를 검색하면
\\LOCALHOST와 NFS 서버의 이름만 나온다는 점이다.
Posted by 구차니
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) is a GSSAPI "pseudo mechanism" that is used to negotiate one of a number of possible real mechanisms.

NTLMSSP (NT LAN Manager Security Support Provider) is a binary messaging protocol used by the Microsoft Security Support Provider Interface to facilitate NTLM challenge-response authentication and to negotiate integrity and confidentiality options.

[링크 : http://en.wikipedia.org/wiki/SPNEGO]
[링크 : http://en.wikipedia.org/wiki/NTLMSSP]



# smbtree -N
added interface eth0 ip=192.168.10.116 bcast=192.168.10.255 netmask=255.255.255.0
Connecting to host=192.168.10.10
Connecting to 192.168.10.10 at port 445
Connecting to 192.168.10.10 at port 139
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
SPNEGO login failed: Logon failure
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
Got a positive name query response from 192.168.10.2 ( 192.168.10.2 )
Got a positive name query response from 192.168.10.241 ( 192.168.10.241 )
Connecting to host=192.168.10.97
Connecting to 192.168.10.97 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
SPNEGO login failed: Logon failure

smbtree에서 트리를 못 받아와서
log level = 3 으로 해서 출력을 해보니 기묘한 약자가 나와서 조사를 해보았다.
(그런데.. 해결책은 어디로.. OTL)
Posted by 구차니
프로그램 사용/nfs2009. 12. 19. 11:25
공식문서는 발견하지 못했는데
간단하게 설명을 하자면,  NFS 공유를 통해 열어 놓은 파일을 삭제했을때
파일을 삭제하기 위해 임시 파일을 만든후,
원본을 삭제하고, 이미 공유중인 파일은 숨겨진 파일로 공유가 되는것으로 생각이 된다.

When files on an nfs shared filesystem are deleted while processes still have them open,
the nfs server renames them to .nfsXXXXX files.
Find those processes and make them close the shared files before you delete them.

[링크 : http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2006-04/msg00094.html]

This is quite common -- the file you are trying to delete is still
open, and because of that the NFS server has to keep it around,
so it renames the file to .nfs

You need to figure out what's holding the file open. It could be
that there is a process that is still using it, or it could be that
the file is actually a shared library which got "stuck" in memory.

[링크 : http://dbaspot.com/forums/aix/345512-hidden-nfs-files-aix5-2-a.html]


결론은, 임베디드 개발을 위해 사용하는 NFS에서 이러한 파일들이 생성될 경우 그냥 삭제해주어도 상관은 없다.
Posted by 구차니
smb.conf 파일에서

log level = [0..100]

으로 설정하면 된다.
(소스 상에서는 100까지 존재한다.)

[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/bugreport.html]


Option

Parameters

Function

Default

Scope

log file

string (fully-qualified filename)

Sets the name and location of the log file that Samba is to use. Uses standard variables.

Specified in Samba makefile

Global

log level

(debug level)

numerical (0-10)

Sets the amount of log/debug messages that are sent to the log file. 0 is none, 3 is considerable.

1

Global

max log size

numerical (size in KB)

Sets the maximum size of log file. After the log exceeds this size, the file will be renamed to .bak and a new log file started.

5000

Global


이 문서에 의하면 [0...10] 그리고 기본은 1이라고 한다.
[링크 : http://oreilly.com/catalog/samba/chapter/book/ch04_08.html#ch04-92838]



참고로 10 level로 하면 로그파일의 용량이 대책이 서지않는다.
디버깅 용도라며나 max log size를 기본값으로 사용하거나, 적절하게 키워주는 것이 좋을듯 하다.
(단지 브라우징하고, 파일 하나 복사하는데 1.5MB의 로그 파일이 생성되었다.)
Posted by 구차니


Step 1. 일단 아래의 한글언어팩을 다운받는다.
           http://www.sugarforge.org/projects/koreanlanguage

Step 2. 위의 언어팩을 다운받고, 압축을 푼뒤
           C:\Program Files\sugarcrm-5.5.0\htdocs\include
           C:\Program Files\sugarcrm-5.5.0\htdocs\modules 에 덮어씌운다.
           귀찮으면 압축을 C:\Program Files\sugarcrm-5.5.0\htdocs\ 에 풀어도 된다.

Step 3. 한글화 및 기본 언어를 설정하기 위해서는
           (기본설치시 경로인) C:\Program Files\sugarcrm-5.5.0\htdocs\sugarcrm\config.php 를 손을 봐야 한다.

154   'default_language' => 'en_us',

196   'languages' =>
197   array (
198     'en_us' => 'English (US)',
199   ),

위의 원본을 아래와 같이 수정한다.

154   'default_language' => 'ko',

196   'languages' =>
197   array (
198     'ko' => 'Korean (KO)',
199     'en_us' => 'English (US)',
200   ),

그러면 한글화 끝!
한가지 아쉬운점은, 현재 버전은 5.5 이고, 한글화 패치의 버전은 4.5 라는 점이다.

다운로드는 용량이 적은 APM 통합패키지를 받자.

[링크 : http://www.sugarcrm.com/crm/download/sugar-suite.html] << sugarCRM APM 통합버전 다운로드
[링크 : http://www.sugarforge.org/projects/koreanlanguage] << 한글 패치





사족 : 이러다가.. 이녀석도 한글화 하겠다고 덤비게 되는건.......... 아니겠지??? OTL
Posted by 구차니
CRM 관련 open source 물색중인데,
일단 귀차니즘으로 인해, 윈도우에서 돌아가는걸 찾게 되었다.

이녀석은 ERP로 검색한것중에 상단에 나오는 녀석인데,
윈도우에서 APM 서버와 통합되어 설치된다. (Apache, Mysql , PHP)

설치 완료후, DB 성생으로 인해 4분 정도 걸린다고 커피나 먹고 오라는 친절한 멘트!

설레이는 첫 로그인! admin / admin이 기본 이다.
영어만 지원하는게 아쉬운 점

메인 페이지. 폼난다!(그러나.. 쓸줄은 모른다 ㅠ.ㅠ)

샘플데이터를 이용한 구매기안 페이지(역시 먼지 모름)

위의 메뉴에서 Send Email With PDF 를 누르면 나오는 화면,
FCKEditor로 WYSIWYG을 지원한다.

Export to PDF를 누르면 나오는 화면

저렴한 용량!

[링크 : http://sourceforge.net/projects/vtigercrm/]
Posted by 구차니
프로그램 사용2009. 12. 13. 17:22

대박깔끔하고, 사용이 간편한 GIF 프로그램입니다.
아이콘이라던가 UI라던가 매우 마음에 드는 무료프로그램입니다.

2009.12.14 추가
기업/관공서/학교에서도 무료로 사용이 가능합니다!

[링크 : http://blog.naver.com/faith3love/80096311510] << 개발자 블로그
[링크 : http://www.makeshop.co.kr/main/special_pluspage.html?num=19]

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

Cooliris (piclens)  (6) 2010.01.05
Fast Picture Viewer 제한사항  (0) 2009.12.27
rtsp를 지원하는 스트리밍 서버 - live555  (0) 2009.11.13
Free 3D 프로그램  (0) 2009.10.01
BackStreet Browser - 웹페이지 긁어 오기  (4) 2009.09.05
Posted by 구차니