Adding NEF preview to Linux Mint file manager Nemo

Nikon Logo

If you want to be able to preview NEF (Nikon raw) images in Linux Mint’s file manager Nemo, you need to do the following:

  1. Open Preferences window for Nemo file manager from Edit -> Preferences menu
  2. Switch to Preview tab within the Preferences window
  3. Set “Show Thumbnails” to Always if you want to show thumbnails on remote drives
  4. Set “Only for files smaller than” to 100 MB
  5. Install the following packages from Software Manager UI:
    • gnome-raw-thumbnailer
    • libopenraw1
    • libopenrawgnome1

Note: Browsing remote/network directories will be sloooooooow if you enable thumbnails for remote drives.

Reconnecting a bluetooth mouse in Linux Mint upon reboot

Logitech Ultrathin Mouse

I use a bluetooth mouse with my laptop (never could understand manufacturers pushing their proprietary USB wireless peripherals – why take up a USB port when all laptops have bluetooth built-in). When I installed Linux Mint (version 17.3) it has connected to my mouse just fine and I was able to use it with no issues. However the OS would never reconnect with the mouse upon reboot which is a hassle – you have to remove/add the device every time. Clearly not the way to go.

This is what I’ve done to get the OS remember the mouse and it’s settings.

  1. Put your mouse in a discoverable state (there is usually a button on the mouse somewhere for this)
  2. Open terminal and run the following command that should give you a MAC address for your mouse:
    hcitool scan
  3. Once you’ve obtained your mouse MAC address (should look like XX:XX:XX:XX:XX:XX), run the following in terminal:
    bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
    bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
    bluez-test-input connect XX:XX:XX:XX:XX:XX

Now you should be good to go.

SSD drives and Linux

Sandisk SSD

Here is what I’ve done on my laptop to ensure better longevity of my shiny new SSD. The idea is to minimize write unnecessary write actions on the drive to prolong it’s life. For this I’ve followed few different sources, with one of them being the most specific and prescriptive.

  1. Ensure that your drive is set to AHCI in your computer BIOS
  2. When installing, use ETX4 filesystem as it seems to be best for SSD support. This is a journaling filesystem which does incur some extra write but apparently not by much. It provides greater safety for your data, so it is worth just going with it.
  3. Disable “access time stamp” that the OS sets on files by default upon their access.
    • Open fstab file for editing (as a sudo). In Terminal type the following (you will be prompted for password once you hit Enter):
      gksu gedit /etc/fstab
    • Add noatime to each partition in that file except for swap and boot (the following is all one line):
      UUID=55ae6f33-5075-465a-b225-6f8a9d9787e7 /               ext4    noatime,errors=remount-ro 0       1
  4. Enable trim command to be executed upon system boot (good for laptops)
    • Open rc.local file for editing (as a sudo). In Terminal type the following (you will be prompted for password once you hit Enter):
      gksu gedit /etc/rc.local
    • Add fstrim command for each partition in that file except for swap and boot and make sure that you add these lines before exit 0:
      fstrim /
      fstrim /home
  5. Disable weekly trim action that is configured by the OS automatically by moving cron job configuration file:
    sudo mv -v /etc/cron.weekly/fstrim /fstrim.disabled_weekly_cron
  6. Limit swap partition wear:
    • Open sysctl.conf file for editing (as a sudo). In Terminal type the following (you will be prompted for password once you hit Enter):
      gksudo gedit /etc/sysctl.conf
    • Add the following line into the file:
      vm.swappiness=1
  7. Limit Firefox caching on disk
    • Open Advanced category of Firefox Preferences (accessed via Firefox menu)
    • Click on Network tab
    • Check “Override automatic cache management” in Cached Web Content section
    • Set “Limit” to 0
  8. Disable hibernation as that will write a lot of data on the drive every time you hibernate the computer. Maybe go without it if you can.

 

Linux vs Windows

Linux Mint Logo

Well, it’s 2016 and the most recent Windows release (10 that is) is getting more and more bad publicity with the security and privacy issues. I have been looking at upgrading to Windows 10 but with all the news decided to try Linux. Again.

I decided to switch my laptop first. Just recently bought a high capacity new SSD drive (1 TB Sandisk) and have replaced my old-ish drive. At first I had Windows installed on it, but then decided to give Linux Mint a try. Unlike my attempts to use Linux 3-4 years ago (Ubuntu that time), this time around it went much better. I first tried Mint as a “live” OS (running it from a USB drive, not installing on the computer) and it seemed to pick all of my devices just fine. Once I was sure it was going to play nice with the hardware I’ve installed it and it seems to be running just fine – I haven’t booted into Windows yet.

While the OS seems to be OK and there are few applications that everyone now expects to have (ie. browsers, office productivity tools, some computer related software) I have my concerns and doubts – the software that I need the most is pretty much Windows exclusive (photography related software) and it is going to be very challenging to find anything comparable. So I’m not kidding myself – there is no way to get anything close to Lightroom or Photoshop on Linux, so it’s going to be a struggle. If only Adobe released their software for Linux – I’d be buying (or rather renting) it right away. But no, they ignore Linux and, unfortunately, they have no competition. I believe they ignore Linux because the userbase is small, but at the same time I’ve read a lot of posts online of people who’d move away from Windows if only Adobe’s products were available on Linux. Classic chicken and the egg problem.

Well, with all of this said, I am going to document my adventures in Linux move as I go. Mostly for myself – once I decide to switch my desktop to Linux I’ll need to use some sort of a checklist of what I need to do.

© Copyright Alexander Yermakov. My life. - Designed by Pexeto