Install gnome-shell 3.8 in Ubuntu with GDM as default login manager

The default shipping of gnome-shell in Ubuntu 13.04 is a mix of version 3.6 and version 3.8. We can upgrade to a general (and maybe clean) Ubuntu/GNOME system via ppa. Reference: How To Upgrade to GNOME 3.8 in Ubuntu 13.04.

1
2
3
4
# add-apt-repository ppa:gnome3-team/gnome3
# apt-get update && apt-get install gnome-shell ubuntu-gnome-desktop
# apt-get dist-upgrade
# apt-get autoremove && apt-get autoclean

After installation and reboot your system, you can login into the Ubuntu/GNOME environment.

However, the default login manager may be use the lightdm rather than GDM. You should reconfigure it manually if you want to use GDM and the configuration prompt is not shown while installation. The command is:

# dpkg-reconfigure gdm

When the prompt shown which is similar as the reference page one, select GDM. Reboot your system then you can use the default login manager.

Then we encounter another problem. In previous use of lightdm, Ubuntu will connect to network as possible. However in GDM that it will not do that procedure. If we want to let Ubuntu/GNOME/GDM connect to network for access like SSH, we can add a autostart symlink for it. Reference page: How can I use NetworkManager in GDM?.

# cp /etc/xdg/autostart/nm-applet.desktop /usr/share/gdm/autostart/LoginWindow/

And everything works as usual.

Enjoy it. 😉

Change default theme font settings of gnome-shell

Although I’ve post how to make the DROID font as the default font family in Ubuntu, the works have no 100% work in default gnome-shell theme. In summary the steps to set DROID font globally are:

  1. Make sure the font priority is the highest one. Ref: Use droid font as default on Ubuntu 12.04
  2. Install the gnome-tweak-tool and use it to make all the FONT family settings are Sans and Monospace.
  3. Re-login and it works.

However, the top panel and some UI still use the cantarell as default font (since version 3.6, I guess). We should substitute them to make an uniform UI. I’ll introduce two ways as follows:

1. Alter the gnome-shell CSS directly. It is simplest and perfect. However, the settings will be OVERWRITE after upgrading gnome-shell. The steps are:

$ sudo vim /usr/share/gnome-shell/theme/gnome-shell.css

You will see the stage block (in my system, it is at Line 24) as:

