~/.profile에 

다음과 같이 입력하면 된다.


`echo $- | grep -qs i` && byobu-launcher && exit 0


반대로 자동 실행이 싫으면 위의 라인을 comment 처리하자.

Posted by code cat

내가 모르는 훌륭한 방법이 있을 거라고 보는데, 어쨌든 나는 노가다로 하고 있다.


svn diff -r1000:1001 > svn.r1000.vs.r1001.diff

로 패치 파일을 만든 뒤,

patch -p0 -i ./svn.r1000.vs.r1001.diff

로 패치를 적용하고 git으로 커밋하고 있다.



Posted by code cat

svn up 했더니,

...

어쩌구 저쩌구 잘 업데이트하다가, 마지막에

Tree conflicts: 1 

하고 뜬다.


덴장, 하지만 이럴 땐 다음과 같이 하자.

svn resolve --accept working -R .


Posted by code cat

codecat@codecat-PC ~/workspace/kernel_src/trunk $ svn up
Password for '(null)' GNOME keyring:
svn: OPTIONS of 'https://xxx.xxx.xxx/svn/kernel_src/trunk': 인증에 실패하였습니다: Could not authenticate to server: rejected Basic challenge (https://xxx.xxx.xxx)

위와 같은 상황은 subversion이 gnome-keyring을 쓰려고 했는데 무슨 사유로 제대로 동작하지 않기 때문이다.

이를 해결하기 위해선, 

rm ~/.gnome2/keyring/login.keyring

을 실행하여 keyring 사용을 막으면 된다.

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

svn -> git merge 하는 법  (0) 2012.09.19
svn tree conflicts 1  (2) 2012.09.18
svn up 하다가 password store한다고 할 때 진행 안될 때  (0) 2012.09.16
[vim] vba 파일 설치 방법  (0) 2012.09.09
.svn 지우기  (0) 2012.08.05
Posted by code cat


$>svn up

...

can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/codecat/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? yes
Please type 'yes' or 'no': yes
Please type 'yes' or 'no': 예


한글 설정이 되어 있으면 위와 같이 'yes'로 해도 안 넘어가고 다시 물어본다.  그럴 때, '예' 라고 하자. -___-;;;;;;

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

svn tree conflicts 1  (2) 2012.09.18
svn up 하다가 'password for '(null)' GNOME keyring 나오  (0) 2012.09.16
[vim] vba 파일 설치 방법  (0) 2012.09.09
.svn 지우기  (0) 2012.08.05
Code Sourcery 설치하기  (0) 2012.07.31
Posted by code cat

vba 파일을 vim으로 열고, :source % 를 입력한다.

예)

vim vim_script.vba 

vim 커맨드 모드에서, :source %

%는 현재 열린 파일을 의미한다.

Posted by code cat

최근에 svn 버젼을 보니 폴더마다 .svn이 사라진 거 같다.  그러나 아직 예전 .svn 저장소를 쓰는 이들을 위해 다음과 같은 명령어가 유용하게 쓰일 수 있겠다. 


(실제로, 얼마전 svn 으로 관리되는 코드를 git으로 바꿀 때 써먹었다.)


하위 폴더까지 .svn 지우기

 

rm -rf `find . -type d -name .svn`


Posted by code cat

tar 압출 풀기

tar xfj arm-2012.03-57-arm-none-linux-gnueabi-i686-pc-linux-gnu

 

/opt/ 밑으로 옮기기

mv arm-2012.03 /opt/


환경설정

vi ~/.bashrc

export PATH=/opt/arm-2012.03/bin:$PATH
# source ~/.bashrc

 

arm-none 정도 쳐보고 tab쳐서 나오면 패스 설정은 제대로 됬음을 확인 할 수 있다.

Posted by code cat


ctrl + q를 눌러주면 된다.  자세한 내용은 아래를 참조하자.

Screen CTRL-S Bug

When switching between terminals and text editors the occasional ctrl-s gets accidentally typed into the terminal. For along time I thought that this was a bug in screen but it is a standard terminal feature. Ctrl-s calls the software flow control method XOFF which stops the character flow to the terminal, which when you did not realise what you pressed just seems to freeze the terminal.

ctrl-q calls XON and starts the terminal again.

For a more permanent fix you can add this to your .bashrc (not sure how other shells are effected).

stty ixany

Which allows any character to call XON, so the character press is sent and displayed and you will never be aware of the terminal freezing.

If this does not work for you, or you also don't seem to be able to send ctrl-s ctrl-q commands to terminal applications you can use
stty stop undef To unmap ctrl-s
stty start undef To unmap ctrl-q

Or to stop XOFF and XON being sent from the keyboard but still allowing other software to send the commands use
stty ixoff -ixon
NB: ctrl-q can now be used to shutdown rtorrent

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

.svn 지우기  (0) 2012.08.05
Code Sourcery 설치하기  (0) 2012.07.31
vi 검색한 내용 copy, paste 하기  (0) 2012.07.02
samba 로그인 정보 지우기/보기  (0) 2012.06.23
SVN in conflict  (0) 2012.06.21
Posted by code cat

vim에서 검색한 내용 copy & paste 하기


vim에서 search 한 내용만 골라서 copy를 하고 싶을 경우 다음과 같이 하면 된다.


qaq

:g/검색어/y A

:let @+ = @a


처음 라인에서는 레지스터 a를 비운다.  (저 명령어는 매크로를 기록할 때 쓰는 명령어이다.)

두번째 라인에서는 뭐.. 알다시피 검색어를 찾아서 A 레지스터에 넣는다.

세번째 라인에서는 레지스터 A를 클립보드에 카피한다.


vim에서 검색한 내용 지우기


이건 쉽다.


:g/검색어/d


따로 설명할 필요 없으리라 믿는다.



한가지 검색한 거를 제외하고 위의 작업을 하고 싶을 땐 어떻하면 좋을까???


inverse를 떠올리면 된다!


:v/검색어/d


알고나니 참 좋은 기능이다.

'리눅스 > 스크립트/유틸' 카테고리의 다른 글

Code Sourcery 설치하기  (0) 2012.07.31
screen에서 ctrl+s 잘못 눌러서 먹통 됐을 때...  (0) 2012.07.23
samba 로그인 정보 지우기/보기  (0) 2012.06.23
SVN in conflict  (0) 2012.06.21
cpio vs tar vs cp  (0) 2012.06.11
Posted by code cat