MX on Linux: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,166 bytes added ,  21:15, 23 July 2021
m
m (→‎Running MX on Linux: change sequence of parameters)
(5 intermediate revisions by the same user not shown)
Line 175: Line 175:
sudo apt autoremove
sudo apt autoremove
</code>
</code>
Each of those can be understood from information in previous section.


Each of these can be understood from information in previous section.
If you are installing onto a Pi zero, or similar slow computer, please ensure the size of the swapfile is as big as possible, as the mono-complete we will install is large. In linux, we type <code>free -m</code> to see our RAM size and our swapfile size.
 
To change swapfile size on the Raspberry Pi, you need to edit a file <code>sudo nano /etc/dphys-swapfile</code>.  Move the cursor down line by line until it reaches '''CONF_SWAPSIZE=100'''.  That is showing that the swapfile is only 99 mb by default in the Raspberry Pi Operating System. Now move the cursor to the 100, and change it to "512" which is enough for mono even on a Pi zero. Next, stop, and restart the relevant service using <code>sudo /etc/init.d/dphys-swapfile stop && sudo /etc/init.d/dphys-swapfile start</code>. That should complete quickly, and we can type <code>free -m</code> again to see the 99 we saw previously has been replaced by 511.


=== USB HID ===  
=== USB HID ===  
Line 182: Line 185:
There is one more prerequisite package for MX with some weather station types.
There is one more prerequisite package for MX with some weather station types.


The cross-platform Universal Serial Bus (USB) Human Interface Device (HID) library used by MX to connect to weather stations (like Fine Offset and USB connected Oregon Scientific models) that appear as a HID connecting via USB calls a package file called ''libudev.so.1'', so you may need to [[#install|search]] your Linux computer for this file.
The cross-platform [https://www.nuget.org/packages/HidSharp/ Universal Serial Bus (USB) Human Interface Device (HID) library] used by MX to connect to weather stations that appear as a HID connecting via USB (like Fine Offset and USB connected Oregon Scientific models) calls a package file called ''libudev.so.1'', so you may need to [[#install|search]] your Linux computer for this file, and [[#install]] it if it is missing. Alternatively, you might just need a symbolic link where MX looks to where the file is.


To check your USB devices, type <code>sudo lsusb -t</code).   
To check your USB devices, type <code>sudo lsusb -t</code).   
Line 204: Line 207:
===Add the Mono repository for a Raspberry Pi===
===Add the Mono repository for a Raspberry Pi===


The two Mono repositories listed here are specific to the 2017 and 2019 releases (respectively) of the operating system for a Raspberry Pi computer.  These are taken from  [https://www.mono-project.com/download/stable/#download-lin-raspbian].
The two Mono repositories listed here are specific to the 2017 and 2019 releases (respectively) of the operating system for a Raspberry Pi computer.  These are taken from  [https://www.mono-project.com/download/stable/#download-lin-raspbian download-lin-raspbian].


# the first line (in each case) installs a certificate
# the first line (in each case) installs a certificate
# the echo line defines a repository to add to the sources list.
# the echo line defines a repository to add to the sources list.


{| class="wikitable" border="1"
{| class="wikitable" border="0"
|-
|-
!style="width:450px" | Raspberry Operating System 9 (stretch)
!style="width:450px" | Raspberry Operating System 9 (stretch)
!style="width:450px" | Raspberry Operating System 10 (buster)
!style="width:450px" | Raspberry Operating System 10 (buster)
|-
|-
|<code>sudo apt install apt-transport-https dirmngr gnupg ca-certificates<br>
| sudo apt install apt-transport-https dirmngr gnupg ca-certificates<
<br>
| sudo apt install apt-transport-https dirmngr gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF<br>
|-
<br>
| <code>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF</code>
echo "deb https://download.mono-project.com/repo/debian stable-raspbianstretch main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
| <code>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF</code>
</code>
|-
|<code>sudo apt install apt-transport-https dirmngr gnupg ca-certificates<br>
| <nowiki>echo "deb https://download.mono-project.com/repo/debian stable-raspbianstretch main"</nowiki>
<br>
| <nowiki>echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main"</nowiki>
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF<br>
|-
<br>
| sudo tee /etc/apt/sources.list.d/mono-official-stable.list
 
| sudo tee /etc/apt/sources.list.d/mono-official-stable.list
echo "deb https://download.mono-project.com/repo/debian stable-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
</code>
|}
|}


==Add the Mono repository to Ubuntu, Debian, Fedora==
===Add the Mono repository to Ubuntu, Debian, Fedora===


At time of writing, [https://www.mono-project.com/download/stable/#download-lin-ubuntu], shows the instructions for versions 16, 18, and 20 of Ubuntu.
At time of writing, [https://www.mono-project.com/download/stable/#download-lin-ubuntu download-lin-ubuntu], shows the instructions for versions 16, 18, and 20 of Ubuntu.


Equally, [https://www.mono-project.com/download/stable/#download-lin-debian], gives details for debian, and [https://www.mono-project.com/download/stable/#download-lin-fedora] for Fedora.
Equally, [https://www.mono-project.com/download/stable/#download-lin-debian download-lin-debian], gives details for debian, and [https://www.mono-project.com/download/stable/#download-lin-fedora] for Fedora.


Others can be found by choosing other tabs on any of those links.
Others can be found by choosing other tabs on any of those links.
5,838

edits

Navigation menu