Category Archives: Guides

Enabling Apache and PHP on Mac OS X (Lion)

1. Enabling Apache
By first, you will open the  menu, then open System Preferences -> Sharing and enable Web Sharing, customize the settings if you want to, after this you should get the default Apache index on http://localhost with “It’s working!”. Done, you got Apache working, but still no PHP.

2. Creating phpinfo
Open the terminal and write

cd Sites ; echo "<?php phpinfo() ?>" >> phpinfo.php

Save it and close the document, then try to open http://localhost/~yourusername/phpinfo.php and see what you just wrote on the document since Apache still doesn’t have PHP plugin enabled.

3. Enabling PHP
For the sake of simpleness, Apple shipped OS X with PHP (as with Apache), now you just have to enable it. Open the terminal and write

sudo nano /etc/apache2/httpd.conf

Then look for this line:

#LoadModule php5_module libexec/apache2/libphp5.so

and remove the hash symbol and save the document, then restart Apache with

sudo /usr/bin/apachectl restart

Refresh http://localhost/~yourusername/phpinfo.php and enjoy! :)

How to activate Windows XP

This one is very easy, just we need to play around with the registry editor.

1. Click on Run and type regedit, click enter
2. Look for “HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion
3. Click on “WPAEvents” and search for OOBETimer, right click on it, and modify the value to ”FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD”, without the quotation marks, click on Ok.
4. Now select the wpaevents folder, and deny all the permissions.

Enjoy your genuine Windows XP again. Btw, I don’t support piracy, is just for people that like me, got an old laptop and the serial got scratched.

Installing NVidia proprietary drivers under Debian based distros

By first, you need to download the following packages with the following command

apt-get install linux-headers-$(uname -r) gcc-4.4

Then download and give execution permissions to the NVIDIA binary driver — XServer must be down.

wget http://us.download.nvidia.com/XFree86/Linux-x86/275.28/NVIDIA-Linux-x86-275.28.run
chmod +x NVIDIA-Linux-x86-275.28.run
./NVIDIA-Linux-x86-275.28.run

Now just start the X server, enjoy!

Installing ROM’s at Droid X

This guide may apply for many other Android devices, but with different bootloaders. In this guide I will explain how to install the ROMs (without buying ROM Manager). First of all, you need to know if you are running Froyo or Gingerbread with Froyo Kernel or pure Gingerbread.

First of all, download ROM Manager (free version) and flash the recovery, selecting Droid X if you are running pure Froyo, if you are using Gingerbread use Droid2 Bootstrap, if you are running Cyanogenmod or MIUI (why are you reading this in first place?) select Droid X (2nd-init).

Then download the desired ROM to the sd-card of your phone.

MIUI 1.9.9 | Direct Download | Forum (for newer versions)
CyanogenMod7 Nightlies | Nightlies List
Liquid Gingerbread 08.06.11 | Direct Download | Forum (for newer versions)
ApeX 2.0.0 RC3 | Direct Download | Forum (for newer versions)
There are many more, check rootzwiki.com to know about them!

The problem of installing the ROMs in this way is that you need to manually update them (and check the forums often if there are updates). Open ROM Manager, and click on Install ROM from SD Card, select the zip of the ROM you are going to install – select data/cache wipe if is your first time moving to Gingerbread, if is just an update rom ROM v1.1 to V1.2 probably doesn’t need that (but it may! check the forums).

I personally use MIUI because it goes fast, totally renewed UI, and great battery life! :)

Configure LIRC to work with Windows Media Remotes

Configuring LIRC with a Windows Media Center Remote to work at Linux is easy and if you like seeing movies while you are at bed is just awesome, here an easy setup (ripped from mine old blog :) )

sudo apt-get install lirc lirc-modules-source module-assistant

Now on configuration

Windows Media Center Transceivers/Remotes (all) -> None -> DONE!

To test out the controller, is

irw

