Electrical-Forenics Home ray@RayFranco.com                       601.529.7473
   © Dr. Ray Franco, PhD, PE  -  208 Fairways Dr., Vicksburg, MS 39183

Updated: Jun 4444, 2024

Lightweight X11 Desktop Environment (LXDE)

The minimum packages to get a working desktop are:

LXDE was started in 2006 by Taiwanese programer Hong Jen Yee aka PCMan. Before starting LXDE, he wrote an independent file manager, PCManFM, which can be used as a file manager by Gnome or KDE.

Although LXDE can use other windows manager, the default is openbox.

References:

  1. Wikipedia - LXDE
  2. Debian - LXDE-core Packages

Setup for 4K (3840 x 2160) Monitors

LXDE Panel Preferences

Adding the PiXflat Theme

Both lxapperance and open box use themes to change the look and feel of the desktop. Most themes were written for high defination (1920 x 1080) monitors, and they have not been upgraded for QHD(2560 x 1440) or UHF-4k (3840 x 2160) monitors. The theme icons for the windows decorate buttons (iconify, max/max_toogled and close) are usually too small for 4K monitors.

To fix the small windows decorate icon problem. I decided to download, modify and install the theme used by the Raspberry Pi OS, PiXflat. This theme has both small and large widows decorate icons. I do not currenly know how it makes a decision on which to use. Since, I just wanted to use the large Icons, I copied the large icons to the small icons so they were all large icons.

The icons for the windows decorate buttons (iconify, max/max_toogled and close) are in the themes directory and not in the icons directory. More precisely, they are in: /usr/share/themes/theme_name/openbox-3. Unfortunately, most themes only supply one size for these icons, which is too small for high resolution (4k) monitors.

The Raspberry Pi OS, which uses its own theme, PiXflat, has both small and large windows decorate icons. I currently do not know, how it makes the decision on which to use. For high resolution monitors, I just backup the small icons and copy the large icons to the small icons so they are all large icons. For example: mv max.xbm max.xbm.bak then cp max_l.xbm max.xbm, etc. Note that 'l' is the first letter of large - it is not a captial 'I' or the number one.

I copy the modified PiXflat theme to ~/.themes. I then download [3] and install the PiXflat icons.

Go to where you downloaded the PiXflat icons and execute:

dpkg -i pixfalt-icons_0.16_all.deb

These icons should be installed in /usr/share/icons/PiXflat. If you want to make any changes to them, it is best to copy them to ~/.icons and make the changes there.

References:

  1. GitHub - Modified PiXFlat Theme & Icons.
  2. Non-modified Raspberry Pi OS PiXflat Theme
  3. Non-modified Raspberry Pi OS PiXflat Icons.
  4. Non-modified Raspberry Pi OS Piboto Font.
  5. Bunsellabs_HiDPI_themes.
  6. Bunsellabs HiDPI for Helium Theme.

Customize Look and Feel (lxappearance)

Window's Manager - Openbox Themes

Openbox comes with some basic themes, but others can be added. The icons for the included themes are stored in two places: (1) the windows decorate icons are stored in /usr/share/themes.theme_name and (2) regular icons are stored in usr/share/icons/theme_name.

Unfortunately, the sizes of the windows decorate icons (iconfify, max_toogle and close) in the included themes are too small for 4K and above monitors.

The Raspberry Pi organization developed their own theme, PiXflat. It has both small and large windows decorate icons. I currently do not know how it makes the decission on which to use. For 4K monitors, I copied the large icons to the small icons so they are all large icons.

You can download the unmodified Raspberry Pi PiXflat windows decorate icons from [2] and modify them yourself, or you can download my all large PiXflat decorate icons from:

All large PiXFlat Icons

After downloading them, I moved them to ~/.themes. I then installed the regular PiXflat icons:

dpkg -i pixfalt-icons_0.16_all.deb

The regular PiXflat icons are installed at: /usr/share/icons/PiXflat.

Theme Decorate icons can be installed in three places:

Likewise the theme regular icons can be installed in three places:

Openbox Setup (obconf)

References:

  1. Wikipedia - Openbox

Desktop Icon Size

To change the size of the desktop Icons, Open the File Manager, and go to Edit > Preferences > Display, and set the Size of Big Icons according to the table:

Monitor  Big Icon Size
HD 48x48
QHD 72x72
4K 72x72

Optionally, uncheck the box cunder User Interface, Treat backup files as hidden.

LXDE Icon Text Size

To change the icon text size, go to:

/home/$USESR/.config/pcmanfm/LXDE

In an editor, open the file, "desktop-items-0.conf", and change the numeric value in the line:

desktop_font=scans 16

