MX on Linux: Difference between revisions

2,513 bytes added ,  09:51, 30 August 2020
m
Line 118: Line 118:


There are various other configurations you need to do on your PI. Unlike SSH, these can't be done by storing files on the micro-SD card. You need to use the raspbian configuration tool '''raspi-config''', and this can be accessed on your Pi either in a Graphical User Interface (GUI), or by running a command in Terminal. The same command can be run from a remote device if you successfully have SSH running. On a Windows pc, this will typically involve use of '''PuTTY''' software (an SSH client for Windows) downloaded from <tt>https://www.putty.org/</tt>. In both cases the command to use is <tt>sudo raspi-config</tt>.
There are various other configurations you need to do on your PI. Unlike SSH, these can't be done by storing files on the micro-SD card. You need to use the raspbian configuration tool '''raspi-config''', and this can be accessed on your Pi either in a Graphical User Interface (GUI), or by running a command in Terminal. The same command can be run from a remote device if you successfully have SSH running. On a Windows pc, this will typically involve use of '''PuTTY''' software (an SSH client for Windows) downloaded from <tt>https://www.putty.org/</tt>. In both cases the command to use is <tt>sudo raspi-config</tt>.
==== Mandatory ====
When you use SSH for the first time to connect to your Pi, you will see a warning that SSH is enabled but the password has not been changed, which is a security risk.  So it is mandatory to change the network password for your Pi from the default '''raspberry''' to something that you can remember but makes life hard for anybody trying to hack into your system with malicious intent.
Within the Raspberian configuration utility, you will see an option to change password. You will need to enter the new password twice before it replaces the old one.
The default network (host) name for your Pi is '''raspberrypi''', obviously we need to replace that as well with a name that personalises it to you and does not make it easy for a hacker to know what device is represented by that network name. Once we rename this, if we are working headless, we will see an error message: '''sudo: unable to resolve host raspberrypi''', appearing when we leave the configuration utility.  These can be safely ignored (it's just because you renamed the Pi) and will disappear after next reboot of your Pi.
Within the Raspberian configuration utility, you will see a '''Network Options''' option, it is there that you change the network name. Network options can also be configured by clicking an icon on the Pi (this icon might be two red crosses if network settings are missing, two parallel arrows if the network settings are not correctly set, or the wireless symbol if your wireless network is working).  Hopefully, for you the WiFi network and password have already been set by the '''wpa-supplicant.con'''f file added to micro-SD card earlier.
==== Recommended ====
If you are going to use the Pi in headless mode, you must select this next configuration. In '''Boot Options''', ''Desktop / CLI'', select '''Console Autologin'''.
The default locale for a Pi is normally '''en_GB.UTF-8'''. Whatever locale you use, if you have already been using Cumulus (1 or MX), you need to ensure the locale matches the one used for your log files. The  versions of MX released in the middle of 2020 are very fussy that all dates use the same delimiter, so you need to check the chosen locale continues to use the same date separator as before. The locale is affected by the version of Mono you install and whether you use the locale parameter when starting MX, so I cannot cover all options.
Anyway, the default locale is fine if you are in the UK, you use decimal points for real numbers, you use commas for list separators, and you don't have dates with month first!
To change the locale, enter '''Localisation Options'''.  Note that there is a Wi-Fi network country, but that has already been set by the '''wpa-supplicant.con'''f file added to micro-SD card earlier. In the same option area, there are some more options:
# Change Time-zone, by default UTC is used all year round. In the UK if your Cumulus is set to roll over at 10am in summer, you will wish to change the time-zone to UK time.
# Change Keyboard Layout if needed, keyboards can support different numbers of characters, and can have different currency symbols, so select whatever is relevant to you
====To leave configuration====
Select ‘Finish’.
== Installing Mono ==
Sponsored by Microsoft, Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
=== Preparing for Mono installation ===
Quite often when we try to install, or update, packages on our Pi we will see messages about dependencies, and in some cases error messages saying the installation has failed or been aborted. Before we can install Mono, there are other packages required and these depend upon which Raspbian operating system we have installed, see [https://www.mono-project.com/download/stable/#download-lin-raspbian Mono instructions for Raspberian].




Line 198: Line 233:


* Note, to copy from here (usually need to do 1 line at a time), select it then CTRL-C. To paste into the PuTTY window, right click.
* Note, to copy from here (usually need to do 1 line at a time), select it then CTRL-C. To paste into the PuTTY window, right click.
* As needed, adjust the following settings:
 
** Change the password to something you will remember. Leaving it at raspberry is a serious security risk – exposes your whole network to hackers
 
** In Network Options,
 
**#change the name of your pi to ‘Cumulus’ or something you prefer
 
**# WiFi network and password have already been set by the wpa-supplicant.conf file added earlier
 
** In Boot Options, Desktop / CLI, select ‘Console Autologin’
 
** In Localisation Options,
 
**# change ‘Locale’ if you need something different to en_GB.UTF-8. [Changing this takes quite a while on a slow Pi]. [As of Sep/Oct 2019, there is some kind of incompatibility between RaspBIAN Buster, mono v6.0.0.314 and locales other that en_GB - so unless you NEED another locale, it would be better to leave it as en_GB. The alternative is to force load an older version of Mono, for example v5.18]
 
**# Change Timezone.
 
**# Change Keyboard Layout if needed
 
**# WiFi country has already been set by the wpa-supplicant.conf file added earlier
 
** In Interfacing options, SSH server has already been set to be enabled by the empty SSH file added earlier
** Select ‘Finish’. There is no need to reboot at this stage. But until you do, you will see messages "sudo: unable to resolve host raspberrypi", but these can be safely ignored (it's just because you renamed the Pi - will disappear after next reboot)


In the steps below, you will need to press '''y''' to agree to proceed at various times
In the steps below, you will need to press '''y''' to agree to proceed at various times
5,838

edits