Archive | Techie aspirin RSS feed for this section

Gnome3 on Ubuntu 11.04 Natty (impressions)

15 Jun

I decided to take a leap of faith and install Gnome3 and gnome-shell on my Ubuntu box.

First the installation:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install gnome-shell

Some fixes after restart:

sudo apt-get purge unity scrollbar* gnome-accessibility-themes
sudo apt-get install gnome-themes-standard

Extra installs:

sudo apt-get install gnome-tweak-tool dconf-tools gnome-shell-extensions-common gnome-shell-extensions-user-theme

Edit startup applications (the shortcut is missing from the applications list):

gnome-session-properties

If you want to revert everything:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:gnome3-team/gnome3

 

Nice features I discovered so far:

  • the interface overall (nautilus looks great)
  • the quick access to applications using the Super key (this made me remove Gnome Do)
  • alt+tab separates applications from different workspaces, groups instances of the same application
  • dynamic workspace adding depending on your open applications
  • on dual monitor setup the second monitor does not flip over when switching workspaces (this behavior is configurable)

Annoyances:

  • a little slower than expected
  • crashes sometimes (not very often though)
  • a bug with menus inside maximized applications that use JDK (bug #777425)

 

On the way I stumbled upon a great Ubuntu resource site: http://www.webupd8.org/

I found some nice gnome-shell related articles there:

 

Getting the latest Firefox release for 64bit Linux

9 Jun

On the usual channels (like http://www.mozilla.com/en-US/firefox/channel/ ) you can only download the 32bit version of the latest Firefox release.

But I stumbled over a public Mozilla FTP where they hold all releases, including the 64bit one.

Link: ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/

This way all the installed plug-ins on your 64bit *nix system will work out of the box (including Adobe Flash).

Keyboard shortcuts for Pidgin menu items

23 Jan

If you migrated from Yahoo Messenger! to Pidgin you probably found out that some handy keyboard shortcuts are missing and no alternatives are defined by default.

For example, I used to Ctrl+h to hide/show my offline buddies, but I didn’t have a shortcut for that in Pidgin. I did not find a working solution on the interwebs. Also tried a bunch of plugins, but they didn’t cover the offline buddies part.

So I decided to poke around in the Pidgin configuration folder .purple and I found this file: accels. I did a leap o faith, uncommented and edited this part:

(gtk_accel_path “<PurpleMain>/Buddies/Show/Offline Buddies” “<Control>h”)

Restarted Pidgin and it worked. There’s a bunch of unused actions in that file so feel free to experiment. :)

Installing Firefox 4 beta with Adobe Flash Player in Ubuntu 64bit version

23 Jan

You can get the latest Firefox build from the launchpad ppa repositories (https://launchpad.net/~ubuntu-mozilla-daily/+archive/ppa), but I found that the periodical beta release on Mozilla’s website tends to be more stable and usable than the daily builds.

Unfortunately the downloadable build is only 32bit, thus not compatible with the installed plugins in Ubuntu 64bit version. After a bit of research I found out how to solve this little problem.

First you need to download the beta here http://www.mozilla.com/en-US/firefox/all-beta.html. Then untar it to either you home folder or to “/opt/” (I like this way better, but you have to use sudo to copy files here). You can cd to that folder and launch Firefox (use: ./firefox or ./firefox -P to be able to create and/or choose your profile, more on that here)

As you can see there are no plugins in the add-ons page. Copying the plugin folder from the default installation does not work (duh!). So I thought to myself: this is some kind of standalone Firefox installation, then I would need a standalone version of Adobe Flash. And I found it here: http://www.adobe.com/support/flashplayer/downloads.html. There is a Linux version of the Flash Player 10.1 Plugin content debugger, as it is called. Download it and untar it to the “plugins” folder in your Firefox installation.

And there you have it, Adobe Flash Player in Firefox 4 beta. (Please keep in mind that both Firefox and Flash need to be updated manually if installed this way)

Installing VirtualBox Guest Additions in Ubuntu Server

6 Jan

If you need to use features like “Shared folders” in Virtualbox guests you have to install the Guest Additions. With Ubuntu desktop or Windows this is a breeze, but I couldn’t find a unified guide on how to do it in a server environment.

First you need to install these:

angel@devel:~$ sudo apt-get install dkms
angel@devel:~$ sudo apt-get install build-essential linux-headers-`uname -r`

Make sure the VBoxGuestAdditions.iso is mounted.

Reboot system. Then do:

angel@devel:~$ sudo mkdir /media/cdrom
angel@devel:~$ sudo mount /dev/sr0 /media/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
angel@devel:~$ cd /media/cdrom
angel@devel:/media/cdrom$ sudo ./VBoxLinuxAdditions-x86.run

If you have 64bit Ubuntu you should run the VBoxLinuxAdditions-amd64.run file.

UPDATE: VirtualBox 4.0 merged the two files in one, VBoxLinuxAdditions.run. Also the above image is not accurate for this version, use ‘Install Guest Additions…’ (Host+D) to load the virtual drive.

You should see something like this:

Verifying archive integrity… All good.
Uncompressing VirtualBox 3.2.12 Guest Additions for Linux……..
VirtualBox Guest Additions installer
Removing installed version 3.2.10 of VirtualBox Guest Additions…
Uninstalling old VirtualBox DKMS kernel modules …done.
Building the VirtualBox Guest Additions kernel modules
Doing non-kernel setup of the Guest Additions …done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers …fail!
(Could not find the X.Org or XFree86 Window System.)

Don’t worry about the windows system drivers error as you don’t use them on Ubuntu server edition.

After reboot you will be able to mount your shared folders like so:

angel@devel:~$ sudo mount -t vboxsf sharedFolder /home/userName/yourFolder

Replace sharedFolder, userName and yourFolder accordingly. To mount the shared folders automatically every time you boot, add  this line (without the sudo) to the end of /etc/init.d/rc.local.

To uninstall the guest additions use:

angel@devel:~$ sudo /opt/VBoxGuestAdditions*/uninstall.sh

Youtube not working in Firefox 3.6

8 Nov

For the past couple of days YouTube did not work properly when accessed via Firefox 3.6 (at least on my home PC).

Here’s how the front page looked:

I wasn’t able to access any videos or my account. Also Firebug showed about 10 JavaScript errors. But it worked OK in Google Chrome and Internet Explorer.

So what was the problem?!? It seems that YouTube is not satisfied with the normal cookie anymore and demands the DOM Storage feature to be enabled, which allows more data to be stored on the client side. I also read reports that Gmail has the same problem, but I was unable to reproduce this on my computer.

I managed to get it working by going in about:config and changing the dom.storage.enabled property to true.

The weird part is that YouTube works in Internet Explorer 8 even with DOM Storage disabled.

UPDATE: The new version of Twitter doesn’t work either if DOM Storage is disabled.

Different profiles for Firefox 3.6 and 4 beta on Windows

8 Nov

When installing Mozilla Minefield (Firefox daily builds) on Ubuntu, it automatically creates a new profile and copies your current profile there. But on Windows this thing doesn’t happen.

When installing Firefox 4b6 on Windows 7 the same profile as the regular installation is used. This can cause a lot of problems, specially if you use add-ons. Some of these problems are:

  • Most of the add-ons are disabled. Partial solution is to install the Add-on Compatibility Reporter
  • Sync add-on is disabled because it is build in Firefox now. Recommendation: do not sync your stable release with any beta/daily builds. I did this and after a while I got an error from the stable release that said I should update Sync, but there was no update available. So Sync didn’t work for a while. This happened to me with Minefield b7.
  • The biggest problem is Firebug. The beta release (1.6) that works with Firefox 4 is buggy, becomes unusable sometimes and crashes the browser.

The solution is pretty straight forward. First we must create an additional profile. To do this you must access the Firefox profile manager. Go to your Firefox 3.6 shortcut properties and add “-P” to the Target field. It should look like this:

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P

Save and open Firefox with that shortcut. The profile manager windows should appear (image bellow), click on Create Profile and create the “beta” profile.

Firefox Profile Manager

 

To make the shortcut access the profile directly without the profile manager window you have to edit once more the Target of the shortcut like so:

"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -P default

Also edit the Firefox beta shortcut like so:

"C:\Program Files (x86)\Mozilla Firefox 4.0 Beta 6\firefox.exe" -P beta

That’s it. Happy testing.

UPDATE: Another way to solve this is to install the portable version of Firefox beta.