퍼미션 오류라길래 먼가 해서 봤더니..

정말로 퍼미션이 저렴하네...


$ svn list svn+ssh://minimonk@svn.host/volume1/svn/proj

minimonk@svn.host's password:

svn: E000013: Unable to connect to a repository at URL 'svn+ssh://minimonk@svn.host/volume1/svn/proj'

svn: E000013: Can't open file '/volume1/svn/proj/db/fs-type': Permission denied 


/volume1/svn/proj$ ll

total 36

drwxrwxrwx+  6 root root 4096 Oct  8 12:56 .

drwxrwxrwx+ 10 root root 4096 Oct  8 12:56 ..

drwxrwxrwx+  2 root root 4096 Oct  8 12:56 conf

d-----S---   6 root root 4096 Oct  8 13:39 db

-r--r--r--   1 root root    2 Oct  8 12:56 format

drwxrwxrwx+  2 root root 4096 Oct  8 12:56 hooks

drwxrwxrwx+  2 root root 4096 Oct  8 12:56 locks

-rwxrwxrwx+  1 root root  246 Oct  8 12:56 README.txt 


흐음.. 그러고 보니 other가 전부 rw+ 네.. 퍼미션 를 귀찮으니.. 777로 전부 해줘야하나...

$ svn list svn+ssh://minimonk@svn.host/volume1/svn/proj

minimonk@svn.host's password:

svn: E000013: Unable to connect to a repository at URL 'svn+ssh://minimonk@svn.host/volume1/svn/proj'

svn: E000013: Can't open file '/volume1/svn/proj/conf/svnserve.conf': Permission denied 


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

svn console에서 엔터 입력하기  (0) 2016.11.08
svn add를 취소하기  (0) 2016.11.04
svn://과 svn+ssh:// 경로 차이  (0) 2016.09.13
tortoiseSVN에서 svn+ssh 사용하기  (0) 2016.07.31
svn+ssh 실패 -_-  (0) 2016.07.29
Posted by 구차니

TYPE=MyISAM 에서

ENGINE=MyISAM 으로 수정하면 된다.


