November 19, 2008

NetBeans 6.5 final version has been released

Gerry Ilagan : 01:29 PM

If you’ve been waiting for the final release version of NetBeans 6.5, you don’t have to wait any longer. It’s now available for download from the NetBeans web site. And the most awaited support for PHP is now included in the NetBeans 6.5.

As always, NetBeans is also available for Linux. You can download the newest version from NetBeans without waiting for it to be available from the Ubuntu repository. After downloading the Linux version, just run the installation script from a terminal session to install NetBeans. Be sure to have an installed JDK on your computer to use it.

Enjoy the latest and greatest NetBeans! :-)

November 18, 2008

Hardy Heron Users Are Forced to Upgrade?

Daniel Voicu : 09:10 PM

Two days after the official launch of Ubuntu Intrepid Ibex, I took the decision to upgrade my 8.04 to 8.10. Everything went fine until it gave a message telling me something like there’s no supported driver for my video card. I stopped the upgrade because the last time I got a message like that I had a hard time editing files from the command line.

Although Ubuntu 8.04 is an LTS distribution, sites and software developers that provide .deb packages are slowly stopping the offering of packages for Hardy Heron. I don’t think this is a clever move, because there are still many users who preffer Hardy Heron and will not upgrade to 8.10 Intrepid Ibex pretty soon. By doing this, the users who want to have the latest versions of their favorite apps will have to compile them from source which might create some problems in time if the process doesn’t go the right way.

These are my 2 cents on the “forced” upgrade issue. Keep in mind that this is just my opinion, maybe I’m paranoid, maybe I’m right… You decide:).

Peng’s links for Tuesday, 18 November

Peng Hardin : 07:11 PM


Sorry about not posting the last few days. I meant to post yesterday but I was chasing down a few things for Mac4Lin. Anirudh (infra_red_guy) has gotten a very recent development copy of the PDF documentation (possibly more recent than the version I posed here) for Mac4Lin 1.0 available for downloading. You can grab it from the download page for the version 1.0 RC. I’ve got a few more edits to make even now, but as we get things closer to release I’ll try to make sure that we get an updated version available on the Mac4Lin SourceForge site.

  • TualatriX: Bugfixed release: Ubuntu Tweak. It turns out that when TualatriX released version of Ubuntu Tweak 0.4.2 last week there was a bug that kept Ubuntu Tweak 0.4.2 from running without Compiz installed. He tracked down the bug and pushed out a quick bugfix.
  • Mtuxland/Ubuntu Forums: Howto: Get Google Gadgets easily! Google has released an version 0.10.3 of Google Gadgets. Mtuxland has packages built for GTK and for QT, or you can get the updated file from GetDeb like I did. You can see what got updated in the changelog.
  • Tom Dryer: A Guide to System Backup and Restore in Ubuntu. If you don’t have a regular backup routine for your computer don’t feel bad, a lot of us don’t, like me. I do backups when I’m about to do a major install/upgrade and I know it’s just a matter of time until that bites me in the arse. The guest article by Vivek Kumar will help you see how easy it is to schedule regular backups of your important files. Now I just need to make sure I have space and/or media to store the backups.

I really hate how much advertising I’m seeing about Chrismukkuh already (even my own reference to it while talking about Mac4Lin 1.0 last week), but there’s something I have to mention. Amazon.com is now taking orders for the One Laptop Per Child Buy One Get One program. For a mere $399 not only do your get an OLPC laptop computer sent to a child in a devloping country but you also get one for to give to a child that you know. Not only is that a double win it’s also damned good karma. Big thanks to Mike Rushton of the  Ubuntu Massachusetts LoCo Team for the reminder and the link.

      

A Guide to System Backup and Restore in Ubuntu

Tom Dryer : 04:00 PM

This guest article was written by Vivek Kumar from TNerd.com, a blog focused on technology news, tricks and tips and Linux tutorials.

It’s a good idea to ensure that you have a backup and restore system in place. Today we’ll see how in a few very easy steps you can setup system backup and restore in Ubuntu. The good part is that there’s no rocket science involved.

In order to achieve this we are going to need software called SBackup. This is not installed by default in Ubuntu and hence we need to install it. First, let’s see a little bit about this wonderful software.

Homepage: http://sbackup.wiki.sourceforge.net/

Description: SBackup is a simple backup solution for Linux. It is generally developed with a Gnome desktop in mind, but will also work in other desktop environments and also on the console.

Features of SBackup

  • Back up using GUI and hence avoid the terminal.
  • Restore using the GUI in simple steps.
  • You can easily setup automatic backup.
  • Custom choose the files to backup.
  • Exclude and include files using regular expressions.
  • Backup files depending on size and extension.
  • You can also use terminal to backup and restore.

Limitations of SBackup
As of now you can only backup data to local or remote machine. Backing up to DVD or CD is not available as of now. However, it’s not difficult to burn a backup to disk yourself manually.

Install SBackup
Install SBackup from the package sbackup (click the link to install), or by running the command below in your terminal:
sudo apt-get install sbackup

Launching SBackup
In order to launch SBackup go to System->Administration->Simple Backup Config.

Configuring and setting up backups using SBackup
Once you launch SBackup it’ll open a configuration window for you to configure backup and restore.

SBackup configuration window

If you notice, there are three options available for setting up the backup and they are self explanatory. I’d suggest Use recommended backup settings for most users.

However, you can also select Use Custom backup Settings and setup your backups based on various criteria like file size, file extension, etc. You can also add and remove folders from the ones which you want to backup and the ones you don’t. All this can be achieved by navigating to the Include and Exclude tabs and changing settings as per your requirements.

You can also change the destination where SBackup will backup your stuff. This can be achieved by going to Destination tab.

the

By default SBackup backs up your files to your local machine in /var/backup. You can custom choose the location and backup stuff to another machine using FTP or SSH.

Once you have selected the mode of backup, all you have to do is click Backup Now!. You should see a confirmation dialog.

Scheduling Backup
Scheduling backup is as easy as it can get. Just go to the Time tab and setup when you want to backup.

the Time tab

Purging old backups to avoid replication and excessive disk usage can also be setup using the Purge Tab. As I said, in most cases the Use recommended backup settings option is the best.

