Adventures & experiences in contemporary technology
On the surface of it, this probably sounds a very strange thing to do: choose Linux Mint because they plan to stick with their current desktop interface for the foreseeable future and then stick a brand new one on there. However, that’s what last weekend’s dalliance with Fedora 15 caused. Not only did I find that I could find my way around GNOME Shell but I actually got to liking it so much that I missed it on returning to using my Linux Mint machine again.
The result was that I started to look on the web to see if there was anyone else like me who had got the same brainwave. In fact, it was Mint’s being based on Ubuntu that allowed me to get GNOME 3 on there. The task could be summarised as involving three main stages: getting GNOME 3 installed, adding extensions and adding the Cantarell font that is used by default. After these steps, I gained a well-running GNOME 3 desktop running on Linux Mint and it looks set to stay that way unless something untoward has yet to emerge.
Installing GNOME 3
The first step is to add the PPA repository for GNOME 3 using the following command:
sudo add-apt-repository ppa:gnome3-team/gnome3
The, it was a case of issuing my usual update/upgrade command:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
When that had done its thing and downloaded and installed quite a few upgrades along the way, it was time to add GNOME Shell using this command:
sudo apt-get install gnome-shell
When that was done, I rebooted my system to be greeted by a login screen very reminiscent of what I had seen in Fedora.While compiling this piece, I have seen that GNOME Session could need to be added before GNOME Shell but I do not recall doing so myself. Maybe dependency resolution kept any problems at bay but there weren’t any issues that I could remember beyond things not being configured as fully as I would have liked without further work. For sake of safety, it might be a good idea to run the following before adding GNOME Shell to your PC.
sudo apt-get install gnome-session && sudo apt-get dist-upgrade
Configuration and Customisation
Once I had logged in, the desktop that I saw wasn’t at all unlike the Fedora one and everything seemed stable too. However, there was still work to do before I was truly at home with it. One thing that was needed was the ever useful GNOME Tweak Tool. This came in very handy for changing the theme that was on display to the standard Adwaita one that caught my eye while I was using Fedora 15. Adding buttons to application title bars for minimising and maximising their windows was another job that the tool allowed me to do. The command to get this goodness added in the first place is this:
sudo apt-get install gnome-tweak-tool
The next thing that I wanted to do was go adding some extensions so I added a repository from which to do this using the command below. Downloading them via Git and compiling them just wasn’t working for me so I needed another approach.
sudo add-apt-repository ppa:ricotz/testing
With that is place, I issued the below commands to gain the Dock, the Alternative Status Menu and the Windows Navigator. The second of these would have added a shutdown option in the me-menu but it seems to have got deactivated after a system update. Holding down the ALT key to change the Suspend entry to Power off… will have to do me for now. Having the dock is the most important and that thankfully is staying the course and works exactly as it does for Fedora.
sudo apt-get install gnome-shell-extensions-dock
sudo apt-get install gnome-shell-extensions-alternative-status-menu
sudo apt-get install gnome-shell-extensions-windows-navigator
The default font used by GNOME 3 in various parts of its interface is Cantarell and it was defaulting to that standard sans-serif font on my system because this wasn’t in place. That font didn’t look too well so I set to tracking the freely available Cantarell down on the web. When that search brought me to Font Squirrel, I downloaded the zip file containing the required TTF files. The next step was to install them and, towards that end, I added Fontmatrix using this command:
sudo apt-get install fontmatrix
That gave me a tool with a nice user interface but I made a mistake when using it. This was because I (wrongly) thought that it would copy files from the folder that I told the import function to use. Extracting the TTF files to /tmp meant that would have had to happen but Fontmatrix just registered them instead. A reboot confirmed that they hadn’t been copied or moved at all and I had rendered the user interface next to unusable through my own folly; the default action in Ubuntu and Linux Mint is that files are deleted from /tmp on shutdown. The font selection capabilities of the GNOME Tweak Tool came in very handy for helping me converting useless boxes into letters that I could read. Another step was to change the font line near the top of the GNOME Shell stylesheet (never thought that CSS usage would end up in places like this…) so that Cantarell wasn’t being sought and text in sans-serif font replaced grey and white boxes. The stylesheet needs to be edited as superuser so the following command is what’s needed for this and, while I used sudo, gksu is just as useful here if it isn’t what I should have been using.
sudo gedit /usr/share/gnome-shell/theme/gnome-shell.css
Once I had extricated my system from that mess, a more conventional approach was taken and the command sequence below was what I followed, with extensive use of sudo to get done what I wanted. A new directory was created and the TTF files copied in there.
sudo mkdir ttf-cantarell
sudo mv /tmp/*.ttf .
To refresh the font cache, I resorted to the command described in a tutorial in the Ubuntu Wiki:
sudo fc-cache -f -v
Once that was done, it was then time to restore the reference to Canterell in the GNOME Shell stylesheet and reinstate its usage in application windows using the GNOME Tweak Tool. Since then, I have suffered no mishap or system issue with GNOME 3. Everything seems to be working quietly and I am happy to see that replacement of Unity with the GNOME Shell will become an easier task in Ubuntu 11.10, the first alpha release of which is out at the time of my writing these words. Could it lure me back from my modified instance of Linux Mint yet? While I cannot say that I am sure of those but it certainly cannot be ruled out at this stage.
Hmmm. I tried to follow your footsteps, and have run into a problem where gnome shell won’t display a desktop. The top bar is there, and I can open up windows and apps, but instead of my wallpaper and any desktop icons, there’s just black. Any idea what’s going on?
I couldn’t get this section to work.
sudo mkdir ttf-cantarell
sudo mv /tmp/*.ttf .”
I changed over to 3 without many issues, except now I have some issues:
1) Many (all) programs are still running a theme that is very reminiscent of a windows 7 accessibility/classic theme. All buttons are boxy and plain. I have tried the solution where you remove the accessibility themes and install the regular ones, to no effect.
2) The system settings program is… bare. Many of the menus previously available are no longer there.
All said, I still like gnome3 very much, very nicely done.
Hi. Thanks for this tutorial/info. After I Install the Gnome Teak Tool I don’t get the Adwaita theme. In the interface section under the Gtk+ Theme the only option I get is Raleigh. Any ideas why this is? Do I have install other themes? Thanks.
Hello, thank you for the tutorial. I installed GNOME 3 on Linux Mint 11, but now I can’t find the “Startup Applications” utility. Do you know how can I have access to it again? My keyboard input method (ibus) is not being loaded on startup :( For this, I’d like to avoid manual file configuration if possible. That’s why I’m looking for the useful “Startup Applications” utility. It is (was?) very useful. Thank you!
“sudo apt-get install gnome-shell-extensions-dock
sudo apt-get install gnome-shell-extensions-alternative-status-menu
sudo apt-get install gnome-shell-extensions-windows-navigator”
I get error message
“E: Unable to locate package gnome-shell-extensions-dock……”
Help anyone please. Thanks in advance. Great tutorial by the way.
I followed the steps until (and including) gnome-session install, and the system won’t boot normally now. If I go to ‘safe mode’ first, than run startx, everything runs fine. Help! :)
I installed Gnome 3, and to get it working I had to choose GNOME from the login screen. If I selected gnome (all lowercase), it would give me an error and go back to the login screen. Worked well for a couple shutdown/startup sequences, but then all of a sudden GNOME was available at login, and no matter what I selected, I would get an error and couldn’t log in. I had to do a fresh install to get it working again. I think I’ll just wait until Mint 12 and see how Clem handles it.
I run both Fedora and Mint. I added KDE to both installs .While Mint’s default install is perfectly functional, it’s also ugly and adding widgets with screenlets looks and feels shabby compared to the Plasma interface. I do find Gnome2’s bluetooth setup vastly superior to KDE’s and Brasero always works when K3B spits out errors.
With Fedora, I found the default Gnome3 interface perfect after adding Nvidia drivers, however bluetooth setup is terrible and gaming is impossible. Playing games, setting up bluetooth – or just about any system parameter was vastly better in KDE, not to mention Dolphin kicks Nautilus’ ass straight out of the park. Just my 2 cents :)