Fixing the Ubuntu bind9 named process 99% cpu usage issue

If you find the named process on your Ubuntu/Linux based server taking up a high amount of (e.g. 99%) CPU time, then check if the /var/cache/bind directory has the correct permissions.

If you run ll -d /var/cache/bind and find that only the root user has write permissions to the directory, i.e. it looks like the following:

drwxr-xr-x 2 root root 4.0K Apr 14 15:29 /var/cache/bind

Switch to the root user and change the group to bind, and give it write permissions, by running the following:

chown root:bind /var/cache/bind
chmod g+w /var/cache/bind

Then you will just need to restart bind9 by running the following:

service bind9 restart

Now it should be behaving better.

Android Platform Version Share – September 2012

Google just published the monthly Android platform distribution. It shows that Android version 4.0 (ICS) has been growing at the same pace as last month, and version 4.1 (Jelly Bean) is just about getting a foothold in the market.

Version August September Change
# API
Jelly Bean 0.8% 1.2% +0.4%
v4.1 16
Ice Cream Sandwich 15.9% 20.9% +5.0%
v4.0 14 – 15
Honeycomb 2.3% 2.1% -0.2%
v3.x 12 – 13
Gingerbread 60.6% 57.5% -3.1%
v2.3 9 – 10
Frozen Yoghurt 15.5% 14.0% -1.5%
v2.2 8
Eclair 4.2% 3.7% -0.5%
v2.1 7
Donut 0.5% 0.4% -0.1%
v1.6 4
Cupcake 0.2% 0.2% 0%
v1.5 3

ICS usage share got a bit of a boost from the upgrades as well as some of the new phones. In next months statistics, we should see some of this boost shift to Jelly Bean if the most popular phone right now e.g. the Samsung Galaxy S3 gets upgraded. Along with other phones due for release this may put Jelly Bean at nearly 10%. or at least I hope! Otherwise the Jelly Bean share should hover around 2% while the ICS share rises to the mid-20%.

We’re unlikely to see the Gingerbread usage share decrease any quicker then the current rate as the phones still on this version are bound to stay on it. This will just get diluted as new phones come to market, and old phones are discarded.

Upgrading your Xoom to Android 4.0.3 (Ice Cream Sandwich)

Motorola Mobility is currently in the process of a limited rollout of Android 4.0 – Ice Cream Sandwich (Version 4.0.3/Package IML77 to be precise). Instead of waiting for the wider release you can manually upgrade your Xoom to ICS.

Your will need

  • A USB host cable, and
  • A USB thumbdrive, or an sd-card on a single card reader also works. Not too sure about those N-in-1 card readers – I’d stay away from those. Also, it doesn’t work from the micro-sd drive in the Xoom.

I use an SD-Card connected to the Xoom via micro-USB host cable and a USB-2.0 SD-Card reader. My Xoom is the Wifi model running the latest US Honecomb 3.2 (i.e. HTK75D).

Instructions:

  1. Download the zip file from Google and save it into the root folder of your USB drive.
  2. Connect the USB drive to the Xoom using a Host cable.
  3. Shut down your Xoom.
  4. Switch it on and press the Volume Down button as soon as the red Motorola logo appears.
  5. It should say Android Recovery in the top left. If it doesn’t keep pressing Volume Down until you see it.
  6. Press Volume Up to select the option.
  7. When the Green Android with the Exclamation Point appears, hold the Power button and press Volume Up.
  8. Select Update from USB drive.
  9. Pick the downloaded zip file.
  10. Enjoy your Ice Cream Sandwich! :)

Source: XDA Forums / Bauxite

List of phones that come with the Carrier IQ spyware

Carrier IQ is a spyware program for mobile phones that has been in the news a fair amount in recent weeks. It is able to record many things including the list of installed apps, the location of the device, buttons pressed including keystrokes on the soft keyboard, and the content of messages. This data is sent to the Carrier IQ servers and then onto the mobile service provider which can be used for generating statistics or further relayed onto third parties such as advertisers, and law enforcement. This program cannot be uninstalled without rooting the phone.

