"발신자정보없음"의 압박

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

근육맨  (0) 2011.05.12
어버이날  (0) 2011.05.12
어스름  (0) 2011.04.18
누가 피자를 쌓아놨어?  (0) 2011.04.11
아이스크림 (느낌의 구름)  (0) 2011.03.05
Posted by 구차니
어제 피곤해서 9시에 눕고 눈떠보니 9시 
좀 놀다가 2시에 졸려 눈좀 붙이고 눈을 떠보니 4시..






하긴 요즘 좀 인생이 피곤했어 -_- 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

월차와 바꾼 키보드  (2) 2011.05.12
머피의 법칙  (0) 2011.05.12
으아아 빠져든다  (0) 2011.05.02
쓰기싫은 스킬  (0) 2011.04.27
질렀노라 왔노라 받았노라!  (4) 2011.04.22
Posted by 구차니
만약에 2개의 장소에서 독립적인 지역 저장소(local repositories)를
하나의 중앙 서버에서 합쳐서 서비스를 하려고 한다는 상황에 적절한 내용

--- 2011.05.11 추가
병합된 내용을 보니 날짜 / 시간별로 revision이 맞물려 들어간다.
---

# svnadmin load --help
load: 사용법: svnadmin load REPOS_PATH

stdin 으로 'dumpfile' 형식의 스트림을 읽어들여, 새로운 리비젼을
저장소의 파일시스템으로 커밋합니다. 이전에 저장소가
비어있었다면, 기본적으로 그것의 UUID 가 스트림에 지정된
한가지로 변경될것입니다. 진행 피드백은 stdout 으로 전송됩니다.

옵션:
  -q [--quiet]             : stderr 에 대한 진행사항이 (오류에 한해서) 없습니다
  --ignore-uuid            : 스트림에 어떤 repos UUID가 발견되어도 무시합니다
  --force-uuid             : 만약 있다면, repos UUID 를 스트림에서 발견된 것에 설정합니다,
  --use-pre-commit-hook    : 리비전을 새로이 커밋하기 전 post-commit 훅을 호출합니다.
  --use-post-commit-hook   : 리비전을 새로이 커밋한 뒤 post-commit 훅을 호출합니다.
  --parent-dir ARG         : 저장소의 지정된 디렉토리에 로드합니다

# svnadmin dump --help
dump: 사용법: svnadmin dump REPOS_PATH [-r LOWER[:UPPER] [--incremental]]

파일 시스템의 내용을 stdout으로 포터블한 형식의 'dumpfile'로 출력하며,
stderr로 피드백을 보냅니다. 리비젼 LOWER부터 UPPER까지 출력합니다.
주어진 리비젼이 없다면, 모든 리비젼 트리를 적재합니다. LOWER만 주어졌다면,
LOWER 값에 해당하는 리비전만 출력합니다.
--incremental 옵션을 사용한다면, 출력되는 첫번째 리비전에는 해당
리비전에서 바뀐 경로에 대한 것만 기술될 것이며, 그렇지 않은 경우에는
해당 리비전에 존재하는 모든 경로가 출력됩니다.
(이 옵션의 사용여부에 상관없이 출력되는 두번째 이후의 리비전에는 해당
리비전에 바뀐 내용이 있다면, 그 경로의 내용만 출력됩니다)

옵션:
  -r [--revision] ARG      : 리비젼 넘버 ARG ( 또는 X:Y 범위 )를 지정합니다
  --incremental            : incremental 적재를 합니다.
  --deltas                 : 적재된 결과물에 deltas를 사용합니다
  -q [--quiet]             : stderr 에 대한 진행사항이 (오류에 한해서) 없습니다

$ svnadmin dump repo1 > a1.d
$ svnadmin dump repo2 > a2.d
$ svnadmin create new
$ svn mkdir file:///.../new a1
$ svnadmin load new --parent-dir a1 < a1.d
$ svn mkdir file:///.../new a2
$ svnadmin load new --parent-dir a2 < a2.d 

