MX on Linux: Difference between revisions

2,908 bytes added ,  15:11, 30 August 2020
m
no edit summary
mNo edit summary
Line 16: Line 16:
*Installing Apache, PHP, MariaDB, PhpMyAdmin, and copying your database from another device
*Installing Apache, PHP, MariaDB, PhpMyAdmin, and copying your database from another device
*Running MX
*Running MX
{{TOCright}}
== A very quick introduction to Linux ==
This article is not the place to teach you Linux, you can find books and on-line articles for yourself, but I list here enough for you to understand the instructions used elsewhere in this article.
If you have a Raspberry Pi with a monitor attached, you will see a raspberry icon that you can click to get access to many features including shutdown options.
* To shutdown a Pi, type <tt>sudo halt</tt>, and then optionally turn the power off when the shut down has completed.
* To reboot your Pi, type <tt>sudo reboot</tt>, and then you will see that your Pi shuts down and then boots up again. Although the notes below rarely mention this instruction, it is usually advisable to reboot after installing new packages, or changing the configuration, to ensure everything works correctly, so you will probably use it quite often during set up.
=== sudo ===
Almost all instructions here start with a "sudo", it basically gives administrative rights to whatever follows, and therefore allows you to do tasks that won't work in the default user.
=== ~ and / ===
The tilde symbol '''~''' denotes the home directory for the current user.  Sub-directories within the current user's folder can be identified by '''~/documents''' or similar notation. To reference a folder in root or any other area, the prefix is always '''/'''.
=== nano ===
There are various text editors available on a Pi, '''nano''' is a simple one. You follow the instruction with a filename (it might include a path) and there are examples later in this article, but one you might want to use is <tt>sudo nano /var/www/html/index.php</tt>.  After you have made an alteration to the current contents of the file, various options are shown at the bottom. One is '''^X''' which means if you press the control key down and type X you get the exit dialogue. First it asks whether you want to save the edited file (type '''Y'''), although the Y carries on, any other key stroke cancels without saving. Next it shows the current file name, if you press '''Enter''' then that file will be overwritten. Look out for any error message here, you might not have write permissions on an existing file. If you change the file name shown than it can save as another file, but you will be asked if the new name is correct (again type '''Y''' to continue saving).
=== install ===
This is used for installing packages, you will often see it used with a parameter '''-y'''; as without that parameter you have to type '''Y''' to continue at each step of an install.
=== rename ===
You can rename a file or a folder with various commands, but the one I will describe here is <tt>sudo rm filename</tt>.
=== Miscellaneous ===
I have created a section here, in case anyone wants to add any more instructions. Please feel free to rename it, or indeed add any clarification anywhere in this article.


=Which Raspberry Pi to buy=
=Which Raspberry Pi to buy=
5,838

edits