[링크 : https://www.guideline.co.kr/howto/howto_contents.php?idx=130]

Posted by 구차니

안되는건가? ㅠㅠ

기본적으로 hostname에서 조회하는거라

저번에 wins 통해서 resolve한게 정상이 아니었던거 같기도 하고.

테스트 해볼게 많네.. ㅠㅠ


[링크 : http://wiki.maemo.org/Distcc?pagewanted=all]

[링크 : https://forums.gentoo.org/viewtopic-t-130450-start-0.html]

[링크 : http://distcc.samba.narkive.com/NKokMWjn/discovering-the-distccd-hosts-on-a-dhcp-lan]

[링크 : https://debian-administration.org/article/112/Speed_up_compiling_software_with_distcc]


+

dhcp통해 hostname 업데이트 하기

이게 편리해보이네

[링크 : http://askubuntu.com/questions/104918/how-to-get-the-hostname-from-a-dhcp-server]

Posted by 구차니

영 안되네..

odroid 커널 빌드 해보려고 하는데

CC=distcc make -j8 해도

make -j8 CC=distcc 해도 안되서

이래저래 찾아 보는중


$ time make -j8 CC=distcc

kernel compilation using single machine :

real 50m55.498s

user 71m4.967s

sys 6m55.030s


kernel compilation using three machines:

real 28m21.146s

user 17m32.862s

sys 4m35.537s 


[링크 : http://linuxdeveloper.blogspot.com/2012/03/distributed-kernel-compilation-in.html]

[링크 : http://askubuntu.com/.../how-to-speed-up-compilation-of-ubuntu-apps-make-cmake-gcc]

[링크 : http://pointclouds.org/documentation/advanced/distcc.php]


역시.. 진리(?)의 makefile 수정 뿐인가?

Edit the Makefile 

Fire up your favourite editor and load /usr/src/linux/Makefile. Find this section:

Code:

# Include the make variables (CC, etc...) 


And change "gcc" in the CC line to 

Code:


CC              = $(CROSS_COMPILE)distcc 


Append this line to the section: 

Code:


DISTCC_HOSTS=slave1 slave2 slave3 ... slaveN  


[링크 : https://forums.gentoo.org/viewtopic-p-7189488.html]

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

distcc zeroconf 와 avahi  (0) 2016.10.17
distcc 를 DHCP 에서..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
distcc 크로스 컴파일/커널 빌드 관련  (0) 2016.09.13
distcc 로 valgrind-3.6.1 컴파일 실패?  (0) 2014.12.12
Posted by 구차니

한번 오랫만에 시간이 나서 마음먹고 해보려는데

에러! ㅠㅠ

다음번에 재시도를 해봐야지..


$ distcc-pump --startup

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option


$ distcc-pump make -j8 CC=ditscc

__________Using distcc-pump from /usr/bin

/usr/bin/distcc-pump: error: pump mode requested, but distcc hosts list does not contain any hosts with ',cpp' option 


어디서 저 옵션이 들어가나 뒤져보니 목록에 옵션으로 넣는거였네..

conf 파일에는 불가능하려나? zeroconf로 받아온다거나?


DISTCC_HOSTS=",cpp" 

[링크: https://wiki.archlinux.org/index.php/Distcc]


+ 2016-09-26

[링크 : https://forums.gentoo.org/...?sid=0b18b85927db5c54fa1bff47ee829527]

Posted by 구차니

공백이 있어서 \를 해주었는데 안되서

괄호까지 동원하니 해결.... 머지?



$ scp file.txt user@ip_address:"/file path/"

$ scp file.txt user@ip_address:"/file\ path/"


[링크 : http://an-compsci.blogspot.com/2009/05/scp-ambiguous-target.html]

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

reverse SSH  (0) 2018.05.14
rpi vpn client  (0) 2018.05.11
sshpass를 이용한 scp 암호 자동 입력  (0) 2016.09.19
ssh X11 forwarding 속도 향상  (0) 2015.09.24
sshd server key 경로  (0) 2015.01.06
Posted by 구차니

expect 같은건 웬지 복잡해 보여서

단순하게 커맨드 라인에서 처리가능한 녀석으로 sshpass 테스트


sshpass -p "password" scp -r user@example.com:/some/remote/path /some/local/path 


[링크 : http://stackoverflow.com/questions/50096/how-to-pass-password-to-scp]

[링크 : https://linux.die.net/man/1/sshpass]



물론 우분투에서는 sshpass 패키지를 별도로 설치해 주어야 한다.

Posted by 구차니

시놀로지 사용중 

시놀로지에 접속해서 svn과 svn+ssh의 경로 차이점 테스트


svn:// 의 경우에는 저장소 경로만 입력

svn+ssh:// 의 경우에는 저장소가 위치한 절대경로 부터 저장소 경로 까지 입력


$ svn list svn://localhost/project

$ svn list svn+ssh://localhost/volume1/svn/project 


외부에서 접속시 포트가 22번이 아니면 아래와 같이 에러가 발생한다.

$ svn list svn+ssh://minimonk@svn.minimonk.net:2222/volume1/svn/project

svn: E210002: Unable to connect to a repository at URL 'svn+ssh://minimonk@svn.minimonk.net:2222/volume1/svn/project'

svn: E210002: SSH 접속 문제를 더 잘 디버깅하기 위해서는, 서브버전 환경설정 파일의 [tunnels] 섹션에서 ssh의 -q 옵션을 제거 하세요.

svn: E210002: 네트워크 접속이 예기치 않게 종료되었습니다


개인별로 설정시에는 아래 경로의 파일에서 포트를 지정해 주면되는데.. 

매번 다른 서버 접속시에는 수동으로 해주어야 하나?

$ vi ~/.subversion/config

[tunnels]

ssh = ssh -p 2222 

아무튼 저렇게 설정하고 나면 다음과 같이 평범(?)하게 접속이 가능하다.

$ svn list svn+ssh://minimonk@svn.minimonk.net/volume1/svn/project 


[링크 : http://unix.stackexchange.com/.../how-to-configure-svn-ssh-with-ssh-on-non-standard-port]

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

svn add를 취소하기  (0) 2016.11.04
synology svn+ssh 퍼미션 문제  (0) 2016.10.09
tortoiseSVN에서 svn+ssh 사용하기  (0) 2016.07.31
svn+ssh 실패 -_-  (0) 2016.07.29
svn list 에러 generic failure  (0) 2016.06.23
Posted by 구차니

distcc --show-hosts 실패했는데 zeroconf를 켜니 되네..



$ sudo vi /etc/default/distcc

STARTDISTCC="true"

ALLOWEDNETS="127.0.0.1 192.168.1.0/24"

LISTENER=""

ZEROCONF="true"


$ distcc --show-hosts


$ make mrproper

 

$ make -j16 ARCH=arm CC="distcc /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc" CROSS_COMPILE="/opt/arm-2009q1/bin/arm-none-linux-gnueabi-" ti_dm365_defconfig

 

$ distcc-pump make -j16 ARCH=arm CC="distcc /opt/arm-2009q1/bin/arm-none-linux-gnueabi-gcc" CROSS_COMPILE="/opt/arm-2009q1/bin/arm-none-linux-gnueabi-" uImage 


[링크 : http://samarthparikh.blogspot.com/2012/10/install-distcc-and-make-linux-kernel.html]


$ make -j8 CC=distcc

[링크 : http://linuxdeveloper.blogspot.com/2012/03/distributed-kernel-compilation-in.html]




$ sudo apt-cache search distcc-pump

distcc-pump - pump mode for distcc a distributed compiler client and server



+
For example:
              eval `distcc-pump --startup`
              make -j80
              distcc-pump --shutdown


EXAMPLE
       distcc-pump make -j20



QUICKSTART FOR DISTCC-PUMP MODE

       Proceed  as  above, but in Step 3, specify that the remote hosts are to

       carry the burden of preprocessing and that  the  files  sent  over  the

       network should be compressed:


              $   export   DISTCC_HOSTS='--randomize   localhost   red,cpp,lzo

              green,cpp,lzo blue,cpp,lzo'


       The --randomize option enforces a uniform  usage  of  compile  servers.

       While you will get some benefit from distcc's pump mode with only a few

       servers, you get increasing benefit with more server CPUs  (up  to  the

       hundreds!).   Wrap your build inside the pump command, here assuming 10

       servers:


              $ pump make -j20 CC=distcc

[링크 : http://manpages.ubuntu.com/manpages/precise/man1/distcc.1.html]

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

distcc kernel compile 재시도..  (0) 2016.09.28
distcc-pump error  (0) 2016.09.25
distcc 로 valgrind-3.6.1 컴파일 실패?  (0) 2014.12.12
distcc 작동모드  (0) 2014.12.09
ccache & distcc  (0) 2014.12.08
Posted by 구차니

패키지 설치하고 wins 추가하면 끝 ㄷ ㄷ ㄷ

이렇게 쉬운걸 안하고 왜 살았지? ㅠㅠ


$  sudo apt-get install libnss-winbind

$  sudo vi /etc/nsswitch.conf 

hosts:          files mdns4_minimal [NOTFOUND=return] dns wins



[링크 : http://askubuntu.com/questions/507649/ubuntu-can-not-ping-host-name-but-can-ping-ip]


+

2016.12.20

14.04 이후부터 추가된 패키지 인 듯

[링크 : http://packages.ubuntu.com/search?keywords=libnss-winbind]

Posted by 구차니