Restoring the data using SBackup
You can easily restore data from your backup using SBackup restore. You can do a directory-wide restore or just restore the files. To restore the data you’ll have to start the SBackup restore manager, go to System->Administration->Simple Backup restore.

Simple Backup restore

  1. Click on Available backups.
  2. Choose the backup from which you want to restore files or directories.
  3. Select the specific file or directory.
  4. Click Restore.

You’ll be prompted if you are sure, click Yes and your files/directories will be restored.

I hope this guide will make backing up and restoring on Ubuntu a cake walk.

If you want more tutorials and technology articles like this one, you can subscribe to the TNerd RSS Feed.

November 17, 2008

Weird keyboard behavior with VMWare

Hanno Stock : 08:08 PM

I just noticed that my cursor keys did not behave correctly with a Windows XP VM on an Intrepid host. The down arrow acted as the Windows key!

After some googling I found this blog entry.

You have to insert the following lines into your ~/.vmware/config file:

xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
Tags: , , ,

On a Blender Bender

Kevin DuBois : 05:05 PM

So being interested in all things 3d, I finally sat down and started learning Blender. The inability of me to make acceptable looking 3d models has long been a hole in my 3d graphics knowledge, but no more! I am now fairly confident in my ability to make models in blender, and am starting to learn how to do animation and rigging and more advanced topics like that.

Basically, there are 3 steps in making a 3d animation. Step one is to make the model. You use tools to specify where each vertex in the model is positioned in 3d space. After you have a model, you move onto the third step, rigging. Rigging is associating vertexes with each other in such a way that they all move smoothly with each other. This is done by putting “bones” in your model, and tying the vertexes to their respective bones. This lets you position the model. It might sound easy, but rigging is a pretty intricate and important part of modeling. The next step is animation, where you position the bones in each frame to make something that looks like its walking, or moving, or whatever else you want your model to do. Tie these things all together, and you have a movie.

I’m not going to go over the basics of 3d animation right now, but I will show you my little toy humanoid character I made! I’m pretty proud of him, he only took me 8+ hours to make (including learning time). Here’s a video of the result, a guy walking around…

(Planet users click here)

Let me tell you, doing this has increased my respect for 3d animators at least five fold. From looking at the credits, it looks like whole animation teams are devoted to each step in the creation of the animation. Its a meticulous, long process to make even short professional 3d movies, like Big Buck Bunny or Elephant’s Dream. I don’t really want to know how many man-hours it takes to make a 2 hour movie like Monsters Inc….

Installing Ubuntu 8.10 on the Eee PC 901

Tom Dryer : 04:00 PM

The Eee PC 901 is an Intel Atom-based laptop, with 1 GB of RAM, a 20 GB SSD, and a 9 inch display. Since I bought mine, it’s been running Ubuntu 8.04 rather than the default Xandros-based OS. The laptop is surprisingly unfriendly to Ubuntu despite being preloaded with Linux. Ubuntu 8.10 has delivered some improvements for Eee PC laptops, but it still doesn’t work perfectly out of the box.

Eee PC 901

Here’s my guide to installing Ubuntu 8.10 on the Eee PC 901. Most of the instructions will also likely be relevant to the other Eee PC models.

  1. Boot the Ubuntu installer from a SD card or USB drive. If you have another Ubuntu 8.10 system around, the easiest way to create a bootable SD card or USB drive is using the USB Startup Disk creator tool (click the link for more details). Alternatively, you can use the UNetbootin tool (click the link for more details) to do the same thing.

    To perform a USB boot on the Eee PC, press the escape key during startup and select the USB option. Once the live system is running, if you have trouble with windows not fitting the screen turn desktop effects off for now so you can use the Alt key to pan windows.

  2. Install Ubuntu normally. The only special consideration to make during the installation is partitioning.

    partitioning the Eee PC

    The Eee PC 901 actually has two solid state drives: a 4 GB drive, and a 16 GB drive. I’d recommend putting root (/) on the smaller drive (yes, 4 GB is enough space for Ubuntu and some additional applications) and /home on the larger. I’d also recommend formatting these with the Ext3 filesystem and to not create a swap partition to avoid shortening the drive’s lifespan.

  3. Reboot into the new installed system. You’ll need to get an Internet connection working to continue. Wireless is not working at this point, so you’ll need to plug in to a wired network.
  4. Install the custom Eee PC Linux kernel. The Array.org Eee PC kernel adds wireless networking support to Ubuntu on the Eee PC, as well as some other fixes depending on your Eee PC model. See this page for details on supported models.

    Open a terminal and run the following two commands to install the key for the new repository:
    wget http://www.array.org/ubuntu/array-apt-key.asc
    sudo apt-key add array-apt-key.asc

    Open System->Administration->Software Sources and select the Third Party Software tab. Add the following software source:
    deb http://www.array.org/ubuntu intrepid eeepc

    Close Software Sources and when prompted, choose to reload the repositories.

    Install the Eee PC kernel from the package linux-eeepc (click the link to install), or by running the command below in your terminal:
    sudo apt-get install linux-eeepc

    Alternatively, you can try the faster but experimental lean Eee PC kernel in which drivers for non-Eee PC hardware have been removed. Install the lean Eee PC kernel from the package linux-eeepc-lean (click the link to install), or by running the command below in your terminal:
    sudo apt-get install linux-eeepc-lean

    Optionally, you can remove some packages to stop the stock Ubuntu kernel from being updated in the future now that you won’t be using it. Remove the linux-generic, linux-image-generic, and linux-restricted-modules-generic packages to do this:
    sudo apt-get remove linux-generic linux-image-generic linux-restricted-modules-generic

    Reboot to load the new Eee PC kernel.

  5. Enable Bluetooth and webcam. The Bluetooth radio and webcam both work after they have been enabled in the BIOS. Install Cheese for an easy way to take pictures and video.

That’s it for installing Ubuntu 8.10 on the Eee PC. For the most part, everything works fine with Ubuntu. GNOME reports 4.5 hours of battery life, and with the lean Eee PC kernel the system boots in 35 seconds (from Grub to GDM, with SSD tweaks).

