Ubuntu and Android SDK November 21st, 2009

If you are trying to install the latest (revision 3 at the time of this writing) SDK for Android in Ubuntu you may run into issues where the mouse may not be working or you can't install any packages.

You will get errors like "FAILED to fetch url https//..." plus a suggestion to force "http" in the settings.

But you can't get the settings to be saved!

It seems this is a known problem with GTK, so this one liner in the command line solved the problems for me and allowed me to save options when running the SDK:

export GDK_NATIVE_WINDOWS=true

Run the SDK again and you should be good to download and install the packages you need.

I was using Ubuntu 9.10 64-bits, but you should encounter the same issue if you are running 32-bits or other older version of Ubuntu.

Posted in | Comments(0)»

This is the card I have:

Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)

But since early stages of Jaunty I have not been able to use Compiz or any of the extra effects I was used to in Ubuntu 8.10

A bug (if you want some extra information) has been filed in Launchapd with number: 259385

But the bug above states a problem when installing. If you already have this installed you only need to comment out two lines in /usr/bin/compiz:

#T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12"  # intel 965
#T="$T 8086:2a02 " # Intel GM965

After this you should immediately be able to enable extra effects.

 

Let me rant once before anything else: "Network Manager SUCKS!"

After thinking that I may be having problem with my network speeds, or maybe a faulty wireless card, I tried WICD.

It absolutely ROCKS.

Before you needed to edit your sources.list to add a line for a repository but not anymore with Ubuntu 9.04. Just do:

sudo apt-get install wicd

And you are set.

But beware!: This will remove network-manager and restart your network connection.

You will find an entry in Applications => Internet => WICD T start configuring your connections.

Works like a charm, hope you find it as good as I do.

Posted in wireless | Comments(4)»

I have just finished creating a command line tool to find duplicates in your file system and generate a report to list the files or enter an interactive session to select what files to delete.

It uses the powerful sha-224 to create checksums of the files and then groups the same files together so you can choose what to delete and what to keep.

This is probably not Ubuntu specific but since I use it with my Ubuntu Desktops and servers, I thought it was a good idea to post it here.

To download the latest version, and get the documentation go to Google Code:

LITEN 2

Amarok 2 and MySQL 5.1 March 15th, 2009

In the first few releases of Jaunty (Ubuntu 9.04) Amarok has had issues trying load correctly with MySQL. This since has been resolved and if you are running the latest releases for 9.04 you should be fine.

However, if you have any MP3 files you will not be able to play them and Amarok will not tell you why except for a:

"Playback stopped"

or

"Could not build filelist"

That will come up only if you Amarok via command line.

The issue?

MP3 support of course.

At the command line:

sudo apt-get install libxine1-ffmpeg

Restart Amarok and you are good to go.

Posted in amarok | Comments(0)»

Every now and then I go to a public place and connect to the network to start my browsing.

This was ok until I found a way to encrypt my connection via SSH and Firefox.

Open a terminal and type the command:

ssh -D 9999 localhost

This basically creates a SOCKS Proxy that you will use with firefox to browse safely.

On Firefox, go to:

Edit => Preferences => Advanced => Network (tab) => Settings

Select the "Manual Proxy configuration" and fill the "SOCKS Host" with these values:

localhost          9999

Click OK and test. If you can't see any websites then you are probably missing a step. Remember to keep that terminal window open while you use the SOCKS Proxy. The connection will be lost if you close the terminal window.

Happy safe browsing!

Posted in firefox | Comments(0)»

We are on App Engine! February 6th, 2009

It seems a little rough now, but we are now running on App Engine.

All the posts and comments where imported but without line breaks...

Oh Well..

Small price to pay to get away from PHP based hosting.

 

Autocomplete with apt-get November 24th, 2008

A lot of times I don't get the exact name of the package I want to install right away. So one solution, via the command line to be able to know the correct name is, code: sudo apt-cache search package If that yields too many options I filter it via grep: sudo apt-cache search package | grep "type" Ths is extremely inefficient. The bast way to go is to add a line to ".bashrc" to have autocomplete for bash and apt-get: echo "source /etc/bash_completion" >> ~/.bashrc I think I am getting a lot of customizing around, so I am going to start building a script that will run whenever I upgrade or change machines to have all of my custom settings ready.
Posted in server | Comments(2)»

Prevent Indexes to be listed October 28th, 2008

A lot of times, when you have a web server, you need to prevent Indexes to be shown. I ran into that problem the other day and although some Virtual Hosts accepted the following for not showing indexes, others wouldn't: <Directory /path/to/web> Options -Indexes </Directory> This approach would remove the ability to have Indexes shown accross all your Virtual Hosts, with code: sudo a2dismod autoindex sudo apache2ctl graceful The first command just disables the module and the second restarts Apache in a graceful mode (will keep connections alive).
Posted in servers | Comments(0)»

Configuring SNMP October 21st, 2008

A while ago I tried to set Zenoss to monitor several diferent servers (Windows included) and found everything went great with CentOS and Windows but not quite right with Ubuntu. I decided to give it a try one more time and found that although I was doing everything correctly, Ubuntu has a "/etc/default/snmp" file that has some configuration properties that needed to be changed as well. I created a small script (you can download it from here) to automate a little bit the process. If you don't want to run the script, here is a list of things you need to do to have a "Read Only" SNMP configuration in Ubuntu: Install SNMP: sudo apt-get install snmp snmpd Backup the default config: sudo mv /etc/snmp/snmp.conf /etc/snmp/old.snmp.conf Create the new config: sudo echo "rocommunity public" > /etc/snmp/snmpd.conf Modify the line in /etc/default/snmpd: sed -i 's/127.0.0.1//g' /etc/default/snmpd Restart SNMP agent: sudo /etc/init.d/snmpd restart If you want to test the configuration works, try this command: snmpwalk localhost -v1 -c public system

Living Ubuntu

I discovered Ubuntu in its second release thanks to a PC Magazine Ranking. Haven't stop using GNU/Linux since. This place is where I put all the stuff that I stumble upon and fix later. Hope you find it useful.

Links

Twitter

    Follow Me