爱折腾 - 我的第1代iPad

硬件 : iPad 1
系统 : iOS 5.1.1
内存 : 1 G
硬盘 : 16 G
已经越狱

安装 openssh ,方便远程访问

安装 iTerm 方便通过蓝牙键盘访问 shell

找到并安装了以下软件

# dpkg -l

+++-================================-================================-================================================================================
ii  adv-cmds                         119-6                            finger, fingerd, last, lsvfs, md, ps
ii  app.weiphone.appstoreacceleratio 1.2                              可大大加速AppStore的下载速度的插件
ii  app.weiphone.myaipad.appleassist 1.2.1                            软件目录,搜索,下载,安装,分享,让大家享受免费好用的软件!
ii  app.weiphone.tonyli.lunarcalenda 1.0.7-1                          A chinese calendar widget for the notification center!
rc  app.weiphone.us.hackulo.appsync4 1.1-5                            ipa破解补丁,ipad2 破解可用(4.3.1~4.3.3)
ii  app.weiphone.us.hackulo.appsync5 2.2                              AppSync是允许您安装破解软件的补丁
ii  app.weiphone.wecydia.icons       1.2                              一款给威锋分享源图标分类的插件
ii  apr                              1.3.3-4                          platform abstraction library from Apache
ii  apr-lib                          1.3.3-2                          just the /usr/lib folder from APR
ii  apr-util                         1.2.12-5                         data structures and utilities for Apache APR
ii  apt                              1:0-23                           any advanced packaging tool from Debian
ii  apt7                             0.7.25.3-8                       the advanced packaging tool from Debian
ii  apt7-key                         0.7.25.3-3                       repository encryption key management tool
ii  apt7-lib                         0.7.25.3-14                      the advanced packaging library from Debian
ii  aptitude                         0.4.11.11-6                      advanced command-line APT frontend
ii  base                             1-4                              underlying system directory structure
ii  bash                             4.0.44-15                        the best shell ever written by Brian Fox
ii  berkeleydb                       4.6.21-5                         Oracle's embeddable database engine
ii  bzip2                            1.0.5-7                          compression that's slightly better than gzip
ii  com.chpwn.weeloader              1.4-4                            Weeeeeeeeeee! Load Wee apps safely.
ii  com.chronic-dev.greenpois0n.rock 1.0-3                            untethered jailbreak based on pod2g and planetbeing exploits
ii  com.conradkramer.open            1.1.1-1                          launch apps from the command-line
ii  com.saurik.substrate.safemode    0.9.5000                         safe mode safety extension (safe)
ii  com.sinfuliphone.ifile           2.2.0-1                          A File Manager and Viewer.
ii  com.sinfuliphone.repoprep        4.5                              Cydia Icons for the SiNfuL iPhone Repo Source
ii  com.teiron.pphelper              0.990                            最强的中文苹果设备助手,软件,游戏,铃声,壁纸....强大�
rc  com.teiron.pphelperns            3.1.0                            完美兼容iOS8.4越狱的苹果助手应用。
ii  coreutils                        8.12-12p                         core set of Unix shell utilities from GNU
ii  coreutils-bin                    8.12-9                           just the /bin folder from GNU coreutils
ii  csu                              232-2                            library loading and support stubs
ii  curl                             7.33.0-9                         flexible multi-protocol file transfers
ii  cwidget                          0.5.8-2                          C++ library for ncurses (terminal) UIs
ii  cy+cpu.arm                       0                                virtual CPU dependency
ii  cy+kernel.darwin                 11.0.0                           virtual kernel dependency
ii  cy+lib.corefoundation            690.10                           virtual corefoundation dependency
ii  cy+model.ipad                    1.1                              virtual model dependency
ii  cy+os.ios                        5.1.1                            virtual operating system dependency
ii  cydia                            1.1.26                           graphical iPhone front-end for APT
ii  cydia-lproj                      1.1.12                           languages and translations for Cydia
ii  darwintools                      1-5                              startupfiletool, sw_vers
ii  debianutils                      3.3.3ubuntu1-1p                  pretty much just run-parts. yep? run-parts
ii  developer-cmds                   48-2p                            ctags, error, hexdump, rpcgen, unifdef
ii  diffutils                        2.8.1-6                          compare two files for differences
ii  diskdev-cmds                     421.7-4                          mount, quota, fsck, fstyp, fdisk, tunefs
ii  dpkg                             1.14.25-9                        package maintainance tools from Debian
ii  expat                            2.0.1-3                          stream-oriented XML parser written in C
ii  file                             4.23-3                           guesses the type of a file from contents
ii  file-cmds                        220.7-3                          chflags, compress, ipcrm, ipcs, pax
ii  findutils                        4.2.33-6                         indexes and searches filesystems
ii  firmware                         5.1.1                            almost impressive Apple frameworks
ii  firmware-sbin                    0-1                              represents Telesphoreo / iPhoneOS conflicts
ii  fixcydiakeyboard.178             1.0                              该补丁用于解决在cydia 无法使用中文搜索,或者ios5 添加源 �
ii  gawk                             3.1.6-2p                         GNU's heavy-weight implementation of awk
ii  gettext                          0.17-7                           internationalization helper for strings
ii  git                              2.2.0-4                          fast content-addressable filesystem
ii  gnupg                            1.4.8-4                          older encryption compatible with OpenPGP
ii  grep                             2.5.4-3                          searches files for regular expressions
ii  gsc.720p                         1                                virtual GraphicsServices dependency
ii  gsc.accelerometer                1                                virtual GraphicsServices dependency
ii  gsc.accessibility                1                                virtual GraphicsServices dependency
ii  gsc.additional-text-tones        1                                virtual GraphicsServices dependency
ii  gsc.all-features                 1                                virtual GraphicsServices dependency
ii  gsc.app-store                    1                                virtual GraphicsServices dependency
ii  gsc.application-installation     1                                virtual GraphicsServices dependency
ii  gsc.armv6                        1                                virtual GraphicsServices dependency
ii  gsc.armv7                        1                                virtual GraphicsServices dependency
ii  gsc.bluetooth                    1                                virtual GraphicsServices dependency
ii  gsc.displayport                  1                                virtual GraphicsServices dependency
ii  gsc.encrypted-data-partition     1                                virtual GraphicsServices dependency
ii  gsc.fcc-logos-via-software       1                                virtual GraphicsServices dependency
ii  gsc.gamekit                      1                                virtual GraphicsServices dependency
ii  gsc.gas-gauge-battery            1                                virtual GraphicsServices dependency
ii  gsc.h264-encoder                 1                                virtual GraphicsServices dependency
ii  gsc.hardware-keyboard            1                                virtual GraphicsServices dependency
ii  gsc.homescreen-wallpaper         1                                virtual GraphicsServices dependency
ii  gsc.hw-encode-snapshots          1                                virtual GraphicsServices dependency
ii  gsc.international-settings       1                                virtual GraphicsServices dependency
ii  gsc.io-surface-backed-images     1                                virtual GraphicsServices dependency
ii  gsc.ipad                         1                                this device has a very large screen
ii  gsc.load-thumbnails-while-scroll 1                                virtual GraphicsServices dependency
ii  gsc.location-services            1                                virtual GraphicsServices dependency
ii  gsc.magnetometer                 1                                virtual GraphicsServices dependency
ii  gsc.microphone                   1                                virtual GraphicsServices dependency
ii  gsc.multitasking                 1                                virtual GraphicsServices dependency
ii  gsc.multitasking-gestures        1                                virtual GraphicsServices dependency
ii  gsc.multitasking-gestures-defaul 1                                virtual GraphicsServices dependency
ii  gsc.music-store                  1                                virtual GraphicsServices dependency
ii  gsc.not-green-tea                1                                virtual GraphicsServices dependency
ii  gsc.opengles-1                   1                                virtual GraphicsServices dependency
ii  gsc.opengles-2                   1                                virtual GraphicsServices dependency
ii  gsc.peer-peer                    1                                virtual GraphicsServices dependency
ii  gsc.photo-stream                 1                                virtual GraphicsServices dependency
ii  gsc.ringer-switch                1                                virtual GraphicsServices dependency
ii  gsc.stand-alone-contacts         1                                virtual GraphicsServices dependency
ii  gsc.tv-out-crossfade             1                                virtual GraphicsServices dependency
ii  gsc.tv-out-settings              1                                virtual GraphicsServices dependency
ii  gsc.voip                         1                                virtual GraphicsServices dependency
ii  gsc.wifi                         1                                virtual GraphicsServices dependency
ii  gsc.wildcat                      1                                this device has a very large screen
ii  gsc.youtube                      1                                virtual GraphicsServices dependency
ii  gsc.youtube-plugin               1                                virtual GraphicsServices dependency
ii  gzip                             1.6-7                            the standard Unix compression algorithm
ii  iphone-gcc                       4.2-20080604-1-8                 a native c compiler _on_ the phone
ii  ldid                             1:1.2.1                          pseudo-codesign Mach-O files
ii  less                             418-3                            provides less information than more does
ii  libffi                           1:3.0.10-5                       dynamic generation of function calls
ii  libgcc                           4.2-20080410-1-6                 core library used by everything
ii  libhide                          2.4.1-1                          Library to hide icons.
ii  libpcap                          1.0.0-4                          low-level network capture library
ii  libsigc++                        2.2.3-4                          callback framework for C++
ii  libxml2-lib                      2.6.32-3                         represents the library for libxml2
ii  lsof                             33-4p                            shows what files programs have open
ii  lzma                             4.32.7-5                         slower, but better, compression algorithm
ii  make                             3.81-2p                          dependency-based build environments
ii  mobilesubstrate                  0.9.6101                         powerful code insertion platform
ii  ncurses                          5.7-15                           feature-complete terminal library
ii  neon                             0.26.4-4                         HTTP and WebDAV client library
ii  netcat                           0.7.1-2p                         simple socket manipulation tool
ii  network-cmds                     307.0.1-7                        arp, ifconfig, netstat, route, traceroute
ii  nmap                             5.00-6                           analyze and scan remote network hosts
ii  odcctools                        286-8                            linker and assembler for the iPhone
ii  openssh                          6.7p1-12                         secure remote access between machines
ii  openssl                          0.9.8zg-13                       SSL library and cryptographic tools
ii  org.thebigboss.customwidgeticons 1.1                              icons support for NotificationCenter plugins
ii  org.thebigboss.repo.icons        1.0                              locally cached package icons from BigBoss
ii  p7zip                            4.57-3p                          claims to be a good compressor
ii  pam                              32.1-4                           pluggable (comples) authentication modules
ii  pam-modules                      36.1-5                           standard Apple authentication modules
ii  pcre                             8.30-6                           Perl-compatible regular expressions
ii  preferenceloader                 2.2.3-3                          load preferences in style
ii  profile.d                        0-2                              makes packaging for /etc/profile reasonable
ii  pstree                           2.35-1                           process forests are hard to see for the trees
ii  python.178                       2.7.3-6                          翻墙所需核心插件。
ii  readline                         6.0-8                            command-line history management
ii  rsync                            3.0.5-3                          synchronize files between computers
ii  rtadvd                           307.0.1-2                        "mistakes were made" (on iOS 8)
ii  screen                           4.0.3-4                          multiplexes a terminal into many
ii  sed                              4.1.5-7                          edits streams of text using patterns
ii  shell-cmds                       118-7                            killall, mktemp, renice, time, which
ii  sqlite3                          3.5.9-13                         embedded database used by iPhoneOS
ii  sqlite3-lib                      3.5.9-2                          represents the library for SQLite
ii  subversion                       1.4.6-2p                         modern version control system
ii  system-cmds                      433.8-14                         iostat, login, passwd, sync, sysctl
ii  tar                              1.19-8                           tool for making tape archives
ii  top                              39-4                             at-a-glance process watching tool
ii  uikittools                       1.1.11                           UIKit/GraphicsServices command line access
ii  unrar                            3.6.8-2p                         de-compresses files in rar format
ii  unzip                            5.52-5p                          de-compesses files in zip format
ii  uuid                             1.6.0-2p                         universally unique identifiers
ii  vim                              7.1-3p                           the best syntax highlighter, ever
ii  wget                             1.16-4                           simple HTTP file transfer client
ii  yuantubiao.178                   2.2                              源图标是用来显示178每个分类下左侧logo的,让您浏览软件时�
ii  zip                              2.32-5p                          standard Windows compression tool
ii  zsh                              4.3.10-4                         a shell with interactive features

