22020, 1/1101 회원가입  로그인  
   wkdtjdrb98
   http://-
   아이팟을 리눅스처럼 쓰기

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Board&no=22794 [복사]


탈옥하고 Cydia 에서 Terninal 다운 받고 써보니깐 리눅스랑 얼추 비슷하더군요..

그래서 C프로그래밍도 하고 ssh원격접속도 할 수 있을것 같은데,,

리눅스처럼 쓰려면 더 뭐가 필요하나요?? gcc, vi editor도 없어서 막 헤매고 있는데.. 그런 것들은 어떻게 구하나요?? ㅠㅡ 도와주세요..

  Hit : 12578     Date : 2012/01/26 12:56



    
Cruelant Apt-get 명령어 패키지 진짜 필수요 ㅋ
그거 있어야 gcc고 vi고 깔 수있음 ㅋ
2012/01/26  
volantrat 아이팟도 그런게 됬습니까 ㅋㅋㅋ
아 아이팟 끌린다.. 하지만 저는 근본이 리눅스인 안드로이드가 잇으니까 괘..괜찮다구욧 흥흥
2012/01/26  
phpmyadmin IOS도 데비안 계열이니까 apt-get같은걸로 패키지 까시면 될듯합니다.
http://yadong.tistory.com/124
2012/01/26  
별빛을담아 gcc를 설치해도 헤더파일이 ARM-CPU based Header라고 해서 stdio.h가 없답니다. ㄱ-

printf("Hello World"); 했는데 안된 1인 ㄱ-

파이썬은 있는데 안해봐서 모르겠네요;

그리고 gcc와 파이썬 다 아이팟1세대와 2세대용으로 알고 있어요
그 이후세대는 CPU가 교체되어서 안된다고 들었어요.
2012/01/27  
phpmyadmin @별빛을담아 전 4S사용자인데 cydia에서 gcc검색하면 fake-libgcc가 있습니다. 요즘엔 그거 깔면 관련된 패키지들도 같이 깔아주더군여ㅋㅋ..(fake-libgcc 포함, GNU C Compiler, iphone-gcc Headers)
실험삼아 helloworld printf로 출력하는것도 해봣는데 잘됩니다.
gdb도 깔아줬고 python도 깔립니다.
phpmyadmin:~ root# vim a.c
phpmyadmin:~ root# apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libffi libxml2 libxml2-lib
The following NEW packages will be installed:
libffi libxml2 libxml2-lib python
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.1MB of archives.
After this operation, 44.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://apt.saurik.com ios/675.00/main libxml2-lib 2.6.32-3 [1218B]
Get:2 http://apt.saurik.com ios/675.00/main libxml2 2.6.32-6 [90.6kB]
Get:3 http://apt.saurik.com ios/675.00/main libffi 130618-4 [15.0kB]
Get:4 http://apt.saurik.com ios/675.00/main python 2.5.1-5 [11.0MB]
Fetched 11.1MB in 24s (461kB/s)
Selecting previously deselected package libxml2-lib.
(Reading database ... 4470 files and directories currently installed.)
Unpacking libxml2-lib (from .../libxml2-lib_2.6.32-3_iphoneos-arm.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.6.32-6_iphoneos-arm.deb) ...
Selecting previously deselected package libffi.
Unpacking libffi (from .../libffi_130618-4_iphoneos-arm.deb) ...
Selecting previously deselected package python.
Unpacking python (from .../python_2.5.1-5_iphoneos-arm.deb) ...
Setting up libxml2-lib (2.6.32-3) ...
Setting up libxml2 (2.6.32-6) ...
Setting up libffi (130618-4) ...
Setting up python (2.5.1-5) ...
phpmyadmin:~ root# cat a.c
main()
{
printf("Hello World!\n");
}
phpmyadmin:~ root# gcc -o a a.c
a.c: In function 'main':
a.c:3: warning: incompatible implicit declaration of built-in function 'printf'
phpmyadmin:~ root# ./a
Hello World!
phpmyadmin:~ root# uname -a
Darwin phpmyadmin 11.0.0 Darwin Kernel Version 11.0.0: Tue Nov 1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X iPhone4,1 arm N94AP Darwin
phpmyadmin:~ root# python -c 'print "Hello World!\n"'
Hello World!