References:

    Increasing cursor size (Arch + LXDE)

LXDE Cursor Size

To change the cursor size, go to:

/home/$USER/.config/lxsession/LXDE.

In an editor open the file, desktop.conf, and change the value in the line:

iGtk/CursorThemeSize=18.

References:

    Increasing cursor size (Arch + LXDE)

Menu Icon Size

This is icing, and you may want to wait until you have the core setup before you implement this.

To adjust the icon size in the menus, create the file ~/.gtkrc-2.0.mine, and add the line:

gtk-icon-sizes = "gtk-menu=32,32"

To make it take effect without logging out:

lxpanelctl restart"

Reference:

File Manager - PCManFM: Drag and Drop

Drag and drop does not work on mounted drives (usb flash drives or cifs/samba/smb network drives). As a work around: on the source window, right click and cut or copy, then on the destination window, menu edit and paste.

References:

  1. Wikipedia - PCMan File Manager

Firefox Browser Fix

In Mozalia's Firefox Web Browser, the windows decorate icons (iconify, max/max_toggle and close) are too small. The simples way to fix this, is add the optional title bar. Right click on the toolbar and select "Customize Toolbar". In the bottom left corner, check the the title bar box. This moves the decorate icons from the toolbar to the title bar and enlarges them.

There are probably other ways to fix this problem. I have seen other suggest scaling everything via entering about:config in the address bar.

I have also seen others suggest using the userChrome.css style sheet [1].

I need to search in about:config for user ID's.

References

  1. How to Customize Firefox's User Interface With userChrome.css - How-to-Geek

LXDE - Lightweight X11 Desktop Environment

Which packages are installed depends on whether you install lxde-core, lxde or task-lxde-desktop, and the version of Linux.

The following are for Debian 11.

LXDE-core (Debian 11) includes:

Reference: https://packages.debian.org/bullseye/lxde-core

LXDE (Debian 11) includes:

Reference: https://packages.debian.org/bullseye/lxde

Tasl-LXDE-Desktop includes LibreOffice and other packages.

Reference: https://packages.debian.org/bullseye/task-lxde-desktop

You can always just install lxde-core and later add the packages you need.

LXDE-core requires about 875 M bytes ! (do a package count on the next install)

sudo apt install lxde-core

When I installed lxde-core (Debian 12 Preview), it also installed the Xscreensaver.

Adjusting LXDE-core for Different Monitor Resolutions

The default settings of lxde-core appear to be for an HD monitor. You can adjust the setting for you monitor.

Menu > Preferences > Monitor

Monitor  Columns Rows
HD 1920 1080
QHD 2560 1440
4K 3840 2160

LXDE Panel Setting (taskbar)

Right click on the LXDE bar and select Panel Settings.

Under Geometry: set position to top and Width 100%, and Height & Icon Size according to the table:

Monitor  Height  Icon Size
HD 26 pixels 24 pixels
QHD 39 pixels 36 pixels
4K 50 pixels 45 pixels

Under Appearances > Background: click on a Solid Color and then back to the System Theme. This fixed my background color problem.

