Wednesday 28 January 2009

Easy to use bittorrent client

I'm using bittorrent for many years now, and I have used many different clients as well. But as you probably know, you will always stick to one client after a while. There can be many reasons to do so, and for me, performance and easy to use interface was the main reason. So on Windows I used Bittcomet for a while, but when I changed to Linux, there was no Bitcomet available anymore.

But, as we all know, in the open-source community there is always a decent replacement for almost everything. So I stumbled across Deluge bittorrent client. It has every thing you need, easy installation and the software is well maintained. There are many options to choose from, and even if you don't really know how bittorrent works, the default settings should be enough for almost everyone.

Just have a look at the following screenshot, you can download the software from http://deluge-torrent.org/downloads.php and select the appropriate Ubuntu package.

Sunday 25 January 2009

Reduce power consumption on Linux

If you have a desktop, power consumption shouldn't be a real issue if you're not a environmental activist. For Laptop users, power consumption is always an issue and in Ubuntu, there are several ways to reduce this.

The easiest way is to change the power options from the menu, go to the Ubuntu menu, then to Preferences and Power Options. Here you can do some common changes which you also find in Windows for example.

But there is a difference between laptops and desktops, therefore you can change a parameter in a configuration file where you can tell Ubuntu that you're working on a laptop. You have to do the following:

Open a terminal and type: sudo gedit /etc/default/acpi-support

Now you will see an editor, look for ENABLE_LAPTOP_MODE=false and change this to ENABLE_LAPTOP_MODE=true

Reboot your laptop to make sure that the configuration has been loaded properly.

Thursday 22 January 2009

Random links

When surfing on the web, I find some useful links once in a while. I will put them in this post with a description, if you think you have some useful links as well, just drop me a message.

http://www.linuxalt.com - Alternative software for Linux

Installing Office 2007 on Ubuntu Linux

In the previous post I explained how to install the latest version of Wine. The minimum requirement is Wine version 1.1.13 and it's still a development version. But it's working fine so there are no arguments to not to install this. Actually, you need the latest version to fix the problem with numbering and bullets.

Make sure you have done the minimum preparations. We start with starting up "Configure Wine" and you will see the following. Make sure that your Wine settings are the same.

You can easily use "Add application" and just type in the name you want to add. It's not necessary to search for the EXE file. Make sure that the Windows version is Windows XP. That's all!

For the people with a dual boot setup like me, you can change the default "My Documents" location in the "Desktop Integration" tab to your "documents directory" on the Windows partition.

Now we are going to install the software. Because it's your first time MS Office installation on your computer, you don't have to delete old MS data to make the installer work. Ubuntu tries to use an "the Archive Manager" to open EXE files. We don't want this, so we are going to change this first. The easiest way to do this, is going to the properties of an EXE file (right mouse click -> Properties) and change the following so it will look like this:

After you have changed these settings, you can just double click the setup.exe file and install Office like you always have done with Windows!

Keep in mind that Wine is still in development, even after version 1.0. This means that not ever Office program is working. Word and Excel works, but expect to experience problem with the other Office programs like Outlook. When there is a fix, I will put the instructions in this blog. Read further for instructions how to run PowerPoint.

For PowerPoint, you have to change a dll setting, not to difficult. First you add powerpnt.exe in the "Application" tab like you did with the setup.exe. Make sure that powerpnt.exe is highlighted. Now we go to the "Libraries" tab and make sure you have the same setting for the riched20.dll as shown on the screenshot:

After this, you can normally startup PowerPoint.

The Ubuntu basics

Okay, now you have installed Ubuntu 8.10. Not so hard I think, the installation is pretty straight forward.

While developing Ubuntu, they had the security in mind. One important thing of Ubuntu you should know, is that you can't use the Root user. Maybe you haven't heard of a Root user ever, in that case you don't have to worry. If you ever did hear of a Root user, then you also know that you can do more with a Root user then a Windows Administrator account. You can fuck you whole computer up in seconds!

Usually people with basic or no knowledge at all of Linux, are able to delete files without knowing what the are doing. I have been there, believe me.

So, our friend from Ubuntu have decided that you can't use the Root user and you have to type SUDO before every command where you need Root privileges for. Just remember SUDO as SuperUserDO. In this case, the Root user is the Super User.

I bet you have already logged in your fresh installed Linux machine, and you maybe have already explored the menu's as well. You probably already have realised that it's looks quit similar to Windows. But I will tell you a secret, the screen you are looking at is called a Gnome desktop, which is used in many other Linux distributions as there default desktop manager. The other one which is used a lot is KDE which is the default desktop manager for Open SuSE for example. Fedora Linux (sponsored by RedHat) is using Gnome as there default window manager. Just have a look at Google Pictures and look for Gnome screenshots. Some are really beautiful.