phpmyadmin:~ root# python
Python 2.5.1 (r251:54863, xx/xx/xx, xx:xx:xx)
[GCC 4.2.1 (Based on Apple Inc. build 5555)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

대신 버전이 낮습니다 ㅋ

[3]+ Stopped(SIGTSTP) python
phpmyadmin:~ root# gdb a
GNU gdb 6.3.50.20050815-cvs (Fri May 20 08:08:42 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=arm-apple-darwin9 --target="...Reading symbols for shared libraries ... done

(gdb) disas main
Dump of assembler code for function main:
0x00002224 <main+0>: push {r7, lr}
0x00002228 <main+4>: add r7, sp, #0 ; 0x0
0x0000222c <main+8>: ldr r3, [pc, #12] ; 0x2240 <main+28>
0x00002230 <main+12>: add r3, pc, r3
0x00002234 <main+16>: mov r0, r3
0x00002238 <main+20>: bl 0x2268 <dyld_stub_puts>
0x0000223c <main+24>: pop {r7, pc}
0x00002240 <main+28>: andeq r0, r0, r0, lsl #1
End of assembler dump.
생소한 asm이 보이는 gdb고여..

phpmyadmin:~ root# find / -name stdio.h
/private/var/stash/include.A0WfBg/stdio.h
stdio.h는 iphone-gcc Headers패키지에 포함되있는것 같네요.
2012/01/27  
wva11cdae 자///제가 총정리 해드리겠습니다... 여기에 올려져있는 게시물 중에서 OS 계보도를 검색해보세요. 아시다시피 Mac OS 시리즈는 Unix에서 파생되었고, Linux는 Unix를 본따서 만들었고... iOS는 데비안 계열같긴합니다만... (deb파일의 의혹) 그런데 iOS는 10.6 버전은 Snow Leopard에서 파생되었고.... 음;;; 조만간에 정리해서 올리도록 하죠. 2012/02/14  
wva11cdae http://www.hackerschool.org/Sub_Html/HS_Community/?Type=Board&BID=Free_Board 2012/02/14  
     [공지]해커스쿨 이용수칙 2021/04/11 수정판 [55] 한승재 01/05 12809
22019   해커구함     k1230
10/04 13
22018   카타고 AI[1]     해킹잘하고싶다
10/01 41
22017   시스코 라우터랑 스위치 케이블 장비 질문이에요.[1]     해킹잘하고싶다
09/22 110
22016   ㅇㅅㅇ     해킹잘하고싶다
08/15 293
22015   요즘 하고 있는 거     해킹잘하고싶다
07/13 502
22014   2위 ㅇㅅㅇ     해킹잘하고싶다
07/13 439
22013   ...     해킹잘하고싶다
03/31 832
22012   ...     해킹잘하고싶다
03/25 810
22011   15년전쯤 이 사이트 보고 꿈을 정했었는데~~~[1]     ambition65
03/20 1214
22010   으앙!!![1]     해킹잘하고싶다
02/05 952
22009   오랜만~     DarkSlayer
12/11 1151
22008   해커스쿨 옛날 BGM[1]     wkfhddl4041
11/07 1256
22007   히잉...     해킹잘하고싶다
11/02 1079
22006   바둑과 장기     해킹잘하고싶다
10/30 1165
22005   나는 언제 애인이 생기나욤...     해킹잘하고싶다
10/27 1243
22004   전국 1위     해킹잘하고싶다
10/27 1188
22003   담배 ㅋㅋ[1]     해킹잘하고싶다
10/27 1191
22002   매트릭스의 파란약을 아십니까..?     해킹잘하고싶다
10/27 1146
22001   ㅇㅇ[1]     해킹잘하고싶다
10/20 1111
1 [2][3][4][5][6][7][8][9][10]..[1101]

Copyright 1999-2026 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org