You may also want to check out Four Tweaks for Using Linux with Solid State Drives to increase performance and extend the life of your solid state drive.

Flash 10 64-bit alpha. Finally.

Markus Thielmann : 03:53 PM

Adobe finally releases a 64-bit version of Adobe Flash 10 for Linux.

See the announcement or just grab it.


Add comment :: del.icio.us :: digg :: stumpleupon

The Mono Effect [Updated]

Alan Lord : 10:46 AM

About 15 hours ago, I posted an article on how to remove Mono from Ubuntu Intrepid Ibex.

A similar thing happened the last time, when I did a piece on doing the same thing for Hardy heron.

This:

is the Mono effect…

I know the traffic volumes aren’t that large - I get on average around 400-500 unique hits per day - but then unlike some other bloggers, I don’t write blog posts just for hits or revenue, nor am I particularly famous. I write blog posts because I want to.

Also, bear in mind I took that screen shot at about 10:30 in the morning UK time… There is still most of the day to go.

[Update]

Well, actually this is the Mono effect for the whole day yesterday:

And who is it who thinks the world wants Mono?

November 16, 2008

How to remove Mono from Ubuntu 8.10 Intrepid Ibex

Alan Lord : 08:00 PM

As this was such a popular How To for Hardy Heron, I thought I’d document the same exercise for Ubuntu’s latest version Intrepid Ibex (8.10).

With a default install of Ubuntu Desktop 8.10, there are quite a few mono packages installed as standard. In fact there seem to be quite lot really (I counted 28!), especially considering they are only there to support two fairly minor applications: Tomboy and F-Spot. Although the good news is that Intrepid Ibex comes with one less Mono application than did Hardy; which also included Banshee.

If you type the command dpkg -l '*mono*' you will get a list that looks something like this:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-=============================
ii  libmono-addins 0.3.1-5        GTK# frontend library for Mono.Addins
ii  libmono-addins 0.3.1-5        addin framework for extensible CLI applicati
ii  libmono-cairo1 1.9.1+dfsg-4ub Mono Cairo library
ii  libmono-cairo2 1.9.1+dfsg-4ub Mono Cairo library
ii  libmono-corlib 1.9.1+dfsg-4ub Mono core library (1.0)
ii  libmono-corlib 1.9.1+dfsg-4ub Mono core library (2.0)
ii  libmono-data-t 1.9.1+dfsg-4ub Mono Data library
ii  libmono-data-t 1.9.1+dfsg-4ub Mono Data Library
un  libmono-dev    <none>         (no description available)
ii  libmono-i18n1. 1.9.1+dfsg-4ub Mono I18N libraries (1.0)
ii  libmono-i18n2. 1.9.1+dfsg-4ub Mono I18N libraries (2.0)
ii  libmono-securi 1.9.1+dfsg-4ub Mono Security library
ii  libmono-securi 1.9.1+dfsg-4ub Mono Security library
ii  libmono-sharpz 1.9.1+dfsg-4ub Mono SharpZipLib library
ii  libmono-sharpz 1.9.1+dfsg-4ub Mono SharpZipLib library
ii  libmono-sqlite 1.9.1+dfsg-4ub Mono Sqlite library
ii  libmono-system 1.9.1+dfsg-4ub Mono System.Data library
ii  libmono-system 1.9.1+dfsg-4ub Mono System.Data Library
ii  libmono-system 1.9.1+dfsg-4ub Mono System.Web library
ii  libmono-system 1.9.1+dfsg-4ub Mono System.Web Library
ii  libmono-system 1.9.1+dfsg-4ub Mono System libraries (1.0)
ii  libmono-system 1.9.1+dfsg-4ub Mono System libraries (2.0)
un  libmono-winfor <none>         (no description available)
un  libmono-winfor <none>         (no description available)
ii  libmono0       1.9.1+dfsg-4ub libraries for the Mono JIT
ii  libmono1.0-cil 1.9.1+dfsg-4ub Mono libraries (1.0)
ii  libmono2.0-cil 1.9.1+dfsg-4ub Mono libraries (2.0)
un  mono-classlib- <none>         (no description available)
un  mono-classlib- <none>         (no description available)
un  mono-classlib- <none>         (no description available)
un  mono-classlib- <none>         (no description available)
ii  mono-common    1.9.1+dfsg-4ub common files for Mono
ii  mono-gac       1.9.1+dfsg-4ub Mono GAC tool
ii  mono-jit       1.9.1+dfsg-4ub fast CLI JIT/AOT compiler for Mono
ii  mono-runtime   1.9.1+dfsg-4ub Mono runtime
un  mono-utils     <none>         (no description available)
un  monodoc-gtk2.0 <none>         (no description available)

Fortunately, the dependency management tools mean that we don’t have to remove each one of these files on it’s own. The single package mono-common is a common dependency for everything above apart from libmono0.

So the command to purge yourself of all the Microsoft infected software is as follows:

sudo apt-get remove --purge mono-common libmono0

This command will remove almost 60MB of crap from your hard drive and free you from eternal damnation and suffering. Well, OK. Perhaps it’s not quite that bad, but I personally have no wish to use software that is so tainted. Nor for that matter do I want to use code that is so tightly bound to a company that, amongst other things, manages to screw us all out of significant tax revenues.

File Management Preferences

There are several alternatives for the two minor applications that we have just removed. For F-Spot, I recommend using the gThumb application which basically does the same thing, and in fact is better in my opinion as I found it easy to set it automatically remove the photos from my camera when it copies them across. Something I never managed to work out how to do when I tried F-Spot.

To install gThumb simply type:

sudo apt-get install gthumb.

If you want gThumb to start automatically when you plug in your camera, or other removable storage media with photos on, open Nautilus (the Gnome file manager), go to the Edit menu and select the Preferences option. On the File Manager Preferences dialogue window, select the Media tab and then change the option next to Photos: so it says “Open gThumb Image Viewer”.

For the note taking app, there are several alternatives. I have used Zim in the past which is very good, and I have also recently started using Notecase just as a comparison. There are others too. I recommend that you try a few and find one that suits you.

Ubuntu Wanted now supports task editing!