/* default text style */
stage {
font-family: cantarell, sans-serif;
...

Then delete the cantarell font family setting as:

/* default text style */
stage {
font-family: sans-serif;
...

Then it works when you re-login.

2. Use a local .fonts.conf to override font settings. It is a per-user work but still a feasible solution.

$ vim ~/.config/fontconfig/fonts.conf

Then copy the following settings, paste and save.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

        <match target="pattern" name="family">
                <test name="family" qual="any">
                        <string>Cantarell</string>
                </test>
                <edit name="family" mode="assign" binding="same">
                        <string>Sans</string>
                </edit>
        </match>

</fontconfig>

After re-login or restart gnome-shell, it works.

The above two are for top-panel/UI font family that the gnome-tweak-tool cannot alter to. Moreover, the font-size of top panel is also controlled by the theme CSS. If you want to alter the default top panel font size, please alter the css file manually. Enjoy it. 🙂

No wallpaper after upgrade to Ubuntu 13.04 with gnome-shell

After upgrading to Ubuntu 13.04, the desktop wallpaper is gone in gnome-shell (however, the issue is occurred in Unity for some user). The issue seems occurs in the default setting of Ubuntu because my Gentoo box has no such problem with gnome-shell 3.6 installed. There are several ways to fix the issues with this reference: Desktop shows a white or black background instead of wallpapers.

  1. Use gnome-tweak-tool. In the Desktop category > Turn ON the Have file manager handle the desktop option.
    However, it will cause the icons shown on desktop. If you do not want the icons, rollback option 1 and try the next option.
  2. Use gsettings to turn on/off specify feature. Try
    $ gsettings set org.gnome.settings-daemon.plugins.background active true

    . And it should display the wallpapaer with no desktop icon after re-login.

  3. Just install the latest gnome and gnome-shell through ppa. As reference: Fix – Ubuntu 13.04 background is white and no wallpaper.
    # add-apt-repository  ppa:gnome3-team/gnome3
    # apt-get update
    # apt-get install gnome-shell

Now I’m done with option 2. Maybe on day I’ll try option 3 for the latest version of gnome-shell. Enjoy it. 🙂

“Error: Failed to mount Windows share” after upgrading to Ubuntu 12.10

It is a tragedy after upgrading to Ubuntu 12.10 that settings are changed. Today when I want to connect to some samba share with my existing Bookmark, I got “Error: Failed to mount Windows share” in Nautilus. After surveying Q&A and doing check, I found:

  1. The mounting point changed from ~/.gvfs (or /media?) to /run/user/{username}.
  2. The existing bookmark in Nautilus had been altered to add duplicated folder string, e.g.
    smb://10.1.10.1/share -> smb://10.1.10.1/share/share/

where the second point is the real cause. Maybe it is an individual case and mine only. However, if you encounter the same error, maybe this can help. Enjoy it. 🙂

NAT dns failed of VirtualBox 4.1 on Ubuntu 12

After upgrade to Ubuntu 12.10, the NAT settings failed of VirtualBox VMs. Resources from Internet shown that it caused by Ubuntu changes the way the resolv.conf works. However in my desktop, it ONLY happened since this upgrading. From this reference, they said the local dns resolver switch to 127.0.1.1 rather the old one, 127.0.0.1.

There are much more feasible solutions on the Net: install dnsmasq, alter the interface settings of Ubuntu, etc. In my opinion, the problem only affected to VirtualBox and it is patched in the next release (4.2) that I use the simplest way: change per VM settings if it need of which is not shown in GUI settings. Steps are simple:

  1. Shutdown the VM you want to alter
  2. Open terminal and use the following command to enable resolver
    VBoxManage modifyvm "{the vm's name}" --natdnshostresolver1 on

. This command will alter the vbox’s XML settings and it works fine. Enjoy it. 🙂

Use droid font as default on Ubuntu 12.04

This post is an extension from Use Droid font on ubuntu linux. In Ubuntu 12.04, the font config for zh-tw modified. In order to make the whole system with ttf-droid, we need to comment out the sections of font binding:

  1. Bind AR PL UMing with DejaVu Serif
  2. Bind WenQuanYi Micro Hei with DejaVu Sans
  3. Bind WenQuanYi Micro Hei Mono with DejaVu Sans Mono

Then restart your session, all font settings are the same. Enjoy it. 🙂

GNOME Shell on Ubuntu 12.04

An updated instruction from Replace Unity with gnome-shell on Ubuntu 11.10. In Ubuntu 12.04, there are better support for Unity and GNOME Shell coexists.

1. Install gnome-shell related packages:

1
2
3
4
5
$ sudo apt-get install gnome-shell \
gnome-themes-standard \
gnome-sushi \
gnome-contacts \
gnome-tweak-tool

2. Disable strange overlay-scrollbar

1
2
$ export 'export LIBOVERLAY_SCROLLBAR=0' \
> ~/.xprofile

3. Use native notification of GNOME

1
$ sudo apt-get install notification-daemon

However, we should check the support of DBus to prevent other issues. Just check if there is ONLY contain notify-osd in the notification service file.

1
# vim /usr/share/dbus-1/services/org.freedesktop.Notifications.service

If the exec parameter in you file only contains notify-osd, such as: Exec=/usr/lib/…/notify-osd, you should alter it as Exec=/usr/lib/notification-daemon/notification-daemon.

4. Restart Ubuntu and change login session with GNOME. Then enjoy it. 🙂