On your desktop, in the bottom left corner you will a button to open the default Gnome menu. There are different options which you can explore. A nice section is Office for example. You will notice a fresh installation of OpenOffice (version 2) which can you can use as a MS Office alternative. To bad that version 2 comes with the default installation of Ubuntu and not the latest version (version 3). If you start up Writer you will notice a Word processor which looks a little bit like the old MS Office versions. It's free software, so don't expect to much of it, in my future blogs I will explain how to install Office 2007 for example on Linux.

You will also notice other software in various sections. Even software which you will never use. So, we are going to start with installing some software, deleting is not up to me and something you can do easily yourself.

Go to the Gnome menu and then go to Administration, here you will see Synaptic Package Manager. This tool is going to be your biggest friend. This is the graphical interface for the "sudo apt-get" command which is still widely used by many people who are working on a Debian distro.

If you start the tool up, you will have to enter the Root password first. If you left every setting default, you will notice different software sections on the left side, and a "Quick search" box in the top middle. Now we are going to search for the following software to spice your fresh installation a litte bit up ;-)

When you select a package, you can select install. If the package manager want's to install aditional software, say yes. Or cancel the installation if you don't want this additional software. To make software work, you don't always have an option.
  1. sun-java (select the latest package, at this time it's sun-java6-jre)
  2. awn-manager (you can use this program to get this OS X bar on the bottom of your screen)
  3. deluge-torrent (the easiest bittorrent client at the moment available for Linux)
  4. screenlets (nice program to show Widgets in Linux)
  5. adobe-flashplugin
After this, we have to change some settings as explained on the following website to make the latest installation (version 1.1.13) of Wine possible: http://www.winehq.org/download/deb

Now we say apply and the software should be installed when everything is finished. At the various software sections you should be able to see the new installed software. Just start it up and play around a bit to get used to Ubuntu a bit.

Another important thing you should keep in mind, is that Linux doesn't use a C or D or whatever drive Windows uses. Linux is just using "/" (root) and a swap partition which you don't see in your file browser anyway. So we don't work with drive letters any more. Your user data in Ubuntu is stored in the home folder which you can find in "/home/[username]/"

Now we want to get rid of the old OpenOffice 2 installation. Use the package manager and search for "openoffice.org-core" and select remove. Make sure you also delete all of the other files which has to do with Openoffice.org 2. In my situation some files are mixed up, and that can be anoying. After the removal you should see that the programs in the Office section like Calc or Writer are gone. Now, go to www.openoffice.org and download the latest version for Ubuntu. The file should be a DEB file which is the installer file for Debian distributions like Ubuntu. You can find the file you need on the following location: http://download.openoffice.org/other.html#en-US

After the download is finished, you can dubble click the file and it should install OpenOffice 3.

Now the basic setup is done. Just click around and customize your desktop whatever you like. This is the fastest way to learn the basics of Linux. In the following blogs I will give more indept information about how to use Ubuntu at work for example.

Getting started with Linux

First of all you have to decide what you want to do with Linux, because Linux is perfect for servers and workstations. If you'd like to use Linux as replacement for your Windows workstation then this is the place to be. People who want to install a Linux server have to look elsewhere.

Because this blog is mainly for beginners, I have decided to stick to one Linux distribution only, which is based on Debian Linux. It's called Ubuntu, and I'm using version 8.10 (Intrepid).

Ubuntu is one of the most user friendly Linux distributions with excellent hardware support and a large worldwide user network. This means that getting support is very easy, and getting updates and fixes don't take to long.

You can get a free copy of Ubuntu 8.10 at the following location: http://www.ubuntu.com/getubuntu/download

When your copy has been downloaded, you should have an ISO file. Burn this ISO file to a CD. You can also decide to install Linux first in a virtual environment and then you can just mount the ISO file to your virtual image. It's up to you.

The installation is pretty straight forward. I don't think it's necessary to explain the installation. Do have in mind that the installation can remove your whole Windows partition, so be careful! Installing Linux on a dual boot computer works with me, but you have to know what you're doing. Formatting the hard disk is usually easier. Also keep in mind that Linux will ask for a Swap partition. Usually this is the size of your RAM. So for the average users it should be aroung 2GB until 4GB. Linux will manage this anyway, so it's better to make it a little bit bigger then necessary.

Introduction

Hi,

My name is Rogier, I'm a Senior System Adminstrator who has to start working with Linux. Sounds familiar? I think it does. This blog is made for everyone who likes to use Linux, but don't know how and where to start.

Before you continue reading, I want to make some points clear ;-)

1. Linux is not for nerds or geeks.
2. Linux is stable.
3. You don't have to shutdown your linux pc after a day of work.
4. Linux is not hard to learn, it's just different then Windows.
5. There is enough software available, and in 99% of the cases it's free!

If you have other points, drop me a post and I will add them.

Okay, if you're still exited, continue reading and get started!