Sense Hofstede : 05:24 PM

It took a while but now I’ve just uploaded revision 16 of Ubuntu Wanted adding editing support and a basic managing interface. The system could be considered useable now, but it still needs some more testing and I’d be really thankful if someone would have a look at the code to check the performance of the SQLs and PHP. Another important thing that needs to be done is adding some overview pages and a search tool so people can actually browse the tasks available.

I’m currently looking on the theme MadsRH created and the suggestions Huge Brant made. I’ll try to implement it as soon as possible so new pages or additions to the views would incoperate this design and the designers can see the fruit of their labour.

If you’d like to help with Ubuntu Wanted, please ask in #ubuntu-wanted @ irc.freenode.org or contact the ubuntu-website team or me.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

Banshee 1.4 with DAAP music sharing

Sense Hofstede : 02:42 PM

In my previous post about Banshee I forgot to show one feature of Banshee: the DAAP extension. I just forgot it.

But after a while I did miss the functionality and searched in the menus of Banshee for it’s configuration dialog. I couldn’t find a thing, so I checked the preferences window. DAAP was indeed enabled, so that couldn’t be the problem. I searched at Google but couldn’t find an up-to-date guide.

Banshee's extensions manager

Fortunately it turned out to be very easy to fix. I just disabled and enabled the DAAP plugin and there the network share was! I could start importing the music from it with an option in the context menu, Banshee automatically looked for duplicates.

Now all I wanted was the ability to share my own music too. It turned out that the DAAP server ability was removed from Banshee and you now have to use another application to handle that. Tangerine was recommened on the maillist were they discussed the removal of the DAAP server ability from Banshee, so I tried it.

Install Tangerine

Tangerine has three different ways of selecting the music it should share: automatic detection, a specified music player and a manually selected directory. The advantage of this is that you don’t have to have your music player running to share your music, although some would see that as a disadventage because you can’t easily turn it off; you’ll have to disable it in the preferences menu.

The share doesn’t show up in Banshee’s Shared Music tab. I like it, but I’m not sure if it’s a nice feature or caused by one of the bugs mentioned in the many bug reports about Banshee’s DAAP plugin I found on GNOME’s Bugzilla. I’m at least responsible for one, I reported the problem of having to reenable the plugin before it works: http://bugzilla.gnome.org/show_bug.cgi?id=561059

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

Well done Ubuntu

Pavel Rojtberg : 12:06 PM

I just started my Intrepid desktop without having xorg-input-kbd and xorg-input-mouse installed, which means that X.org in Intrepid now uses evdev for all input handling. This is nice, since it moves all input drivers out of X and uses the kernel input event interface instead - less code duplication yay!

By the way; evdev was one of the many things which made the EEE PC at linux plumbers boot in 5 seconds.

Agonizing’s over, accept success when you can

Jim Comeau : 11:26 AM


When you don’t know where to start, attack everything at once.

I’d say the heading speaks for itself, yet a new project of this magnitude always seems to boggle me. Other things it my personal life were also in flux, as much as they are now I’m settled. So instead of setting real goals, I had to come to terms with all the relationships that are involved in a reliable, robust computer network.

So, mulling over what I’ve learned about technology over the last umpteen years, I agonized. Over stupid stuff: users, groups, hard drives, network cards, virtualization, file systems, updating, customizations, preferences, and so many more things.

Don’t bite off more than you can chew at a time. Especially if it’s not appropriate to spit chunks.

Well, I rechecked the preseed setup I had installed on my computer to start with. Now preseeding, when it’s set up well, is a magical beast. But like most magic, it has some serious problems with fixes when things don’t happen as you expect. To explain, preseeding involves setting up a computer automatically, so if you have to reinstall everything on the computer you can do so quickly without remembering complicated steps. Or referring to half-assed notes you took before.

Therefore I set up two of the big computers to automatically load the Ubuntu Hardy Server operating system. In it’s current state, it’s a very open, stable, practical system with the option of easily adding fancier features that make it robust. But the most advantageous feature is what it inherited from the Debian project; the apt package management system.

So I got the computers to be able to be wiped clean and reloaded with a basic operating system in about seven minutes. I played with this over and over again, adding a few tweaks as I went. When things went well, I’d hit the backup button I installed to make sure my work wouldn’t be in vain if a hard drive failed. Looks like I was in sight of my goal, to be able to install a new server with a minimum of steps that a non-tech would be able to follow by purchasing the right equipment, plugging it in, and not have to make any decisions to get to a working state.

I hit a big snag when I installed two more network cards into the computer, which only had the one attached to the motherboard. I had searched for hours trying to find good cards that would work with Linux and give me the most bang I could out of the office wiring. It was my plan that I was to use one of these to install from, yet during the installation process there was a problem. The card tries to connect to the network twice during the process, and the second time through it couldn’t connect. It was maddening!

Network card Russian Roulette.

Fortunately, the Ubuntu installer has some very nice features, and I found that pressing Alt-F2 I could log into the system at the point it was hung up; and Alt-F4 to see all the messages the installer had spit out. It took me a while, but I realized that it was switching network cards on me between the first and second connection. I googled for hours to find the right answers — I couldn’t have the computer switching network cards on me in some random manner. If I rebooted, or the power went out so long it had to shut down, then I would be the only one able to get it back running correctly. So much for reliability — I felt I was falling back into the hole I’d been spending all this time, and the boss’s money, to dig out of.

After many reboots, I discovered that the computer would assign the network cards at random. Usually, the one on the motherboard would get named “eth0″, but occasionally it would end up as “eth2″. And the other two cards posed a problem as well, in that all I could see was their make and model; since I’d bought them at the same time from the same place, they were indistinguishable.

So as I googled my fortieth page to find some answers, I discovered that the nice folks that provide Ubuntu had solved this problem with some more magic called udev, but it only kicks in after the system is installed. That’s great, but I do wish that it had been more obvious; the configuration file is buried deep in the system. I do have to remember that if I change out cards that I have to find that file again, or the new card will be mounted in a new place, rather than the system automatically replacing the one I’ve taken out.

