Joining Ubuntu Lucid to Active Directory

Friday, April 16th, 2010

The latest Ubuntu release (Ludid, 10.4) makes it very easy for you to join an Active Directory domain. Here’s a quick guide to get you started.

1. Install the likewise open AD authentication application by issuing the command sudo apt-get install likewise-open

2. Register your Ubuntu system with the domain by running sudo domainjoin-cli join yourdomainname.com administrator (where yourdomainname.com is your domain name, and administrator is a user account on the domain with permissions to add computers to it).

3. When prompted, enter the password of your adminstrator account. A dialogue box will appear asking for your domain name,  enter your AD fully qualified domain name in upper case letters, i.e YOURDOMAIN.COM

4. Finally reboot.

Want sudo privileges? Go to your Active Directory and create a group. I called mine sudo, but you can use any group you like. A word of advice though, you’ll have less problems if you don’t use spaces in your group name.

Switch to a local user account with sudo privleges and at the terminal issue the command sudo visudo

At the end of the sudoers file add this line

%YOURDOMAIN.COM\\sudo ALL=(ALL) ALL

This tells Ubuntu to allow any user in the sudo group on your AD to use sudo privileges on the local machine.

To login to your Ubuntu system at the GUI use username@yourdomain

To login over SSH use yourdomain\username

Spotify on Ubuntu

Tuesday, September 15th, 2009

Yes folks, it’s the craze that’s sweeping the nation (well the ‘tinterweb), it’s fun, it’s funky, it’s Spotify!

It’s like a version of Last.FM that plays the actual songs you want to hear and what’s more, the app works with Ubuntu.

OK, so it’s not a native app, but at least the developers haven’t totally omitted the good old Linux user. Until they see the error of their ways and release a Linux client, they have at least bothered to provide some pretty lengthy instructions here.

Want the simple version?

1. Download the setup file

2. Install Wine

sudo apt-get install wine

3. Run Wine Config wincfg

4. Click the audio tab in Wine Config

5. Click OK

6. Open a terminal and type

wine “Spotify Installer.exe”

Easy as pie.

Using the Wiimote & Wii Balance Board in Ubuntu

Sunday, June 28th, 2009

Matt Cutts, head of webspam at Google, has written a couple of very interesting articles describing how to hook up Wii peripherals to an Ubuntu Pc over bluetooth.

The first article describes how to hook Ubuntu up to a Wiimote, followed by another showing how to build a working weight sensor and real time display with Ubuntu, a Wii Balance Board and a couple of hundred lines of Python.

Could this herald a new era of Wii type games on Ubuntu?

I hope so!

Making ‘ondemand’ CPU frequency scaling more responsive

Tuesday, May 12th, 2009

For a while now I’ve found that ondemand CPU frequency scaling (enabled by default) makes my laptop seem sluggish under Ubuntu.

Basically the CPU speed doesn’t seem to increase quickly enough to keep up with the sudden brief bursts of demand caused when using Gmail, or playing Youtube videos for instance. Applying information found on this website seems to give a more responsive system.

echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo 40 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

This changes the default behaviour of the ondemand governor to force it to take into account background processes, and tells it to increase CPU speed when your CPU usage exceeds 40% rather than 95% (as is default).

Because /sys/ is a virtual file system created each time you boot your system, any changes you make are lost after a restart. Add the lines above to /etc/rc.local (read here for more on rc.local) to have your chosen settings applied each time you start Ubuntu.

Have fun.

Speeding up Firefox 3 in KDE 4 (Kubuntu Intrepid)

Monday, March 9th, 2009

Having just moved across to Kubuntu Intrepid I found that Firefox looks a little crappy by default. This can be remedied pretty quickly by grabbing this theme, created especially for KDE 4:

http://ramonantonio.net/kde-firefox/

Secondly some people suggested that they found Gmail scrolling a little slow on some computers. Disabling the Ubuntu Firefox Modifications addon (anyone know what this does anyway?) seems to give you a little extra speed if you need it.

