Installing the lightweight LXDE-QT desktop

EDIT: Instructions updated 09 May 2014 to fix the 14.04 installation instructions and also update the minimal install instructions.

Following on from my recent article about installing a minimal XFCE based desktop I thought I would take LXDE a spin.  For an extra challenge I’m interested for this article the next generation LXDE called LXDE-QT.

The LXDE team have now merged with Razor-QT – both teams have a similar goal of producing a very lightweight desktop and they have chosen QT as the toolset rather than something like GTK3.

As this is very experimental at this stage, my recommendation is to use something like Virtualbox to play-around with this brand-new but still developing desktop interface – you can easily snapshot various check-points and use the rollbacks to back out of stuff.

Lets begin.

The challenge here is to take the already lightweight LXDE-QT desktop and slim it down to its core components … and yes … lightweight LXDE (lightweight X11 desktop environment) is one lightweight too far but describing it as lightweight XDE-QT just looks too weird 🙂

N.B. – if you are just interested in playing with the desktop as designed by the LXDE & Razor-QT development teams then the following will work in a standard Ubuntu install:


sudo apt-get install software-properties-common
sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily
sudo apt-get update
sudo apt-get install lxqt-metapackage openbox
sudo apt-get install lxqt-panel

IMPORTANT NOTE: 14.04 users (as of 08 May 2014) the packaging is still buggy but will install if you follow the above. Installing lxqt-metapackage openbox will appear to crash out with a lxqt-config package failure. However, after installing lxqt-panel again, the rest of the setup for the desktop will complete successfully.

trusty (Snapshot 1) [Running] - Oracle VM VirtualBox_005

Note the desktop shown has been installed on-top of Unity and thus you can see both Gnome applications as well as LXQT applications.


Below, the intent here is to pick apart the desktop to look at its core components.

First download the minimal ISO.  This is a tiny basic installer containing very little itself.  Everything is downloaded from the internet.  So make sure you are using a wired connection – no wireless at this stage.

Write this to a CD using your favourite burning software such as brasero.  Alternatively use unetbootin to write it to a USB stick – or if using Virtualbox, attach the ISO to a new virtual machine.

On boot you will receive a screen like this:

Image

Press Enter and just answer each of the questions posed.

When you get to this screen you have a choice  of choosing one of the standard desktop environments or just continuing to a basic text only interface.  Lets choose the latter:

Image

Let the wizard complete and install the remaining basic packages.

Reboot – remove the CD/USB/virtual CD drive and login using your username and password you defined during the text wizard stage above.

Next – make sure the repositories are up-to-date:

sudo apt-get update && sudo apt-get upgrade

Lets ensure we configure our system to not install suggested packages or recommended packages:

cd /etc/apt
sudo nano apt.conf

Type in the following:

APT::Install-Recommends "0";
APT::Install-Suggests "0";

Save and quit nano – CTRL+O, CTRL+X

Quick Tip: when typing package names, type the first few characters and press TAB. This will either autocomplete the package name or display the matching package names allowing you to narrow down the correct full package-name.

Lets now install the basic graphics stack:


sudo apt-get install xserver-xorg xserver-xorg-core xfonts-base xinit x11-xserver-utils x11-apps x11-session-utils x11-utils xinput xorg

Now we need to add a PPA where the development LXDE libraries and QT stuff can be found.


sudo apt-get install software-properties-common
sudo add-apt-repository ppa:lubuntu-dev/lubuntu-daily
sudo apt-get update

Now lets install the basic LXDE-QT packages such as the file-manager (pcmanfm-qt), session, panel


sudo apt-get install lxqt-metapackage lxqt-policykit  lxqt-runner lxqt-config lxrandr-qt obconf-qt lxqt-session pcmanfm-qt lxqt-powermanagement openbox

Finally lets install a basic graphical login manager – lets stick with lightdm:


sudo apt-get install lightdm lightdm-gtk-greeter

