Friday, December 3, 2010

Pakai ban ukuran berapa?

(Maaf - Saya lupa ngambil dari mana yg jelas bukan tulisan saya)
"Pakai ban ukuran berapa?," tanya penjaga toko ban. "15 dan lebar 195," jawab pemilik kendaraan.

Saturday, November 20, 2010

Monday, September 20, 2010

Remove Ikee Worm on Iphone

If you notice your battery suddenly drain sooo fast, and/or you found poc-bbot on process list (you can use "System Activity Monitor" to see the process list) thats mean your Iphone infected with Ikee Worm.

Instruction to delete the worm can be found at http://www.pcworld.com/businesscenter/article/182893/how_to_deworm_your_iphone.html or http://egyptianapple.com/?p=1742

My simple guidance:
Use DiskAid or Iphonebrowser to delete files below:
/bin/poc-bbot
/bin/sshpass
/System/Library/LaunchDaemons/com.ikey.bbot.plist
/var/lock/bbot.lock

If your background is changes too delete files below:
/var/log/youcanbeclosertogod.jpg
/var/mobile/LockBackground.jpg

restart Iphone

If that doesn’t do it, an alternate version of the ikee worm requires you to remove these files instead.
/usr/libexec/cydia/startup
/usr/libexec/cydia/startup.so
/usr/libexec/cydia/startup-helper
/System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist
If you removed the above four files, you’ll have to reinstall Cydia.

And the most important thing after install Cydia and openSSH don't forget to change root password!! using pTerm.

iPhone Process List

The belows are iPhone process list, you can check them one by one for disable or enable these iPhone Service or not.

Launchd: takes over many tasks from cron, xinetd, mach_init, and init, which are UNIX programs that traditionally have handled system initialization, called systems scripts, run startup items, and generally prepared the system for the user. (do not close)

TQServer: Net Long Company PC Suit daemon (recommend not to close it)

BTServer: Bluetooth Service (BlueTooth) (in my environment with the dock, turn it off iphone not responding)

CommCenter: Communications Center (phone system) (do not close)

configd: to automatically configure and maintain the network (do not close)

cron: regularly scheduled command or script execution (alarm clock might use it, recommend not to close it)

mDNSResponder: Multicast-DNS Responder daemon. (Do not turn off)

lockdownd: so that iPhone can use other SIM card (do not close)

ptpd: the process of connecting itunes (do not close)

fitx: WeFIT Input Method (not recommended to be closed)

mediaserverd: (system sounds) (do not close)

notifyd: inter-process communication (do not close)

SpringBoard: Springboard is no better explanation in English, if you used the installer or ibrickr install a third-party software, you will find the middle of the screen there is a circular symbol loader, and then immediately return to the standby screen iPhone , then this is a Springboard restart the process (do not close)

MobilePhone: I need not explain this right (do not close)

sshd: ssh daemon (you can close it)

crashreporterd: test application crashes the daemon. (Recommend to close)

dock: dock the software process (you decide to use or not)

iapd: ipod is the iphone and other Apple products using a communication protocol, the purpose is to allow other third-party devices such as communication equipment and iphone. (Recommended closure)

syslogd: recording system error logs and status messages (recommend to close)

update: time to refresh the file system cache to prevent data loss caused by system crash (recommend to close). If you want to manually sync the file system cache, in text mode (ssh to connect to the iphone), implementation of the sync command.

crashreporterd, iapd, syslogd, update service can be safely shut down and will not impact on the system. fitx memory for not a lot of information needs to hand in the hair starts, so I do not recommend turning off.

Wednesday, September 15, 2010

iPhone atau BB?

Keduanya adalah gadget yang canggih, tergantung dari si pengguna lebih milih yang mana.

iPhone lebih ke entertainment, games, didukung buanyaaak sekali aplikasi spt layaknya produk2 apple. Dari yg gratis dengan cacatan akan disusupi iklan2 yg mengganggu sampai yg harus bayar dengan full feature, juga ada. Semuanya harus dibeli via AppStore kecuali sudah dilakukan jailbreak shg memungkinkan agar 3rd party aplikasi yg tidak rekomended apple atau yang yg sudah di crack bisa running.
Kelemahannya adalah baterenya cepet habis (ios 3.1.3) terutama jika digunakan untuk 3d games, atau koneksi Internet dg 3g aktif, belum coba jika digunakan untuk play music or video.

Tambah lagi di negara kita dimana sinyal provider masih belum bagus, otomatis iPhone akan selalu search sinyal yg menyebabkan batere tmbh cpt drop.

Jika dibanding BB, koneksi internetnya tidak terenkripsi & tidak dikompres (Di BB ada BIS atau BES yang langsung konek ke server BB di california dg data terenkripsi & dikompres). Jadi kalo sinyal lagi jelek yaaa lemooot. 

Sebagai info tambahan saat ini jailbreak sudah legal di US meskipun apple tidak "senang" dengan keputusan ini, sehingga ios ios terbarunya pasti menutup celah agar tidak bisa dijailbreak.

Wednesday, August 11, 2010

Enabling and disabling services during start up in GNU/Linux

From: http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html


In any Linux distribution, some services are enabled to start at boot up by default. For example, on my machine, I have pcmcia, cron daemon, postfix mail transport agent ... just to name a few, which start during boot up. Usually, it is prudent to disable all services that are not needed as they are potential security risks and also they unnecessarily waste hardware resources. For example, my machine does not have any pcmcia cards so I can safely disable it. Same is the case with postfix which is also not used.