Finally ensure you that you have ‘performance’ selected in CPU Policy. It’s easy to forget that power saving mode is on and find yourself wondering why your laptop is slow!

Getting your eGalax touchscreen monitor working on Ubuntu Hardy

Wednesday, November 12th, 2008

So, you’ve got a touchscreen monitor and you’re wondering why it doesn’t work properly? Lets see if we can get it up and running!

After connecting the touchscreen monitor’s USB cable to your PC and restarting, check out the USB devices on your system by running the command ‘lsusb’. If you see a line with the words:

D-WAV Scientific Co., Ltd eGalax TouchScreen

then we’re in business. I know how to set that one up!

Give the screen a sneaky tap with your finger. Marvel at how the computer seems to recognise a mouse click event (you may notice it highlights some text, or scares a small child from your PC case), but doesn’t yet doesn’t recognise mouse movement events.

Go on over to http://210.64.17.162/web20/TouchKitDriver/linuxDriver.htm and select the file called ‘Kernel 2.6.x with xorg 1.4.0 only’. At the time of writing the direct link to this file is here. It may have moved by the time you read this.

Anyway. Extract the TouchKit-2.03.tar.gz file. It contains a folder with 2 files and a tar archive in it. Good times.

At the command line move to the TouchKit folder you just extracted and run the following command:

sudo sh setup.sh

Wait a sec and be rewarded with the following menu. I’ve left in the choices I made.

(*) Linux driver installer for TouchKit controller

(I) Begin to setup TouchKit Linux driver.
(I) Checking user permission: root, you are the supervisor.
(I) Extract TouchKit driver package to /usr/local/TouchKit_x14.
(I) Create TouchKit utility shortcut in /usr/bin.
(I) Copy X module egalax_drv.so to /usr/lib/xorg/modules/input.

(Q) Which interface controller do you use?
(I) [1] RS232 [2] PS/2 [3] USB : (I) Please choose [1], [2] or [3]
(A) 3
(I) Using interface: USB
(I) Found a HID compliant touch controller.
(I) Found kernel module usbtouchscreen.
(I) It is highly recommended that add it into blacklist.
(Q) Do you want to add it into blacklist? (y/n) y
(I) Add kernel module usbtouchscreen into /etc/modprobe.d/blacklist

(I) Found X configuration file xorg.conf in /etc/X11.
(I) Add touch configuration into /etc/X11/xorg.conf.

(I) Please reboot the system for some changes to take effect.

Reboot your system

When the system comes back up you can calibrate and adjust your touchscreen by running sudo /usr/bin/TouchKit

Jobs a gud’un.

— Update

You may find that clicking on the desktop leaves irritating little selection box artifacts that wont go away. You can sort this out by changing the xorg.conf configuration that the TouchKit application generates.

Change SendCoreEvents to CorePointer (I edited out the default config at the top there). Problem solved.

Section “ServerLayout”
### InputDevice “EETI” “SendCoreEvents”
InputDevice “EETI” “CorePointer”
Identifier “Default Layout”
Screen “Default Screen”

Unfortunately though you may find that your mouse no longer works. Swings and roundabouts!

Setting up your Huawei E220 3G USB Modem on Ubuntu (Three UK)

Wednesday, June 25th, 2008

Take a deep breath, unwind and relax. Setting up your Ubuntu Linux powered PC for mobile internet access isn’t half as hard as you thought it’d be.

My brother just got a £7.50 a month deal with Three, for 3 GB per month of internet access over 3G (HSDPA). I installed Ubuntu onto a PC for him and had a bash at getting the 3G dongle up and running.

Here is the easiest way to get this up and running.

1.) Plug the dongle into a spare USB slot and restart the computer.

2.) Download the Vodafone Mobile Connect Card Driver for Linux. The version I’m using is 1.99.17 (Beta) and comes as a .deb package.

