Saturday, January 14, 2017

Installing Node.js v7.4.0 on Linux Mint 18.1 (Serena)

Had a little trouble with installing, so thought I'd share my solution.

First I downloaded and unzipped the file from here: https://nodejs.org/dist/v7.4.0/node-v7.4.0-linux-x64.tar.xz

I like to install apps I download into /opt, so:
    $ cd /opt

Copied the zip over:
    $ sudo cp ~/node-v7.4.0-linux-x64.tar.xz .

Extracted the file:
    $ sudo tar xvf node-v7.4.0-linux-x665.tar.xz

Add the bin/node and bin/npm to be in the path by using update-alternatives:
    $ sudo update-alternatives --install /usr/bin/node node /opt/node-v7.4.0-linux-x64/bin/node 1
    $ sudo update-alternatives --install /usr/bin/npm npm /opt/node-v7.4.0-linux-x64/bin/npm 1

Now I get the expected versions:
    $ npm --version
    4.0.5

    $ node --version
    v7.4.0

Sunday, January 8, 2017

Finished getting the printer put together!

Wow was that a lot of work! The instructions to put the printer together were pretty decent. It definitely took some time and a lot of patience. I'm happy to say that it is working.

Here is one of my first prints:


















Looking forward to many prints to come!

Wednesday, January 4, 2017

Installing Gradle 3.3 on Linux Mint 18.1 (Serena)

I've been using Gradle now for years. I just installed Linux Mint 18.1 (Serena) and wanted to see which version apt would install to make my life easy.  So I ran this to see which version apt would install:
 $ apt-cache show gradle | grep Version
Version: 2.10-1

Woh, ok that's too old for me, so time to go download and install manually.

Note: You will need the Java JDK, I used OpenJDK 1.8.0_111 which was in apt.

I wrote a similar blog a while back that has info on building a sample Gradle app, here. The sample app should still work, and so you can reference that if you want to build a quick Java app. Gradle has changed a bit though, so the build files are not completely up to date.  In addition, the blog has instructions on how to install Gradle, these will be similar and still work, but I like this way better.

Here are the steps I used to install Gradle manually:
  1. Download the latest version of Gradle from here: http://www.gradle.org/downloads.  I grabbed gradle-3.3-bin.zip
  2. Move the download to /opt
  3. Unzip the archive
    $ sudo unzip gradle-3.3-bin.zip
  4. Use update-alternatives command to create the symbolic links to the gradle command
    $ sudo update-alternatives --install /usr/bin/gradle gradle /opt/gradle-3.3/bin/gradle 1
  5. Try it to make sure it works
    $ gradle -v