While service providers and Carrier IQ claim that they do not store the content of messages, it has been found that they are infact doing this. They claim that this is a bug, and they are working on a fix.

Currently in the US, AT&T and T-Mobile include this program in their phones, while Verizon has made clear that they do not use it.

From an alleged T-Mobile document it appars that the following phones contain Carrier IQ:

  • HTC Amaze 4G
  • Samsung Galaxy S II
  • Samsung Exhibit II 4G
  • T-Mobile myTouch by LG
  • T-Mobile myTouch Q by LG
  • LG DoublePlay
  • BlackBerry 9900
  • BlackBerry 9360
  • BlackBerry 9810

So, I’d steer clear of any of those phones on AT&T or T-Mobile if I were you. (In fact I’d steer clear of those networks alltogether! :p)

Mobile operators in the UK do not use Carrier IQ.

via: The Verge

Apple’s advice to Samsung … Don’t make rectangular devices

Wow! Apple has suggested a few workarounds to Samsung to help them work around Apple’s design patents. They had to do this as part of their July request to ban imports of Samsung products. Redacted documents related to this request, including an expert declaration with workaround suggestions, are becoming available online. Here’s a few of the suggestions:

  • Front surface that isn’t black.
  • Overall shape that isn’t rectangular, or doesn’t have rounded corners.
  • Display screens that aren’t centered on the front face and have substantial lateral borders.
  • Front surfaces with substantial adornment.
  • Thick frames rather than a thin rim around the front surface.
  • Front surface that isn’t entirely flat.
  • Profiles that aren’t thin.
  • Cluttered appearance.

There’s only one reaction to this … WOW!

Moving the “Users” directory in Windows 7

If you want to have your Users folder stored somewhere other than the default location, you generally need to do an unattended installation with a modified installation script. If want to move the folder on an existing installation, then you need to make a couple of changes to the registry and then move the folder yourself. This is what we’ll do here.

The Users folder is the default folder/directory name for the Windows ProfilesDirectory, and by default it is stored in %SystemDrive%. Typically this is your C:\ drive (unless you installed Windows on a different drive), so it looks like C:\User\. We’re going to move it to the D: drive.

First, as always, backup your files and create a restore point just in case something goes wrong. Once you’ve done that go through the following:

  1. Create a temporary admin user temp-admin.
  2. Log out from your current user and log back in as the temp-admin user. (Don’t just switch users, actually log-out and then back in.). If you encounter any files in your original user account that are still in use, try restarting the computer.
  3. Create a D:\Users\ folder.
  4. Move every folder except Public and temp-admin from C:\User\ to D:\User\. Make sure you include all the hidden folders too.
  5. Copy the Public folder from C:\User\ to D:\User\.
  6. Open the Registry Editor and go to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
  7. Replace %SystemDrive% to D: in the Default, ProfilesDirectory, and Public keys.
  8. Expand the ProfileList tree-node to show all the profiles, and go through these replacing C: to D: in any ProfileImagePath that points to C:\Users\.... There should be one of these for each user account.
  9. Restart your computer and log in as your normal Admin user.
  10. The Users folder is now in the desired location. You can delete the temp-admin user.

Update: If you encounter the user profile service failed the logon error when you try to log in using an account created after moving the ProfilesDirectory, it is because you didn’t include the Default folder when moving folders from C:\Users\ to D:\Users\. This folder is used as a template for creating profiles for new accounts. Make sure it exists in your new ProfilesDirectory.

Thanks to a blog entry at rob.brooks-bilson.com for this update.

Motorola Xoom Keyboard and Mouse

Motorola Xoom Keyboard and Mouse

Finally got my free Xoom Keyboard and Mouse bundle from Motorola. The keyboard looks pretty slick, but the mouse looks like a basic portable mouse.

Pairing them with the Xoom was easy, just turn them on and wait for the lights to start flashing, then scan for devices from the Xoom. Once its found them, just pair them.

Android is suprisingly useable with a keyboard/mouse combination. You can double click on things, scroll through a window using the wheel, but you can also do the normal touch gestures with the mouse by holding the left button down. If it had a set of full desktop type apps such as Microsoft Office or even LibreOffice, it would have made a really good netbook OS.