[링크 : http://spyced.blogspot.com/2007/09/merging-two-subversion-repositories.html] 

간단하게 요약하자면
repo1 의 내용을 a1.d 에 
repo2 의 내용을 a2.d 에 파일로 저장하고

new라는 새로운 저장소를 만들어
그 안에 repo1은 a1 이라는 상위 디렉토리를 넣어주고
repo2는 a2 라는 상위 디렉토리를 넣어준다.

만약, 특별한 상위 디렉토리 없이 전부를 넣어주고 싶다면
--parent-dir /
이라고 해주면 목적지 저장소의 / 에 전부 넣어지게 된다.
(실험해보진 않았지만 parent는 저장소의 지정된 디렉토리 이므로,
엄밀하게는 미리 디렉토리를 생성해주고 그 안으로 넣어도록 지정이 가능할 것으로 보인다.)

[링크 : http://geekswithblogs.net/kariemali/archive/2009/06/02/how-to-merge-two-svn-repositories.aspx]
[링크 : http://stackoverflow.com/questions/267256/combining-multiple-svn-repositories-into-one]
Posted by 구차니
개소리 왈왈2011. 5. 9. 09:43


포인트가 사라진다고 하길래 받을려고 했더니
멀받으란거니? 도대체!!!!! 

'개소리 왈왈' 카테고리의 다른 글

교통카드 두개있을때 하나만 찍게 하는 방법  (4) 2011.05.19
스승의 날이구나  (0) 2011.05.15
지름신 강림!  (0) 2011.04.30
파이낸셜 플래너 너넨 모냐?  (4) 2011.04.25
도인들 업그레이드?  (0) 2011.04.24
Posted by 구차니
pythonbrew 라는 녀석이 있어서, 여러개 버전을 설치해서 골라가며 실행을 할 수 있다고 한다.

[링크 :  http://kldp.org/node/122865]
  [링크 : http://gauryan.blogspot.com/2011/05/pythonbrew-python.html]

[링크 : https://github.com/utahta/pythonbrew]

'Programming > python(파이썬)' 카테고리의 다른 글

PyOpenGL  (0) 2011.10.04
python 3.2.2 64bit 버전 설치  (4) 2011.09.13
python C/api - PyObject_GetAttrString()  (0) 2010.04.06
파이썬 문자열 쌍따옴표 세개 - """ python string  (0) 2010.04.04
python c/api 관련문서  (0) 2010.03.25
Posted by 구차니
Linux/Ubuntu2011. 5. 8. 01:24
PAE는 32bit OS에서 4GB 이상의 용량을 사용할수 있도록 해주는 기술이다.
CPU에서도 지원을 해야한다.

[링크 : http://calmglow.egloos.com/4571486]
[링크 : http://en.wikipedia.org/wiki/Physical_Address_Extension]

우분투 10.04 에서는 네트워크를 연결해서 설치하면 PAE 지원시 설치가 되지만
오프라인 설치시에는 별도로 패키지를 추가해주어야 한다.
CPU가 PAE를 지원하는지는 /proc/cpuinfo에서 PAE를 찾으면 된다.

# sudo aptitude install linux-generic-pae linux-headers-generic-pae
# cat /proc/cpuinfo | grep -i PAE

[링크 : https://help.ubuntu.com/community/EnablingPAE 

'Linux > Ubuntu' 카테고리의 다른 글

motd - Message of The Day  (0) 2011.06.07
apt-get 관련  (0) 2011.06.05
멀티부트 상황에서 시간변동 바로잡기  (0) 2011.04.15
Ubuntu 에서 듀얼 모니터 사용하기  (2) 2011.04.15
ubuntu 10.04 LTS 64bit  (0) 2011.03.22
Posted by 구차니
프로그램 사용/saned2011. 5. 7. 14:27
초기 설정에는 전부 주석이 되어있을뿐 어떠한 내용도 들어있지 않다.
그런 이유로 sane을 사용하려면 아래의 두줄을 설정해야 한다.

# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
#data_portrange = 10000 - 10100
data_portrange = 6656

## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
192.168.10.10/24

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

그리고 나서  sane을 구동하려면
/etc/default/saned 에서 RUN=no를 TUN=yes로 바꾸어 준다.
# Defaults for the saned initscript, from sane-utils

# Set to yes to start saned
RUN=yes

# Set to the user saned should run as
RUN_AS_USER=saned 
위의 설정은 부팅시 자동시작뿐만 아니라 수동으로 시작을 할지 안할지를 설정하는 부분이다.

 

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

[조사중] epson TX213 스캐너 사용하기  (0) 2011.05.11
부팅시에 saned 구동하도록 설정하기  (0) 2011.03.17
sanetwain + windows 사용하기  (0) 2011.03.16
scx4623 sane  (0) 2011.03.15
SANE, TWAIN, REMOTESCAN  (0) 2011.03.04
Posted by 구차니

사정이 있어 더미포트가 필요한데.. 요즘에는 죄다 단종이라 구할수가 없다.
그런 이유로 머리를 굴리다가, 관리용 허브에서는 어떻게 되지 않을까 메뉴얼을 보다가

VLAN과 broadcast strorm 그리고 mirroring이 보였다.

오홍? 미러링 그럴싸한데? 하고 허브에 접속해서 보니 헐 이게머야 -_-


도움말을 보니 Monitor와 Mirror로 설정을 해주어야 하고
Monitor는 스니핑을 할 포트Mirror는 엿듣김을 당하게 될 포트 이다.

Select port type

Defines the port that will be the monitor port (destination port) and the port that will be mirrored (source port). The possible values are:

  • Monitor --- Defines the port as the monitor port, the destination port.
  • Mirror --- Defines the port as a mirrored port (source port) to be monitored and indicates the traffic direction to be monitored. The possible values are:
    • Mirror In --- Enables port mirroring on ingress traffic.
    • Mirror Out --- Enables port mirroring on egress traffic.

Select port
Selects the port for mirroring or monitoring. A port unavailable for mirroring is colored grey.

Summary --- Displays the current monitor and mirror port. The fields displayed are:

  • Monitor --- Displays the monitor port.
  • Mirror In --- Displays the ports monitored for ingress traffic.
  • Mirror Out --- Displays the ports monitored for egress traffic.

시험적으로 위와 같이 설정을 하면. 그 포트에서 주고 받는 내용이 그대로 복제되어
wireshark에서 들을수 있지만, 인터넷이 안되는 부작용이 생긴다 -_-
설정상의 문제인지 아무튼... 인터넷 선이 꼽힌 포트를 같이 Mirror로 설정해주면 해결된다. 
Posted by 구차니
우분투 기준으로
/etc/samba/smb.conf 에 보면 프린터 항목이 다음과 같이 기술되어 있다.

[printers]
        comment = All Printers
        browseable = no
        path = /var/spool/samba
        printable = yes
;       guest ok = no
;       read only = yes
        create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
;       browseable = yes
;       read only = yes
;       guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin 

위의 경로에는 다음과 같은 디렉토리 들이 존재하는데. 전부 비어있다.
$ cd /var/lib/samba/printers/
$ ll
drwxr-xr-x 11 root root  4096 2011-05-06 17:35 ./
drwxr-xr-x  5 root root  4096 2010-10-28 14:39 ../
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 COLOR/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 IA64/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32ALPHA/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32MIPS/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32PPC/
drwxr-xr-x  2 root root  4096 2011-05-06 17:35 W32X86/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 WIN40/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 x64/ 

도대체 어디에 어떻게 넣으란거야 -_-

[링크 : http://www.linuxtopia.org/.../samba_reference_guide/29_CUPS-printing_105.html]
 [링크 : http://www.enterprisenetworkingplanet.com/.../Push-Windows-Printer-Drivers-with-CUPS.htm]
[링크 : http://www.cups.org/documentation.php/man-cupsaddsmb.html]
[링크 : https://wiki.samba.org/index.php/Samba_as_a_print_server]

21.5.1 Point'n'Print Client Drivers on Samba Servers
[링크 : http://www.scribd.com/doc/49933038/246/Point'n'Print-Client-Drivers-on-Samba-Servers] << 플래시 pdf
[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html] << text 

---
$ rpcclient -U'Danka%xxxx' -c 'getdriver "Heidelberg Digimaster 9110 (PS)" 3' TURBO_XP
                로그인용아이디         드라이버정보 "공유 프린터 이름" 출력레벨        컴퓨터이름

\\PC_NAME\COLOR_PRINTER 라는 경로가 존재한다면
$ rpcclient -N -c 'getdriver "COLOR_PRINTER" 3' PC_NAME
이라고 입력을 하면된다. (물론 RPC를 통해 얻으므로 윈도우 시스템에 query를 해서 드라이버를 추출한다)
 

--- 2011.05.07 추가

문서를 보고 따라하는데 무언가 빼먹은게 있는듯 -_-
일단 smbclient를 이용해서 복사를 했지만 등록을 하지 않아서 안되는 것으로 보인다.
\\TURBO_XP\Heidelberg Digimaster 9110 (PS) 의 드라이버 정보를 보고
rpcclient -U'Danka%xxxx' -c 'getdriver "Heidelberg Digimaster 9110 (PS)" 3' TURBO_XP

\\TURBO_XP\print$ 에 공유된 드라이버 파일중 일부를 복사한다.
smbclient //TURBO_XP/print\$ -U'Danka%xxxx' -c 'cd W32X86/2;mget HD*_de.* hd*ppd Hd*_de.* Hddm*dll HDN*Aux.DLL'

\\SAMBA-CUPS\print$ 에 복사한 드라이버 파일을 넣어주고
smbclient //SAMBA-CUPS/print\$ -U'root%xxxx' -c \
'cd W32X86; put HDNIS01_de.DLL; \
put Hddm91c1_de.ppd; put HDNIS01U_de.DLL;        \
put HDNIS01U_de.HLP; put Hddm91c1_de.DLL;        \
put Hddm91c1_de.INI; put Hddm91c1KMMin.DLL;      \
put Hddm91c1_de.dat; put Hddm91c1_de.dat;        \
put Hddm91c1_de.def; put Hddm91c1_de.hre;        \
put Hddm91c1_de.vnd; put Hddm91c1_de.hlp;        \
put Hddm91c1_de_reg.HLP; put HDNIS01Aux.dll;     \
put HDNIS01_de.NTF'

\\SAMBA-CUPS\print$ 에 파일이 들어갔는지 확인하고
smbclient //SAMBA-CUPS/print\$ -U 'root%xxxx' -c 'cd W32X86; pwd; dir; cd 2; pwd; dir'

\\SAMBA-CUPS\print$ 에 드라이버를 추가(등록)한다.
rpcclient -Uroot%xxxx -c 'adddriver "Windows NT x86" \
  "dm9110:HDNIS01_de.DLL: \
  Hddm91c1_de.ppd:HDNIS01U_de.DLL:HDNIS01U_de.HLP:   \
  NULL:RAW:Hddm91c1_de.DLL,Hddm91c1_de.INI,          \
  Hddm91c1_de.dat,Hddm91c1_de.def,Hddm91c1_de.hre,   \
  Hddm91c1_de.vnd,Hddm91c1_de.hlp,Hddm91c1KMMin.DLL, \
  HDNIS01Aux.dll,HDNIS01_de.NTF,                     \
  Hddm91c1_de_reg.HLP' SAMBA-CUPS

\\SAMBA-CUPS\print$ 에 제대로 들어갔는지 확인하고
smbclient //SAMBA-CUPS/print\$ -Uroot%xxxx' -c 'cd W32X86;dir;pwd;cd 2;dir;pwd' 

유닉스에서 확인하고
rpcclient -U'root%xxxx' -c 'enumdrivers' SAMBA-CUPS

윈도우에서 다시 한번 더 확인한다.
rundll32 printui.dll,PrintUIEntry /s /t2 /n\\SAMBA-CUPS 

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

samba에 갑작스러운 "엑세스 거부"  (0) 2011.11.23
삼바를 SSH통해 공유하기  (0) 2011.08.23
samba on Ubuntu 10.04 LTS  (0) 2010.11.11
cifsd  (0) 2010.03.18
삼바 3.0.x 에서 3.4.0 으로 사용자 이전하기  (0) 2010.02.05
Posted by 구차니
Programming/openGL2011. 5. 6. 00:04

'Programming > openGL' 카테고리의 다른 글

glGenLists  (0) 2011.06.09
glutIdleFunc  (0) 2011.05.13
openGL - DoF  (2) 2011.05.03
직교좌표계와 원근좌표계 전환하기  (0) 2011.05.01
glutReshapeWindow() 는 크기 변화가 없으면 안그려 OTL  (2) 2011.04.24
Posted by 구차니