Server Lock Example


If you want to use custom message on your iphone screen with Server Lock Example, here is how you do it. (My phone is 3G, firmware 2.2.1)

First download a Terminal app, then download vim (or any text editor). Assuming you have Winterboard and have Server Lock Example turned on, we are now ready to go!

Run Terminal, then
cd /Library/Themes/Server Lock Example.theme/

Run “ls -l“, you will see that there is a file called LockBackground.html. However it is owned by “root”, and you are “mobile”. So, let’s su as root then. The password is “alpine”.

Run “vim LockBackground.html“.

Here due to the limited keyboard, the arrows keys are gone along with other important keys such as the ESC key. Luckily I found ways around it. You will see this file:

<html><head>
</head><body style=”
padding: 0;
margin: 0;
“>

</body></html>

You can see that the message “This doesn’t really do anything yet, but it /did/ get loaded off the server ;P. (Awesome, huh?)” is from http://cydia.saurik.com/lock/. Well, what do you think? Change that link! 😉

Let’s just say you want to change that link to http://www.myWebsite.com/lock/, because this link will display something cool! (Or you can display some contact info in case you misplace your phone).

To move down, press “return“. When you get to that line, press space to move right. When you are on the letter “c”, press “x” to delete until you have “http://.com/lock&#8221;. Now press “i” to go into insert mode. Then type carefully “www.myWebsite”.

After that, you need to quit the insert mode. Poor me I couldn’t find the ESC key. But if you use your finger to press the terminal, a little keybad thing will show up. These are supposed to be command line shortcuts like grep, find, etc. I went to “find” and the find command typed out for me. So now for some reasons you are out of the insert mode, but with a find command. So, just “x” them until you have your “http://www.myWebsite.com/lock/&#8221;, see below.

<html><head>
</head><body style=”
padding: 0;
margin: 0;
“>

</body></html>

If you make too many typo, then trigger the find command, then type “:q!” to quit vim so that you can start over. Yeah, start over… ^^;

Once you are done, type “:wq” to save.

So there you have it. A custom message from your own server!

Thx to http://www.modmyi.com/forums/native-iphone-ipod-touch-app-discussion/349481-server-lock-screen-example-revealed.html and http://www.hackint0sh.org/forum/f127/1323.htm