Exploring iPhoneOS

Preparation:

  1. Jailbreak (blackra1n for 3.1.2)
  2. Install openssh, sudo, top
  3. Plug in (charging) to keep WiFi from going to sleep
  4. Ssh into it (username: mobile, default password: alpine)
  5. Change the default password immediately!!!

Some notes so far:

  • Your home directory: /var/mobile
  • Shell type: bash (configuration: /etc/profile)
  • Add yourself to /etc/sudoers
  • Change your prompt:
export PS1='\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m$ '
  • Advanced ls output:

alias ls='ls -FhlX --color=auto'
  • More doesn’t seem to work (/bin/more: fork: retry: Resource temporarily unavailable)
  • Some more customizations in /etc/profile.d: coreutils.sh and terminal.sh
  • Run updatedb

~ by azimout on October 30, 2009.

2 Responses to “Exploring iPhoneOS”

  1. this line
    export PS1=’\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m$ ‘

    should be

    export PS1=’\e[32;1m\u@\h\e[00m:\e[34;1m\w\e[00m\$ ‘

  2. @emre: actually, it works with or without the \ before the $ …

Leave a Reply