Reboot and login graphically:

sudo reboot --

That is the basics. Everything else that follows is your customization requirements.

Lets make the desktop aesthetically beautiful

sudo apt-get install oxygen-icon-theme

These will install some very nice icons for the menus and panel and also allow you to change the appearance of the desktop.

Next, lets give the menu’s less of a windows 95 look…

sudo apt-get install kde-style-qtcurve

Remember to reboot for these to take effect.

Next install your chosen browser – in my case the lightweight QT based Qupzilla.

sudo add-apt-repository ppa:nowrep/qupzilla
sudo apt-get update && sudo apt-get install qupzilla

Logically you’ll also need sound… so lets install the QT sound mixer (qasmixer) plus standard alsa libraries used for various applications:

sudo apt-get install qasmixer gstreamer0.10-alsa gstreamer0.10-plugins-base gstreamer0.10-plugins-good

Use qasmixer and ensure that the master channel and the appropriate channel for your soundcard is 100% and not muted

ubuntu minimal (Snapshot 4) [Running] - Oracle VM VirtualBox_082

If you love youtube you’ll need adobe flash.

sudo apt-get install flashplugin-installer gstreamer0.10-ffmpeg

Finally lets add a QT based media-player for our music – lets download sayonara from google-code

sudo apt-get install libcurl3 libnotify4 libtag1-vanilla
sudo dpkg -i sayonara*.deb

I want some nice automatic recognition of inserted USB sticks and disks by pcmanfm (reboot afterwards)

sudo apt-get install gvfs gvfs-backends policykit-1 udisks2

Remember to reboot to for these changes to take effect.

For Virtualbox you should also install dkms before installing the guest-additions:

sudo apt-get install dkms

Remember to add the permissions for your user:

sudo usermod -a -G vboxsf <username>

Final Result

ubuntu minimal (Snapshot 3) [Running] - Oracle VM VirtualBox_066
 

This desktop runs well with 256Mb – and brilliantly smooth at 512Mb