Under Appearance > Text: Set Font Color to Black (Color name: #000000) and Font Size (16).

References:

  1. Archlinux Wiki - LXDE.
  2. How To Customize The LXDE Desktop.

Menu Text Size

Under Menu > Preferences > Customize Look and Feel,
or from the command line:

lxapperance

Widget Tap: Set default font to Sans 14.

Desktop Icon Size

To change the size of the desktop Icons, Open the File Manager, and go to Edit > Preferences > Display, and set the Size of Big Icons according to the table:

Monitor  Big Icon Size
HD 48x48
QHD 72x72
4K 72x72

Optionally, uncheck the box under User Interface, Treat backup files as hidden.

Windows Manager

Menu > Preferences > Openbox Configuration Manager,
or from the command line:

obconf

Theme Tap: set to Breeze-ob

Appearance Tap:

Active window title: Sans Bold 14
Inactive window title: Sans Bold 14
Menu header: Sans Regular 14
Active On-Screen Display: Sans Regular 12
Inactive On-Screen Display: Sans Regular 12

Desktops Tap: Set Number of Desktops to 1.

References:

  1. OpenBox.org Wiki - Help: Themes > Theme Installation.
  2. OpenBox.org Wiki - Help: Actions.
  3. Trouble finding Openbox themes.
  4. How To Install Openbox Themes On Linux.

Desktop Background, Icons Size and Text

Menu > Preferences > Desktop Preferences or right click on the desktop and select Desktop Preferences

Under Appearances:

LXDE Panel Setting (taskbar)

Right click on the LXDE bar and select Panel Settings.

Under Geometry: set position to top and Width 100%, and Height & Icon Size according to the table:

Monitor  Height  Icon Size
HD 26 pixels 24 pixels
QHD 39 pixels 36 pixels
4K 50 pixels 45 pixels

Under Appearances > Background: click on a Solid Color and then back to the System Theme. This fixed my background color problem.

Under Appearance > Text: set Font Color to Black (000000) and Font Size (16).

Add a Web Browser

sudo apt install firefox-esr

Add Bluetooth GUI to LXDE-core

To enable bluetooth and place an icon on the LXDE bar:

sudo apt install bluetooth installed
sudo apt install blueman
sudo reboot

You may not need to install the bluetooth package, but make sure the bluez package is already installed.

Click on the bluetooth icon and pair a keyboard and/or mouse. You made need to pair the keyboard and mouse before you can connect to them.

After rebooting, I did not think the keyboard was autoconnecting. The trick is at the Grub memu, you have to hit the return key twice, and at the boot sign in, you have to type a few keys before they are entered in the dialog box.

Reference: https://wiki.debian.org/BluethoothUser

Audio Controls

LXDE for Debian 12 puts all of the audio controls in one dialog box that is difficult to navigate and understand.

To open the audio dialog box:

Pulse Audio Volume Control

The headings: "Playback", "Recording", "Output Devices", and "Input Devices", are similar to tabs. The selected heading has a blue line under it. To change which heading is selected, use the small left and right arrow buttons (on the same line as the headings).

For some unknown reason, Debian, decided to show only four heading, and there is a fifth heading, "Configuration". To see this heading, the last heading on the right has to be selected, and you click the right arrow button one more time.

Pulse Audio Sound Configuration

It is under the "Configuration", where you send the audio output to an hdmi device (TV or monitor with sound). If no hdmi devices are listed, see below:

HDMI Sound

The magic code that enables sound through hdmi and displayport is:

  1. sudo apt install alsa-tools
  2. sudo apt install alsa-tools-gui
  3. You should now have new menu entries under Video & Sound. Run HDAjackRetask.
  4. At the top, under select a codec, I selected “Intel Kabylake HDMI”. This name may vary depending on your CPU, but I’d suspect HDMI or DP will always show up in the title.
  5. Select “show unconnected pins”
  6. Cick the check boxes to override them and select “HDMI / Displayport” for each.
  7. Select “Install Boot Override”. Give your password when prompted & reboot. NOTE: The "apply now" button does not work, so don't bother with it.
  8. sudo reboot
  9. (optional) Remove alsa-tools and alsa-tools-gui if desired (they are no longer necessary).

References:

SSH Server

All you have to do is install the ssh server:

sudo apt install openssh

It automaticlly starts runing and it will start on boot.

This might have could have been installed during the installation of Debian. One of the options was ssh - where it prompts you for which desktop to install.

LXDE-Panel (Task-Bar) Mess Ups

If you mess up the task bar, which I have done on more than one occassion, there are some items that you can not get back such as "ScreenLock" and "Logout". In addition, the icon is different for the Menu. Fortunately, if you have more than one user, you can just copy the (lx)panel file from the other users account.

The location of the lxpanel (task-bar) is: .config/lxpanel/LXDE/panels/panel.

After you copy the file "panel" to your user's location, change the ower and group of the file.

You can download my Debain 12, LXpanel file here.

Connected Volumes

To show connected volumes, right on the desktop and select desktop preferences. Click on Disktop Icons, and click the show connected volumes checkbox.

References:

  1. How to install OpenSSH server on Debian Linux 12/11/10/9
  2. How to Enable SSH on Debian 12

Wayland

Wayland is a new window system that is intended to place X11. After 14+ years of trying, some Linux distros have finally begun enabling it by default. Reference

Debian 12 Preview on Raspberry Pi Hardware

Overall, I was impressed with LXDE. I was even able to play YouTube videos with sound. I could play sound through the Raspberry PI audio port or through HDMI. However, I had to play with sound mixer to get either to work.

Problems:

There is some screen tearing when the cursor extends to the boarder of the screen.

When I tried to switch uses via LXDE, the system crashed.

LXDE on Top of Raspberry PI OS Lite

I installed lxde-core on top of Raspberry Pi OS lite. However, it did not work well. First, it would not boot into the GUI. I had to install xinit:

sudo apt install xinit

Then, to get to the GUI, I could run:

sudo startx

Other problems include: The lxde panel width would not go beyond 10%. I could set the lxde panel to the top of the screen, but after reboot, it was back to the bottom. When I clicked on lxde appearances, the dialog box did not open.

I need to see if there is way to exclude any raspberry pi depositories when installing LXDE on top of Raspberry Pi OS Lite.

References: