Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Help for an Ubuntu novice please

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Help for an Ubuntu novice please

Post by rydercowan »

I'm a complete novice with Ubuntu and am struggling to get CumulusMX set up on a new Ubuntu system. I think my problems may be principally stemming from a Windows mindset, but I've spent hours without success on Ubuntu and am obviously doing something wrong.

I've followed the wiki and installed Mono - I think successfully. I then unzipped CumulusMX into a folder named CumulusMX. User name is ryder. In the directory structure I can see the exe in home/ryder/cumulusmx. So far so good. I then use
sudo mono /home/ryder/cumulusmx/cumulusmx.exe -service
but get the response
'Cannot open assembly '/home/ryder/cumulusmx/cumulusmx.exe': No such file or directory.'
I've tried with and without the first /. Nothing works.

Can anyone suggest what I'm doing wrong? I'm close to giving up and going back to Windows!
SamiS
Posts: 354
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Help for an Ubuntu novice please

Post by SamiS »

For a Windows user the first thing to notice is that linux is case sensitive. So check your folder names and file names and use capital letters accordingly.
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Help for an Ubuntu novice please

Post by rydercowan »

That helped, thank you, but I still have problems. I have mono installed, and tried the foillowing -

$ sudo mono /home/ryder/CumulusMX/CumulusMX.exe
System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/ryder/MXdiags'.
at System.IO.Enumeration.FileSystemEnumerator`1[TResult].CreateDirectoryHandle (System.String path, System.Boolean ignoreNotFound) [0x00032] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Enumeration.FileSystemEnumerator`1[TResult]..ctor (System.String directory, System.IO.EnumerationOptions options) [0x00048] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Enumeration.FileSystemEnumerable`1+DelegateEnumerator[TResult]..ctor (System.IO.Enumeration.FileSystemEnumerable`1[TResult] enumerable) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Enumeration.FileSystemEnumerable`1[TResult]..ctor (System.String directory, System.IO.Enumeration.FileSystemEnumerable`1+FindTransform[TResult] transform, System.IO.EnumerationOptions options) [0x00042] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles (System.String directory, System.String expression, System.IO.EnumerationOptions options) [0x00014] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Directory.InternalEnumeratePaths (System.String path, System.String searchPattern, System.IO.SearchTarget searchTarget, System.IO.EnumerationOptions options) [0x0003c] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, System.IO.EnumerationOptions enumerationOptions) [0x00000] in <533173d24dae460899d2b10975534bb0>:0
at System.IO.Directory.GetFiles (System.String path) [0x0000b] in <533173d24dae460899d2b10975534bb0>:0
at CumulusMX.Cumulus.GetLoggingFileName (System.String directory) [0x00000] in <b13b7fbc0f8a48f28a0f7e2233d4bcc3>:0
at CumulusMX.Cumulus..ctor (System.Int32 HTTPport, System.Boolean DebugEnabled, System.String startParms) [0x01156] in <b13b7fbc0f8a48f28a0f7e2233d4bcc3>:0
at CumulusMX.Program.RunAsAConsole (System.Int32 port, System.Boolean debug) [0x00048] in <b13b7fbc0f8a48f28a0f7e2233d4bcc3>:0
at CumulusMX.Program.Main (System.String[] args) [0x00529] in <b13b7fbc0f8a48f28a0f7e2233d4bcc3>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****

The MXdiags folder is empty.
This is much more complicated than Windows! What can I do now?
User avatar
rogerthn
Posts: 489
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Help for an Ubuntu novice please

Post by rogerthn »

Try

Code: Select all

cd /home/ryder/CumulusMX/
and then

Code: Select all

sudo mono /home/ryder/CumulusMX/CumulusMX.exe
or

Code: Select all

sudo mono CumulusMX.exe
Image
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Help for an Ubuntu novice please

Post by mcrossley »

There was a folder missing from the zip file (added now), you need to create it manually ....

Code: Select all

md /home/ryder/CumulusMX/MXdiags
See this topic.. viewtopic.php?f=40&t=19692&sid=e7a83a12 ... 9b9220648e
User avatar
Buford T. Justice
Posts: 423
Joined: Fri 17 Aug 2012 9:21 pm
Weather Station: Ecowitt GW1002
Operating System: Windows 11 Pro
Location: USA

Re: Help for an Ubuntu novice please

Post by Buford T. Justice »

You also might not want to run it as sudo or you will have files and folders that cannot be easily deleted. This happened to me the other day.

1) Hold down CTRL + ALT then press T to open the Terminal.
2) cd CumulusMX
3) mono CumulusMX.exe
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: Help for an Ubuntu novice please

Post by jlmr731 »

There was a reason for running as root, maybe things have changed but had to do with reading from usb, or might have been something with an older version of mono, well if it works without sudo then great, then you can just change the permissions on the files within cumulus folder then you will be able to edit or do whatever as a user.

Code: Select all

sudo chown -R username:groupname /home/user/CumulusMX/* 
that will do the trick
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: Help for an Ubuntu novice please

Post by philpugh »

There was a reason for running as root
The way to stop using root to start CumulusMX is to add your user to the dialout group. By default the COM ports (including USB to Serial) are owned by root.

Code: Select all

sudo usermod -a -G dialout $USER
$USER is your user name and don't forget to log out then back in to effect the change!
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
rydercowan
Posts: 16
Joined: Fri 20 Aug 2021 7:21 pm
Weather Station: Vantage Pro 2
Operating System: Windows 10
Location: Kelso, Scotland

Re: Help for an Ubuntu novice please

Post by rydercowan »

Very many thanks for the help received. I now have CumulusMX running as a service on Ubuntu.

Website hosting next. I hope. My limited knowledge may make that challenging.
Post Reply