Help - Install New Software에서
필요한 주소를 입력하고 (ubuntu 에서 galilieo로 하고 있으니 난 아래 경로로)
Programming Languages 에서 Eclipse C/C++ Development Tools를 선택한다.


머 이런게 깔린다~ 라는건데 검색어에서 cdt로 때리면 Support 녀석들만 나오니 이래저래 위의 항목에서 선택하는게 유리할듯.


네 감사히 쓰겠습니다 굽신굽신 해주고 다 깔면 이클립스 재시작하면 하면됨.


Window - Open Perspective - Others
에서 C/C++을 추가해주면 끝 



예전의 이클립스는 조낸 하늘을 날아가도록 빠르고 잘 죽어서 싫었는데
이번에 한번 용기를 내서 cdt를 써서 해보니 헐 이건 신세경이야!
소스인사이트 처럼 가져다 대면 미리보기 되고, F3 누르면 이동하고 Alt-왼쪽화살표로 이전 위치로 돌아올수도 있고
내가 소스인사이트에서 사용하는 주요기능 두개는 이걸로 확보!

일단 함수라던가 이런 것들에 대한 syntax highlighting만 찾으면 될 듯하고,
추가로 확인한 코드 포맷을 사용하면 킹짱왕이 될 듯하다.

미안해 netbeans. 나 이제 이클립스가 좋아졌어 ㅠ.ㅠ


