Sweet Home 3D : Prevent crashes and change icon

Sweet Home 3D is the best interior design application that I have found so far for Linux. It is easy to place your furniture on a house 2D plan, and render the whole scene in 3D.
The website gives you the possibility to run the application online without installation, as being written in Java.
Unfortunately there are two points that bothered me for a while and that I fixed finally:
  1. The application crashes every time you choose the preferences or the 3D rendering from the menu.
  2. The application icon has a very low resolution and looks awful when rendered by the application launchers.

Install instructions

Sweet Home 3D can be installed from the GetDeb application repository, execute the following in the shell:
sudo -v
# Enable GetDeb Application repository:
sudo echo "deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps #GetDeb repository extends the official repositories" > /etc/apt/sources.list.d/GetDeb-Apps-oneiric.list
# Add the repository GPG key
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
# Update package information
sudo apt-get update

# Install Sweet Home 3D package
sudo apt-get install sweethome3d

Prevent crashes

Sweet Home 3D checks whether computing off-screen 3D images is supported by Java 3D on your computer, but the detection test itself makes Sweet Home 3D crash!

A special flag can be passed to the Java command line inside the launcher script.
The following shell commands change the original script, and leave a backup.

sudo -v
sed -i.bak 's/java /java -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false /' /usr/bin/sweethome3d

Change icon to higher resolution

Higher resolution icons can be found inside the source code, the following shell commands replaces the low resolution one with a higher one:
sudo -v
cd /tmp
wget -q http://sweethome3d.cvs.sourceforge.net/viewvc/*checkout*/sweethome3d/SweetHome3D/src/com/eteks/sweethome3d/viewcontroller/resources/help/images/sweethome3d.png
sudo cp /tmp/sweethome3d.png /usr/share/pixmaps/sweethome3d.png

Application launcher Kupfer

For some time I used Gnome-Do as application launcher, for its beautiful design and huge amount of plugins which enhance its features. But there were to things which bothered me lately:
  • Gnome-Do's Skype plug-in stopped worked time ago
  • Some applications that I removed already, still showed up in the search results
  • Icons weren't refreshed.
All recommended tips that I found in forums (remove certain folders from Gnome-Do) didn't help.
But in one of these threads they commented about another application: Kupfer.
Tried that one, and it works like a charm, connection to Skype works, almost has all plugins that I used from Gnome-Do and seems to integrate with Gnome, KDE and other systems.

Install instructions

Kupfer can be installed right away from the universal repository:
sudo apt-get install kupfer 
In it's preferences you could choose the same key-combination you used with Gnome-Do, and set it's auto-start flag.

Changing wallpapers with Wally

Years ago, I posted about tools for changing your desktop wallpaper automatically.
The best tool I found so far is Wally, which is able not only to rotate through your local wallpaper picture collection, but also obtain them from several online storages like Picasa, Flickr, remote folders, etc.
It permits to define tags to include certain sets of pictures that you like.

Install instructions

Wally can be found in the universe repository of your Ubuntu system.
sudo apt-get install wally

KUbuntu

Wally is available as desktop plugin, so you'll have to enable it in your desktop folder settings.

Ubuntu Oneiric

Ubuntu recently changed the management of the desktop wallpaper, which breaks Wally 2.3.2 (the one which can be found in the repository), it isn't able to replace the wallpaper. To repair this, you'll have to install the .deb package 2.4.3 from the developers website.

Update to Ubuntu 11.10 Oneiric Ocelot

These days, Ubuntu's new release hit the repositories, so I upgraded my three systems as soon as possible to see if some annoying Unity bugs have been solved finally. Here is the resume and the reasons why I'll evaluate to switch to KDE finally: Upgrade
During the upgrades I had two issues:
  1. Emacs got somehow broken on one system y prevented the upgrade process to finish completely. It even said, the process had been aborted, but the only thing missing was the last Cleanup step.
    I removed emacs packages and reinstalled them, then everything went fine.
  2. Screenblanker got stuck on one of my machines during upgrade, so I could hit on any button to enter the last Cleanup step.
    I connected via Remote Desktop to that machine and could finish the process correctly.
Updating custom repositories
As usual, the upgrade process disables all your custom repositories to prevent problems. You'll have to adapt and enabled them by hand, or you might use these instructions to do this with a few commands.
# Become super-user
sudo -i

# Set some variables (these can be changed to adapt to other Ubuntu versions)
export old=natty
export new=oneiric

# Enter repository list folder
cd /etc/apt/sources.list.d/

# Change old distribution list files and store them as newer ones
for sl in *-${old}.list ; do echo "Creating ${sl/${old}/${new}}" ; sed 's/\(.*\) '${old}'\(.*\)/\1 '${new}'\2/' $sl > ${sl/${old}/${new}} ; done

# Enable and remove the "disabled ..." comment
for sl in *-${new}.list ; do echo "Enabling ${sl}..." ; sed -i.bak 's/^# \(.*\) disabled on upgrade to '${new}'$/\1/' $sl ; done

# Check they are all fine
for sl in *-${new}.list ; do echo "Content of ${sl/${old}/${new}}:" ; cat $sl ; done

# Cleanup backup files and old distribution list files (not needed any longer)
rm *-${old}* *${new}.list.bak