while doing this, click the keys in your controller and they will appear if it was detected correctly. Here, all were detected.

If you want to make it work with KDE and KDE apps,

apt-get install kdelirc

And configure the keys in System Settings.

Configuring a NTFS partition to be mounted at boot

Note: This might work on other distributions just installing the packages on their package managers or from source, however you want. Root password and access is required.

I been helping a friend to move into Debian Squeeze although this guide work on any I think, first of all, installing the packages, hopefully way less than any tutorial that I wrote at here.

apt-get install libfuse2 ntfs-3g

The second step is know where the NTFS partition is located, for that we will use

fdisk -l | grep NTFS

And it will output something similar to this

/dev/hdc1 * 1 9728 78140128+ 7 HPFS/NTFS

Now we know that the partition is located at /dev/hdc1, we will need to choose the path where we want it mounted, so we will create a nice folder on root ( /disk ) or on the home of an user ( /home/yourusernameathere/disk ), when we created the folder we will just add a line in /etc/fstab that will be like:

/dev/hdc1 /home/yourusernameathere ntfs-3g defaults 0 0

Was easy heh? :) Then just restart or do mount -a as root

Application alternatives

Often people just creates lists for replacing software from Windows to Linux or OS X, in this list I will write about Windows alternatives too! Enjoy!

Office suites
The most used is always Microsoft Office, why? Because it works actually very good! (and most of people use it, so we need to open it though the official suite to look it correctly). Although the licence costs are high and the pseudo-standards change way too much between versions, making impossible to look it correctly while not using the same version where it was made (or newer).

There are lot of alternatives, freeware, open source suites and other proprietary alternatives and the correct one for you depends on what you need, if you want a word processor, all of them will make the job correctly, if you want presentations probably you will like iWork and for spreadsheets Microsoft office is the only way.

Personally, I like Microsoft Office and KOffice (now Calligra both done by KDE.org guys). The freeware alternative is IBM Lotus Symphony, for open source is LibreOffice (based on the other open source OpenOffice.org) plus, this last is supported by the OpenDocument Foundation. If you want propietary software, Microsoft Office and iWorks (macfags will love) are the way, both are pretty nice BUT only works on OS X and Microsoft Windows. On Linux the way is LibreOffice if you need compatibility with Microsoft Office and you want a powerful office suite, and if you like Qt and KDE — i’m sure you want all your applications running under it, so KOffice (Calligra) is the way. If you want it to be multi-platform, plus cloud computing, Google Docs will do the job!

Music players
This part is the most conflicting to me. I love music, I need an equalizer but also I need that it works pretty fast with a very big music collection. The operating system that got lots of GREAT software for this is Linux. The selection of this will MOSTLY depends on that if you got an iPod or an iPhone. If you got one of this gadgets on Windows or OS X, the way is iTunes, if not, probably Foobar2000 (Windows) or Songbird (although both got iPod plugins, is not the same and we know that). If you’re running Linux, there are lot of options, but the better ones are Amarok, Banshee, Clementine (based on Amarok 1.6, works on OS X and Windows too) and Rhythmbox, all got iPod support.

Burning suites
Most of people uses Nero or Roxio software because always comes with the computer, the problem with this suites is that is pricey plus, bloated and slow. There are lot of superior alternatives, alike ImgBurn for Windows (which is very cheap), for OS X you don’t really need one if you know how to use Disk Utility, but there is SimplyBurns with is good and a BIG suite (alike Nero) that will do any kind of works with CDs, Toast. For Linux k3b is the only and best way!

Compressing software
Since lots of years ago (I think from Windows XP) Windows haves this feature already build-in, the same way on Mac OS X and unzip at Linux, but theres a lot of people that uses WinRAR to compress their stuff, for Windows theres a opensource alternative, 7z which (un)compresses RAR, Zip, plus 7z at Windows. For Linux and OS X you can install WinRAR command to the job, and for other kind of compressions there is tar!

