embeded/odroid2016. 11. 12. 16:58

일단은.. 필요 없을 패키지 삭제하고

$ sudo apt-get remove libreoffice-* pidgin* firefox* thunderbird* hexchat*

$ sudo apt-get autoremove 


의외 로기본(?) 패키지가 없어서 설치

$  sudo apt-get install vim htop rdate mc libnss-winbind



kodi 에서 소리 안나서 개고생

그런데 여전히 오른쪽 소리는 안나고..


한글은

시스템 - 기본 설정 - 개인 - 언어지원

들어가면 언어 패키지 설치하고 한글을 english 위로 끌어 올린다음

ibus에서 한글을 추가하면 된다.


그나저나 ibus에서 한글 이상하게 입력되네..

'embeded > odroid' 카테고리의 다른 글

odroid ubuntu mate 16.04 uname  (0) 2016.11.17
odroid u3 ubuntu MATE 16.04 / chrome hold  (0) 2016.11.14
ubuntu 16.04 for odroid u3  (0) 2016.11.11
뜬금포 odroid u3에 대한 나의 결론  (0) 2016.11.10
odroid vlc / uvc 카메라  (0) 2016.11.05
Posted by 구차니
embeded/odroid2016. 11. 11. 10:39

어라. 버전업 하고 다시 해볼까?


ubuntu mate 기반인가?