3.) After installing, run the Vodafone application that you’ll now find in Applications > Internet.

4.) If the application doesn’t detect your dongle restart your PC and try again (although it should).

5.) Insert these settings if you’re using the Three (UK) network.

Username: three
Password: three

Preferred connection: 3G preferred
Authentication mode: Default
APN host: 3internet

DNS Servers: 4.2.2.4 and 4.2.2.3 (Figured out by Alec Cawley in the 2nd comment of this post, thanks Alec!)

6.) That’s about it. You should be able to see a signal strength bar at the bottom of the app screen, and connecting to the internet is a simple as pressing the big green connect button.

The vodafone application itself is pretty good. Particularly useful is the usage indicator. It allows you to restrict the amount of data transferred to help ensure that you don’t breach your monthly limit. Check out the screenshot below. Cool eh?

Enjoy mobile internet on Linux!

Asterisk and DeStar on Ubuntu Hardy

Friday, June 13th, 2008

Fortunately Ubuntu has packages for Asterisk and Destar located in the Universe repository, so running the following command will grab and install them for you.

sudo apt-get install asterisk destar python2.4

Hardy ships with Python 2.5 but DeStar throws errors unless it’s running on Python 2.4. Therefore you need to tell destar to use Python 2.4 instead.

edit /usr/share/destar/python/destar.py

so that the top line reads:

#!/usr/bin/python2.4

Asterisk needs to be configured to allow DeStar to manage it. To do this, create a file called destar.conf in /etc/asterisk/manager.d/ Change the secret to a password of your choosing.

[destarman]
secret=123342342
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read=,system,call,log,verbose,command,agent,user
write=,system,call,log,verbose,command,agent,user

Try DeStar now by going to http://servername:8080 The default username is admin and the password ad26. (don’t forget the dot at the end). You should change it.

In the DeStar web GUI go to Configuration > Options > Management API Access and ensure that the secret there is the same as the secret in your destarman.conf file.

You should now have Asterisk installed and DeStar configured to manage it!

Hardy Heron and Stuff…..

Sunday, April 27th, 2008

Hello there. I can’t believe it’s been nearly a month since I wrote anything. Recently I’ve found myself pre-occupied with other things so I’ve been neglecting you. I’m sorry!

There has been a major change in the Ubuntu landscape since the last time I put finger to keyboard. Hardy Heron has arrived, Ubuntu’s new long term supported release! I’ve been running the pre-release version on my laptop for a while (until I accidently smashed the machine the other night) so it hardly surprises me that people installing it for the first time are finding it to be the best Ubuntu Linux yet! Of course, a few bugs remain, but if you find one, join me and hundreds of other users in reporting it and helping the developers to make Ubuntu better! It’s fun, and you might even get your name up in lights!

One thing I have noticed is that the validated hardware list has grown even larger with this release. It’s now easier than ever to grab yourself a laptop, desktop or server certified to work with Ubuntu. Seeing a good range of HP servers in the list is great for me as they’re the most commonly used ones at work – Hoorah!

So, that’s about it for now. Catch you soon…

Ubuntu Survives PWN to OWN Hackfest Unscathed

Saturday, March 29th, 2008

A laptop running Ubuntu Gutsy (7.10) remained the only uncompromised system at the CanSecWest conference PWN to OWN competition.

The competition sees hackers compete to discover a 0 day code execution vulnerability, on one of three laptops running Mac OSX, Windows Vista or Ubuntu. The winners take the pwned laptop plus a generous cash award.

Mac OSX (10.5.2) fell on day two, after the discovery of a vulnerability in the Safari web browser allowed a team from Independent Security Evaluators to remotely exploit an Apple MacBook Air. Day three saw Shane Macauly of Security Objectives defeat the Windows Vista (SP1) laptop using an exploit against the latest version of Adobe Flash.

Well done Ubuntu.