Browser
This mostly is a personal election, just DO NOT USE INTERNET EXPLORER IF YOU ARE NOT USING IT TO DOWNLOAD ANOTHER BROWSER. Personally I like Opera and Chromium (Google Chrome). But there are other good alternatives like reKonq and Firefox. The final option will depend on the extensions you want.

Messaging and Videocalling
Sadly we need to use the protocol that other people use, and the most used ones nowadays are Windows Live Messenger and (worst thing ever) Facebook. But we can make our experience way more comfortable if you got the right applications. For Linux there are a lot of alternatives that got a plus, connecting with multiple accounts on different services at the very same time as Pidgin, Kopete and Emphaty and for the people that likes WLM-a-like GUI, there is KMess and Emesene. For Mac the best thing, and the one I use is Adium.

For videocalling there are not a lot of alternatives, the best one for me is Google Video Call which is way better than WLM. But if you want hi-res an application that lots of people uses, there is Skype. For conferences the best is Google+ Hangouts!

Mobile messaging and calling
I’m tired of Blackberry Messenger users! They thing that everyone needs an outdated phone with an outdated operating system (this is a personal opinion) but there are ways to communicate with other smartphones via messaging alike BBM. The one I use its Whatsapp which is multi-platform, but there is Google+ Huddle (Android and iOS), Pingchat (multi-platform).

Plus, for calling. There is Google Voice, Google Talk, Tango, Skype, Viber, this last one is the one I like. But just Tango, Google Talk and Skype got videocalling.

I think its all, if you want more just poke me at the commentaries and I’m writing other alternatives for different uses.

Setting up an Android environment at OS X

Hello, in this post I will explain how to setup an Android environment for developing-fun-curiosity-whateveryouwant at Mac OS X, with is quite VERY simple. This guide should work on the same in Windows and Linux but I am not sure.

By first you need to download the Android SDK for your platform: Mac OS X - LinuxWindows. (September 10, for newest click here)

After that you need to open the ‘tools’ executable (from the console) — this is only for OS X or Linux (not sure how at Windows). Then you get a window titled ‘Android SDK and AVD Manager‘.

Go to ‘Available packages’ to select the Android environment you will be using at Android Repository  (Froyo 2.2, Gingerbread 2.3.3, Honeycomb 3.2, w/e). At this very same tab you can also install (at Third party Add-Ons) the Google APIs alike Maps and Admob.

Now that you downloaded the environment that you desire, go to ‘Virtual Devices‘ tab, click on “New” button and proceed to assign a name to the device, which OS you will use, CPU/ABI, etc… then “Create AVD“. Now you are done! Just click Start while you have the desired device selected with blue :) .

Enjoy! — Today is the SuperHappyDevHouse at Xalapa, Mexico. We will be here about 12 hours of programming/learning/geek stuff – I am doing guides for this site, this is the first one. More to come!.

 

 

 

Instalar Gingerbread en Motoroi X con 3G

Cuenta de Paypal para donaciones: davidbarreda@gmail.com :)

Para proseguir con esta guia necesitas que tu celular este en el Froyo de Verizon (metiendole el SBF como lo indico en esta guia), tener el equipo con el bootstrap del Droid2 (NO EL DEL DROID X).

Primero que nada, pones el celular en modo de dispositivo de almacenamiento masivo, y le metes estos dos archivos (que son el GB oficial de Verizon)

Verizon Gingerbread – Parte 1  (Mirror 1)
md5sum: e5c5bb50cb8dfacb1c9d44df1f928297
101.3 MB (106262120 bytes)

Verizon Gingerbread – Parte 2  (Mirror 1)
md5sum: 87f8bd81e2d6520e9485c6a2c7b8b68f
file size: 12.9 MB (13533109 bytes)

Y este otro, que es el baseband de Iusacell (Mirror 1)