As much as I hated to, I resigned myself to installing from the original network card that came with the machine. It did have me rethink my security plan, and after agonizing over that for a while I realized that I just had to document plugging a cable in here to start, there when it’s ready to become a second router. No biggie, and it’s embarrassing to worry too much about such a minor thing. But if you know me, that’s not my nature; I cogitate on puzzles until they are solved or something else forces me to abandon it. Then I realized that this whole situation was forcing me to unplug the computer from the jack that goes to the internet while the installation was taking place.

Computers have no soul, and much as you’d like to be friends with them and assign human characteristics, they’ll never watch your back. Yet, this whole project has developed some life of its own; or it seems that way to me. Resolving this problem forced me back to what was smart, and made me realize that the one thing I’d always done during Windows installations — unplugging from the public network — was always a smart thing to do. Even for an operating system that we may feel secure with once it’s up and running.

Hacking is fun, and will cause you much heartache.

So now I had a good basic system going, and it was time to decide what my next move would be. Well, slick as a new Ubuntu installation is, it doesn’t make much of a server out of the box. That’s because any software that talks to the network, that is any process that uses outgoing ports, is disabled even after installation. That’s a very smart move on their part, as the liability of opening a port to the outside world can potentially be huge — or at least screw up your week.

But server software isn’t very useful if it’s not serving, and it’s left to the admin to figure and configure it out. Normally, the process goes like this: you install software, configure it and all the related pieces, it doesn’t work as you expect, you try some features in it you think you may want, you find out you don’t need all that junk, you get it working, and you make some comments along the way if you think you need to do it again.

It works for now. A year later, you install a new computer or some software that changes how things are set up. You go back to what you’ve done before, and remember how clever you were at the time. When you look again, you find you can’t get back to the mindset you were at before. What seemed obvious at the time when you had originally installed the software you’d left out of your comments is now coming back to bite you. And some of the relationships to other software are no longer applicable. Almost always, it ends up feeling simpler just to start from scratch again, so you do.

You know that putting in good comments and achieving a consistent state for others to follow is the right thing to do, but at that point you feel as if you’ve wasted your time. If you’re taking over someone else’s work, its much worse unless they wrote an entire step-by-step how-to document. It’s much better to configure software as an installable package, and keep consistency with the rest of the system. Keep commenting and provide a list of changes you’ve made to it over time, but you really only need to fully explain what makes your customized version different from the default. So, when it comes time for someone else (or you at a later stage in your life) to consider whether to use this version or go back to the drawing board, they only need to evaluate if your package does what they want it to do; and you make it easy for them to make that decision by keeping your notes very simple.

Enjoy the nice things that are right in front of you.

Ubuntu inherited something very nice from the Debian project; it’s not only an operating system, it’s a software publishing platform. Much thought and care has been put into the publishing tools, and hundreds of little helper programs are available to round out your setup. You can list these programs as “dependencies” to your software, and call on them to provide services so you don’t have to write the functionality yourself. That’s great if you’re the official maintainer of the software package, and it works extremely well for their developers.

Now I want to make packages for myself, to set up this new network automatically to a custom configuration. It turns out that the huge effort to develop the operating system does not support this well with how-to documents; or rather that these documents are huge and unwieldy as they address things such as how to submit new work to the society for inclusion in the distribution.

Here’s the choice I was facing: either do things the old fashioned hacking way, or learn how to apply what was already available. I thought some more about how things are normally done by system administrators to maintain and distribute custom configurations. I was looking at developing my own way of pulling down a custom configuration, applying it to the software, restarting the software if needed, etc. Or I could use tools others had developed to do similar things, having to learn their arcane nomenclature and understand their mindset. As I looked at this hard, I could see very clearly that a different system would require much more work on my part than just learning how to do it right in the first place.

Old dog learns new tricks.

So after poring over more how-to documents and bugging the nice people at the Freenode’s #ubuntu-motu chat room, I’ve realized a very simple way to make and distribute software configured to my needs. Note that this is just a starting point, I’ll be refining and better documenting this method as I learn more.

  • Start with a clean working system.
  • Install the official package you want to customize.
  • Tweak the configuration as desired, making comments along the way.
  • Test, re-tweak, and test again until all bugs are resolved or acceptable.
  • In an empty directory, run “sudo dpkg-repack –generate”. This will make the guts of a .deb package with all your configuration changes intact.
  • Edit the DEBIAN/control file to bump the version number up higher than the original software.
  • Run “sudo dpkg-deb -b <your directory>”. This makes a file called “.deb”, which is a hidden file.
  • Rename the .deb file to a standardized package name with your new version.
  • Copy the renamed file to your repository.
  • In your repository, run “dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz”.
  • On the computers you want to install or update, make sure your repository is listed in “/etc/apt/sources.list” or “/etc/apt/sources.list.d/”.
  • Run “sudo aptitude update”. This will make your new package available.
  • Run “sudo aptitude purge <your package>” if there’s an older version of the software installed. This wipes out any configuration files on the target system as well.
  • Run “sudo aptitude install <your package>”. That’s it!

If this looks complex, of course it is. The method has many advantages to it though:

  • You can install the custom configuration on as many computers as you want simply once this process is done.
  • If you want to share your customized package with others, you make a publicly assessable repository and upload/update it.
  • You can include your customized package in a preseeded, hands-off install.

I’m missing some steps I’ll want to include once I learn how, mainly how to proper document the changes. That looks very simple, I just haven’t gotten that far yet. And I’ll be automating this process along the way so I won’t have to copy and paste the somewhat arcane commands. Thank you for reading, I’ll look forward to writing another overly-long post on some irregular date in the future.

      

November 15, 2008

Banshee 1.4 now on my desktop

Sense Hofstede : 11:52 AM

Banshee music player

Banshee has always had a dedicated group of fans. In the discussions about Intrepid Ibex there were a lot of people proposing to replace Rhythmbox with Banshee. I had a quick look at Banshee at that time and wasn’t that impressed with what I saw.
Maybe I was too much used to Rhythmbox, or maybe my bad impression was caused by the Hardy Heron just including the 0.13.2 version of this musicplayer maintained by Novell. Anyway, I kept using Rhythmbox.

