Page 1 of 1

Success report - Cumulus MX on Ubuntu 16.04 (64 bit)

Posted: Mon 25 Apr 2016 8:31 pm
by rwg
Took a bit of tweaking which I'll document, but I've got this running with a WMR100 (well, 180) and I'm well pleased :)

Here's what I did :

Code: Select all

# Install mono first, unfortunately you get 4.2.x, which apparently doesn't work
sudo apt-get install mono-complete

# now build mono from source - version 4.0.5.1
sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext libtool-bin unzip
sudo apt-get install g++-multilib libc6-dev-i386
wget http://download.mono-project.com/sources/mono/mono-4.0.5.1.tar.bz2
tar xjf mono-4.0.5.1.tar.bz2 
cd mono-4.0.5/

# need to build the x86 version, not the 64 bit version
CFLAGS="-m32 -D__USE_GNU" ./configure --prefix=/usr/local --host=i386-pc-linux-gnu
make
sudo make install

#should now have x86 mono (look for Architecture: x86 in the output)
mono --version

# need some libraries, including libudev0 which is no longer part of the distrib, so get an old one
cd
wget https://mirrors.kernel.org/ubuntu/pool/main/u/udev/libudev0_175-0ubuntu9_i386.deb
sudo dpkg -i libudev0_175-0ubuntu9_i386.deb 
sudo apt-get install libsqlite3-0:i386

# now ready to go
unzip CumulusMXDist3038.zip 
cd CumulusMX
sudo mono ./CumulusMX.exe

Hopefully that's the full sequence of commands - I ended up with a fair bit of trial and error but I've tried to extract out the things that actually worked.

cheers,

Robin

Re: Success report - Cumulus MX on Ubuntu 16.04 (64 bit)

Posted: Mon 25 Apr 2016 9:17 pm
by rwg
One more thing - here's how to get CumulusMX working without sudo... (at least for the WMR100 weather station).

Sudo is required because by default the /dev/hidraw* devices have no read/write permissions except for root. This can be fixed by creating a udev rules file to assign permissions to /dev/hidraw* when the device is plugged in.

Create a file names /etc/udev/rules.d/99-hidraw-permission.rules with the content

Code: Select all

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="plugdev"
You will need to create this file using sudo, but once done (and you either reboot or re-plug the device) you will not need to run Cumulus as sudo.
Source : https://unix.stackexchange.com/question ... ermissions

Note: If you've already run CumulusMX as sudo then your data and config files are probably owned by root - you need to fix this, which you can do by using something like

Code: Select all

# go to your cumulusMX directory 
cd ~/CumulusMX  
# replace <username> with your username, so this would become sudo chown -R fred.fred *
sudo chown -R <username>.<username> *  
cheers,

Robin

Re: Success report - Cumulus MX on Ubuntu 16.04 (64 bit)

Posted: Tue 26 Apr 2016 7:32 am
by steve
rwg wrote:Create a file names /etc/udev/rules.d/99-hidraw-permission.rules with the content

Code: Select all

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="plugdev"
That's useful - the (similar) instructions that I've given for this in the announcement require the use of the VID and PID of the type of station. This should work for any station.