Notes on Ubuntu (Linux) computing

Brief notes on installation, setup and other tasks in the Ubuntu world

Archive for October 2012

Garmin forerunner and Ubuntu 12.04

with 4 comments

To download running information from my Garmin forerunner 305, I will use garmin-forerunner-tools:

sudo apt-get install garmin-forerunner-tools

Make a directory to save data, for example

mkdir ~/GarminData
cd ~/GarminData

To extract data, connect the watch via USB and run

garmin_save_runs

To convert the *.gmn files to *.tcx for uploading to the Garmin Connect website, use brainden.org scripts, available via svn:

svn co http://linuxnerd.net/svn/trunk/projects/garmin-dev

Finally, create *.tcx file using command like

cd garmin-dev
./gmn2tcx ../2012/10/filename.gmn > runfilname.tcx

Written by Chris S

October 29, 2012 at 6:47 pm

Network discovery in Ubuntu 12.04

leave a comment »

I needed a tool to scan my local network for connected devices. A search indicates that nmap is the tool of choice. Install using:

sudo apt-get install nmap

A scan of a LAN on 192.168.1.* is accomplished with the command:

nmap 192.168.1.0/24

Written by Chris S

October 27, 2012 at 10:42 pm

Posted in Ubuntu 12.04

Tagged with , , ,

Install filezilla

leave a comment »

A nice GUI application for your ftp needs. Install with:

sudo apt-get install filezilla

Written by Chris S

October 17, 2012 at 4:23 pm

Posted in Ubuntu 12.04

Tagged with , , ,

Install cups-pdf

leave a comment »

This utility allows you to print to a PDF file from pretty much any program. PDF will show as a printer choice and the default location for the generated file will be the directory ~/PDF/. Install using:

sudo apt-get install cups-pdf

Written by Chris S

October 17, 2012 at 4:15 pm

Posted in Ubuntu 12.04

Tagged with , , ,

Install JabRef

leave a comment »

JabRef is a Java-based reference manager with an emphasis on LaTeX. Installation involves downloading the *.jar file (find a link to the most current version here).

Change permission on file to allow execution (of course, use your version of JabRef jar):

chmod u+x JabRef-2.8.1.jar

Starting JabRef from the command line is done with:

java -jar JabRef-2.8.1.jar

In practice, it is probably best to create a launcher for the application.

Written by Chris S

October 12, 2012 at 10:45 pm

Install Java

leave a comment »

I have always found that the Sun, now Oracle, version of Java is needed for some of the Java programs that I use in Ubuntu. For 12.04 LTS, there is a ppa to install Oracle Java 7 JDK, described here. First, Oracle requires the acceptance of their license:

echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections

Note: I had to modify the above command, resulting in the above form, for this to work (see ‘update’ section in above link for original).

Next, install from the ppa:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

A test of the Java version:

java -version

should return something like:

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

Finally, you can check the plugin for Firefox by typing about:plugins in the address bar — you should see many Java-related enteries.

Written by Chris S

October 12, 2012 at 8:17 pm

Posted in Java, Ubuntu 12.04

Tagged with , ,

Install D compiler

leave a comment »

I have a collaborator who has started to code in d. Yes, that’s a programming language like the more familiar c. Of course, I want to compile and use the code he is creating. Install using:

sudo apt-get install gdc

Written by Chris S

October 11, 2012 at 11:17 pm

Posted in Ubuntu 12.04

Tagged with , ,