프로그램 사용/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 구차니
Linux/Ubuntu2012. 1. 20. 20:51
iptable 에 존재하는 테이블 목록은
filter / nat / mangle/ raw
네가지 이다.
[링크 : http://www.linuxreport.org/content/view/26/23/

filter:
This is the default table (if no -t option is passed). It contains the built-in chains INPUT (for packets destined to local sockets), FORWARD (for packets being routed through the box), and OUTPUT (for locally-generated packets).
nat:
This table is consulted when a packet that creates a new connection is encountered. It consists of three built-ins: PREROUTING (for altering packets as soon as they come in), OUTPUT (for altering locally-generated packets before routing), and POSTROUTING (for altering packets as they are about to go out).
mangle:
This table is used for specialized packet alteration. Until kernel 2.4.17 it had two built-in chains: PREROUTING (for altering incoming packets before routing) and OUTPUT(for altering locally-generated packets before routing). Since kernel 2.4.18, three other built-in chains are also supported: INPUT (for packets coming into the box itself),FORWARD (for altering packets being routed through the box), and POSTROUTING (for altering packets as they are about to go out).
raw:
This table is used mainly for configuring exemptions from connection tracking in combination with the NOTRACK target. It registers at the netfilter hooks with higher priority and is thus called before ip_conntrack, or any other IP tables. It provides the following built-in chains: PREROUTING (for packets arriving via any network interface)OUTPUT (for packets generated by local processes)

[링크 :  http://linux.die.net/man/8/iptables]  

iptable 에서 "관리"하는 목록은 proc fs에 존재하며
해당 테이블의 규칙 보는 방법은 -L 옵션을 사용하면 된다.

$ sudo cat /proc/net/ip_tables_names
mangle

$ sudo iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination 

[링크 : http://forum.soft32.com/linux2/iptables-list-tables-ftopict29473.html]
Posted by 구차니
개소리 왈왈2012. 1. 20. 14:52
문득 결혼하려면 상대 부모님을 만나야 하고
자네 사는 목적이 먼가~

라는 질문에 무슨 대답을 해야 하나라는 망상(!)에 고민을 해보니


1. 그걸 알면 이러고 있겠습니까?
2. 그걸 알면 이미 죽었겠죠. 목표를 찾아서 이룩했는데 무슨 재미로 사나요
3. 아버님은요?


이런 오만 개드립 시뮬레이션 중 게임이 떠오르는데...





아마도 신이 인간에게 있어 삶의 목표를 히든 퀘스트로 해서 준 이유는
목표가 태어나자 마자 뿅~ 하고 주어지고
그걸 달성하고 나면 의욕저하로 다들 뒈질테니 적당하게 숨겨놓고는 목표를 찾아봐라~ 이러는거 아닐까? 라는 망상 -_-

솔찍히 인생이 퀘스트가 주어지는대로 사는것도 아니고
어떤 목적이나 목표가 주어진다고 하면 그것만 달성하면 전역시켜주지 않는 말년병장의 느낌일것 같은데
오히려 그러한 목적이 숨겨지거나 정해지지 않음으로서
인생의 즐거움을 주려는 창조주의 선물이 아닐까? 라는 생각이 들었다. 


만약, 정말 노력해서 인생의 목표나 목적을 알아냈고 달성했다면
살아갈 이유나 가치가 있을까? 자살하지 않을까? 


+
만약 찾는다고 해도. 그게 정답인지 알 수 없고
만약 찾는다고 해도, 미련으로 인해 놓칠 수도 있고
만약 찾는다고 해도, 더 좋은게 있을꺼라는 희망으로 놔버릴 수도 있고
결국은 사악한 작가(창조주)의 독자들이 싫어하는 열린 결말? 

'개소리 왈왈' 카테고리의 다른 글

급 피곤  (4) 2012.02.03
보이스피싱 업그레이드~!  (0) 2012.01.28
전국고딩들의 로망 노스페이스!  (0) 2012.01.20
falinux 공개세미나 - arm pc / zeroboot  (0) 2012.01.13
신분당선 비싸 ㅠㅠ  (2) 2012.01.13
Posted by 구차니
개소리 왈왈/컴퓨터2012. 1. 20. 10:55
또 이 펜을 분해하게 될줄이야 -_-
그래도 불행중 다행인건, 완전하게 분해/조립이 되었다는 정도?
 
일단 전체 부품 전개도.
왼쪽 중앙의 녀석이 무게추(?) 인데 5g 정도 나간다. 근데 부러졌으니 버려!!!


전자유도식 타블렛의 핵심부품중 하나인 펜!
가장 앞에 코일이 있고 그걸 버튼인식으로 가고 어떻게 타블렛으로 보내는진 내가 알게 모람~


문제의 부러진 무게추(?) 원래 복원하면 대충 이런 모양인데
이게 무려 4동강이 나서 분해되어 버렸다 -_-


펜 앞부분 오른쪽의 홈에 맞추어서 녹색 기판을 넣어주면 된다.


뒷쪽 펜 부분, 홀이 있긴한데 대충 위치는 맞춰주고 그냥 밀어넣으면 됨 -_-



결론 : 무게도 5g 줄어서 편해지고 돈도 굳고 좋아좋아~

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

불안불안  (2) 2012.02.28
어디까지가 그 컴퓨터일까?  (4) 2012.02.22
Xnote LW20 Express  (4) 2011.09.27
으헝헝 노트북 배터리 단종이라니!!!!  (0) 2011.04.18
배터리야 잘가~  (2) 2011.04.16
Posted by 구차니
embeded/Cortex-M3 Ti2012. 1. 20. 10:40
Atmel avr에만 너무 찌들었나 -_-
cortex m3 관련 구조는 너무 달라서 이리저리 헤매는 중 ㅠ.ㅠ

stellarisware 데모 코드들을 뜯어보고 이리저리 보니
avr이 아래와 같이 ISR() 식으로 정해진 코드로 한다고 한다면
#include <avr/interrupt.h>

ISR(ADC_vect)
{
    // user code here
} 

arm ti cortex m3 는 초기화 코드중 isr_vector 섹션에 들어갈 변수에 함수 포인터를 등록해주는 식으로 구성된다.
말을 쉽게 하자면, 원하는 함수 명으로 대충 void func(void) 식으로 만들고 등록만 해주면 땡~
__attribute__ ((section(".isr_vector")))
void (* const g_pfnVectors[])(void) =
{
    (void (*)(void))((unsigned long)pulStack + sizeof(pulStack)),
                                            // The initial stack pointer
    ResetISR,                               // The reset handler
    NmiSR,                                  // The NMI handler
    FaultISR,                               // The hard fault handler
    IntDefaultHandler,                      // The MPU fault handler
    IntDefaultHandler,                      // The bus fault handler
    IntDefaultHandler,                      // The usage fault handler
    0,                                      // Reserved
    0,                                      // Reserved
    0,                                      // Reserved
    0,                                      // Reserved
    IntDefaultHandler,                      // SVCall handler
    IntDefaultHandler,                      // Debug monitor handler
    0,                                      // Reserved
    IntDefaultHandler,                      // The PendSV handler
    IntDefaultHandler,                      // The SysTick handler
    IntDefaultHandler,                      // GPIO Port A
    IntDefaultHandler,                      // GPIO Port B
    IntDefaultHandler,                      // GPIO Port C
    IntDefaultHandler,                      // GPIO Port D
    IntDefaultHandler,                      // GPIO Port E
    IntDefaultHandler,                      // UART0 Rx and Tx
    IntDefaultHandler,                      // UART1 Rx and Tx
    IntDefaultHandler,                      // SSI0 Rx and Tx
    IntDefaultHandler,                      // I2C0 Master and Slave
    IntDefaultHandler,                      // PWM Fault
    IntDefaultHandler,                      // PWM Generator 0
    IntDefaultHandler,                      // PWM Generator 1
    IntDefaultHandler,                      // PWM Generator 2
    IntDefaultHandler,                      // Quadrature Encoder 0
    IntDefaultHandler,                      // ADC Sequence 0
    IntDefaultHandler,                      // ADC Sequence 1
    IntDefaultHandler,                      // ADC Sequence 2
    IntDefaultHandler,                      // ADC Sequence 3
    WatchdogIntHandler,                     // Watchdog timer
    Timer0IntHandler,                       // Timer 0 subtimer A
    IntDefaultHandler,                      // Timer 0 subtimer B
    Timer1IntHandler,                       // Timer 1 subtimer A
    IntDefaultHandler,                      // Timer 1 subtimer B
    IntDefaultHandler,                      // Timer 2 subtimer A
    IntDefaultHandler,                      // Timer 2 subtimer B
    IntDefaultHandler,                      // Analog Comparator 0
    IntDefaultHandler,                      // Analog Comparator 1
    IntDefaultHandler,                      // Analog Comparator 2
    IntDefaultHandler,                      // System Control (PLL, OSC, BO)
    IntDefaultHandler,                      // FLASH Control
    IntDefaultHandler,                      // GPIO Port F
    IntDefaultHandler,                      // GPIO Port G
    IntDefaultHandler,                      // GPIO Port H
    IntDefaultHandler,                      // UART2 Rx and Tx
    IntDefaultHandler,                      // SSI1 Rx and Tx
    IntDefaultHandler,                      // Timer 3 subtimer A
    IntDefaultHandler,                      // Timer 3 subtimer B
    IntDefaultHandler,                      // I2C1 Master and Slave
    IntDefaultHandler,                      // Quadrature Encoder 1
    IntDefaultHandler,                      // CAN0
    IntDefaultHandler,                      // CAN1
    IntDefaultHandler,                      // CAN2
    IntDefaultHandler,                      // Ethernet
    IntDefaultHandler                       // Hibernate
}; 

void
ResetISR(void)
{
    //
    // Jump to the CCS C Initialization Routine.
    //
    __asm("    .global _c_int00\n"
          "    b.w     _c_int00");
}

static void
IntDefaultHandler(void)
{
    //
    // Go into an infinite loop.
    //
    while(1)
    {
    }
} 

[링크 : http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/85136.aspx#294202]
Posted by 구차니
개소리 왈왈2012. 1. 20. 08:52
카피문구가 손이 오그라드는 수준이...
편강탕을 능가하는데?


Posted by 구차니
부제 : 아류ㅗ갸더ㅜㄹ혼야자ㅡ유쳐ㅓ링

출근길에 타블렛펜을 놓쳤고 경쾌한 타격음
"탁!"
주워드니 먼가 덜그럭 거리는 소리..
괜찮겠지? 하고 우클릭을 하는데... 읭?
안된다 -_-!!!!

펜을 살까? 8만원인데 으아아
나 초긴축재정인데 ㅠㅠ
일주일전 테스트한 갤노트 펜을 사야하나?
사면 어디에 넣고 다니지? 으아앙

정신줄 유체이탈중 ㅠㅠ

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

공유기랑 공유기  (0) 2012.01.30
지를까 말까?  (2) 2012.01.27
아빠 컴퓨터 맞춰드릴려고 하는데요~  (4) 2012.01.18
인디언식 / 서구식 이름 짓기  (4) 2012.01.10
아 출근하기 싫다  (2) 2012.01.08
Posted by 구차니
Linux/Ubuntu2012. 1. 19. 19:16
라우팅 관련해서 보다 보니 먼가 익숙하면서도 기억에 없는 녀석이 떡~하고 나타나서 찾아보니
zeroconf 관련 대역이라고 한다.

[링크 :  http://my.oops.org/111

$ ip rule show
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

$ ip route show
192.168.10.0/24 dev eth0  proto kernel  scope link  src 192.168.10.10  metric 1
169.254.0.0/16 dev eth0  scope link  metric 1000
default via 192.168.10.1 dev eth0  proto static 

다시 살아난(!) 위키에서 검색하니 Link-Local 용으로 RFC 3927에 정의된 녀석이라...

Reserved address blocks
CIDR address blockDescriptionReference
0.0.0.0/8 Current network (only valid as source address) RFC 1700
10.0.0.0/8 Private network RFC 1918
127.0.0.0/8 Loopback RFC 5735
169.254.0.0/16 Link-Local RFC 3927
172.16.0.0/12 Private network RFC 1918
192.0.0.0/24 Reserved (IANA) RFC 5735
192.0.2.0/24 TEST-NET-1, Documentation and example code RFC 5735
192.88.99.0/24 IPv6 to IPv4 relay RFC 3068
192.168.0.0/16 Private network RFC 1918
198.18.0.0/15 Network benchmark tests RFC 2544
198.51.100.0/24 TEST-NET-2, Documentation and examples RFC 5737
203.0.113.0/24 TEST-NET-3, Documentation and examples RFC 5737
224.0.0.0/4 Multicasts (former Class D network) RFC 3171
240.0.0.0/4 Reserved (former Class E network) RFC 1700
255.255.255.255 Broadcast RFC 919
[링크 :  http://en.wikipedia.org/wiki/IPv4#Special-use_addresses]
Posted by 구차니
Linux/Ubuntu2012. 1. 18. 23:46
집에서 사용하는 케이블 모뎀과 핸드폰의 테터링을 이용해서 동시에 해볼려고 했는데 영 안되네 -_-


공유기를 쓰므로 eth0(유선)은 192.168.0.1
테터링은 eth1(무선) 192.168.1.1 로 연결되는데

$ sudo ip route add default scope global nexthop via 192.168.0.1 dev eth0 weight 1 nexthop via 192.168.1.1 dev eth1 weight 1
RTNETLINK answers: File exists  
이런 에러를 뱉는다. -_-

Did you try to remove the old default gw? 
ip route del default ... 
And add your multipath route with several nexthops sfter that.

[링크 : http://www.debian-administration.org/articles/377
찾아보니 ip route del default 명령과 추가를 하라는데. 추가는 몰라서

$ ip route del default  
로 삭제만 하니 일단 외부로 보내려고 시도는 하지만 영안되는듯 -_-

아무튼, 위의 명령어를 수행하고 나니 아래처럼 default가 두줄로 나오는 신기한 현상!
$ ip route show
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.148  metric 2 
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.154  metric 1 
169.254.0.0/16 dev eth0  scope link  metric 1000 
default via 192.168.0.1 dev eth0  proto static 
 
$ ip route show
192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.148  metric 2
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.154  metric 1
192.168.10.0/24 dev eth2  proto kernel  scope link  src 192.168.10.2
169.254.0.0/16 dev eth0  scope link  metric 1000
default
        nexthop via 192.168.0.1  dev eth0 weight 1
        nexthop via 192.168.1.1  dev eth1 weight 1 

[링크 : http://www.linuxhorizon.ro/iproute2.html]
2011/12/17 - [Linux/Ubuntu] - 여러개의 업링크 / 인터넷 업체를 사용할 경우 라우팅 설정하기 



----
2012.1.20

connection timed out이 뜨는데 왜그런걸까.. rule이 문제일까.. iptable의 문제일까?
[링크 : http://www.linuxquestions.org/.../mail-sending-problem-%96-postfix-connection-timed-out-port-25-a-713108/]
[링크 :  http://wiki.mikrotik.com/wiki/Manual:IP/Route


---
2012.1.21
혹시나 해서 /etc/iproute2/rt_tables 에 추가하고 나서
해당 테이블 별로 default 설정을 해주고 나서 테이블 별로 룰을 추가해주니
connection timed out도 안뜨고 잘되는데

# ip route add default via 192.168.0.1 dev eth0 table CABLE
# ip rule add from 192.168.0.1/24 table CABLE

# ip route add default via 192.168.1.1 dev eth1 table CELLPHONE
# ip rule add from 192.168.1.1/24 table CELLPHONE 

아직까지는 확인은 해봐야겠지만, Round-Robin처럼 작동하는 기분?

$ dstat -n -N eth0,eth1,total 

명령을 해 놓고 나오는 결과를 보고 있노라면
두개를 동시에 하는 경우는 거의 없고, 한다고 해도 몰빵을 해주는 경향을 보인다.
단지, 어려개 탭을 띄워놓거나, 다운로드는 동시에 여러개 하지 않는 이상에는 대역폭이 합쳐지지 않고
단순하게 multiple gateway를 순차적으로 쓰는 것으로 보인다.

link aggregation을 하지 않아서 그러려나?


Posted by 구차니