Category: ubuntu


Volume control for Ubuntu 10.04

May 7th, 2010 — 12:35pm

I updated to Ubuntu 10.04 this week, and now I’m listening to Nightwish, I suddenly felt the need to get the volume up. My mouse started on it’s way to the place the volume control-applet used to be, but it seemed to have disappeared. Luckily, this problem too is easy to fix: start the program “gnome-volume-control-applet” by pressing alt  + f2. If that works, you might want to go to “System” > “Preferences” > “Startup applications”, and see if volume control is there and checked. If it’s not there, you can add it, and if it’s there and it’s not checked… well, then check it.

Problem easily fixed. Nightwish: you just started to sound a lot louder. :)

2 comments » | ubuntu

Netbeans 6.8 didn't survive Ubuntu upgrade

May 4th, 2010 — 12:09pm

Well, actually, Netbeans did, sun-java6-bin didn’t. I could no longer start Netbeans after my upgrade from Ubuntu 9.10 to 10.04, because of the following error message. You can see that by trying to start Netbeans from terminal: Cannot find java. Please use the –jdkhome switch. It turns out that java went missing, must’ve missed it when the upgrade started. I’ve tried simply reinstalling sun-java6-bin, but that didn’t really work either: it appears that no longer exists. After a while, I found out I had to the following:

sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

After that, Netbeans works like a charm, just like it did under Ubuntu 9.10. Hope this might help anyone.

Comment » | netbeans, ubuntu

Netbeans 6.8 on Ubuntu 9.10

April 7th, 2010 — 8:29pm

I’m a VIM kinda guy. I like love VIM for everything it is. I write e-mails in VIM, I write presentations and blogposts in VIM, I write todo-lists in VIM and I also write my software using VIM. VIM does have downsides in that respect though, and those downsides are well-known. For starters, VIM doesn’t have smart, context-aware auto-completion. I write a heck of a lot of classes and interfaces, and it’s not always easy to keep track of the names of classes and methods. I’ve always lived with that, as VIM has a lot of upsides as well: I can write and manipulate text in VIM faster than most people can manipulate text in any other editor I’ve seen. It’s also highly customizable, so if there’s anything VIM doesn’t do, I make it do that anyway.

Netbeans is a new kid in town of IDE’s suitable for PHP. In the past, I’ve used Eclipse for PHP development, but that always felt slow and too big for writing PHP. I’ve used the first beta of Netbeans for PHP, but that had issues with quotes, linefeeds and other stuff so I ditched it within half an hour. It seems that Netbeans got a lot better since that first beta, so I figured I should give it another try to see if it can fulfill my (absurdly high) demands when it comes to writing code. I had to install it first, obviously.

Installing Netbeans on Ubuntu really is easy enough, if you have an understanding of how Ubuntu works. For the people who don’t, I’ve kept a short log of how I’ve installed it, hopefully someone will benefit from this. There are a few different methods of installing Netbeans in Ubuntu, which all have there up- and downsides. The way of installing I chose has the downside of being slightly more complex, but you get the last version anyway.

The first, and probably easiest way of installing Netbeans on Ubuntu, is to download and install the Java JDK and Netbeans bundle. To be fair, I’ve never tried it and it seems easy enough, but I’m not sure if you’ll always have the latest version of Netbeans in the bundle. At this time, it seems it does indeed include the latest version.

The second easy way to install Netbeans, is using Ubuntu’s software distribution: simply typing “sudo apt-get install netbeans-ide” will install Netbeans, including all of it’s dependencies. Again, there is the downside that you may not have the most current version in the distribution channels.

The third way, slightly more complicated, ensures you have the latest version of Netbeans installed. Open a terminal and type “which java”. If the command returns a response, you have Java, so you can skip the following. If it doesn’t return anything, Java SDK is not installed on your system, so you have to install it. Luckily, that is easy enough: type “sudo apt-get install sun-java6-bin sun-java6-jdk”, and agree to the license. To prepare you: the download is 160Mb, but that shouldn’t be a problem in this day and age.

After installing Java, it’s time to download the Netbeans installer from the Netbeans download page. I write PHP mostly, so the PHP version seems to be the most decent option. Start the download and save it to a location of your choice. If you’re done downloading, go back to the terminal and cd into the directory you’ve just saved the installer to. Execute the following commands, and enjoy while Netbeans presents you with an installation wizard:

chmod +x netbeans* && ./netbeans-*

That’s it, you’re done. Netbeans should now have an icon on your desktop. Start the application, and start writing code. I’ll give Netbeans an honest chance for about a month and will give an update of it later. Obviously, I won’t abandon VIM for anything but writing code.

Comment » | netbeans, ubuntu

1440×900 Ubuntu on Aspire One 751

April 7th, 2010 — 7:42pm

I’ve upgraded my Ubuntu install from 9.04 to 9.10, even though version 10.04 seems to be on the way. After the upgrade though, it seemed my preferred resolution of 1440×900 wasn’t available any longer. As the title states, I have an Acer Aspire One 751 which I’ve been using for quite a while and am quite happy about. Before the upgrade, I installed some drivers to accommodate the 1440×900 resolution, but I couldn’t remember which one. I fixed it, eventually.

The Acer Aspire One 751 packs an integrated Intel GMA 500 video card, and it appeared it needs the Poulsbo driver to operate decently. On the Ubuntu Wiki, I found a page describing how to install it for Ubuntu 10.04. To make this blog post a bit more complete, here’s what I did: first of all, open a Terminal screen if you didn’t have one open already. Type (or copy and paste) the following:

wget http://dl.dropbox.com/u/1338581/Gma500/scripts/poulsbo.sh \
&& sh ./poulsbo.sh

After that I rebooted the netbook and chose a recovery shell, which gave me a few options to choose from. I then picked to boot dpkg, which eventually led me to a shell. The only command I issued were the following:

sudo dpkg-reconfigure psb-kernel-source && reboot

Type in your password, let the netbook rattle and hum a little and by the time it rebooted, you should be seeing the Ubuntu login screen with 1440×900. It did in my case anyway :)

Comment » | ubuntu

Back to top