However, yesterday I read Banshee Kickin’ It on the planet and the screenshots made me curious. Since the Intrepid Ibex ships version 1.2 I searched for a PPA at Launchpad — long live PPAs! — and found the PPA for the Banshee Team.

Installing

In order to get the latest version of Banshee, use this PPA:

deb http://ppa.launchpad.net/banshee-team/ubuntu intrepid main

You can add it manually by pasting it in /etc/apt/sources.list, or do it with the graphical interface:
Go to System->Administration->Software Sources;
Go to the Third Party Sources tab and add the line using the Add button;
Close the program and press the Reload button in the confirmation dialog.

Now you’re ready to install the latest version of banshee. Use the Add/Remove program or Synaptic or press this link: install banshee.

Use

As soon as you launch the program you’ll notice the sidebar on the left, which contains more items than the one in Rhythmbox.

An empty Banshee window after it's been installed.

As you can see, it has — next to the Music Library — a Video Library, Podcast support, integration with internet radio and Last.FM and a PLaylist Generator, which is taken care of by Mirage, which is still under active development.

Settings

Under Edit->Preferences you’ll find the settings, just like you do in other Linux programs. It never really made sense to me that the other two big OSes place it somewhere else.

The default directory for the music library is the one determined by xdg-user-dir specification.
Some functions that I find very nice and can’t find in Rhythmbox are the ReplayGain option, which tries to equal the volume of your songs to make sure you don’t get surprised when Banshee plays a song that was recored with a high volume level and the option that should automatically update the folder strucutre and file names according to the File System Organization options provided below the checkbox. Unfortunately it doesn’t seem to work.

You can also let external media automatically be copied to your library, which I enabled, and manage the extensions. Their settings are managed via the Extra menu and/or in the extensions’ tab, which took a while for me to find out.

Music library

At first I wondered why it didn’t start to automatically import my music collection, which already was in the music directory. I couldn’t find the option to automatically add new songs, like Rhythmbox has. After searching for a while I found the scan option in Extra->Rescan Music Library. It completely goes through your music library and automatically downloads the cover art. The playlist generator Mirage also starts to scan the music, which takes a while and consumes quite some CPU time. I still haven’t finished it, since it’s interrupted when you switch user or shut down and has to be done all over again afterwards.

You can drag songs, albums and artists to the play queue to add them. Multiple albums and/or artists can be selected at the same time to filter the songs you’re browsing. At the right, above the songlist there is a small search box that you can use to search your collection.

A nice addition is that the program shows a list of recommended artists at the bottom of the program when browsing your music. You have to have the Last.FM extension configured in order to use this.

Last.FM

There are two ways to give your Last.FM credentials: use the Extra menu or press the button in the warning message at the bottom of the program when you go to the Last.FM tab. Both times you’ll get a pop-up asking you for your username and password. When you press OK it automatically checks if they are valid, so you don’t have to check the statistics to be sure that it does work, like you have to do with Rhythmbox.

You can easily add stations by pressing with the right mousebutton on the Last.FM tab in the sidebar. Every type and more are supported.

Podcasts

To add a po

Add a podcast in Banshee

dcast station, press the Subscribe to Podcast button on the right top in the Podcast section or use the context menu of its item in the sidebar. A small pop-up window will appear and the link that’s currently on your clipboard will automatically be pasted in the text box. By default only the latest podcasts will be downloaded.

On the place where you can find the album list in the Music Library, you’ll find the podcast station list. Downloaded podcasts are marked with a small blue dot in front of their entry.

MP3/4-player synchronization

Banshee makes it very easy to synchronize your MP3/4-player. If you want to it can automatically make sure that it has the same songs and videos as you have in the library on the computer and even sync podcasts. Be careful with that, it really copies all music to your player, even if it won’t fit, resulting in an error.

That error seems to have killed my Samsung T10, after the synchronization process — which I started to see what would happen — had halted because there was no space left, I deleted all songs to manually determine what songs I wanted to place on it. However, it seemed like the deletion gave the final blow and the MTP connection got lost. I didn’t find this that strange since MTP isn’t that stable on Linux, so I disconnected the device and plugged it back in. However, it now froze on the startup screen! Reset didn’t help and now I’ve got a bricked MP3-player.

If anyone knows how to solve this, please leave a message.

You can configure the behaviour of Banshee by selecting the main entry of the MP3-player in the sidebar. An overview page will show up with some information about the device and a few checkboxes. The content gets sorted by it’s kind. Please keep in mind that you can’t copy e.g. music directly to the device’s Music Library. You’ll have to drag the files to the device icon.

Make Banshee the standard music player

If you like Banshee and want to make it your main music player, you should set it to default in your system preferences. You can do this by going to System->Preferences->Preferred Applications and change the default music player to Banshee on the multimedia tab. Now the multimedia keys on your keyboard will automatically start Banshee and the music-applet also uses it by default.

Conclusion

I really like Banshee and feel it’s better than Rhythmbox. Although Rhythmbox isn’t bad, it just doesn’t have as many functions and doesn’t look and feel as good as Banshee. The progress bar at the left bottom of the program is one of those small things that makes a program look better and smoother. I find it also easier to configure and more extensive.

If the dicussion of what music player should be default is started again, I’d vote for Banshee.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

Blender UI - reinventing the Wheel

Pavel Rojtberg : 11:44 AM

I just ran across this proposal for imporving the UI of Blender. First of all it is nice that they are trying to improving one of the most confusing an not intuitive interface I have come across. It is especially also nice since they also recognized some design flaws, like having to set object properties befeore creating the actual object, which prevents adjusting the properties afterwards.

Another intresting point is to see how it could come that far; Blender was initially intended to be used by the same people who wrote it, which is a small audience that does not care about usability and interface standards, so you can define the UI the way the like it best. But as Blender became opensource the audience dramatically increased and Blender now is used in the context of a desktop, where standards matter.

But what I dont like is the way out of their “self written toolkit” trap; first of all the proposal says, that it is a good idea, that Blender looks the same across the platforms. But that is clearly a false assumption since meanwhile we know that “same everywhere” translates to “integrated nowhere” - this is even something that Mozilla after a lot of struggling acclaimed when they left out their key-lock concept out of firefox3 on Linux. This is also a principle all modern cross platform toolkits try to follow, but Blender wants to keep to its own look, which they want to improve instead.