个人觉得很有用的包括

wget , curl , zsh , vim , ssh , svn , git 都已经正常使用

基本上可以做为一个远程终端来进行应急使用了。

======================================

今天 主要是折腾了一下 gcc

参考了以下两篇文章的介绍
使用GCC在iOS 4(iPhone)上编译C程序
iOS系统安装gcc

顺便弄了一个 vim 配置

参考

// 用来测试的 c 源码
#include <stdio.h>

int main() {
    printf("hello world\n");
    return 0;
}

命名为 hello.c ,然后

gcc hello.c -o hello

ldid -S hello

./hello

就能看到结果了!

======================================

@TODO : 待解决的问题

  1. vim 编辑时,utf-8的中文显示不好

  2. 有些无 deb 源的软件编译时不能正常进行,缺少相关的依赖

hits 编译时,需要进行交叉编译

./configure --build=$MACHTYPE --host=arm

但是在编译 htop 时遇到 缺少 libm 的报错。无法继续


@UPDATE : 2015-11-10

不纠结了,随身带的办公本已经搞定。

老婆:双 11 你想要买啥?

我:想要一个,有手写功能的,轻便易用的平板。最好是 Windows 系统的。

老婆:别买了。苏菲3 你用吧。
去看双12时,送给老婆大人的 苏菲,她给我用了。至此,不再折腾我的 iPad 了。就让它成为一个回忆好了。没事看看网页也是好的。

赞赏