[링크 : http://odroid.in/ubuntu_16.04lts/]

    [링크 : http://odroid.com/dokuwiki/doku.php?id=en:u3_ubuntu_release_note_20160921]

    [링크 : http://forum.odroid.com/viewtopic.php?f=77&t=16633]


어라.. 16.04 깔고 나서 평가 반전중

bledner도 되고 좋은데? ㅋㅋ

일단 기존의 odroid_utility.sh는 사라지고

처음 켜면 자동으로 파티션 전체 용량을 쓰도록 수정되었다.


Posted by 구차니
프로그램 사용/vi2016. 11. 10. 15:10


ctrl - e (down) / ctrl - d(pgdn)

ctrl - y (up) / ctrl-u (pgup)

링크 : http://vimdoc.sourceforge.net/htmldoc/scroll.html]


ctrl - r / redo

[링크 : https://kldp.org/node/113993]

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

vi syntax highlight 선택하기  (0) 2017.01.03
vimdiff 사용법  (0) 2016.11.17
vi ctrl-s / ctrl-q  (0) 2016.11.09
vim 버전별 옵션 차이  (0) 2016.11.08
vim -X / X server 연결 하지 않기  (0) 2016.11.04
Posted by 구차니
개소리 왈왈/블로그2016. 11. 10. 10:35

헐.. 2.65기가..

더 늦기 전에 워드프레스라도 갈아타야 하나?


아니면.. 언넝 위키를 만들어야 하나

그런데 다 귀찮... ㅠㅠ



Posted by 구차니
embeded/odroid2016. 11. 10. 10:09

중고로 싸니까 2개 사긴 했는데

(본체 3만원 + eMMC 1만원) * 2대


머랄까.. 하나하나 손 댈때 마다 손 대야만 하는 것이 늘어나는 기분

cpu는 드럽게 빨라서 빌드용으로는 괜찮은데

그 이상 데스크탑 대용이라던가는 hardkernel 사의 지원이 끊어지고 유지되지 않는 이유로 인해

사용불가 판정


GPIO도 무진장 부실하고

램 많고 성능 좋은거 빼면 라즈베리보다 나을게 하나 없는 상황


결론은 더 이상 가지고 노는건 포기하고

NAS로 전용하거나 빌드 머신으로 돌리는것 외에는 그닥....



라즈베리가 램만 2~3기가로 늘어나면 참 좋을텐데...

아니 클럭도? ㅋㅋㅋ



+

마음에 안들거나 문제가 되는 항목

1. blender (망할 openGL ES / exynos_dri.so)

2. 데스크 탑 사용(2D 가속 느리거나 단축키 안되거나 등등)

3. 업데이트 시 커널 바뀌면서 엉김

4. eMMC가 아니면 성능 차이가 크게 하락(SDHC)

5. GPIO가 없다 시피 함

6. 망할 1.8V CMOS 레벨 UART

'embeded > odroid' 카테고리의 다른 글

odroid ubuntu mate 16.04 사용준비  (0) 2016.11.12
ubuntu 16.04 for odroid u3  (0) 2016.11.11
odroid vlc / uvc 카메라  (0) 2016.11.05
라즈베리 파이 / odroid 패키지 업데이트 비교  (0) 2016.11.05
odroid fb Driver  (0) 2016.11.03
Posted by 구차니
프로그램 사용/vi2016. 11. 9. 13:39

아무 생각없이 습관적으로 저장한다고 ctrl-s 하면 멈추는데

터미널을 잠그는 식?

일종의 software flow control이라고 하는데 그건 모르겠고

빠져나오는 방법은 ctrl-q


C-s enables terminal scroll lock. Which prevents your terminal from scrolling (By sending an "XOFF" signal to pause the output of the software).

C-q disables the scroll lock. Resuming terminal scrolling (By sending an "XON" signal to resume the output of the software).

[링크 : http://unix.stackexchange.com/questions/72086/ctrl-s-hang-terminal-emulator]

[링크 : https://kldp.org/node/51009]

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

vimdiff 사용법  (0) 2016.11.17
vi 스크롤  (0) 2016.11.10
vim 버전별 옵션 차이  (0) 2016.11.08
vim -X / X server 연결 하지 않기  (0) 2016.11.04
vi 버전 차이?  (0) 2016.07.09
Posted by 구차니
프로그램 사용/vi2016. 11. 8. 17:07

7.3과 7.4


7.3 / ubuntu 12.04 LTS

$ vim --help

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May  4 2012 04:10:09)


사용법: vim [인자] [파일 ..]       주어진 파일 고치기

   혹은: vim [인자] -               표준입력에서 텍스트 읽기

   혹은: vim [인자] -t tag          태그가 정의된 위치에서 파일 고치기

   혹은: vim [인자] -q [에러파일]   첫 번째 에러가 난 파일 고치기


인자:

   --                   이 뒤에는 파일 이름만

   -g                   GUI로 실행 ("gvim"과 같음)

   -f 혹은 --nofork     포그라운드: GUI로 시작할 때 fork하지 말 것

   -v                   Vi 상태 ("vi"와 같음)

   -e                   Ex 상태 ("ex"와 같음)

   -s                   조용한 (배치) 상태 ("ex"만)

   -d                   Diff 상태 ("vimdiff"와 같음)

   -y                   쉬운 상태 ("evim"과 같음, modeless)

   -R                   읽기 전용 상태 ("view"와 같음)

   -Z                   제한된 상태 ("rvim"과 같음)

   -m                   수정(파일 쓰기)이 허용되지 않음

   -M                   텍스트 수정이 허용되지 않음

   -b                   이진 상태

   -l                   리스프 상태

   -C                   Vi 호환: 'compatible'

   -N                   Vi와 호환되지 않음: 'nocompatible'

   -V[N][fname]         Be verbose [level N] [log messages to fname]

   -D                   디버깅 상태

   -n                   스왑 파일 없이 메모리만 사용

   -r                   스왑 파일 목록을 표시한 뒤 끝내기

   -r (파일 이름과 함께)        파손되었던 세션 복구

   -L                   -r과 같음

   -A                   Arabic 모드로 시작

   -H                   Hebrew 모드로 시작

   -F                   Farsi 모드로 시작

   -T <terminal>        터미널 종류를 <terminal>로 설정

   -u <vimrc>           .vimrc 대신 <vimrc>를 사용

   -U <gvimrc>          .gvimrc 대신 <gvimrc>를 사용

   --noplugin           플러그인 스크립트를 불러들이지 않음

   -p[N]                N개의 탭 열기 (기본: 파일별로 하나)

   -o[N]                N개의 창 열기 (기본: 파일별로 하나)

   -O[N]                -o와 같지만 창을 수직으로 나누기

   +                    파일 마지막에서 시작

   +<lnum>              <lnum> 줄에서 시작

   --cmd <명령> vimrc 파일을 읽기 전에 <명령>을 실행

   -c <명령>            첫째 파일을 읽은 뒤 <명령>을 실행

   -S <세션>            첫째 파일을 읽은 뒤 <세션> 파일 불러 들이기

   -s <scriptin>        <scriptin> 파일에서 Normal 상태 명령 읽기

   -w <scriptout>       모든 입력된 명령을 <scriptout> 파일에 추가

   -W <scriptout>       모든 입력된 명령을 <scriptout> 파일에 저장

   -x                   암호화된 파일 고치기

   -X                   X 서버에 연결하지 않음

   --remote <files>     가능하면 빔 서버에서 <files> 편집

   --remote-silent <files>  같음, 서버가 없다고 불평하지 않음

   --remote-wait <files>  --remote와 같지만 다 고칠 때까지 기다립니다

   --remote-wait-silent <files>  같음, 서버가 없다고 불평하지 않음

   --remote-tab[-wait][-silent] <files>  --remote와 같지만 파일별로 탭 페이지 사용

   --remote-send <keys> 빔 서버로 <keys>를 보내고 끝내기

   --remote-expr <expr> 빔 서버에서 <expr> 실행하고 결과 출력

   --serverlist         사용 가능한 빔 서버 이름을 표시하고 끝내기

   --servername <name>  빔 서버 <name>이 되거나 서버로 보내기

   --startuptime <file> startup timing 메시지를 <file>에 저장

   -i <viminfo>         .viminfo 대신 <viminfo>를 사용

   -h 혹은 --help       도움말(이 메시지)을 출력한 뒤 끝내기

   --version            판 정보를 출력한 뒤 끝내기


gvim이 알고있는 인자 (GTK+ 판):

   -font <font>         일반 텍스트에 <font> 사용 (also: -fn)

   -geometry <geom>     초기 지오미트리에 <geom> 사용 (also: -geom)

   -reverse             반전 비디오 사용 (also: -rv)

   -display <display>   빔을 <display>에서 실행 (also: --display)

   --role <role>        메인 창 구분을 위해 유일한 역할 설정

   --socketid <xid>     빔을 다른 GTK 위젯 안에서 열음 


7.4 / 라즈베리

-X 옵션이 사라졌다?

$ vim --help

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 12 2015 23:01:44)


사용법: vim [인자] [파일 ..]       주어진 파일 고치기

   혹은: vim [인자] -               표준입력에서 텍스트 읽기

   혹은: vim [인자] -t tag          태그가 정의된 위치에서 파일 고치기

   혹은: vim [인자] -q [에러파일]   첫 번째 에러가 난 파일 고치기


인자:

   --                   이 뒤에는 파일 이름만

   -v                   Vi 상태 ("vi"와 같음)

   -e                   Ex 상태 ("ex"와 같음)

   -E                   Improved Ex mode

   -s                   조용한 (배치) 상태 ("ex"만)

   -d                   Diff 상태 ("vimdiff"와 같음)

   -y                   쉬운 상태 ("evim"과 같음, modeless)

   -R                   읽기 전용 상태 ("view"와 같음)

   -Z                   제한된 상태 ("rvim"과 같음)

   -m                   수정(파일 쓰기)이 허용되지 않음

   -M                   텍스트 수정이 허용되지 않음

   -b                   이진 상태

   -l                   리스프 상태

   -C                   Vi 호환: 'compatible'

   -N                   Vi와 호환되지 않음: 'nocompatible'

   -V[N][fname]         Be verbose [level N] [log messages to fname]

   -D                   디버깅 상태

   -n                   스왑 파일 없이 메모리만 사용

   -r                   스왑 파일 목록을 표시한 뒤 끝내기

   -r (파일 이름과 함께)        파손되었던 세션 복구

   -L                   -r과 같음

   -A                   Arabic 모드로 시작

   -H                   Hebrew 모드로 시작

   -F                   Farsi 모드로 시작

   -T <terminal>        터미널 종류를 <terminal>로 설정

   -u <vimrc>           .vimrc 대신 <vimrc>를 사용

   --noplugin           플러그인 스크립트를 불러들이지 않음

   -p[N]                N개의 탭 열기 (기본: 파일별로 하나)

   -o[N]                N개의 창 열기 (기본: 파일별로 하나)

   -O[N]                -o와 같지만 창을 수직으로 나누기

   +                    파일 마지막에서 시작

   +<lnum>              <lnum> 줄에서 시작

   --cmd <명령> vimrc 파일을 읽기 전에 <명령>을 실행

   -c <명령>            첫째 파일을 읽은 뒤 <명령>을 실행

   -S <세션>            첫째 파일을 읽은 뒤 <세션> 파일 불러 들이기

   -s <scriptin>        <scriptin> 파일에서 Normal 상태 명령 읽기

   -w <scriptout>       모든 입력된 명령을 <scriptout> 파일에 추가

   -W <scriptout>       모든 입력된 명령을 <scriptout> 파일에 저장

   -x                   암호화된 파일 고치기

   --startuptime <file> startup timing 메시지를 <file>에 저장

   -i <viminfo>         .viminfo 대신 <viminfo>를 사용

   -h 혹은 --help       도움말(이 메시지)을 출력한 뒤 끝내기

   --version            판 정보를 출력한 뒤 끝내기




+

change log 상으로는 확인이 불가능 하네..

[링크 : http://ftp.vim.org/pub/vim/patches/7.3/README]

[링크 : http://ftp.vim.org/pub/vim/patches/7.4/README]



+

$ ll /usr/bin/vi

lrwxrwxrwx 1 root root 20  5월 27 20:07 /usr/bin/vi -> /etc/alternatives/vi

$ ll /etc/alternatives/vi

lrwxrwxrwx 1 root root 18 10월  9 22:19 /etc/alternatives/vi -> /usr/bin/vim.basic

$ ll /usr/bin/vim.basic

-rwxr-xr-x 1 root root 1983064  4월 13  2015 /usr/bin/vim.basic 


ubuntu 12.04 망할 vim.gnome..

vim도 vi도 둘다 vim.gnome으로 연결되어 있다.

$ ll /usr/bin/vi

lrwxrwxrwx 1 root root 20  6월  3 17:55 /usr/bin/vi -> /etc/alternatives/vi*

$ ll /etc/alternatives/vi

lrwxrwxrwx 1 root root 18  6월 21 19:38 /etc/alternatives/vi -> /usr/bin/vim.gnome*


+

생각해보니.. editor가 기본..

# ll /usr/bin/editor

lrwxrwxrwx 1 root root 24  6월  3 17:55 /usr/bin/editor -> /etc/alternatives/editor*

# ll /etc/alternatives/editor

lrwxrwxrwx 1 root root 18  6월 21 19:38 /etc/alternatives/editor -> /usr/bin/vim.gnome* 

2016/06/21 - [프로그램 사용/CVS & SVN & GIT & Mercurial] - svn 콘솔 에디터(주석)



sudo su -

로 root로 변경해서 하니 문제없이 되네.. 도대체 머가 문제지?

위에서 수정해서 vim.gnome이 아닌 다른걸로 실행하게 해도 여전히 X11 에러가 나네..

아래는 xming을 실행하던 안하던 출력됨..

# svn ci

PuTTY X11 proxy: Unsupported authorisation protocol 



+

-f는 foreground인데 이걸 넣을 방법이 없네...

Don't use vi as the command, use gvim -f instead.


The problem is that vi (or vim in a console) requires a terminal that can do stuff like move the cursor around, etc. gvim's pty is a very basic ASCII-only terminal.


Plain old vim doesn't have this issue because it just pipes the subporcess directly to your terminal, hence all of the escape sequences still work.


You can use gvim -f instead, so that a new gvim window will pop up for your commit message. (the -f prevents backgrounding) This isn't exactly what you asked for (since you get a new window) but it's the closest you can get to what you asked for without adding full terminal support to vim. 

[링크 : http://stackoverflow.com/questions/9235498/call-vi-from-within-vim-useful-for-svn-commit]



+

으아아아아

예전에 svn() 명령 이용해서 color 넣도록 해놓은게 문제였다 -_-!!!!

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

vi 스크롤  (0) 2016.11.10
vi ctrl-s / ctrl-q  (0) 2016.11.09
vim -X / X server 연결 하지 않기  (0) 2016.11.04
vi 버전 차이?  (0) 2016.07.09
vi 문자열 치환  (0) 2015.08.04
Posted by 구차니

ubuntu 12.04 LTS / svn 1.6.17

테스트 완료


$ svn ci -m $'This is the first line\nThis is the second line' 

[링크 : http://serverfault.com/.../use-linefeed-or-carriage-return-in-...-message-from-the-command-li]

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

svn diff 결과물 컬러로 보기  (0) 2016.12.30
svn commit시 email 알림  (0) 2016.12.29
svn add를 취소하기  (0) 2016.11.04
synology svn+ssh 퍼미션 문제  (0) 2016.10.09
svn://과 svn+ssh:// 경로 차이  (0) 2016.09.13
Posted by 구차니
프로그램 사용/u-boot2016. 11. 8. 15:09

tftpd-hpa를 설치하면 자동으로 tftpd가 삭제된다.

$ sudo apt-cache search tftpd

tftpd-hpa - HPA's tftp server

atftpd - advanced TFTP server

libnet-tftpd-perl - Perl extension for Trivial File Transfer Protocol Server

tftpd - Trivial file transfer protocol server

uec-provisioning-tftpd - the UEC Provisioning TFTP server 


글들을 보다 보니 --create가 TFTP_OPTIONS에 없으면 업로드 불가하다고 한다.

일단 nobody로 권한 통일

tftpd-hpa 설정파일 수정해주고

$ sudo vi /etc/default/tftpd-hpa

# /etc/default/tftpd-hpa


TFTP_USERNAME="nobody"

TFTP_DIRECTORY="/tftpboot"

TFTP_ADDRESS="0.0.0.0:69"

TFTP_OPTIONS="--secure"


xinetd 에서 서버 인자에 -B로 블럭 사이즈 늘려주고

$ sudo vi /etc/xinetd.d/tftp

service tftp

{

   protocol = udp

   socket_type = dgram

   wait = yes

   server = /usr/sbin/in.tftpd

   server_args = -s /tftpboot -B 1468

   disable = no

   user = nobody


그럼 tftpd 쓸때 보다 빠르게 올려진다.

[링크 : http://poohyhoh.blogspot.com/2011/01/1010-tftp.html]

[링크 : http://rookiecj.tistory.com/256]

[링크 : http://bluemir7.tistory.com/106]


2012/04/11 - [Linux/Ubuntu] - ubuntu 11.10 에 tftp 설치하기



+

2016.11.09

-B 512 해도 비슷한 시간으로 받아진다.

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

uboot nand scrub  (0) 2016.12.14
uboot filesize 환경변수  (0) 2016.11.17
ubuntu 12.04 xinetd/tftpd 느린 이유  (0) 2016.11.08
uboot bootargs 기본값 설정하기  (0) 2015.02.09
uboot 메모리 관련 명령어  (0) 2015.01.08
Posted by 구차니
프로그램 사용/u-boot2016. 11. 8. 10:53

설명 상으로는 server_args에 넣으면 될 거 같은데

--blocksize max-block-size, -B max-block-size

Specifies the maximum permitted block size. The permitted range for this parameter is from 512 to 65464. Some embedded clients request large block sizes and yet do not handle fragmented packets correctly; for these clients, it is recommended to set this value to the smallest MTU on your network minus 32 bytes (20 bytes for IP, 8 for UDP, and 4 for TFTP; less if you use IP options on your network.) For example, on a standard Ethernet (MTU 1500) a value of 1468 is reasonable. 

[링크 : https://linux.die.net/man/8/in.tftpd]


12.04 에서는 blksize 옵션이 지원안하나?

[링크 : http://askubuntu.com/questions/644031/tftpd-hpa-how-can-i-set-blksize-option]


tftpd32 for win으로 받으면 이런 로그가 뜨는데 블럭 사이즈가 1468로 늘어나 있다.

Connection received from 192.168.10.184 on port 1084 [08/11 10:59:16.826]

Read request for file <tt.yaffs2>. Mode octet [08/11 10:59:16.827]

OACK: <timeout=1,tsize=43625472,blksize=1468,> [08/11 10:59:16.827]

Using local port 56906 [08/11 10:59:16.827]

TIMEOUT waiting for Ack block #6872  [08/11 10:59:29.583] 


블럭 사이즈는 512가 기본.. 1468은 1MTU

[링크 : https://blackfin.uclinux.org/doku.php?id=setting_up_a_tftp_server]


12.04에서 man으로 보니 BSD쪽 tftpd라 표준을 따르는 듯?

TFTPD(8)                BSD System Manager's Manual                TFTPD(8)


NAME

     tftpd — DARPA Trivial File Transfer Protocol server


SYNOPSIS

     tftpd [-n] [-s] [directory ...]


DESCRIPTION

     Tftpd is a server which supports the DARPA Trivial File Transfer Pro‐

     tocol.  The TFTP server operates at the port indicated in the ‘tftp’

     service description; see services(5).  The server is normally started

     by inetd(8).


     The use of tftp(1) does not require an account or password on the

     remote system.  Due to the lack of authentication information, tftpd

     will allow only publicly readable files to be accessed.  Files may be

     written only if they already exist and are publicly writable.  Note

     that this extends the concept of “public” to include all users on all

     hosts that can be reached through the network; this may not be appro‐

     priate on all systems, and its implications should be considered

     before enabling tftp service.  The server should have the user ID with

     the lowest possible privilege.


     Access to files may be controlled by invoking tftpd with a list of

     directories by including pathnames as server program arguments in

     /etc/inetd.conf.  In this case access is restricted to files whose

     names are prefixed by the one of the given directories. If no directo‐

     ries are supplied the default is /tftpboot.  To give out access to the

     whole filesystem, should this be desired for some reason, supply / as

     an argument.


     Unfortunately, on multi-homed systems, it is impossible for tftpd to

     determine the address on which a packet was received. As a result,

     tftpd uses two different mechanisms to guess the best source address

     to use for replies. If the socket that inetd(8) passed to tftpd is

     bound to a particular address, tftpd uses that address for replies.

     Otherwise, tftpd uses ``UDP connect'' to let the kernel choose the

     reply address based on the destination of the replies and the routing

     tables. This means that most setups will work transparently, while in

     cases where the reply address must be fixed, the virtual hosting fea‐

     ture of inetd(8) can be used to ensure that replies go out from the

     correct address.  These considerations are important, because most

     tftp clients will reject reply packets that appear to come from an

     unexpected address.


     The options are:


     -n      Suppresses negative acknowledgement of requests for nonexis‐

             tent relative filenames.


     -s      All absolute filenames are treated as if they were preceded by

             the first directory argument, or /tftpboot if there is none.


SEE ALSO

     tftp(1), inetd(8)


HISTORY

     The tftpd command appeared in 4.2BSD.


Linux NetKit (0.17)            July 29, 2000            Linux NetKit (0.17)


tftpd 클라이언트로 받아보니 이렇게 뜬다.

tftp> get tt.yaffs2

getting from localhost:tt.yaffs2 to tt.yaffs2 [netascii]

sent RRQ <file=tt.yaffs2, mode=netascii>

received DATA <block=10926, 512 bytes>

discarded 2 packets

received DATA <block=1, 512 bytes>

sent ACK <block=1> 

RFC에 따라 512 byte가 기본인듯



물론 

ubuntu 12.04 tftp 를 이용해서 tftpd32의 것을 받으니.. 여전히 512로 받는데..

클라이언트와 서버 둘다 표준을 준수하는(?) 착한 녀석들 이라 그런 듯

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

uboot filesize 환경변수  (0) 2016.11.17
tftpd-hpa  (0) 2016.11.08
uboot bootargs 기본값 설정하기  (0) 2015.02.09
uboot 메모리 관련 명령어  (0) 2015.01.08
u-boot 포팅 가이드  (0) 2013.08.31
Posted by 구차니