vfs objects = recycle


위의 항목을 이용하면 vfs module을 통해서

휴지통 기능을 지원한다고 한다.

synology에서 이 기능으로 삼바 휴지통을 구현한걸려나?


[링크 : http://unix.stackexchange.com/.../how-can-i-have-a-trash-recycle-bin-for-my-samba-shares]

[링크 : http://forums.openmediavault.org/index.php/Thread/3098-RESOLVED-Recycle-bin-for-SMB-CIFS/]


EXAMPLES

Move files "deleted" on share to /data/share/.recycle instead of deleting them:

      [share]

path = /data/share

vfs objects = recycle

recycle:repository = .recycle

recycle:keeptree = yes

recycle:versions = yes


VERSION

This man page is correct for version 3.0.25 of the Samba suite.


[링크 : https://www.samba.org/samba/docs/man/manpages/vfs_recycle.8.html


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

어라.. samba swat 사라졌네  (0) 2017.01.03
wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
Posted by 구차니

머징


분리된 개발라인을 유지하는데 사용되는 브랜치에서, 당신은 몇몇 단계에서 브랜치에서 일어난 것을 트렁크 안으로 혹은 반대로 머지를 원할 것이다 

당신이 이것을 사용하기 시작하기 전에 매우 복잡하게 되더라도 서브버전에서 브랜칭과 머징이 어떻게 작동하는지 이해하는 것은 중요하다. 어떻게 사용되는지에 대한 다양한 예제와 전체 설명이 있는 서브버전 책의 "브랜칭과 머징" 챕터를 읽는 것을 매우 강력히 권장한다.


다음 알아야할 내용은 머징은 워킹카피안에서 이뤄진다는 것이다. 브랜치 안으로 변경점을 머지 하고 싶다면, 브랜치를 위한 워킹 카피를 체크아웃 해야 하고, 워킹카피에서 TortoiseSVN -> Merge의 머지 위자드를 실행한다.


일반적으로 수정되지 않은 워킹카피로의 머지를 수행하는 것은 좋은 생각이다. 당신의 워킹카피에 다른 변경점이 있다면 그것들을 먼저 커밋해라. 머지가 당신이 예상한대로 작동하지 않는다거나 변경점을 되돌리고 싶어 한다면, Revert 명령을 통해 머지 이전을 포함한 모든 변경점을 파기하게 될 것이다.


아래에 기술 하듯, 근소하게 다른 방향으로 다뤄지는 머지의 3개의 일반적인 사용예가 있다.  머지 위자드의 첫 페이지에서는 당신이 사용할 방법을 고르도록 물어 볼 것이다.


리비전 범위 머지

  이 방법은 당신이 하나나 혹은 그 이상의 리비전들을 하나의 브랜치로 (혹은 트렁크) 만들고

  다른 브랜치들을 가로질러 변경점을 복사(port)하길 원할 때 사용된다.


  서브버전에게 이것을 어떻게 행하는지 물어 보면: " 브랜치 A의 리비전 1 [부터] 브랜치 A의 리비전 7 [까지] 얻어야 할 변경점을 계산하고, 이 변경점 들을 나의 워킹카피(브랜치 B나 트렁크)로 적용한다.


  리비전 범위를 비워둔다면, 서브버전은 올바른 리비전 범위르르 계산하기 위해 머지-추적 기능을 이용한다. 이것은 자동머지나 reintegrate 로 알려져 있다.


두개의 다른 트리를 머지

  이것은 reintegrate 방법보다 더욱 일반적인 경우입니다.서브버전에게 이것을 어떻게 행하는지 물어 보면: " 트렁크의 head 리비전 [부터] 브랜치의 head 리비전 [까지] 얻어야 할 변경점을 계산하고, 이 변경점 들을 나의 (트렁크의)워킹카피에 적용한다. 최종 결과로 트렁크는 브랜치와 완전 동일하게 보이게 된다.


  만약 당신의 서버/저장소가 머지-추적을 지원하지 않는다면 브랜치를 트렁크로 머지하는 유일한 방법이다. 다른 사용예는 벤더 브랜치를 사용할때 발생하고, 당신은 새로운 벤더를 뒤 따르는 트렁크 코드의 변경점을 머지해야 한다. 더 자세한 정보는 서브 버전 책의 "벤더 브랜치" 챕터를 읽기 바란다.

  


---

요거 아래로는 세부 내용이니 일단 패스

[링크 : https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-merge.html]

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

svn relocate / ubuntu  (0) 2016.06.21
svn merge... 두근두근  (6) 2016.02.17
svnadmin dump로 덤프/합치기  (0) 2015.11.26
svn merge  (0) 2015.08.19
svn switch - shares no common ancestry with  (0) 2015.06.16
Posted by 구차니

이것저것 테스트 해봤지만..

그래도 .bashrc에다가 cd 하나 넣어 주는게 젤로 편하긴 하네..


d 드라이브로 바로 bash를 실행하는 방법

$ cd

$ vi .bashrc

cd /cygdrive/d/


[링크 : http://superuser.com/.../how-do-i-change-the-default-startup-directory-in-cygwin]

[링크 : http://stackoverflow.com/.../open-cygwin-at-a-specific-folder]

[링크 : http://unitstep.net/blog/2009/05/16/open-cygwin-bash-shell-here/] open with bash here

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

XDMCP over SSH ? / xnest  (0) 2016.02.03
xming / xdmcp 성공  (0) 2016.02.02
Xwin DISPLAY 고찰(?)  (0) 2015.08.13
Xming vs cygwin/x  (0) 2012.01.25
Cygwin/X 추려내기 - ing  (0) 2011.09.10
Posted by 구차니

-j 로 잘못하다가는 시스템 멈춤까지 가는데..

그걸 방지하기 위해 -l 옵션을 쓰는 것도 방법

기본값은 제한없음이니 적당히 설정해두면 좋을지도?

[링크 : http://korea.gnu.org/manual/4check/make-3.77/ko/make_5.html]


-j [jobs], --jobs[=jobs]

Specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.


-l [load], --load-average[=load]

Specifies that no new jobs (commands) should be started if there are others jobs running and the load average is at least load (a floating-point number). With no argument, removes a previous load limit.


[링크 : http://linux.die.net/man/1/make


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

make 아카이브  (0) 2015.12.14
make 매크로  (0) 2015.12.14
makefile 병렬 대비하기  (0) 2015.11.30
make burn 0.0.0 ???  (0) 2014.11.11
make를 조용하게  (0) 2014.09.12
Posted by 구차니

의존성을 줌으로서

병렬 빌드시 모든 파일이 준비되어야 하도록 해주어야 함


여기서 미묘한 점이 있는데 직렬 질드에서는 make 가 application 의 의존성 목록에서 왼쪽에서 오른쪽으로 작업을 시작할 것입니다. 첫번째로 ${OBJECTS} 의 모든 오브젝트들을 빌드 하고 나서 menu.o 를 빌드하는 규칙을 적용할 것입니다. 이러한 직렬 환경에서는 문제가 없습니다 왜냐하면 menu.o 가 처리될때 필요한 ${OBJECTS} 의 모든 오브젝트들은 이미 제자리에 있을 것이기 떄문입니다. 그러나 병렬 빌드에서 make 는 병렬 환경에서 모든 의존성들을 처리할 수 있으므로 menu.o 의 생성과 컴파일은 모든 오브젝트 들이 준비 되기 전에 시작 될 수 있습니다


   OBJECTS=app.o helper.o utility.o ... 


    application: ${OBJECTS} menu.o 

        cc -o application ${OBJECTS}  menu.o 


    # Automatically generate menu.c from the other modules 

    menu.o: 

        nm ${OBJECTS} | pattern_match_and_gen_code > menu.c 

        cc -c menu.c


    application: ${OBJECTS} menu.o 

        cc -o application ${OBJECTS}  menu.o 


    menu.o: ${OBJECTS} 

        nm ${OBJECTS} | pattern_match_and_gen_code > menu.c 

        cc -c menu.c  


[링크 : http://blog.syszone.co.kr/2099]


+

[링크 : http://forum.falinux.com/zbxe/index.php?document_srl=405822&]

[링크 : http://korea.gnu.org/manual/4check/make-3.77/ko/make_toc.html]

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

make 매크로  (0) 2015.12.14
make -j -l  (0) 2015.11.30
make burn 0.0.0 ???  (0) 2014.11.11
make를 조용하게  (0) 2014.09.12
cmake 사용  (0) 2011.10.07
Posted by 구차니

$ svnadmin help dump

dump: usage: svnadmin dump REPOS_PATH [-r LOWER[:UPPER] [--incremental]]


$ svnadmin dump repos/ > repos.dmp

svnadmin: Expected FS format between '1' and '4'; found format '6'


하.. 이 써글 버전..

꺼부기 에서 최신버전 해놨더니 DB 버전이 6이 되어버려서

리눅스에서는 구버전인지라.. 인식이 안되나 보다.. ㅠㅠ


옳은 해결방법은 아니지만 강제로 db 버전을 4라고 속여서 궈궈 ㅠㅠ

[링크 : http://stackoverflow.com/.../subversion-svn-e160043-expected-fs-format-between-1-and-4]


$ vi repos/db/format

6

layout sharded 1000


$ sudo vi repos/db/format

4

layout sharded 1000


$ svnadmin dump /home/minimonk/repos > repos.dmp

* Dumped revision 0.

...

* Dumped revision 135.


$ file repos.dmp
repos.dmp: Subversion dumpfile (version: 2)

$ svnadmin help load
load: usage: svnadmin load REPOS_PATH

Read a 'dumpfile'-formatted stream from stdin, committing
new revisions into the repository's filesystem.  If the repository
was previously empty, its UUID will, by default, be changed to the
one specified in the stream.  Progress feedback is sent to stdout.

Valid options:
  -q [--quiet]             : no progress (only errors) to stderr
  --ignore-uuid            : ignore any repos UUID found in the stream
  --force-uuid             : set repos UUID to that found in stream, if any
  --use-pre-commit-hook    : call pre-commit hook before committing revisions
  --use-post-commit-hook   : call post-commit hook after committing revisions
  --parent-dir ARG         : load at specified directory in repository

으아아아 해보지 않으니 안되는걸 알리가.. ㅠㅠ
< 로 stdin에서 파일을 받아야 하는데 왜 그걸 안알랴준거야!!!

$ sudo svnadmin load repos1 --parent-dir temp < repos.dmp
<<< Started new transaction, based on original revision 1
     * adding path : temp/rev133-150114 ... done.
     * adding path : temp/rev133-150114/App ... done.

...

------- Committed new rev 1213 (loaded from original rev 135) >>>

완료!!
svn repo browser로 보니 원하는 경로였던
svn 저장소 상의 /temp에 잘 들어가있고 리비전 히스토리까지 다 들어가 있다!! 우오오오

그런데.. 새로 받아야지 UUID가 달라서 switch도 relocate도 안된다 ㅠㅠ



[링크 : http://unix.stackexchange.com/questions/6676/svn-switch-relocate-wrong-uuid]


2015/06/06 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - svn 저장소 합치기

2011/01/08 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - SVN 저장소 합치기 - merging SVN repositories


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

svn merge... 두근두근  (6) 2016.02.17
tortoiseSVN merge 페이지 번역  (0) 2015.12.02
svn merge  (0) 2015.08.19
svn switch - shares no common ancestry with  (0) 2015.06.16
svn 저장소 합치기  (0) 2015.06.06
Posted by 구차니

일단 윈7 되면서 SMB2 로 버전이 업되었고

SMB2 부터는 oplock을 끌수 없게 되었다고 한다.


그래서 win7에서 SMB2/3를 사용하지 않고 SMB1으로 강제 한뒤

oplock을 끌수는 있다고 하는데..


The SMBv2 protocol was introduced in Windows Vista and Windows Server 2008. 

The SMBv3 protocol was introduced in Windows 8 and Windows Server 2012.

[링크 : https://support.microsoft.com/en-us/kb/2696547]


일단 윈도우에서 파일 업로드가 안되는 에러가 발생해서 검색해보니

strict locking을 끄라고 해서 해봤더니.. 일단은 됨..(여전히 오래 걸리지만)


$ sudo vi /etc/samba/smb.conf

[global]

strict locking = no




[링크 : http://serverfault.com/...nfs4-mount-directory-window-clients-cannot-copy-file]

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

wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
삼바 휴지통 vfs_object  (0) 2015.12.08
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
samba 폴터 생성시 퍼미션  (0) 2012.12.14
Posted by 구차니
프로그램 사용/doxygen2015. 11. 9. 15:03


$ sudo apt-get install doxygen

$ doxygen -g

$ vi Doxyfile

$ doxygen


[링크 : http://linuxspot.tistory.com/264]

[링크 : http://www.stack.nl/~dimitri/doxygen/manual/config.html]


[링크 : http://egloos.zum.com/wlan/v/10805691]


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

doxygen - 부제 : 독한녀석!  (0) 2010.03.26
Posted by 구차니
프로그램 사용/octave2015. 11. 5. 12:38

나중에 봐야겠.....

(나중은 안본다는 의미..!)


octave - GNU Octave language for numerical computations


[링크 : https://www.gnu.org/software/octave/]



+

3.8 부터 GUI가 생긴것 같고..

라즈베리에 있는 3.6.2는 --force-gui 옵션이 안 먹는 버전인듯?

[링크 : http://ubuntuforums.org/showthread.php?t=2196608]


+

윈도우 포트도 존재하지만 native가 아닌 mingw나 cygwin 위에서 도는 듯

[링크 : http://wiki.octave.org/Octave_for_Microsoft_Windows]

[링크 : https://ftp.gnu.org/gnu/octave/windows/]


엌..

JRE와 QT 라던가.. 이 기묘한 조합은 머지?






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

octave csv에서 읽어들이기  (0) 2024.11.26
octave audioread wav  (0) 2023.07.12
Posted by 구차니
프로그램 사용/wiki2015. 11. 4. 14:38

아직 실행은 누르기 겁나서..

백업해놓고 하던가 해야지.. 끄응


현재 사용중인 미디어 위키는.. 기사를 편집하는데

예전에 위키시스템을 모르고 그냥 막 편집해서..

우비 무료 호스팅 100MB를 훌쩍 넘은 DB용량으로 인해 1기가 호스팅으로 전환하게 되었다.


원인은.. 1년치 기사를 계속 편집했다는 것..

하루하루 용량이 늘어가는 페이지라

diff로 저장된게 아닌 오리지널 데이터가 계속 축적되다 보니

마지막 데이터는 700KB.. 이게 1년 365일 쌓이면 255,500KB = 255MB 인데

처음에는 이렇게 크지 않았으니 용량이 부족해 질거라고는 상상도 못했..


아무튼 찾다보니 이력을 삭제해주는 녀석이 있는데

sysop 권한이 없으면 아래와 같이 나오고


권한을 주게 되면


다른 특수 문서에 delete history라는 링크가 생성된다.


누르면 체크/삭제/삭제+최적화 라고 나오는데


특정 글에 대한것만 지우는게 아니라 전부 지우는건가 싶어서 겁나서 못 누르는중 ㅠㅠ


미친척 히스토리 삭제 + optimzie 하니..

모든 문서에 대한 히스토리/리비전 삭제 ㄷㄷㄷ

선택적으로는 불가능 한거니?!?!? ㅠㅠ





+

archive된 녀석들을 압축해주는 관리용 페이지가 존재하는 듯?

[링크 : https://www.mediawiki.org/wiki/Manual:Reduce_size_of_the_database]


용량이 부족해서 안된대잖아!!! ㅠㅠ

~/www/maintenance/storage$ php compressOld.php

PHP Warning:  PHP Startup: Suhosin Extension does not officially support PHP 5.2 and below anymore, because it is discontinued. Use it at your own risk. in Unknown on line 0

Compressing database minimonk

----------------------------------------------------------------------------


Starting from 0 of 59

1       대문 .x................../..................../..../

2       C_language ..................../..................../..................../..................../..................../..................../..................../..................../..................../..................../../

3       API_CUDA

4       LINUX:COMMAND .x....../

5       LINUX:STRUCT .x.........../

6       Linux_command

7       Linux_struct

8       HOBBY:BICYCLE ..................../.../

9       APP:MYSQL ............/

10      API:OPENMP ..................../............./

11      LANG:LISP ..../

12      CPP_language ......./

13      LANG:C

14      LANG:CPP

15      DEV_SUPPORT:SVN ......../

16      LINUX:DEVELOPEMENT .../

17      MICOM:AVR .../

18      기사모음 ............./

19      기사모음:2014 Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 688650 bytes) in .../www/includes/db/DatabaseMysql.php on line 195 


얘는 단순하게 숨기기 버튼이 나타나게 하는 것

[링크 : https://www.mediawiki.org/wiki/Manual:RevisionDelete]

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

mediawiki 다국어 확장 및 번역 확장  (0) 2017.01.10
mediawiki 1.28.0과 Xcache  (0) 2017.01.09
google Analystics extension  (0) 2015.06.25
mediawiki 위지윅 에디터  (0) 2015.04.16
mediawiki 무겁구나.. (1.23.9)  (0) 2015.04.14
Posted by 구차니