Upgraded to Julia 1.0.1

I’m going to start the 100 days of code again. First, followed the instructions in https://julialang.org/downloads/platform.html and completed installation of Julia 1.0.1 on CentOS 7.5.

Then installed iJulia, a Julia-language backend combined with the Jupyter environment, as below:

using Pkg

Then launched an iJulia notebook in Konqueror.

sudo options

Use sudo -i to create an interactive root shell on CentOS. Instead of $, you will see #, indicating that you have root access. Very useful when you have to run a sequence of various commands which require root access. You won’t have to type sudo before each command.

Flatpak on CentOS 7

Discovered Flatpak last week. It’s making the process of installing applications on CentOS a lot easier. I installed Flatpak, then got GNU Octave from Flathub. Flathub is where you can get apps to run inside Flatpak, without having to look for a version that will run on your specific Linux Distro. I now have GNUOctave installed and running, after several failed attempts before Flatpak.

VLC on CentOS

Got VLC from the Nux Dextop repo.

VLC can be installed in yum by the following commands:
$ sudo yum -y install epel-release && sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el … noarch.rpm

Anaconda on CentOS 7

Finally got round to installing Anaconda (the Python distribution) on CentOS. I followed this article at Linux Hint. Launched Anaconda Navigator from Terminal, then created new environment. Installed the git and Jupyter packages into it. Opened a terminal window in the new environment. Everything is working fine so far. Last year had random crashes when running Anaconda on OS X, then I installed it on Ubuntu in Virtual Box. Anaconda worked fine, except for the slowness which I expected from a virtual environment. Now that I’ve installed it on a machine dedicated to CentOS, I’m expecting it to work ideally.

Firefox Quantum on Centos 7

This morning, installed Firefox 57 or Quantum via Konsole. Installing a software package on a Linux system is normally done from a terminal window (such as Konsole on CentOS), in contrast to Windows or OS X where an exe or dmg file is simply double-clicked to start the installation. In this case, I downloaded the compressed tar file from the Firefox site, then used the command to extract it in Konsole.

I will try Quantum for a while before making it the default version.

Binary => HDF5 ok

Ran the shell script to download the binary files and convert them to HDF5. First the download failed because the wget utility wasn’t installed. I got wget for El Capitan from rudix.org, then ran the script again, download successful. Then ran convert.jl and this worked too. Two HDF5 files have been created, named train and text. I can open either using h5dump:

Conversion to HDF5

Got the shell script from here: https://github.com/pluskid/Mocha.jl/blob/master/examples/cifar10/get-cifar10.sh

It will download the binary files from the CIFAR-10 dataset and convert them to HDF5 format which is readable by Mocha ( this script calls convert.jl to do the conversion).

Step forwards

Resolved the HDF5 error by pushing the path line to Julia config file (as suggested in the HDF5 installation docs).

push!(Libdl.DL_LOAD_PATH, “/opt/local/lib”)

So the problem before was that HDF5 was installed but Julia wasn’t seeing it.