Archive for the ‘Linux’ Category
For some reason Unity in Ubuntu 16.04 and the SublimeText deb package don’t play well together and the integration is not quite right – for one the launcher says “UNREGISTERED” even after entering a valid licence key, and SublimeText does not appear in Nautilus context menu as an option to open files. Here’s the workaround […]
Great post on Stack Exchange, How to correctly add a path to PATH?.
Lots of issues with Network Manager in Ubuntu 16.06 LTS, in particular connecting to wifi after suspend/resume. Restarting the Network Manager service seems to work for me.
1 |
sudo systemctl restart network-manager.service |
Here’s the fix for a problem where Nautilus shows hidden files by default. $dconf-editor org -> gtk -> settings -> file-chooser Uncheck show-hidden Close Nautilus and open again
In this post we look at how text data can be transposed in a shell script. Suppose you have a comma-delimited text file (csv) which looks like this: 2014-10-01,Reading1,20.3 2014-10-01,Reading2,21.5 2014-10-01,Reading3,24.0 2014-10-01,Reading4,22.2 2014-10-02,Reading1,20.5 2014-10-02,Reading2,21.5 2014-10-02,Reading3,24.1 2014-10-02,Reading4,22.4 2014-10-03,Reading1,20.5 2014-10-03,Reading2,21.7 2014-10-03,Reading3,24.2 2014-10-03,Reading4,22.5 …and so on. Perhaps this is a set of sensor readings over a period of […]
Suppose you have a monthly process to archive some data such as log files etc. Each month a separate archive file is created, and so after a few months you will have several archive files – for example as shown below: archive.2014-08.tar.gz archive.2014-09.tar.gz archive.2014.10.tar.gz Now if you wish to extract your data from all three […]
FPrint is a PPA with packages for fingerprint-based authentication. Website includes good documentation on how to install and set it up.
This is a great one-liner which removes old kernel images and frees up space in your boot partition:
1 |
$sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
This comes from the top answer to a question on ask ubuntu.
Here’s an article on Lego’s Land on how to reorder accounts in the left pane of Thunderbird.
Most digital cameras store Exif data in the JPEG photo files. This includes things like date and time, camera model and camera settings and in some cases even GPS coordinates. jhead is a very useful command line utility which can read and edit the Exif data. For example, you may wish to remove the data […]