More from: Technical

fsck update needed GNU/Linux Mint v18 -> v19 file systems

GNU/Linux is built of many programs around a kernel. One of those programs is used to check your file system for errors before mounting it while booting. If errors are detected then the boot process stops and places you at a command line where you must somehow repair your disk so that your system can boot. fsck is the program that you call to do that repair.

New features in the file system cannot be checked by the old fsck – you cannot successfully fsck a disk made with Linux Mint v19 using Linux Mint v18: you get an error “e2fsck 1.42.13 (17-May-2015) /dev/sdg4 has unsupported features …. e2fsck: Get a newer version of e2fsck!”

Online search eventually showed me the solution via a question asked by Zangar, and answered by heynnema and VasekCh on StackExchangeAsk Ubuntu  at https://askubuntu.com/questions/883351/how-do-i-update-e2fsck.

I tried e2fsck but it asks me to Get a newer version of e2fsck! Then, I looked at all the other posts about updating e2fsck (here and here.) These answers did not work for me.

The answer that I used meant downloading the current version of e2fsck from SourceForge and following instructions by VasekCh to build and install it:

  1. Download the latest version (1.44.3) from http://e2fsprogs.sourceforge.net/ and unpack in a directory and cd into it.
  2. According to the INSTALL document:
    mkdir build; cd build
    ../configure
    make
    sudo make install
    
  3. Check that you have new version now:
    $ e2fsck -V
    e2fsck 1.44.3 (10-July-2018)
    Using EXT2FS Library version 1.44.3, 10-July-2018
    

Note: you may need to install compiler and tools with apt get install gcc.

This worked the first time for me on my GNU/Linux Mint/MATE workstation.


Use Local Time when dual boot Linux / Windows

Our lab computers dual boot Microsoft Windows 10 with GNU/Linux Mint / MATE. As a result, when booting to Windows the time is five hours too fast because Windows expects the RTC (real time clock hardware) to be in local time while Linux keeps time in UTC. The fix is easy.

A nice, short article on this was provided by Ji M at http://ubuntuhandbook.org/index.php/2016/05/time-differences-ubuntu-1604-windows-10/

Disable UTC and use Local Time in Ubuntu:

In previous Ubuntu editions, you can edit the config file /etc/default/rcS to disable UTC.

In Ubuntu 16.04, open terminal (Ctrl+Alt+T) and run the command below instead:

timedatectl set-local-rtc 1 --adjust-system-clock

To check out if your system uses Local time, just run:

timedatectl


Windoz haz OpenSSH!

O’ most awesome of awesomeness!

After years of wishing, in the Fall Creator’s Update, OpenSSH was added to Windows 10! That is right – cross server inter-operability using normal tools and secure keys without needing to mess around with obtuse VPN setups or 3rd party programs!

https://blogs.msdn.microsoft.com/powershell/2017/12/15/using-the-openssh-beta-in-windows-10-fall-creators-update-and-windows-server-1709/

GO START -> Setup -> Apps -> Apps and Features -> Manage optional features -> Add a feature and select SSH. Copy your Linux keys to a folder named .ssh in your home folder (c:\Users\yourlogin\.ssh), just as is the default in Linux.

You must restrict access to your private key(s) just as in Linux. In Microsoft this is done by browsing to the key file, right click, Properties, Security  then remove everyone / objects, add yourself (only), and give yourself Full Control.

Read more at the link above concerning generating keys and protecting them with a key manager program.

I am still exploring the possibility of using File Explorer to browse via ssh, just as the file manager can be used in Linux. More later…