Reinicias en modo clockwork (con el bootstrap) y haces primero que nada un “wipe data/cache”. Le das donde dice “Install zip from sdcard” e instalas los 2 zip del Gingerbread de Verizon, despues, de nuevo haces el “wipe data/cache”, y SIN INICIAR EL TELEFONO, te vas a “Install zip from sdcard” de nuevo e instalas el baseband de Iusacell.

Reincias el telefono, y deberias de tener el Gingerbread funcionando. En caso de que no tengas linea, hago mencion de lo explicado en la guia anterior:

Al saltarte esa ventana, NECESITARAS el SPC de tu linea (te lo deben de dar en las lineas telefonicas o en el chat de Iusacell), ya con este dato llamaras a ##7764726 y escribiras “000000″ y entraras a “03 NAM extendido” donde iras hasta la parte de abajo donde editas el “SPC”, reemplaza el “000000″ con el numero que te dieron los de Iusacell aprieta el boton de “Listo” y al salir tu telefono se reiniciara. Al encender llama a el *228 y activa tu celular con la opcion 1 – 2 – 1 si es con plan, y con la opcion 1 – 3 si es prepago. Tu telefono ya debera tener linea y 3G en este momento (en caso de que lo tengas contratado). En caso de que no (que no creo que suceda), vuelve a marcar a el *228 y y ve a la opcion 1 – *1 te pedira la version de PRL que quieres descargar, trata con 350, 370 y 238 hasta que te funcione.

Gracias a Jamoncillo por explicar como hacerlo en los comentarios del post anterior, espero y poniendolo aqui mas gente pueda verlo.

Convertir Motorola Droid X en MotoroiX de Iusacell

This guide is made in Spanish since is made for Mexicans :)

Como algunas personas ya saben, el MotoroiX es la version Mexicana de el telefono Droid X de Motorola. En Mexico esta exclusivo con Iusacell y apesar de ser el modelo mas nuevo que tenemos por aqui, la version Mexicana carece de algunas actualizaciones (y ademas, de versiones para flashear filtradas recientes) por lo tanto al flashearlo con una version con un bootloader mas reciente puede ser un dolor de cabeza, ya que no podemos instalarlo con el unico SBF que hay disponible de Iusacell porque se “blickea” y si volvemos a alguna version filtrada de Verizon, es un desmadre hacerlo funcionar sobre la red de 3G de Iusacell.

Manos a la obra

 

1. Para tu DroidX o MotoroiX
1.1 Descargas

Nota: Los espejos son los archivos originales y tienen nombres de archivos diferentes a los de la guia.
Nota 2: Talvez sea posible usar solo la parte del baseband para funcionar bajo Iusacell, pero la guia es para dejarlo como te lo dieron en IUSA.

Primero que nada, flasheas el telefono con el procedimiento que sea para tu sistema operativo – abajo – (2.2 o 3.2), ya que tienes el telefono como nuevo, tienes que rootearlo (permanentemente). Instala el z4root en tu celular, y rootea el dispositivo con esta aplicacion, el telefono se reiniciara. Ahora instala el Droid X Bootstrap ya sea con el APK y comprandolo en el Android Market.

Ahora crea desde tu computadora crea la carpeta “clockworkmod” en tu sdcard, dentro de esta la carpeta “backup” y alli extrae la carpeta llamada “iusa-BMRS-20100708-0124″ (que esta en el zip “MotoroiX_Nandroid_backup.zip”) de tal manera que el directorio quede de la siguiente manera: /sdcard/clockworkmod/backup/iusa-BMRS-20100708-0124 y tambien copia (pero sin extraer) el “MotoroiX_Iusacell_baseband.zip” a /sdcard .

Abre la aplicacion Droid X Bootstrap y selecciona “Bootstrap Recovery” seguido por “Reboot Recovery” el telefono se reiniciara en modo “Bootstrap” donde vas a darle donde dice “Backup and Restore” (algo asi) y de alli le daras Restore Backup y seleccionaras “iusa-BMRS-20100708-0124″. Cuando esto termine, vas a darle a una opcion que creo que dice “Install .zip file from sdcard” (algo similar) y vas a buscar “MotoroiX_Iusacell_baseband.zip”.

