Page 1 of 1
Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 3:38 pm
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!
Re: Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 4:10 pm
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.
Re: Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 7:23 pm
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?
Re: Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 7:34 pm
by rogerthn
Try
and then
Code: Select all
sudo mono /home/ryder/CumulusMX/CumulusMX.exe
or
Re: Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 7:58 pm
by mcrossley
There was a folder missing from the zip file (added now), you need to create it manually ....
See this topic..
viewtopic.php?f=40&t=19692&sid=e7a83a12 ... 9b9220648e
Re: Help for an Ubuntu novice please
Posted: Mon 13 Sep 2021 8:05 pm
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
Re: Help for an Ubuntu novice please
Posted: Tue 14 Sep 2021 3:06 am
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
Re: Help for an Ubuntu novice please
Posted: Tue 14 Sep 2021 12:29 pm
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.
$USER is your user name and don't forget to log out then back in to effect the change!
Re: Help for an Ubuntu novice please
Posted: Tue 14 Sep 2021 4:42 pm
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.