Latest Publications

Installing a laser printer in Ubuntu 9.04

Installing a laser printer is actually straight forward, if you keep in mind, that most laser printers has standard queues, from which they accept input. One of these is the raw queue, also referred to as RAW or RAW1. Using this, you do not have to mingle with drivers in the operating system or drivers from the vendors.

Select “System”, “Administration” and “Printing”. Select “New” and “Printer”. Using the guide, select “Generic” and “Raw Queue”.

Open a browser, such as Firefox, and open a website, that contains simple text and graphics, such as the front page of Google. Configure printer options, such as paper size, headers and footers. Print the page and adjust as necessary. Margins and other options can be set in the “Printing” utility from before. Select the installed laser printer, “Printer”, “Properties” and “Job Options”.

In this case, a Dell 1710N network laser printer was installed.

Solving a missing shared object problem

The following error was returned when trying to start smbd on a FreeBSD 7.0 operating system after a power failure in a failed uninterruptible power supply (UPS).

/libexec/ld-elf.so.1: shared object "libcrypt.so.15" not found, required by "libgnutls.so.26"

Assuming, that ports, that depend on libgcrypt, has to be reinstalled, the following procedure is executed. libgcrypt is a general purpose cryptographic library based on the code from GnuPG.

A tool, named portupgrade, that can perform a recursive reinstall, is installed. Before that, the ports tree is updated. Assuming, that portsnap has been used to update the ports tree before, the ports tree is updated using the update feature of portsnap.

portsnap fetch
portsnap update
cd /usr/ports/ports-mgnt/portupgrade
make install

All ports, that depend on libgcrypt, is upgraded.

portupgrade -rf libgcrypt

Unfortunately, portupgrade failed to complete due to a major version problem with libtool. This is also referred to as a version bump, that occurs because some programmers hardcode their versions, which causes critical dependancy failures. libtool is deleted and reinstalled before we try again.

pkg_info | grep libtool
pkg_delete libtool-1.5.24
cd /usr/ports/devel/libtool22
make install
portupgrade -rf libgcrypt

This time portupgrade completed with succes and the problem was solved.

Filtering Facebook quiz results

Quiz applications and their results are a huge problem on Facebook. They appear frequent and tend to spread like virus through exploiting lists of friends. Some of them even lead to loss of money.

Use this procedure to block them by adding a filter to Firefox.

First, we need to add a script parser, that can parse user scripts. Visit the homepage of Greasemonkey. Confirm, that you are using a version of Firefox, that the Greasemonkey add-on supports. Download. Restart Firefox.

Second, add the user script, that will do the filtering. Visit userscripts.org, which is a website, that offers user scripts and extra features for your browser. Install Facebook Purity.

If you are actually updating the script, you need to uninstall the old version first. Updating is necessary from time to time as Facebook implements changes.

A more neat desktop in Ubuntu

The default desktop in Ubuntu is actually pretty neat. However, there are a few quick options, that optimizes the look, feel and practical usage.

The default desktop shows two grey bars. There is one on the top and one on the bottom. Let’s make this a little more neat. Disable the bar on the bottom. Move the bar to the bottom. Make the background solid and transparent. Delete the launch icons or just the ones, you will not be using.

Double clicking a window title bar will maximize the window. Not very practical as the button in the upper right corner does this. Change this, so the window will roll up instead, which is more useful when working with many windows. It is done by clicking System, Preferences and Windows and changing the title bar action.

You might want to use more workspaces. This is configured by temporarily adding the workspace switch panel and configuring it. If you also want to make use of the cube below, then 4 work spaces is recommended.

Let’s use some neat graphics. It is assumed, that Compiz Fusion is installed.

If Compiz Fushion is not enabled yet, do so now by clicking System, Preferences, Appearance and Visual Effects. Select Extra. Click System, Administration and Hardware Drivers. Activate the recommended proprietary driver.

Click System, Preferences and Compiz. Disable Negative. Enable Opacity. Not to confuse with Opacify! Enable Desktop Cube. Enable Rotate Cube. Disable Wobbly Windows. Enable Screenshot.

The overview of workspaces is shown by pressing Super-E. Rearrange windows by dragging them with the mouse. Press Right and Left followed by Enter to switch to another workspace.

The switch between workspaces, directly from one to another, is done by pressing Ctrl-Alt-Right and Ctrl-Alt-Left. The active window is moved along by adding Shift.

Window transparancy is adjusted by pressing Alt and then rolling the mouse scroller as appropriate.

CubeRotating the cube, which is a kind of impressive way to switch between workspaces, is done by pressing Ctrl-Alt-MouseLeft and then moving the mouse around as appropriate.

Taking a partial screenshot is done by pressing Super+MouseLeft and then dragging a box around what should be in the partial screenshot.

Taking a screenshot of the entire screen, also when looking at the cube, is done by clicking Applications, Accessories and Take Screenshot. Use the delay feature.

Now, you might want to configure the look and feel of your applications. You might also want to check out available themes from gnome-look.org.

Profile

Our business profile has now been written and published on our website.

The purpose of our business profile is to give an introduction to Open Tech SmbA and describe how we can help businesses of our customers with good practise of system and network administration.