This is the web log of Tim Bennett, web designer. He also runs Texelate, offering the best web design Leeds, Yorkshire has to offer

Tim Bennett's Blog

Installing Ubuntu over Kubuntu

May 23rd, 2007

If you’re running Kubuntu and decide you want to change to Ubuntu (i.e. use the Gnome desktop rather than KDE (which is better in my opinion)) all you need to do is to go to the shell and enter:

sudo apt-get install ubuntu-desktop

You will now have to wait some time for all the Gnome apps to download and them some time for Kubuntu to get everything set up. Once that’s done though all you need to do is log out and then log in and choose Gnome as the session type.

You’ll now have Gnome and KDE installed which means you’ll have two lots of applications for many areas (e.g. you’ll have two text editors, Kate and gEdit). This is fine and won’t cause you any problems. However, you may wish to remove some of these applications through the package manager if you don’t want them.

If you want to get rid of KDE enter the following in the shell:

sudo apt-get remove kubuntu-desktop

If you do remove kubuntu-desktop and then find you have trouble using themes in Gnome go to the shell and enter:

switch2

Then choose your style from the dropdown; gneom-theme-manager should work fine from thereon.

Get smoother anti-aliasing on Ubuntu

May 17th, 2007

Even if you tweak the font settings in Ubuntu some text still looks a little jaggy compared to OS X. You can make your fonts smoother though like this:

Go to your home directory and open up the file .fonts.conf (it’s a hidden file; if you can’t see it choose View < Show Hidden Files in Nautilus). Replace the current contents with:

<?xml version=”1.0″?>

<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>

<fontconfig>

    <match target=”font”>

        <edit name=”autohint” mode=”assign”>

            <bool>true</bool>

        </edit>

    </match>

</fontconfig>

Save the file; the fonts will change once you restart the X server, log out and back in again or restart.

Install Windows fonts on Ubuntu

May 16th, 2007

Have you ever wanted to run Verdana, Trebuchet MS, etc on Linux – you can and it’s very easy to do. Simple enter the following into a shell window:

sudo apt-get install msttcorefonts

Log out and back in again or restart and the fonts will be installed.

The following fonts are installed:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

How to set up Synergy on Mac OS X and Ubuntu

May 10th, 2007

Synergy is a program that lets you share your mouse and keyboard over a network. So, if you have two or more monitors and more than one computer you only need one mouse and keyboard. Here’s how I got Synergy running with Ubuntu and OS X.

Note: Synergy is also available for Windows – this how to does not cover Windows although Synergy works pretty much the same (in fact, it’s easier on Windows as there is a GUI to it)

Firstly, download Synergy for Linux – you can do this with the command sudo apt-get install synergy in the shell. For Mac download Synergy 1.3.1 for OS X here.

You need one machine to run as a server and then you can have a number of clients. In this example I will make OS X the server and Linux a client.

First off, find out the hostname of your Ubuntu machine by typing hostname in the shell. We’ll assume it’s called myclient in this example. Do the same in OS X and we’ll assume the Mac is called myserver.local.

The next thing we need to do is to set a configuration file for the server – this tells Synergy what to do with each machine when it connects.

Extract your downloaded Synergy folder in OS X and create a file in the folder called mysynergy.conf.

Enter this into your file and save:

section: screens

    myserver.local:

    myclient:

end

 

section: links

    myserver.local:

        right = myclient

 

    myclient:

        left = myserver.local

end

Note: your OS X hostname will end in .local – include this in the .conf file.

All you’re doing here is defining your host and your clients and how they relate to each other.

Your server is ready to roll. Open up the shell in OS X and navigate to where your .conf file is stored; execute this command ./synergys -f –config mysynergy.conf

Open up a new shell and type ifconfig and make a note of the IP address that appears after inet – it will most likely start with 192.168. – let’s say it’s 192.168.0.5

Now open up your shell in Ubuntu and execute /usr/bin/./synergyc -f 192.168.0.5 (use your Mac’s IP address though).

All being well your Ubuntu machine should connect to your Mac and you can use your Mac’s mouse and keyboard on your Linux machine.

One limitation is that the Mac Synergy server will only accept an IP address rather than a host name so it’s a pain if your Mac’s IP address keeps changing.

Photoshop Save To Web Images Too Light?

April 17th, 2007

Have you ever used the Save for Web option in Photoshop and found your image looks much lighter on the export than on the canvas? It happened to me when I switched from CS on XP to CS 2 on OS X.

The problem is that your canvas is using one colour profile (sRGB is best for web by the way) and exporting using another. If you’re working on web here’s how you fix it:

Choose File > Save for Web and then click the arrow located to the top right of the canvas. Choose Use Document Color Profile – this will ensure the canvas and the exported image match.

Do you need a website or web-related service?
I run an award-winning web design studio.