This shows another problem of the “self written toolkit”; currently they have many problems with usability, because the toolkit is broken at a basic level, like there is no visual difference between buttons and a one out of many selection. Things that were available in GTK for years and which are documented in the HIG, so you can use them correctly.

So basically what we are seeing here is another lack of interaction between Open Source projects - instead of use (for instance) GTK and get platform integration and the experience of years with user interaction for free, Blender tries to fix their inherently broken toolkit and so to say reinvent the Wheel.

Status update

Mathieu Trudel : 02:12 AM

Not much to say here. I've been working for some time at the adaptation of a patch to Terminator (a GNOME terminal wrapper that supports panning), and quite a lot of time on NetworkManager's VPNC plugin still, which seems to still give me some issues. The goal is mostly to adapt the plugin to mimic some of the features of the OpenVPN plugin, where the auth dialog goes to read some GConf keys, but so far I seem to run into ugly SegFaults, or other errors, and I'm still kind of tracking them down, although I haven't spent too much time on that, since I've bought an Xbox. Fixing those should be done fairly soon, and there should be a nice update to network-manager-vpnc on my PPA (and some of the still-broken code is already on my Bazaar branch). As for Terminator, my bazaar branch already has the fix committed, and my PPA has it packaged:

terminator - 0.11-2ubuntu2~ppaintrepid1

Assassin's Creed and Crackdown do seem to steal quite a lot of time from me, but it's a fun way to finish a forced vacation from work ;)

November 14, 2008

Peng’s links for Friday, 14 November

Peng Hardin : 05:12 PM


  • GetDeb - Intrepid: Liferea 1.4.22b. If you’re looking for a GTK/GNOME good news aggregator that isn’t part of a web browser or email client you should check out Liferea, the Linux Feed Reader. It’s in the Intrepid repo, but there’s an even newer version available on GetDeb. If I weren’t using Evolution for my RSS reader I think I’d use Lirerea. Either way I discovered some great feeds just from using it for a trial.
  • David Welton: Ubuntu Intrepid Regression: Beware of Wireless and WPA. If you use wireless networking and WPA on Ubuntu you need to read David post about an ugly regression that has reared it’s ugly head.
  • Sense Hofstede: Why is Linux support often such a deception? Sense looks at the fact that Google’s Chrome is getting a lot closer to working on Linux to take a bigger look at developers supporting Linux for their software. It’s a great big picture article that I had to make sure it’s been Stumbled.
  • Aaron Bockover: Banshee 1.4 hits the streets, packed with Awesome. Banshee has become the first media player to support the Android/G1 phone, and Aaron’s got the scoop.
  • Stormy Peters: KDE vs GNOME. Users are always arguing about which desktop technology is better, but Stormy shows us why the GNOME team doesn’t look at the KDE as a team to beat in the marketplace. And she’s right, too.
  • TualatriX: Ubuntu Tweak 0.4.2 released: Source Editor! There’s an update to Ubuntu Tweak, and the biggest news can be misunderstood at first glance. I thought it was a way to edit source code, but this is something that can be even handier. Not only will it let you edit the third-party sources list on your system, you can share it, too. I’m a little concerned about possible security issues with the shared sources, but I wouldn’t be a bit surprised to find out that TualatriX is already on that case.
      

Metacity Compositing Effects in Ubuntu 8.10

Tom Dryer : 04:00 PM

Don’t have a graphics card capable of running desktop effects with Compiz on Ubuntu? By enabling compositing in GNOME’s default Metacity window manager, you get some eye candy and can run applications that require or benefit from a compositing window manager. Metacity uses your CPU instead of a graphics card, so it’ll work on anything - even a virtual machine.

I’ve written about compositing with Metacity in Ubuntu 8.04, but Metacity has received some updates since then so I though I’d try it again.

Metacity even with compositing turned on is still very light on the effects. Windows and menus are drawn with shadows, a bit more noticeable than the default ones in Compiz. The Alt-Tab switcher gains previews of the windows it’s switching. Noticeably missing is an animation for minimizing windows; all you get is the same old black boxes effect.

One thing I noticed right away was how smooth windows were drawn when being moved. This has never bothered me in Compiz, but Metacity is definitely much smoother.

One annoyance was switching between workspaces would cause any windows to flicker as they are redrawn. Also, there are still no options for any of the compositing effects, so you’d better like the defaults.

The Alt-Tab switcher

If you’re already using Compiz desktop effects, you’ll need to turn them off to switch back to Metacity. Open System->Preferences->Appearance, open the Visual Effects tab and select None.

The quickest way to enable compositing in Metacity is by running this command in a terminal:
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true

Here’s the corresponding command to disable compositing:
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false

If you’d rather not use the terminal the GNOME Configuration Editor is also an option. Press Alt-F2 to open the Run Application dialog. Type gconf-editor and press enter. Navigate to apps->metacity->general and use the compositing_manager option.

November 13, 2008

Why is Linux support often such a deception?

Sense Hofstede : 07:58 PM

I just found an article at Digg.com about GMail finally working in the Google Chrome test shell: Google’s Chrome now works on Linux, crudely. This doesn’t mean the release of a Linux version is coming near, before the actual program works, a lot of work needs to be done.

The Windows version was released months ago

It happens more often that the promised Linux support isn’t as good as expected, has fewer functions or gets less attention from the developers. A good example is Skype, its Linux client is nowhere as good as the Windows version.

I can already predict the responses of people saying it’s just logical, because Linux just has a much smaller marketshare. However, this doesn’t mean that you should pay less attention to an OS if you say that you do support it. I don’t say that Chrome didn’t do this right, but if you decide to spend less effort on the Linux version, please state it very clearly at your website so we know we should look for an alternative program that does value all its users.

Apart from the program installed on Linux, the OS itself also has got support problems. Some netbooks that are sold with Linux have less functionality than the Windows versions, or have bad drivers. This is a bad case and probably partially the reason for of MSI Wind netbooks with Linux being more often returned than the Windows version, which I wrote a blog about earlier.

