프로그램 사용/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 구차니
프로그램 사용/eclipse2012. 1. 18. 23:06
호기심이 화근인데 -_-


"Always run in background"를 눌렀다가 복구할 방법이 없었는데
Windows - Preferences 에서
General의 "Always run in background"를 꺼주면 된다는데 내일 테스트 해봐야지 ㅠ.ㅠ


[링크 : http://www.eclipse.org/forums/index.php?t=msg&th=33137/]

---
2012.1.19
오~ 된다 된다! 
Posted by 구차니
요즘 되는게 없는 느낌 -_-
그냥 lib*.a 식으로 이름 변경하고
library path에 추가하고 library에 이름 추가해주면 땡 -_-

---

so와 달리 a 파일은 그냥 컴파일 옵션에 넣어주면 된다 -_-
$ gcc -Wall calc.c /usr/lib/libm.a -o calc
[링크 : http://www.network-theory.co.uk/docs/gccintro/gccintro_17.html

Libraries 에서 파일명이 다 들어 가도록 해주면된다.
(예를들어 arm용 cortex-m3 stellarisware 의 경우 driverlib.lib 라고 입력하면 끝
단, Library Paths 에서 그 파일이 있는 경로를 넣어주면 된다)


[링크 : http://linux.die.net/man/1/ar]
[링크 : http://blog.naver.com/jchaney/40039471216]
[링크 : http://wiki.kldp.org/KoreanDoc/html/gcc_and_make/gcc_and_make-2.html]

'프로그램 사용 > eclipse CDT & minGW' 카테고리의 다른 글

eclipse cdt 에서 doxygen 활성화 하기  (2) 2012.02.06
eclipse CDT plugin 설치하기  (2) 2012.01.29
eclipse CDT 에서 include 경로 추가하기  (0) 2012.01.17
MinGW  (0) 2010.09.07
eclipse CDT  (0) 2009.07.13
Posted by 구차니
openoffice의 데이터베이스에서는
자체적인 db외에 jdbc / odbc를 지원하는데 이를 사용하기 위해서는 아래의 패키지를 설치해야 한다고 한다.


테스트를 해보니 jdbc는 classpath 문제인지 실행이 안되고 -_-
$ sudo apt-get install libmysql-java
[링크 : https://help.ubuntu.com/community/JDBCAndMySQL

odbc는 문제없이 실행된다.
$ sudo apt-get install libmyodbc
$ sudo vi /etc/odbc.ini
[ODBC Data Sources]
odbcname     = MyODBC 3.51 Driver DSN

[odbcname]
Driver       = /usr/lib/odbc/libmyodbc.so
Description  = MyODBC 3.51 Driver DSN
SERVER       = my.database.server.com
PORT         =
USER         = USER
Password     = XXXXXX
Database     = DBNAME
OPTION       = 3
SOCKET       =

[Default]
Driver       = /usr/local/lib/libmyodbc3.so
Description  = MyODBC 3.51 Driver DSN
SERVER       = localhost
PORT         =
USER         = root
Password     =
Database     = test
OPTION       = 3
SOCKET       = 

[링크 : https://help.ubuntu.com/community/ODBC

ODBC를 선택해도 되지만,
mysql을 선택한 후, jdbc와 odbc를 선택해도 된다.


odbc.ini 에서 [] 안에 넣어준 이름을 입력한다.


다음페이지에서 아이디와 "암호를 사용함" 해주고 테스트 하면 아래와 같이 메시지가 뜬다.


--- 2012.1.19 추가

아무거나 띄워서 Tools - Options - OpenOffice.org - Java 로 들어가서
해당 jre 에서 (여러개의 jdk/jre가 있을 경우 골라야 함) Class Path를 추가해주면 된다.


ubuntu의 openjdk가 설치된 경우라면
"Add Archive" 에서 "/usr/share/java/mysql.jar" 을 추가해주고 재시작 해주면 된다. 


재시작후 jdbc로 붙이면 아래와 같이 성공했다고 뜬다.


[링크 : http://user.services.openoffice.org/en/forum/viewtopic.php?f=40&t=2084]

Posted by 구차니