Archive for December, 2013


On my last Slackware Linux installation attempt I faced a tricky situation. Everything went fine (with some exceptions at start) up until the time I had to install LILO. The symptom was that the installation simply hanged but otherwise the system was responding. The problem was in fact with LILO and my 3TB drive which was in /dev/sdb and was not the drive I was using for my root partition. This drive had a NTFS partition. If this is your case then do the following. Let Slackware finish the installation up until the part you need to install LILO. At this point exit the installation process (do not reboot!) and run

I assume you are using /dev/sda1 as the partition you are installing Linux on, if not, then replace it with the appropriate one. Your root is now the same as if you had booted your new operating system. Now it is time to reconfigure LILO. For that open /etc/lilo.conf with your favorite console editor (vim, nano, etc). Add the following line to your lilo.conf file

You can add each one of these lines for each drive you don’t want LILO to scan. For example, all drives which do not contain an operating system installed on them are good candidates to be flagged inaccessible. Now install lilo by running:

That’s it! Reboot and your system should be working properly.

Recently, I’ve been playing Magic the Gathering after having last played it in 1998. I heard about this program called ‘cockatrice’ to test my decks, but couldn’t compile it on my Xubuntu 13.10 desktop. Finally I found out I could do it with the ‘clang’ compiler.

Here’s how to compile and install it:

Simply open a terminal (Ctrl + Alt + T) and copy a execute each command:

If you need the cards list or Windows/Mac binaries, go to Woogerworks.

I work at a company where we still have an authenticated HTTP proxy in place. It’s very boring having to config every new program I install which doesn’t support the http_proxy, https_proxy environment variables by hand.

I was playing with my Android phone and there’s an application called ProxyDroid, which I use, that proxifies all installed apps transparently. I decided to replicate this on my Xubuntu platform, but it should work on every Ubuntu/Debian variant.

First, we need to install the required packages:

Now we will configure redsocks, which redirects connections to a set of defined proxies. I have only an HTTP/HTTPS proxy at work, so I edited the ‘/etc/redsocks.conf’ file with this info:

Do a ‘sudo service redsocks restart’ to reload the config file.
Now, we must configure the iptables rules to use our redsocks server.

First we added a new chain called ‘REDSOCKS’ to the ‘nat’ table.
Next we used “-j RETURN” rules for the networks we don’t want to use a proxy.
We then told iptables to redirect all port 80 connections to the http-relay redsocks port and all other connections to the http-connect redsocks port.
Finally we tell iptables to use the ‘REDSOCKS’ chain for all outgoing connection in the network interface ‘eth0’.

This configuration is not persistent between boots. To do that we just use:

And there you have it, your own ProxyDroid (albeit a little more silent :D). Don’t forget to disable your proxy configurations afterwards to “use no proxy” and delete your proxy environment variables.

I was trying to install Linux Slackware 14.1 on my PC, which has a P7P55 motherboard and Marvell PCIe SATA 6Gb/s controller. I had my SATA disks connected to the Marvell controller but the boot disk was not detecting them. The problem was that the module is not loaded by default due to some regression issues. In order to solve this you need to make sure the BIOS has the Marvell controller set to use AHCI. For that:

  1. Reboot your PC and press DELETE in order to enter the BIOS management tool
  2. Go to the Advanced tab and enter the Onboard Devices Configuration section.
  3. Go down to the Marvell SATA Controller, press Enter and select AHCI mode.
  4. Press F10 to save and quit.

Make sure you have your Installation CD/DVD or USB flash drive plugged in when the computer reboots.

When you boot your Installation disk do not press enter to boot the default kernel image. You now need to enable the ahci.marvell_enable kernel boot option. For Slackware simply type the following when the installation disk boot prompt pops up:

  • huge.s ahci.marvell_enable=1

That’s it! When linux finishes booting you now should see your disks under /dev/sdXyy. Continue installing your Linux system as usual.

Meteos Menu

Meteos Menu

Hello! Here it is, another tutorial for your Zopo C3 smartphone. This one is on increasing your internal memory storage size. The Zopo C3 has 16GB internal memory but only 1.4GB are used as internal phone storage for applications, so today we’ll increase that.

  • First you’ll need root access (Tutorial).
  • Next you’ll need to install a functioning recovery tool like Clockwork Mod (Tutorial).
  • Download this util called Meteos, which is an util in english (rare thing not to be in chinese :D) to be able to resize your storage easily. There’s another method which involves hex editing the Zopo ROM, but this one is easier.

Let’s start:

  • Install the Meteos app.
  • Boot your phone into recovery mode (Power button + Volume up, release only the power button when the logo appears).
  • Make a nandroid backup to your EXTERNAL storage SD card. This is important as your internal storage will be erased.
  • Run Meteos and choose your new internal storage size.
  • Reboot into recovery mode again and restore your backup

That’s it. Have fun installing everything available in the Play Store now. 😛

Vote for Team iTravey

Hi guys, no technical posts today. 🙂 I’d like to ask you to vote for team iTravey, of which I’m part, for the Global Startup Battle 2013 (#GSB2013) in the champions circle (we are the portuguese winning team).

Instructions here: iTravey Facebook

The voting ends the 7th December so, if you like our project, vote quickly and spread the word. Help the project get to the next level. 🙂