sudo apt-get 방식으로 편하게 설치가 가능하다.

패키지 이름은 ssh 이며
sudo apt-get install ssh
라고 입력하면 바로 설치 된다.

ubuntu 8.10 에서 실행시 별다른 설정없이 기본 포트인 22번으로 바로 실행이 되며,
X11 Forwarding 역시 문제 없이 별다른 설정없이 가능했다.

[출처 : http://sanghoon.wordpress.com/2007/12/05/]
Posted by 구차니
ponyprog는 윈도우에서 사용하는 AVR ISP 용 프로그램이다.
물론 리눅스용도 있긴 하지만, 문제는 구버전용이라는 것.

PonyProg2000 v2.05a BETA English binary distribution (RedHat7.0 + Kernel 2.4.x)
PonyProg2000 v2.06c BETA English binary distribution (RedHat7.0 + Kernel 2.4.x)

라고 써있듯 Redhat 9도 아니고 무려 7용이다.. OTL
이것을 실행하려면 Fedora Core 9에서는 기본으로는 안되고 별도로
legacy library를 설치를 해야 할 듯하다.

일단 구동하면 발생하는 에러는
# ponyprog2000
ponyprog2000: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

libstdc++ 이 필요 하다라고 나오는 것 봐서는.. 꽤나 구형 라이브러리들을 많이 설치를 해야 할 듯 한데,
충돌없이 잘 작동이 되려나..

[ponyprog 공식 : http://www.lancos.com/ppwin95.html]



avrdude는 IO 포트를 사용해야 하므로, 반드시 root 권한으로 사용해야 한다.(역시 구형인가..)
그리고 AVRDUDE는.. STK-200 호환인지 먼지 알수가 없어서 하려고 하는데 이래저래 실패만 잔뜩..

$ avrdude -p m128 -c stk200 -P /dev/parport0
avrdude: can't open device "/dev/parport0": Permission denied
avrdude: failed to open parallel port "/dev/parport0"

# avrdude -p m128 -c stk200 -P /dev/parport0

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

2009/04/15 - [AVR / 8051] - gnome-avrdude : avrdude GUI frontend for gnome


스리슬적 성공기
# avrdude -p m128 -c stk200 -P /dev/parport0

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9702

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

Posted by 구차니

Requirements

For running KScope:
  1. The KDE runtime libraries, version 3.3 or above
  2. The Qt runtime libraries, as required by the installed KDE version
  3. Cscope
  4. Exuberant Ctags (KScope will not work with other variants of Ctags)
  5. Graphviz (required as of KScope version 1.3.0).

위에 보이듯이 version 3.3 이상의 QT가 필요 하다는데.. (KDE 3.3)
문제는 요즘꺼는 KDE 4 이다 보니, 제대로 호환이 되지 않아 컴파일시에
kateinterface 쪽에서 문제가 발생한다.

[링크 : http://sourceforge.net/forum/forum.php?thread_id=2574152&forum_id=338423]

아직까지 Kscope가 KDE4에 맞게 나오지 않았고, 나오기 까지는 상당시간이 걸릴것으로 예상이 된다.
그냥.. 다른걸 사용하도록 해야할듯 하다.
Posted by 구차니

gnome에서 많이 볼수 있는, 파일 브라우저이다.
MS Windows의 파일 탐색기(Explorer) 느낌이라 상당히 좋아하는데 Cygwin/x를 통해 단독으로 띄울 방법을
꽤나 고심하면서 찾았는데 의외의 곳에서 해결 방법을 찾게 되었다.

처음에는 gnome-open을 이용해서 하는게 아닐까 생각을 했는데
gnome-open을 이용하면 아래와 같이 단순하게 list형으로만 출력이 된다.


그래서 gnome-system-monitor로 보니 nautilus 외에는 실행되는 프로세스가 없었다.
그런 이유로 nautilus 의 옵션을 살펴보니

$ nautilus --help-all
Usage:
  nautilus [OPTION...] [URI...]

Browse the file system with the file manager

Help Options:
  -?, --help                      Show help options
  --help-all                      Show all help options
  --help-gtk                      Show GTK+ Options
  --help-bonobo-activation        Show Bonobo Activation options
  --help-gnome                    Show GNOME options
  --help-gnome-session            Show session management options

GTK+ Options
  --class=CLASS                   Program class as used by the window manager
  --name=NAME                     Program name as used by the window manager
  --screen=SCREEN                 X screen to use
  --sync                          Make X calls synchronous
  --gtk-module=MODULES            Load additional GTK+ modules
  --g-fatal-warnings              Make all warnings fatal

Bonobo Activation options:
  --oaf-ior-fd=FD                 File descriptor to print IOR on
  --oaf-activate-iid=IID          IID to activate
  --oaf-private                   Prevent registering of server with OAF

GNOME Library
  --disable-sound                 Disable sound server usage
  --enable-sound                  Enable sound server usage
  --espeaker=HOSTNAME:PORT        Host:port on which the sound server to use is running
  --version

Session management:
  --sm-client-id=ID               Specify session management ID
  --sm-config-prefix=PREFIX       Specify prefix of saved configuration
  --sm-disable                    Disable connection to session manager

Application Options:
  -g, --geometry=GEOMETRY         Create the initial window with the given geometry.
  -n, --no-default-window         Only create windows for explicitly specified URIs.
  --no-desktop                    Do not manage the desktop (ignore the preference set in the preferences dialog).
  --browser                       open a browser window.
  -q, --quit                      Quit Nautilus.
  -l, --load-session=FILENAME     Load a saved session from the specified file. Implies "--no-default-window".
  --display=DISPLAY               X display to use


아래의 두개 옵션이 눈에 띄었다. 물론 --no-desktop을 하지 않아도 되지만,
cygwin/x를 통해 실행할때에는 노틸러스에서 전체 화면을 보여주고(데스크탑) 추가로 파일 브라우저를 보여준다.
그런 이유로, 단독형으로 실행하고 싶다면

 $ nautilus --browser --no-desktop [directory path]

로 실행하면 깔끔하게 창이 뜨게 된다.
Posted by 구차니
Putty를 사용한 SSH X11 Forwarding은 상당히 유용하지만,
Gnome이나 KDE 같은 윈도우 매니저를 한번에 끌어 올때에는 아름답지 못한 결과를 보여준다.

기본 실행옵션인 -multiwindow로 gnome-session을 실행한 결과

Xming이나 cygwin/X의 경우 기본 실행 옵션이 -multiwindow로 실행되기 때문에
위와 같이 각 윈도우 별로 MS windows(TM)의 윈도우창이 붙게 된다. 그런 이유로 상단의 흰 줄은
Gnome Panel이 떠야 함에도 불구하고 제대로 뜨지 못하는 문제를 보여준다.
그리고 작업표시줄에도 윈도우 별로 별도의 창들이 떠있음을 볼 수 있다.

이를 해결 하기 위해서는
Xwindow 구동 방식옵션을 바꾸어 주어야 하는데,
옵션을 살펴보면 아래와 같이 -multiwindow 외에 -fullscreen 이라는 녀석이 존재한다.

XWin.exe
[-help]
[-clipboard [-nounicodeclipboard] ]
[-clipupdates clip_updates_above_n ]
[-emulate3buttons timeout_in_milliseconds ]
[-engine engine_number ]
[-fullscreen [-depth depth_in_bits_per_pixel ] [-refresh refresh_rate_in_herz ] ]
[-ignoreinput]
[-lesspointer]
[-multiwindow]
[-multimonitors]
[-nodecoration]
[-rootless]
[-screen screen_number width height ...]
[-scrollbars]
[-[no]trayicon]
[-[no]unixkill]
[-[no]winkill]
[-[no]keyhook]
[-swcursor]
[-xkbrules XKBRules ]
[-xkbmodel XKBModel ]
[-xkblayout XKBLayout ]
[-xkbvariant XKBVariant ]
[-xkboptions XKBOptions ]
[-logfile path_to_logfile ]
[-logverbose verbosity_level ]


[-fullscreen [-depth depth_in_bits_per_pixel ] [-refresh refresh_rate_in_herz ] ]
● The -fullscreen parameter tells Cygwin/X to open a given screen in fullscreen mode.
● The -depth parameter can only be used with -fullscreen and a DirectDraw based engine to specify the display depth that should be used for the fullscreen Cygwin/X screen.
● The -refresh parameter can only be used with -fullscreen and a DirectDraw based engine to specify the refresh rate that should be used for the fullscreen Cygwin/X screen.

[-multiwindow]
● Start the integrated Windows-based window manager, which launches each top-level X window in its own Windows window. Not to be used together with -rootless nor -fullscreen.

[링크 : http://x.cygwin.com/docs/ug/configure-cygwin-x-options.html]

아무튼 multiwindow에서 fullscreen으로 옵션을 바꾸어서 실행하면 아래와 같이 나오게 된다.


아쉽게도, 한번에 창을 잡을수가 없어 윈도우 작업표시줄은 윈도우에서, Gnome 화면은 리눅스에서 잡았다.
아무튼 작업표시줄에 나타난 프로그램도 Xming 하나로 하나의 윈도우를 그대로 끌어 오게 되고,
Xwindow 화면 역시 깔끔하게 위의 Gnome-Panel도 제대로 나오게 된다. (참 쉽죠~?)

참고사항 : 이렇게 구동한 윈도우매니저는 shutdown 시에 gnome-session만 종료를 한다.
               다르게 말하자면, 윈도우만 종료되지 컴퓨터 자체가 종료되진 않는다.
Posted by 구차니
XLaunch XDMCP settingsLaunch

XLaunch XDMCP settings
XDMCP settings
Settings for the XDMCP mode. This mode is the most problematic, is not secure, and usually requires altering of the remote machine's settings. The XDMCP protocol will send and receive data on port 177/UDP. But the actual connections will be made to the local port 6000+n /TCP, where n is the display number.

Connect to host
Enables XDMCP and sends 'Query' UDP packets to the specified host.
If you are having problems use Wireshark or equivalent to monitor UDP traffic on the remote host and look for the sequence 'Query' 177/UDP, 'Willing' x/UDP, 'Request' 177/UDP, 'Accept' x/UDP, 'Manage' 177/UDP and see where it stops. If it gets through the sequence then test with local and remote 'xeyes' in multiwindow mode, because the Display Manager acts just like an X client from then on in to provide its login window.

Use indirect connect
Enables XDMCP and sends 'IndirectQuery' packets to the specified host. This host presents a chooser box of several hosts or sends 'ForwardQuery' to another host depending on how it's X Display Manager is configured (via Xaccess file entries).

Search for hosts (broadcast)
Enables XDMCP and broadcasts 'BroadcastQuery' packets to the network. The first responding display manager will be chosen for the session.

XDMCP remote settings
A quick guide to setting insecure XDMCP mode on a remote machine running kdm, gdm, xdm or wdm...
On the remote *nix machine edit the following files, restart the X Display Manager and run at 'init 5'.

Edit the file Xaccess (each Display Manager has its own). Make sure you have a line like this that is uncommented.
 *         #any host can get a login window

Edit the X Display Manager config file (kdmrc, gdm.config, xdm-config or wdm-config) and change
[Xdmcp]
Enable=false (may be shown as 0 in some distributions)
  to
[Xdmcp]
Enable=true (or 1 in some distributions)

or for a xdm style configuration

DisplayManager.requestPort:    0
  to
!DisplayManager.requestPort:    0

출처 : XLaunch Wizard help for Xming - XLaunch XDMCP settings 항목

Posted by 구차니
아래의 링크에서 하는 방법역시 결국에는 SSH X11 forwarding을 사용하는 방식인데
중요한 것은 실행 파일이름이다.


putty에서 X11 forwarding 설정을 하고
gnome 환경이라면 마법의 키워드를 입력한다


gnome-session


그러면 자신의 계정으로 접속된 gnome desktop이 보일것이다!







주의 : 현재 모니터 해상도 그대로 끌려가게 되니 주의해야 한다(전체화면 강제로 됨. 창은 찾아 봐야 할 듯..)

[참고 : http://www.javarush.com/1171424845] -> 원본위치 추적
[원본 : http://blog.studioego.info/417]
Posted by 구차니
프로그램 사용/coLinux2009. 4. 10. 14:01
colinux는 User-level kernel로 완전한 시스템을 운영할 수 있게 합니다.
일단 colinux는 kernel와 linux 배포판 이미지로 나누어져 다운로드 받을 수 있으며
아래의 coLinux-stable은 colinux kernel 및 실행 프로그램
그리고 아래의 Images는 각 linux 배포판 root filesystem 입니다.
FC10 기준 인스톨러는 150M 정도이지만, RAR 압축을 해제 하고 나면 4기가 정도의 용량을 차지 합니다.
(이런 놀라운 압축력!)



Package Release Date Notes / Monitor Downloads

coLinux-stable 0.7.3-linux-2.6.22.18 June 8, 2008 Release notes     Monitor this package Download
Images 2.6.x ArchLinux ArchLinux 2007.08-2 February 7, 2008 Release notes     Monitor this package Download
Images 2.6.x Debian Debian 4.0 Etch May 8, 2007 Release notes     Monitor this package Download
Images 2.6.x Fedora Fedora 10 February 28, 2009 Release notes     Monitor this package Download
Images 2.6.x Gentoo Gentoo 2006.1 March 2, 2007 Release notes     Monitor this package Download
Images 2.6.x Ubuntu Ubuntu 7.10 March 14, 2008 Release notes     Monitor this package Download
[colinux : http://colinux.org/]
[colinux down : http://sourceforge.net/project/showfiles.php?group_id=98788]


인스톨러를 실행하면 나오는 화면입니다(이 앞에는 GNU 동의하냐는 것이 있어서 패스 입니다)

coLinux와 RootFS image를 받았다면 아래의 Root Filesystem image Download는 체크 해제 하시면 됩니다.

coLinux 세부내용 입니다. 귀찮으니 기본 값으로 넘어갑니다.

혹시 RootFS를 받지 않으셨다면, Root Filesystem image Download를 체크하시고 다음을 누르면
위와 같은 선택화면이 나옵니다. 여기에는 아쉽게도 FC7로 표기가 되어 있습니다.

설치를 진행하면 WinPCAP을 사용한다는 말이 나옵니다. 일단 귀찮으니 여전히 패스 -ㅁ-

설치가 진행되다가 이 부분에서 멈춥니다. 그리고 아래의 창이 뜹니다.

설치하면 무슨 Adaptor가 설치됩니다. 모르니 일단 계속 해주고 넘어 갑니다 -ㅁ-

Adaptor가 네트워크였나 봅니다 -ㅁ- 생각치도 못하게 로컬 영역 연결 3이 생겼습니다

일단은 설치가 완료 되었습니다! 그렇다고 해서 바로 실행할수는 없습니다.
아직 RootFS를 설치하지 않았기 때문이죠~!

따로 받은 RootFS를 압축해제 합니다. 용량이 4기가 정도 되어서 생각보다 오래 걸립니다.

기본 설치 위치는 C:\Program Files\coLinux 이고, 그 하위에 압축 해제된 FC10 RootFS 디렉토리를 이동시켜 줍니다.

"c:\Program Files\coLinux\colinux-daemon.exe" kernel="C:/Program Files/coLinux/vmlinux" initrd="C:/Program Files/coLinux/initrd.gz" mem=256 cobd0="C:/Program Files/coLinux/FC10/Fedora-10.img" cobd1="C:/Program Files/coLinux/FC10/swap.img" root=/dev/cobd0 eth0=slirp,,tcp:5901:5900 ro
start-Fedora-10.bat 파일의 내용을 위와 같이 수정해 줍니다.

수정된 start-Fedora-10.bat 을 실행시키면 저렇게 리눅스 커널이 부팅됩니다.

리눅스가 실행되면 저렇게 나옵니다.
친절하게도 kde나 gnome을 실행하라는군요!
그래서 gnome을 실행하려니 설치 하랍니다.
installgnome을 치면 설치가 시작됩니다

Posted by 구차니
cvs2svn 이라는 유틸리티를 사용하면 된다고 한다.

[발견 : http://sam.zoy.org/writings/programming/svn2cvs.html]
[공식 : http://cvs2svn.tigris.org/]

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

SVN의 단점  (0) 2009.05.08
svn 저장소의 위치  (0) 2009.05.08
TortoiseSVN 내장 Diff 사용시 주의사항 및 프로그램 소개  (2) 2009.03.10
CVS / SVN 차이점?  (2) 2009.03.06
SVN 사용기  (0) 2009.03.05
Posted by 구차니
(gdb) c
Continuing.
X connection to localhost:11.0 broken (explicit kill or server shutdown).

혹은

xterm Xt error: Can't open display:

라는 에러가 gdb를 기동할때 발생을 한다.
그래서 머하는 넘이지 하고 고심을 하다가
Xming을 설치 하고 X11 forwarding을 설정하고 실행해보았더니 아래와 같은 창이 생긴다.

머하는 놈이지?



이녀석 창이름으로 검색을 해보니 희한한게 걸려 나온다.

CROSSWORKS for MAXQ 라는 것과
debug_printf is an extension provided by CrossWorks C. 라는 내용

[출처 : http://www.rowley.co.uk/documentation/maxq_1_1/hcc_libc_debug_printf.htm]

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

GDB Insight FAQ - support target list  (0) 2009.06.26
insight - GDB GUI frontend  (0) 2009.06.26
gdb야 좀 대충 속아라~ 응?! 아 쫌!  (6) 2009.06.18
gdb 한글 문서  (0) 2009.06.18
sh4-linux-gdb 의 load 명령어  (0) 2009.02.16
Posted by 구차니