So how do you disable these services so that they are not started at boot time?

The answer to that depends on the type of Linux distribution you are using. True, many Linux distributions including Ubuntu bundle with them a GUI front end to accomplish the task which makes it easier to enable and disable the system services. But there is no standard GUI utility common across all Linux distributions. And this makes it worth while to learn how to enable and disable the services via the command line.

But one thing is common for all Linux distributions which is that all the start-up scripts are stored in the '/etc/init.d/' directory. So if you want to say, enable apache webserver in different run levels, then you should have a script related to the apache webserver in the /etc/init.d/ directory. It is usually created at the time of installing the software. And in my machine (which runs Ubuntu), it is named apache2. Where as in Red Hat, it is named httpd. Usually, the script will have the same name as the process or daemon.

Here I will explain different ways of enabling and disabling the system services.

1) Red Hat Method
Red Hat and Red Hat based Linux distributions make use of the script called chkconfig to enable and disable the system services running in Linux.

For example, to enable the apache webserver to start in certain run levels, you use the chkconfig script to enable it in the desired run levels as follows:

# chkconfig httpd --add# chkconfig httpd on --level 2,3,5This will enable the apache webserver to automatically start in the run levels 2, 3 and 5. You can check this by running the command:

# chkconfig --list httpdOne can also disable the service by using the off flag as shown below:

# chkconfig httpd off# chkconfig httpd --delRed Hat also has a useful script called service which can be used to start or stop any service. Taking the previous example, to start apache webserver, you execute the command:

# service httpd startand to stop the service...

# service httpd stopThe options being start, stop and restart which are self explanatory.


2) Debian Method
Debian Linux has its own script to enable and disable services across runlevels. It is called update-rc.d. Going by the above example, you can enable apache webserver as follows:

# update-rc.d apache2 defaults... this will enable the apache webserver to start in the default run levels of 2,3,4 and 5. Of course, you can do it explicitly by giving the run levels instead of the "defaults" keyword as follows:

# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .The above command modifies the sym-links in the respective /etc/rcX.d directories to start or stop the service in the destined runlevels. Here X stands for a value of 0 to 6 depending on the runlevel. One thing to note here is the dot (.) which is used to terminate the set which is important. Also 20 and 80 are the sequence codes which decides in what order of precedence the scripts in the /etc/init.d/ directory should be started or stopped.

And to disable the service in all the run levels, you execute the command:

# update-rc.d -f apache2 remove. Here -f option which stands for force is mandatory.

But if you want to enable the service only in runlevel 5, you do this instead:

# update-rc.d apache2 start 20 5 . stop 80 0 1 2 3 4 6 .

3) Gentoo Method

Gentoo also uses a script to enable or disable services during boot-up. The name of the script is rc-update . Gentoo has three default runlevels. Them being: boot, default and nonetwork. Suppose I want to add the apache webserver to start in the default runlevel, then I run the command:

# rc-update add apache2 default... and to remove the webserver, it is as simple as :

# rc-update del apache2To see all the running applications at your runlevel and their status, similar to what is achieved by chkconfig --list, you use the rc-status command.

# rc-status --all4) The old fashioned way

I remember the first time I started using Linux, there were no such scripts to aid the user in enabling or disabling the services during start-up. You did it the old fashioned way which was creating or deleting symbolic links in the respective /etc/rcX.d/ directories. Here X in rcX.d is a number which stands for the runlevel. There can be two kinds of symbolic links in the /etc/rcX.d/ directories. One starts with the character 'S' followed by a number between 0 and 99 to denote the priority, followed by the name of the service you want to enable. The second kind of symlink has a name which starts with a 'K' followed by a number and then the name of the service you want to disable. So in any runlevel, at any given time, for each service, there should be only one symlink of the 'S' or 'K' variety but not both.

So taking the above example, suppose I want to enable apache webserver in the runlevel 5 but want to disable it in all other runlevels, I do the following:

First to enable the service for run level 5, I move into /etc/rc5.d/ directory and create a symlink to the apache service script residing in the /etc/init.d/ directory as follows:

# cd /etc/rc5.d/# ln -s /etc/init.d/apache2 S20apache2This creates a symbolic link in the /etc/rc5.d/ directory which the system interprets as - start (S) the apache service before all the services which have a priority number greater than 20.

If you do a long listing of the directory /etc/rc5.d in your system, you can find a lot of symlinks similar to the one below.

lrwxrwxrwx 1 root root 17 Mar 31 13:02 S20apache2 -> ../init.d/apache2Now if I start a service, I will want to stop the service while rebooting or while moving to single user mode and so on. So in those run levels I have to create the symlinks starting with character 'K'. So going back to the apache2 service example, if I want to automatically stop the service when the system goes into runlevel 0, 1 or 6, I will have to create the symlinks as follows in the /etc/rc0.d, /etc/rc1.d/, /etc/rc6.d/ directories.

# ln -s /etc/init.d/apache2 K80apache2One interesting aspect here is the priority. Lower the number, the higher is the priority. So since the starting priority of apache2 is 20 - that is apache starts way ahead of other services during startup, we give it a stopping priority of 80. There is no hard and fast rule for this but usually, you follow the formula as follows:

If you have 'N' as the priority number for starting a service, you use the number (100-N) for the stopping priority number and vice versa.