LibreCAD icon for Linux Mint Mate

LibreCAD icon, PNG, 48×48 pixels, for use with Linux Mint Mate panel, matching Mint-Y theme icons.

As such an icon was not included in the distribution a custom one had to be made.

LibreCAD icon, PNG, 48x48 pixels

LibreCAD icon, PNG, 48×48 pixels


Desktop wallpaper switcher for Linux Mint

Those of you who have used Mac know that having ability to set different wallpapers for each of your workspaces is a nice feature.

Unfortunately such feature is not [always] available in Linux.

But, turns out that you can easily add this feature on your own.

Your system already has the utility xprop, which allows you to monitor your desktop parameters, and gsettings, which let you change desktop configuration on the fly. You just need a simple script to tie all that together. Feel free to copy the code below:

#!/bin/bash
 #
 # This script runs in background, waiting for you to switch to
 # another workspace, so that it can change the desktop wallpaper
 # accordingly when you do.
 #
 # Tested on Linux Mint 18 Mate
 #
 # Script by crcok from:
 # https://crcok.wordpress.com/2016/09/14/wallpaper-switcher-mint/
 # Based on the script by garolou from:
 # https://forums.linuxmint.com/viewtopic.php?t=118540#p672189
 #
 # If you know how to make Linux Mint Mate display a different set
 # of desktop icons for each of the workspaces, please come to
 # https://crcok.wordpress.com/2016/09/14/wallpaper-switcher-mint/
 # and share your ideas in comments.
 #

# Edit this. Your wallpaper directory. Don't forget the trailing slash.
 desktop_dir="/home/user/.wallpapers/"

# Edit this. Wallpaper image file names. One for each workspace you are using.
 desktop_img[0]="wallpaper01.jpg"
 desktop_img[1]="wallpaper02.jpg"
 desktop_img[2]="wallpaper03.jpg"
 desktop_img[3]="wallpaper04.jpg"

# This is a function nicely encapsulating a call to the desktop.
 # Note that it is Mate and not Gnome we are talking to here.
 setdesktop() {
 gsettings set org.mate.background picture-filename "$desktop_dir$1"
 }

# The main loop. Every time you change to another workspace,
 # xpropr will output its number and thus will trigger the change.
 xprop -root -spy _NET_CURRENT_DESKTOP | (
 while read -r; do
 desk=${REPLY:${#REPLY}-1:1}
 setdesktop ${desktop_img[$desk]}
 done
 )

LogiLink UA0053 USB sound card

This is to record the fact that LogiLink UA0053 USB sound card (audio adapter) works out of the box with Linux Mint 18.

Just remember to go to Sound preferences and tell the system to play music via your new sound card (if needed).


Linux Mint 18 Mate memory leak

You may experience your Mint 18 Mate occasionally getting slow and non-responsive, with Mate panel freezing or mouse pointer moving slowly and in jerky fashion.

If you run top, you see that that CPU usage is constantly up, with mate-settings-daemon hogging close to 100%.

Run:

  • tail -f .xsession-errors

If you see something like “unable to create file ‘/run/user/1000/dconf/user’: Permission denied.  dconf will not work properly.”, a memory leak causing bug may be at fault.

The bug makes wrong permissions to be assigned to the file /run/user/1000/dconf/user , making it non-writable for your processes.

Fix it as root by making the respective user to own the file respective file, e.g. /run/user/1000/dconf/user , and killing and restarting the mate-settings-daemon .

 


Install lightweight Web server with PHP and MySQL on Raspberry Pi

Original instructions here .

This installs lighttpd Web server with MySQL database and PHP interpreter.

  • apt-get update
  • sudo apt-get install lighttpd
  • sudo apt-get install mysql-server
  • sudo apt-get install php5-common php5-cgi php5
  • sudo apt-get install php5-mysql
  • sudo lighty-enable-mod fastcgi-php
  • sudo service lighttpd force-reload

Windows 10 icon PNG

A 48×48 pixel PNG icon for use with Linux desktops.

Can be used to start a virtual machine with MS Windows 10 inside.

Windows 10 icon, PNG, 48x48 pixels

Windows 10 icon, PNG, 48×48 pixels


Context menu in Mint file manager

You very easily add a context menu to the Nemo file manager in Linux Mint, which can be very convenient, if you must carry on some repetitive task on files.

If you are using the default Caja flie manager, it still may be worth to install Nemo, even if you will use it just for specific tasks.

  • Go to ~/.local/share/nemo/actions.
  • Create text file rotate.nemo_action
  • Add the following content:
[Nemo Action]
Name=Rotate CC 90o
Comment=Losslessly rotate image counter clockwise 90o
Quote=double
Exec=exiftran -i -2 %F
Selection = any
Extensions=jpg;jpeg;JPG;JPEG;

Now just right-click a file in Nemo file manager and select the new command from the context menu (This particular action will rotate a JPEG image file losslessly by 90 degrees counterclockwise).