Despues de esto le das donde dice “Reboot system now” tu telefono iniciara en esta ventana, que te saltaras con el siguiente movimiento sobre la pantalla tactil

Al saltarte esa ventana, NECESITARAS el SPC de tu linea (te lo deben de dar en las lineas telefonicas o en el chat de Iusacell), ya con este dato llamaras a ##7764726 y escribiras “000000″ y entraras a “03 NAM extendido” donde iras hasta la parte de abajo donde editas el “SPC”, reemplaza el “000000″ con el numero que te dieron los de Iusacell aprieta el boton de “Listo” y al salir tu telefono se reiniciara. Al encender llama a el *228 y activa tu celular con la opcion 1 – 2 – 1 si es con plan, y con la opcion 1 – 3 si es prepago. Tu telefono ya debera tener linea y 3G en este momento (en caso de que lo tengas contratado). En caso de que no (que no creo que suceda), vuelve a marcar a el *228 y y ve a la opcion 1 – *1 te pedira la version de PRL que quieres descargar, trata con 350, 370 y 238 hasta que te funcione.

2. Windows
2.1 Descargas

2.2 Procedimiento a seguir

Instala todo lo que descargaste, inicia el telefono en modo de diagnostico (dando click en el boton de la camara, en el boton superior y en el boton de subir volumen al mismo tiempo durante el encendido). Extrae el “Verizon_Android_221_Version_23340_Full.zip”, quedara un .SBF. Ahora abre el RSD Lite, selecciona tu celular y pon que carge el SBF extraido, espera un rato en lo que se flashea y sigue con el procedimiento de arriba. (Asegurate de tener tu bateria cargada a el 100% ya que no se carga cuando esta en modo de diagnostico)

3. Linux y Mac OS X
3.1 Descargas

3.2 Procedimiento a seguir

Inicia el telefono en modo de diagnostico (dando click en el boton de la camara, en el boton superior y en el boton de subir volumen al mismo tiempo durante el encendido). Extrae el “Verizon_Android_221_Version_23340_Full.zip”, quedara un .SBF. Ya que descargaste el sbf_flash (un ejecutable) dale permisos de ejecucion (chmod 777 sbf_flash), despues como root ejecutalo de la siguiente manera: ./sbf_flash nombredelsbf.sbf (en algunas distribuciones se agrega sudo para iniciar como administrador el programa). Espera un rato en lo que se flashea y sigue con el procedimiento de arriba. (Asegurate de tener tu bateria cargada a el 100% ya que no se carga cuando esta en modo de diagnostico)

4. Agradecimientos

A la xda-developers por z4root y Bootstrap X. smathieson de PoderPDA por haber sido cuidadoso y haber hecho un backup de su sistema antes de probar cualquier otra cosa el nandroid backup y el baseband, mil gracias!, a Karkul y a Sargate por resolver algunas dudas cuando las tuve. Y por ultimo a Gustavo Guzman (CEO de Iusacell) por haber respondido mi correo (a su email personal) de ayuda con soporte telefonico por medio de algun asistente para resolver mi problema (que ya no fue necesario gracias a smathieson) pero como quiera, es un gran gesto que te den esta atencion.

5. Los causantes del problema

Primero que nada a Motorola por su bootloader encriptado que no nos deja hacer las cosas que serian lo mejor para todos, flashear un simple SBF viejo. Y luego a Iusacell por varias razones, por no proveer el SBF (que tambien puede ser culpa de Motorola) reciente, por no contar con el personal con conocimiento necesario en sus sucursales.

Disclamer: Al seguir esta guia lo estas haciendo bajo tu propia responsabilidad y no se ofrece ninguna garantia de que funcione.