aHome Houston Rockets Theme

This is the first theme I made for the G1 Android. It’s for use with aHome or aHome lite. I published it in the market for $0.99. Hope you like it.

1249806775013

1249806810735

1249806848163

1249806911086

1249807494612

How to take a snapshot of the Tmobile G1 Android screen with Ubuntu Linux

To take a snapshot of the Android screen you will need the Dalvik Debug Monitor Service (DDMS). The DDMS comes with the Android SDK. To get the SDK on either Ubuntu or Windows, check this link.

Once you obtained DDMS, locate it. It will be in your sdk tools folder:
sudo /home/user/nameofyourSDKfolder/tools/ddms
ddms android

Make sure you enable USB Debugging on the device by going to Settings -> Applications -> Development and ticking the box and plug in your device now.
usbdebugging

select Device -> Screen Capture
ddms2

Freenx nx server problem in Ubuntu Jaunty 9.04

After upgrading to Jaunty, I never managed to successfully connect to my desktop using NX. I use a windows computer with nomachine nx client. I always got an error like this:

Info: Proxy running in client mode with pid '1728'
Session: Starting session at 'Sat Jan 12 16:34:05 2008'.
Warning: Connected to remote version 3.0.0 with local version 3.1.0
Info: Connection with remote proxy completed.
Warning: Unrecognized session type 'unix-desktop'. Assuming agent session.
Info: Using ADSL link parameters 512/24/1/0.
Info: Using cache parameters 4/4096KB/16384KB/16384KB.
Info: Using pack method 'adaptive-7' with session 'unix-gnome'.
Info: Using ZLIB data compression 1/1/32.
Info: Using ZLIB stream compression 4/4.
Info: No suitable cache file found.
Info: Forwarding X11 connections to display ':0'.
Info: Forwarding multimedia connections to port '6000'.
Info: Listening to font server connections on port '11000'.
Session: Session started at 'Sat Jan 12 16:58:19 2008'.
Info: Established X server connection.
Info: Using shared memory parameters 0/0K.
Session: Terminating session at 'Sat Jan 12 16:58:19 2008'.
Session: Session terminated at 'Sat Jan 12 16:58:19 2008'.

After hours of searching the web, I concluded the problem is with the ownership and permissions of the .Xauthority file. Here’s how I fixed it:
sudo chown hydtech /home/hydtech/.Xauthority
sudo chgrp hydtech /home/hydtech/.Xauthority

and delete:
sudo rm /home/hydtech/.Xauthority-l
sudo rm /home/hydtech/.Xauthority-c

Now it works like a charm.

Android T-mobile G1 reverse tethering with Wifi

I am currently trying to figure out how to reverse tether a G1 to use an ad-hoc computer-to-computer network. I have Internet at work through ethernet and created an ad-hoc network, but the built in G1 wireless scanner cannot detect ad-hoc networks. There is an application in the marketplace called Wifi Scanner which can detect adhoc networks but it does not have a connect feature. I tried to manually connect using ifconfig in terminal but havent been successful yet. I’ll post updates if I make progress.

How to enable NTFS and HFS+ support in Gparted

I use Gparted to clone/backup my OSX86 partition. You’ll notice that the hfs and hfs+ options are greyed out. I need NTFS to format a storage space to share between Operating systems.

Start up terminal and enter:

sudo apt-get install hfsplus hfsutils hfsprogs ntfsprogs

now you can use gparted with ntfs, hfs and hfsplus formats.

How to Install VLC Player in BackTrack 3

First, download the package from here http://www.slackware.com/~alien/slackbuilds/vlc/pkg/12.2/vlc-0.9.9-i486-1alien.tgz and save it in your / directory or you can do this from the command line by opening up a Konsole and typing:
cd /
This will put you in the / directory
wget http://www.slackware.com/~alien/slackbuilds/vlc/pkg/12.2/vlc-0.9.9-i486-1alien.tgz
This will download the file in the present directory
tar zxf vlc-0.9.9-i486-1alien.tgz
The tar tool will unzip and untar this file
cd install
changes the directory to /install
chmod 777 doinst.sh
changes the permission so you can execute the file
cp doinst.sh /
copies the file to the / dir
cd ..
goes back to the / directory
doinst.sh
executes the script
rm -R doinst.sh vlc-0.9.9-i486-1alien.tgz /install
removes unwanted files.

/tmp folder permissions changing after reset / reboot in BackTrack 3 and 4

KDE requires the /tmp directory to have the correct permissions (1777) for a user to log in or it will give you an error saying: “call to Inusertemp failed. temporary Directories Full?”. For this you have to change the folder permissions of /tmp by:
chmod 1777 /tmp

This will give permissions of drwxrwxrwt. One problem I was having with BackTrack was that after every reboot, the permission would get set back to dwrwxr_xr_x. I realized this was happening due to BackTrack using the aufs file system to mount root. The aufs or AnotherUnionFS is used on the live CD to make it appear as writeable but in reality the media is physically read only.

To eliminate this problem, open fstab:
kwrite /etc/fstab

And replace the aufs line with your device and the correct file system.
For example: /dev/sda8 / ext3 defaults 0 0

How to add new users to BackTrack 3

After installing BackTrack, it is important that you change the default password for security reasons. Also, you might want to add a user to the system so you can avoid using the root login as you don’t want to screw things up accidentally.

To add a new user, open up a Konsole and type:

adduser

This will guide you through the process of adding a new user.

adduser

keep hitting enter for all default values and select a good password:

adduser1

your user is created but KDE still won’t let you log on because /tmp does not have the correct permissions. you will get an error saying “call to Inusertemp failed (temporary Directories Full?)”

To set the correct permissions type:
cd .. to go up one directory

chmod 1777 /tmp to set the correct permissions on the tmp dir. * see UPDATE *
adduser2

now you can logoff root and login with your new user.

check here to install packages using slapt-get.

* UPDATE * – I found out on reboot these permissions get reset. To make permanent changes see here.

How to Install OpenOffice 3.0.1 in BackTrack 3

goto openoffice.org and download the version for linux.

untar:
tar -xvzf OOo_3.0.1_LinuxIntel_install_wJRE_en-US.tar.gz

cd into directory with all the rpm files:
cd OOO300_m15_native_packed-1_en-US.9379/RPMS

convert all rpms to tgz:
rpm2tgz *.rpm
This step will take a while.

Install all tgz using installpkg tool:
installpkg *.tgz

openoffice will be installed under /opt

Now we have to place it in the K menu.
Right click on the K and click Menu Editor.
goto File -> New Submenu -> type OpenOffice
Right click on OpenOffice Menu and select new item.
Add a name, description and in the “Command” field, add ‘/opt/openoffice.org3/program/soffice’
In “Work Path” add /opt/openoffice.org3/program
save and close

You can repeat the steps to add Writer, Calc, Math, Draw, Impress and Base

How to install Mozilla Thunderbird and Opera browser in Backtrack 3

Check my previous post on how to install slapt-get in BackTrack 3.

Now, you can use slapt-get to install packages from the slackware repositories. To install mozilla-thunderbird:

Make sure it exists in the repositories:

slapt-get --search thunderbird

if you find it, use the install parameter to install:

slapt-get --install mozilla-thunderbird-2.0.0.21-i686-1

snapshot2

For Opera, goto www.opera.com/download and download the latest tar.gz for Slackware.

untar the file:
tar -xvzf opera-9.64.gcc4-shared-qt3.i386.tar.gz
go into the folder and run install.sh
untar
That’s it !