우선 파이썬 설치
How I did it (minus the dead ends and false starts)
- Downloaded the latest version of Redsn0w.
- Downloaded the iPod Touch 2G 4.2.1 firmware. (Thanks to k1ttyrain for the file.)
- Ran Redsn0w and went through the jailbreak process.
- Used Cydia to install OpenSSH, wget, BerkeleyDB, and SQLite 3. (I also installed screen so I could run my script and leave it running after ending my SSH session, but you don’t have to.)
- SSHed into my iPod.
- Changed my root password with passwd.
-
wget http://yangapp.googlecode.com/files/python_2.7.2-5_iphoneos-arm.deb
-
dpkg -i python_2.7.2-5_iphoneos-arm.deb
-
wget --no-check-certificate https://github.com/pypa/virtualenv/raw/develop/virtualenv.py
-
python virtualenv.py env
pip 커맨드가 env 디렉토리 안에 있다.
Cydia에 진입해서 소스를 하나 추가 한다.
http://www.insanelyi.com
이후 iphone-gcc-header를 설치한다.
Jin-won-ui-iPad:~/env root# ls -ail total 0 270895 drwxr-xr-x 5 root wheel 170 Feb 6 18:51 ./ 53 drwxr-xr-x 6 root wheel 476 Feb 6 18:53 ../ 270928 drwxr-xr-x 2 root wheel 442 Feb 6 18:53 bin/ 270926 drwxr-xr-x 2 root wheel 102 Feb 6 18:51 include/ 270896 drwxr-xr-x 3 root wheel 102 Feb 6 18:51 lib/ Jin-won-ui-iPad:~/env root#
Cydia에서 설치할 항목
1. touch-lighttpd-php-mysql
2. mysql
이후 /etc/lighttpd.conf 파일을 적당히 수정해 준다.