It seems like the companies and users have a higher expectation of Linux and start with optimism. However, after a while the users get disappointed with Linux, because the hardware they’re using isn’t fully supported by the manufacturer that installed Linux on it itself or because it has less features than the Windows equivalent.
The companies find out that Linux versions aren’t as profitable or popular as Windows versions, simply because the lack of marketshare. They decide to spend less resources on the Linux version resulting in a program that has differences between its different versions. Or they started with a program that already had less functions and thus didn’t became as popular as they expected, which they could have caused themselves by not paying as much attention to it.

What could be done about this? Yes, I do agree that the marketshare should increase in order to make it more interesting for companies to maintain a good Linux version. However, I don’t think that a small marketshare is a good excuse for this. If you decide to support a certain platform, you should do it properly. When you don’t do so, you contribute to a negative image of Linux because people notice that their favourite program isn’t as good at the opensource OS. On top of that, why would you want to serve the whole world? You don’t have to have a huge group of users to make profit or be succesful.

With supporting Linux badly, the companies doing that are at least partially responsable for the reasons that made them support it bad. If they would support it on a good way, there would be another reason to use Linux, increasing the potential userbase for that version of the program.

And supporting Linux can really give you popularity. A good example of this is the MMORPG Regnum Online, which supports both Windows and Linux. Because of the lack of other good and free-to-play MMORPGs, it has become almost the default choice for Linux users that don’t like the overwhelming amount of roleplaying in PlaneShift. Although the group of users still isn’t that exceptional, it’s still attracting a lot of users and binding them to it because of it unique selling point: Linux support.

(Digital Fingerprint:
84f1fbc45bf0298666516cfd83159c26)

Time for another Firefox update

Peng Hardin : 06:55 PM


I was going to write a links post but it turns out I just saw one thing in my RSS feeds today that I want to pass along. Mozilla has rolled out security updates for both Firefox 2 and 3, as well as SeaMonkey.

Firefox 2.0.0.18, Firefox 3.0.4 and SeaMonkey 1.1.13 are out with some critical security fixes as well as some stability updates that should fix some crashes that users have been experiencing. The links for each version above go to the release notes for the updates that you can check to see if they’ve fixed that annoying issue you’ve been fighting.

To apply the update simply wait for the automated update notice or run Help > Check for Updates… from within the version of Firefox 2, Firefox 3 or SeaMonkey that you have installed. (If you’re running Firefox on from your GNU/Linux distro’s repositories you’ll have to wait for the updated packages to be created, which could take a little longer.) You can also delete the newest version from the release notes links above.

And just as an FYI, if you’re using the Firefox theme included in the Mac4Lin 1.0 Release Candidate we’ve got updated themes available, and I’m hoping we can get a second RC posted before the weekend’s done. We’re getting really close to the release of Mac4Lin 1.0, and I think I just need a few more items for the docs, plus we want to check a few things a little more, but I think it’s safe to say that Mac4Lin 1.0 will probably make a killer Chrismukkuh pressie for that special OSX loving GNU/Linux user in your life, and the price point is probably perfect, too. So put that in your Yankee Swap. :p

      

Shiki-Colors and Community Themes in Ubuntu 8.10

Tom Dryer : 04:00 PM

A few days ago, the Ubuntu Tutorials blog pointed out the excellent Shiki-Colors theme. It’s my new favorite!

On the theme’s GNOME Look page, you can download the GTK theme, or a script which can also install icons, a GDM login screen theme, and wallpapers. I just wanted the GTK theme so I selected this download. To install, drop the downloaded file into the System->Preferences->Appearance Theme tab. You’ll then have the option to select one of the four Shiki variants.

If you’re still using Ubuntu 8.04, don’t forget to install the required version of the Murrine theme engine. Here’s the i368 package from theme’s author.

In the screenshot above, I’m also using the Liberation fonts set, which I think looks a bit better than the default fonts. Install Liberation fonts from the package ttf-liberation (click the link to install), or by running the command below in your terminal:
sudo apt-get install ttf-liberation

Use the Fonts tab in System->Preferences->Appearance to apply the new fonts. I switched from the default font Sans to Liberation Sans.

If you’re looking for a theme for your Ubuntu 8.10 desktop, don’t forget to check out the new community themes package. It includes a three other excellent themes: Dust, Kin, and New Wave.

Install the community themes from the package community-themes (click the link to install), or by running the command below in your terminal:
sudo apt-get install community-themes

If you’ve installed a new theme, applications running as root like Synaptic may display unthemed. Here’s how to fix that problem.

What are your favorite themes for Ubuntu?

November 12, 2008

Peng’s links for Wednesday, 12 November

Peng Hardin : 07:35 PM


  • Obey Arthur Liu: Aptitude 0.5.0 (aka Aptitude-gtk) released. If you love using Aptitude for installing software on Linux you may want to check out the version that has been released in Debian Experimental.
  • Richard Hull: Slowly but surely. I’m helping with the 1.0 release of the Mac4Lin Transformation Pack, and Richard’s working on a native theme for getting GTK+ on Mac OSX. If you’re an OSX user you should check out Richard’s blog and his screenshots.
  • Scott Kitterman: Please be nice on the mail lists. Mailing lists are great ways to keep up with what’s going on in the tech community, but some folks on the ubuntu-devel-discuss list have been rude enough that it’s scaring off some devs. If you’re on that list, or any mail list for that matter, please don’t be an asshat to the others on the list. The user you chase off may be just the person who can help with something you’ve been wanting for ages.

That’s a lid, although we may get a second release candidate for Mac4Lin soon and if (or should I say when) we do I’ll write a post to let y’all know about it.

      

Continuing the book meme

Peng Hardin : 07:15 PM


Over on Planet Ubuntu they’re enjoying a book meme, and I though I’d join in.

“He had one paw on the numeral three and the other on zero.” - The Cat Who Saw Red by Lilian Jackson Braun.

Now it’s your turn.

  • Grab the nearest book.
  • Open it to page 56.
  • Find the fifth sentence.
  • Post the text of the sentence in your journal along with these instructions.
  • Don’t dig for your favorite book, the cool book, or the intellectual one: pick the CLOSEST.