38 thoughts on “Installing the lightweight LXDE-QT desktop

      • If I remove it, it finishes the installation successfully. But after your step:

        Reboot and login graphically:
        sudo reboot —

        Then I log in, and I can only see a nice wallpaper, but nothing else, no bar on the top or bottom of the screen, no icons,.. where is the terminal so that I can continue with your guide? sorry, I’m a complete noob but maybe something is wrong with my installation.
        Thanks again

        • ok – I’ve tried to install using the standard instructions (top of the article) – the session doesnt start. So this looks like a recent packaging issue still being resolved by the developers.

          Moving back to the limited install instructions…

          If you right click the desktop and choose to show the window manager from one of the sub-options another rightclick will then allow you to run up a qtterminal.

          Typing lxqt-panel (this is how to display the bottom panel) throws a lookup symbol error. Again – this looks like a packaging issue. A google of the error showed up a similar fedora issue but the solutions there didnt work.

          My guess is that one of the libxdg and/or qt4/qt5 libraries is not being installed and therefore stopping the panel from being shown.

          • I did what you suggested, now the bar appears on the bottom of the screen, but if I close the qterminal, it disappears, is that normal?
            However, when I run “lxpanel”, I get this error:

            (lxpanel:933): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

            In pcmanfm, on icon view mode, there are no icons
            When I try to run qupzilla, I get error (see screenshot)
            http://postimg.org/image/bv3tnenlb/

            As you can see my desktop is not like yours 🙂
            Thank you again

            • the message means that you need to install another package – probably libqt5sql5-sqlite at a guess.

              pcmanfm with no icons – that sounds like a theme issue – you need a GTK+2 or GTK+3 theme (probably the latter) – Try installing a theme. You might also want to try the no icons solution here – https://wiki.archlinux.org/index.php/PCManFM

              Dont forget – to run an application such as lxpanel and keep it running after closing the terminal you should run with this format

              nohup lxpanel &

              The latter “&” is important to run the process in the background

              • I installed libqt5sql5-sqlite and now I have a browser. And I can close terminal with your instructions too. Problem with icons remains. I tried solution “No icons” but didn’t work. I couldn’t find ~/.gtkrc-2.0 and in /etc/gtk-2.0/ there was no gtkrc. So created it there myself, wrote the line, saved, rebooted, but nothing. Then I tried installing this theme http://software.opensuse.org/download.html?project=home%3AHorst3180&package=arc-theme and then it seems I need to activate it using Gnome Tweak Tool, which I installed, but doesn’t open (argh!)
                Plus Logout doesn’t work from menu (bottom bar) it says Logout command is not set.
                And when I right click on desktop, if I choose “web browser”, a small window pops up: Openbox on top of window, and error message is Failed to execute child process “x-www-browser” (no such file or directory). Same if I choose “obconf”.
                Thanks for your patience.

  1. Thanks for a really good set of instructions, but I have hit a problem when I tried to install LXQt desktop on my Ubuntu 14.04 VM. I followed your instructions in the first part of your post.

    I am fairly new to linux and maybe I’m in over my depth.

    I encountered an error when running sudo apt-get install lxqt-metapackage

    the last few lines of terminal window showed following message….

    Processing triggers for ureadahead (0.100.0-16) …
    ureadahead will be reprofiled on next reboot
    Errors were encountered while processing:
    /var/cache/apt/archives/sddm_0.0.1~bzr535+201409221547~ubuntu14.04.1_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    hugh@DELL-VM-3-UBUNTU:~$

    when i logged back into Ubuntu, I ran sudo apt-get update and then upgrade, and got following error ….

    hugh@DELL-VM-3-UBUNTU:~$ sudo apt-get upgrade
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt-get -f install’ to correct these.
    The following packages have unmet dependencies.
    sddm-theme-maldives : Depends: sddm but it is not installed
    E: Unmet dependencies. Try using -f.
    hugh@DELL-VM-3-UBUNTU:~$

    Any idea how to resolve these dependencies?
    I chose not to install ANY “non-free” or “third-party” software so not sure what the problem is.

    • This is a very recent packaging issue. You should report this on launchpad for the developers to resolve.

      For the moment I would not attempt to install from this PPA until you get confirmation that this packaging issue has been resolved

      use ppa-purge to remove the PPA;

      sudo apt-get install ppa-purge
      sudo ppa-purge ppa:lubuntu-dev/lubuntu-daily
      sudo apt-get update && sudo apt-get upgrade

  2. “lightweight LXDE is one lightweight too far”

    No it’s not. One’s an adjective and one is part of a proper name. 🙂

  3. Hello, I want to tell you, i use 14.04 minimal and follow these step by step, when i install lightdm and lxqt-lightdm-greeter, then i reboot the machine, i can not find the graphical interface lightdm. So, i try to login using tty (Alt+F2) and then type startx, the panel does not appear on the desktop, if i click with right click on the desktop pop-up menu appear with all applications.

    • Hi – my latest update was yesterday. I’ve only tried installing lxqt on-top of Unity. I havent encountered any issues with this combination.

      As I said upfront – this is very new. The packaging is not very stable at the moment. As such I only recommend installing this via virtualbox.

      If you are looking for “stability” – then wait until lxqt finds its way into 14.10 released in October. Treat this as an alpha/early beta release – expect to be full of bugs, issues & crashes that will be resolved over the next 6 months.

  4. Seems that current build is broken for trusty (I will wait for the update from bzr)

    The following packages have unmet dependencies:
    lxqt-panel : Depends: icu-tools but it is not installable

  5. Pingback: Problema/consulta - Alguien me ayuda a personalizar unity :mimoso

  6. I tried to install and restart ubuntu but, after graphically login, system asked me for windows manager, where is it?
    thanks

Leave a reply to fossfreedom Cancel reply