Archive for utility

Personalize your $PS1

My $PS1 Variable
Mine looks like this.
A very patriotic one, isn’t it? ;)

The code to make the Bash prompt looks like mine is (~/.bashrc):

case $TERM in
	xterm*|rxvt*)
		TITLEBAR='[\033]0;\u@\h:\w\007]'
		;;
	*)
		TITLEBAR=""
		;;
esac;

PS1="${TITLEBAR}\n[\033[0;0m][\033[0;32m]time: \
[\033[0m][\033[1;31m]\t[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]host: [\033[0m]\
[\033[1;31m]\h[\033[0m][\033[0;0m]]-\
[[\033[0m][\033[0;32m]user: [\033[0m][\033[1;31m]\u\
[\033[0m][\033[0;0m]]-[[\033[0m][\033[0;32m]bash: \
[\033[0m][\033[1;31m]\v[\033[0;0m]]\n\
[\033[0;0m][[\033[0;32m]cwd: [\033[0m][\033[1;31m]\w\
[\033[0m][\033[0;0m]]# "

Thanks to Bash Prompt HOWTO.

Put this post/page on your Social Bookmarking System

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • YahooMyWeb
  • Ma.gnolia
  • blogmarks
  • BlinkList
  • co.mments
  • Shadows
  • Furl
  • Digg
  • Google
  • Live
  • Reddit
  • Slashdot

Loop Rebooting iPhone: how to fix it

I was playing with my Jailbroken iPhone when I decided to install OpenSSH and login. 1 minute after I discovered there is a password I should use to login:

  • for user root is alpine
  • for user mobile is dottie

After I connected to my loved iPhone trough SSH (don’t be impatient: it takes a minute or two for it’s ARM cpu to generate the Keys), I changed straightaway the password for both the above named users (using just passwd).

That practically screwed my Apple jewel: as soon as rebooted it entered in a “Loop Rebooting” status, that made it impossible to use.
Why? Because, of course, it’s a Unix system, and the Graphical Interface itself (and I’m sure also other applications) need to “log-in” in the system. Changing the password in the “normal way” made an un-fixable mess.

So, how to fix this? Simple! Just reset the Phone.
The steps to follow are:

  1. Connect your phone to the Mac/WinPC you last synched it
  2. Hold down the top right button [SCREEN-LOCK button] and the round bottom middle button [HOME button] for about 10 seconds waiting for the screen to turn off
  3. When the screen turn off, release ONLY the top right button and continue to hold until iTunes recognize it and put it in Recovery Mode
  4. Follow the iTunes instruction to Recover it
  5. Note that iTunes will also ask if you want to restore iPhone in the status it was at the last Sync or just clean it completelly (thanks Apple to be so Great!)

Now my iPhone can be Jailbroken, again! ;)

Put this post/page on your Social Bookmarking System

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • YahooMyWeb
  • Ma.gnolia
  • blogmarks
  • BlinkList
  • co.mments
  • Shadows
  • Furl
  • Digg
  • Google
  • Live
  • Reddit
  • Slashdot

iSync and SonyEricsson Symbian/UIQ 3.0 finally speaking

W950i
Thanks God, now I can iSync!!!

As someone probably remember, I switched from an Nokia E70 to a Sony Ericsson W950i.

In the beginning, it was not possible to synchronize my iBook with my new smarth-phone because of a “strange” implementation of the SyncML protocol on Sony Ericsson/UIQ 3.0 phones.

A lot of people has tried to figure out how to do it (Google for it), failing! But now Sony_Ericsson has finally released the relative plugins:

Enjoy! ;-)


Update 15th August 2007: BTW, the plugins (I tested on only the one for W950i) doesn’t synchronize Tasks (Todos). I really don’t know why ( :?: ). But it’s already a good lip ahead.

Put this post/page on your Social Bookmarking System

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • YahooMyWeb
  • Ma.gnolia
  • blogmarks
  • BlinkList
  • co.mments
  • Shadows
  • Furl
  • Digg
  • Google
  • Live
  • Reddit
  • Slashdot