[링크 : http://ioriy2k.pe.kr/archives/3620]
Posted by 구차니
프로그램 사용/eclipse2012. 1. 28. 21:32
Project - Properties 에 들어가서


Java Code Style - Formatter 에서 "Enable project specific settings" 를 체크하면 설정이 가능해지는데


이런 세세한 설정을 통해서 전혀 다른 indent와 괄호 스타일을 지정할 수 있다.



그리고 적용은 화면에서


프로젝트 별로 설정이 가능하다는게 아쉽다고 해야하나 장점이라고 해야하나. 

[링크 : http://www.ibm.com/developerworks/opensource/library/os-eclipse-clean/index.html]
Posted by 구차니
프로그램 사용/xen2012. 1. 25. 21:41
현재 사용중인 Xnote LW20 / LW25 모델의 cpu인데
LW20은 M740 으로 virtualization을 지원하지 않고 있으며
LW25는 T5600으로 virtualization을 지원한다.

[링크 : http://ark.intel.com/products/.../Intel-Pentium-M-Processor-740-(2M-Cache-1_73-GHz-533-MHz-FSB)]
[링크 : http://ark.intel.com/products/.../Intel-Core2-Duo-Processor-T5600-(2M-Cache-1_83-GHz-667-MHz-FSB)]


LW20

$ cat /proc/cpuinfo 
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.73GHz
stepping : 8
cpu MHz : 1733.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2
bogomips : 3458.25
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management: 


































 
LW25 동급

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3662.82
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3657.59
clflush size : 64
 
[링크 : http://ubuntuforums.org/showthread.php?t=841711


vmx(intel) svm(amd) 로 flags에 식별이 되면 xen을 사용할 수 있다.

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

Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 설치관련 문서링크  (0) 2010.11.14
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
xen  (0) 2010.08.16
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 21:24
삼국지3 라던가 max4.0(채팅 프로그램) 같은 286 시절 프로그램은 쌩쌩 날아 다니지만






역시나.. 1.7Ghz 정도 성능의 리눅스에서는 subwar 2050이 너무나 버벅댄다
cpu cycle을 30000까지 올려도 끊어지는게 심하다.
예전 286 시절 게임인줄 알았는데 386 시절 게임일 줄이야 ㅋ (1994년 작품)


 Computer       Graphics        Memory         Disk Space 
Minimum  386            VGA             1 MB           12 MB

Control:       Keyboard, Mouse (recommended), Joystick (recommended)
  Sound:       Ad Lib, Roland LAPC-1, Sound Blaster 
Monitor:       Color required
 MS-DOS:       5.0 or higher required.  Min req. of 600K conventional
               memory.

Reviewed version 1.2 on: 486/66, 4MB RAM, SB Pro sound card, Thrustmaster
                         joystick
[링크 : http://www.ibiblio.org/GameBytes/issue18/greviews/subwar/subwar.html]  

요기까지 인트로

암호 물어보는 화면 


게임 메인화면(브릿지)


전투정 탑승화면


이 게임 그 당시에는 참신해서 엄청나게 좋아했는데
막상하려니 단축키도 기억이 안나고 못하겠다 ㅠ.ㅠ

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

dosbox on linux  (0) 2012.01.25
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 20:55
wine과 비슷하게 dos를 흉내내는 dosbox 라는게 있는데 당연히(!) 리눅스 용도 존재한다.

[링크 : http://www.dosbox.com/]  

설치 와 실행은 아래와 같이 한다.
$ sudo apt-get install dosbox  
$ dosbox 



DOS 게임의 경우 MS-DOS executable 포맷으로 인식을 하고,
samba를 통해서 그냥 복사를 해주고 나서 dosbox에서 mound 해주면 된다.
$ file *.EXE
DOS4GW.EXE:  MS-DOS executable ,\b LE for MS-DOS, DOS4GW DOS extender (embedded)
INSTALL.EXE: MS-DOS executable, MZ for MS-DOS
INTRO.EXE:   MS-DOS executable, LE executable
MPSCOPY.EXE: MS-DOS executable, MZ for MS-DOS
PKUNZIP.EXE: Self-extracting PKZIP archive MS-DOS executable, MZ for MS-DOS, PKLITE compressed
SETUP.EXE:   MS-DOS executable, MZ for MS-DOS 

기본적인 설정과 스샷 저장경로는
~/.dosbox/doxbox-0.73.conf
~/. dosbox /capture 에 png 로 저장된다.

아무래도 에뮬레이션이다 보니 성능 저하는 심한편이지만
1.7Ghz CPU로 돌릴경우 386 25Mhz 짜리 성능을 내준다고 하니
그 당시 게임을 돌리는 데에는 문제가 없을 것으로 생각된다.
하지만 486 시절 게임을 돌리려면 ... 최소한 3Ghz 급으로 클럭빨을 세워야 하려나?

Special Keys

ALT-ENTER
Go full screen and back.
ALT-PAUSE
Pause emulation.
CTRL-F1
Start the keymapper.
CTRL-ALT-F5
Start/Stop creating a movie of the screen.
CTRL-F4
Swap mounted disk-image (Only used with imgmount). Update directory cache for all drives!
CTRL-F5
Save a screenshot.(png)
CTRL-F6
Start/Stop recording sound output to a wave file.
CTRL-ALT-F7
Start/Stop recording of OPL commands.
CTRL-ALT-F8
Start/Stop the recording of raw MIDI commands.
CTRL-F7
Decrease frameskip.
CTRL-F8
Increase frameskip.
CTRL-F9
Kill dosbox.
CTRL-F10
Capture/Release the mouse.
CTRL-F11
Slow down emulation (Increase dosbox Cycles).
CTRL-F12
Speed up emulation (Decrease dosbox Cycles).
ALT-F12
Unlock speed (turbo button). 


Notes

While we hope that, one day, dosbox will run virtually all programs ever made for the PC... we are not there yet. At present, dosbox run on a 1.7 Gigahertz PC is roughly the equivalent of a 25MHz 386 PC. While the 0.60 release has added support for "protected mode" allowing for more complex and recent programs, but note that this support is early in development and nowhere near as complete as the support for 386 real-mode games (or earlier). Also note that "protected mode" games need substantially more resources and may require a much faster processor for you to run it properly in dosbox. 

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

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

dosbox 성능 테스트  (0) 2012.01.25
Posted by 구차니
cygwin/x의 용량의 압승 ㅆㅂ
cygwin/x의 완벽성 압승 ?


예전에 정리 해놓은줄 알았는데 없길래 다시 정리.
Xming에서 특정 openGL이 제대로 안되서 부랴부랴 다시 찾는데
opengl의 advanced 소스중 일부가 아래와 같은 오류를 발생하며 실행되지 않는 문제가 있다.
이경우에는 cygwin/x로 하면 문제없이 해결된다.
(하지면 용량이 200메가에 ftp.daum.net은 폐쇄되었는지 안되고 -_- 결론은 받는데 한참걸림)

$ gcc -lglut -lGLU accumaa.c
$ ./a.out
freeglut (./a.out):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  21
  Current serial number in output stream:  24 

[링크 : http://www.opengl.org/resources/code/samples/glut_examples/advanced/advanced.html ]

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

cygwin bash 쉘 시작 위치 지정하기  (0) 2015.12.02
Xwin DISPLAY 고찰(?)  (0) 2015.08.13
Cygwin/X 추려내기 - ing  (0) 2011.09.10
Xming 신버전은 유료?  (0) 2011.09.09
xming + opengl + ssh  (0) 2011.09.08
Posted by 구차니
예전 글들을 보다 보니 X11 forwarding과 Trusted X11 forwarding 두가지가 존재하는걸 알게 되었는데..

$ man ssh
     -X      Enables X11 forwarding.  This can also be specified on a per-host
             basis in a configuration file.

             X11 forwarding should be enabled with caution.  Users with the
             ability to bypass file permissions on the remote host (for the
             user's X authorization database) can access the local X11 display
             through the forwarded connection.  An attacker may then be able
             to perform activities such as keystroke monitoring.

             For this reason, X11 forwarding is subjected to X11 SECURITY
             extension restrictions by default.  Please refer to the ssh -Y
             option and the ForwardX11Trusted directive in ssh_config(5) for
             more information.

     -x      Disables X11 forwarding.

     -Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not
             subjected to the X11 SECURITY extension controls. 

-X로 해서 untrusted X11 이 안되면 -Y로 하라는 단순 명료 배째기식 FAQ 발견 ㅋㅋ
일단 보안정책상 trusted X11 forwarding만 지원할 수 도 있으니 안되면 옵션을 바꾸어서 사용하라는 열린결론 -_-
3.8. ssh -X now says "Warning: untrusted X11 forwarding setup failed: xauth key data not generated"

See Q: 6.1. and following. See point 3 in this mail. Use ssh -Y.

Technical details: ssh tried to run xauth generate to create a untrusted cookie for the session, which failed because the server isn't compiled with the XCSECURITY extension built-in.

[링크 : http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-y]


6.3. I'm confused about the difference between trusted and untrusted X11 forwarding. What does "Warning: untrusted X11 forwarding setup failed: xauth key data not generated" mean? Why is the SECURITY extension disabled?

The warning means that ssh is going to use trusted X11 forwarding because untrusted X11 forwarding depends on the security extension, which isn't built into the Xserver and has been disabled by default upstream.

Trusted X11 forwarding means that you trust the server that you wish to ssh into. The X server will allow remote clients to do whatever a local client would be able to do to your X session, for example, monitor your keypresses and take a screenshot. Such programs could be run by a malicious or compromised root user on the ssh server, or under your account if it was compromised on the ssh server.

So why is this disabled? Untrusted X11 forwarding was meant to be a way to allow logins to unknown or insecure systems. It generates a cookie with xauth and uses the security extension to limit what the remote client is allowed to do. But this is widely considered to be not useful, because the security extension uses an arbitrary and limited access control policy, which results in a lot of applications not working correctly and what is really a false sense of security. See this mail for more on the subject.

(Words adapted from an email by Yaakov Selkowitz)

[링크 : http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-trusted-untrusted-x11-forwarding] 

2009/03/24 - [프로그램 사용/cygwin / Xming] - Xming - Xwindow launcher for windows using cygwin/x
2012/01/24 - [Linux/Ubuntu] - ssh X11 터널링

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

sshd server key 경로  (0) 2015.01.06
ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제  (0) 2014.09.03
ssh X11 터널링  (0) 2012.01.24
scp 사용하기  (0) 2011.04.18
다중 X11 터널링?  (0) 2010.11.12
Posted by 구차니
리눅스(우분투)에서
 $ ssh -p 0000 -X userid@domain 
으로 하면 로컬에서 X11 화면을 끌어 올 수 있다. 

문득 이렇게 하면 로컬인지 리모트인지 알 방법이 없잖아? 라고 고민했는데
프로그램 띄우고 나서 바로 이해됨

(domain 에서) 라고 별도로 표기된다!
생각해보니 윈도우에서는 표기가 안되던데.. 우분투나 리눅스 전용 기능인가?

 
Posted by 구차니
프로그램 사용/WinE2012. 1. 21. 17:00
쌍팔년도(?) 게임 메크 커맨더(Mech Commander) 설치해볼려고 했더니 이런 에러가 뜬다.


혹시나 해서 파일 퍼미션 확인해보니 CD-ROM이라서 그런지 400 퍼미션 -_-
$ ll *.EXE *.exe
-r-------- 1 minimonk minimonk  148517 1998-06-09 21:32 AUTORUN.EXE
-r-------- 1 minimonk minimonk 3590605 1998-06-09 21:32 MECHCMDR.EXE
-r-------- 1 minimonk minimonk  273445 1998-06-09 21:32 MPLAYNOW.EXE
-r-------- 1 minimonk minimonk   61440 1999-01-13 15:38 Setup.exe
-r-------- 1 minimonk minimonk    8704 1998-10-27 13:08 _ISDel.exe 

위에 executable bit 이라고 된걸 누르면 엉뚱한 보안 경고 링크로 가는데
[링크 : https://wiki.ubuntu.com/Security/ExecutableBit ]

winehq faq에 의하면 다시 마운트 해서 하라는데, 그런다고 해서 CD 내용이 달라지는 것도 아닐테고..
그냥 복사해서 해봐야 할 듯?

6.2. I double-clicked on an .exe file, but the system said "The file foo.exe is not marked as executable..."

If the dialog says "Read about the executable bit", with a hyperlink, try clicking on the hyperlink and reading about the executable bit.

If the file is on your hard drive, right-click it, choose Properties / Permissions, and check "Allow executing file as program".

If the file is on a CD-ROM, you can run it from the commandline as described above. Or, if you know how to use 'mount', remount the cd-rom to mark all files as executable with a command like  mount -o remount,mode=0777,exec /media/cdrom but using the real mount point if it's different from /media/cdrom.


[링크 :  http://wiki.winehq.org/FAQ#head-27c7adc4eef7b58912198d92de654c498f585d86]  


결론 : 메크 코맨더 cd는 긁혀서 그런지 파일 손상으로 안되고 -_-
         더 고전은 dos 시절꺼라 실행이 안되고 (어쩌라구 -_-)
         아오 18 빡쳐~!!! 

결론2 : 구석에 짱박혀 있떤 스타크래프트 찾아서 해보니 나름 잘 돌아감. 

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

wine 한글 폰트  (0) 2019.05.21
playonlinux @ 18.04 ubuntu  (0) 2019.05.20
odroid XU4 wine 실패? ㅠㅠ  (0) 2018.09.25
한층 더 쩔어진 winE  (0) 2012.04.08
wine - WINdows Emulator (?)  (2) 2012.01.21
Posted by 구차니
프로그램 사용/WinE2012. 1. 21. 16:29
우분투 패키지명 wine1.2 그나저나 용량좀 쩌는듯... OTL
[링크 : http://www.winehq.org/] << 공식 홈페이지


아무튼 설치를 하고 나니 Wine 이라는 프로그램 카테고리가 추가되고 예제 프로그램으로 Notepad가 똭!!


프로그램 설치하면 프로그램 폴더가 똭!(아무래도 한글 프로그램이라 Programs가 아니라 프로그램으로 추가된듯)


Configure Wine에서 실행파일을 보면 음.. 윈도우 비스므리한 디렉토리 구조를 가지게 만들어 놨는데


해당 디렉토리에 가서 확인을 해보면 아래와 같이 PE32 포맷으로 나온다.
$ file *
Fonts:         directory
Microsoft.NET: directory
command:       directory
explorer.exe:  PE32 executable for MS Windows (GUI) Intel 80386 32-bit
help:          directory
hh.exe:        PE32 executable for MS Windows (GUI) Intel 80386 32-bit
inf:           directory
notepad.exe:   PE32 executable for MS Windows (GUI) Intel 80386 32-bit
regedit.exe:   PE32 executable for MS Windows (GUI) Intel 80386 32-bit
system:        directory
system.ini:    ASCII text, with CRLF line terminators
system32:      directory
temp:          directory
twain.dll:     MS-DOS executable, NE for MS Windows 3.x (driver)
twain_32.dll:  PE32 executable for MS Windows (DLL) (unknown subsystem) Intel 80386 32-bit
win.ini:       ISO-8859 text, with CRLF line terminators
winhelp.exe:   MS-DOS executable, NE for MS Windows 3.x
winhlp32.exe:  PE32 executable for MS Windows (GUI) Intel 80386 32-bit
winsxs:        directory

혹시나 전용인가 해서 빵집을 깔아보니!
헐! 된다!!!

일단 win32용 PE 포맷은 wine 아이콘 위에 원래 윈도우용 아이콘이 겹쳐진다.


그냥 더블클릭하면 익숙한(?) 화면이 똭!


오홍 전혀 변경된게 없잖아?


찾아보기 누르니 익숙한 경로와 익숙하지 않은(!) drive_c ㅋㅋㅋ


머 설치 옵션은 점프하고 이렇게 빵집이 실행되었습니다~ 두둥!


오홍 정말 게임도 되려나? ㅋ

장점 : 그냥 윈도우 프로그램을 돌린다.
단점 : 싱글 코어 1.73Ghz 짜리로는 좀 많이 버벅댐 -_-

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

wine 한글 폰트  (0) 2019.05.21
playonlinux @ 18.04 ubuntu  (0) 2019.05.20
odroid XU4 wine 실패? ㅠㅠ  (0) 2018.09.25
한층 더 쩔어진 winE  (0) 2012.04.08
wine 에서 cd넣고 실행시 에러 뜰때  (0) 2012.01.21
Posted by 구차니