<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=MoodleBox</id>
	<title>MoodleBox - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=MoodleBox"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=MoodleBox&amp;action=history"/>
	<updated>2026-05-07T00:08:50Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=MoodleBox&amp;diff=4065&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=MoodleBox&amp;diff=4065&amp;oldid=prev"/>
		<updated>2024-10-18T06:42:49Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:42, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=MoodleBox&amp;diff=4064&amp;oldid=prev</id>
		<title>1&gt;Mina: /* See also */ Link added</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=MoodleBox&amp;diff=4064&amp;oldid=prev"/>
		<updated>2023-08-25T07:00:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; Link added&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = Admin Tool&lt;br /&gt;
|entry = https://moodle.org/plugins/view.php?plugin=tool_moodlebox&lt;br /&gt;
|tracker = https://github.com/moodlebox/moodle-tool_moodlebox/issues&lt;br /&gt;
|discussion = https://discuss.moodlebox.net&lt;br /&gt;
|maintainer = [[User:Nicolas Martignoni|Nicolas Martignoni]] &lt;br /&gt;
|float = right&lt;br /&gt;
}}&lt;br /&gt;
{{Note|You can find the most up-to-date documentation for this plugin in the MoodleBox webpage at https://moodlebox.net. This page is intended for users that click on the &amp;#039;Moodle Docs for this page&amp;#039; link.}}&lt;br /&gt;
The [https://moodle.org/plugins/view.php?plugin=tool_moodlebox MoodleBox plugin for Moodle] is an administration tool  providing a GUI to some settings and management of a [https://moodlebox.net MoodleBox], a Moodle server installed on a [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi].&lt;br /&gt;
&lt;br /&gt;
It enables a Moodle administrator to monitor some hardware settings, to set the date of the [https://moodlebox.net MoodleBox], to allow restart and shutdown of the [https://moodlebox.net MoodleBox] and changing Raspberry Pi passwords using a GUI. After the installation in Moodle, some steps are required to complete on the Raspberry Pi (see below).&lt;br /&gt;
&lt;br /&gt;
The plugin is compatible with Moodle 3.6 or later. A Raspberry Pi model 3A+, 3B, 3B+ or 4B is recommended.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* A [https://en.wikipedia.org/wiki/Raspberry_Pi Raspberry Pi] (Model 3A+, 3B, 3B+ or 4B recommended)&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Raspberry_Pi_OS Raspberry Pi OS] installed (or another Linux based distribution)&lt;br /&gt;
* Direvent service installed&lt;br /&gt;
* Moodle installed (obviously)&lt;br /&gt;
&lt;br /&gt;
== Installation==&lt;br /&gt;
&lt;br /&gt;
The MoodleBox plugin must be installed in the Moodle tree of the [https://moodlebox.net MoodleBox], in the tool folder. Once installed, an new option MoodleBox will be available in Moodle, under &amp;#039;&amp;#039;Site administration &amp;gt; Server&amp;#039;&amp;#039; in the Administration block.&lt;br /&gt;
&lt;br /&gt;
To complete the installation, you have to configure some `direvent` jobs on the MoodleBox.&lt;br /&gt;
&lt;br /&gt;
1. Install `direvent` package:&lt;br /&gt;
    ```bash&lt;br /&gt;
    sudo apt-get install direvent&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
1. Add following lines to file `/etc/direvent.conf`:&lt;br /&gt;
    ```bash&lt;br /&gt;
    # This is the configuration file for direvent. Read&lt;br /&gt;
    # direvent.conf(5) for more information about how to&lt;br /&gt;
    # fill this file.&lt;br /&gt;
&lt;br /&gt;
    debug 0;&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .reboot-server;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/sbin/shutdown -r now&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .shutdown-server;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/sbin/shutdown -h now&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .set-server-datetime;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/bin/bash /var/www/moodle/admin/tool/moodlebox/.set-server-datetime&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .newpassword;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/bin/bash /var/www/moodle/admin/tool/moodlebox/bin/changepassword.sh&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .wifisettings;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/usr/bin/python3 /var/www/moodle/admin/tool/moodlebox/bin/changewifisettings.py&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    watcher {&lt;br /&gt;
      path /var/www/moodle/admin/tool/moodlebox/;&lt;br /&gt;
      file .resize-partition;&lt;br /&gt;
      event CLOSE_WRITE;&lt;br /&gt;
      command &amp;quot;/bin/bash /var/www/moodle/admin/tool/moodlebox/bin/resizepartition.sh&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    ```&lt;br /&gt;
&lt;br /&gt;
=== Copy the following line at the end of file /etc/sudoers ===&lt;br /&gt;
    www-data ALL=(ALL) NOPASSWD:/sbin/parted /dev/mmcblk0 unit MB print free&lt;br /&gt;
    www-data ALL=(ALL) NOPASSWD:/usr/bin/vcgencmd&lt;br /&gt;
&lt;br /&gt;
=== If you use PiJuice, install the related packages ===&lt;br /&gt;
    sudo apt-get install pijuice-base&lt;br /&gt;
    sudo adduser www-data i2c&lt;br /&gt;
&lt;br /&gt;
and reboot&lt;br /&gt;
&lt;br /&gt;
=== [[Secure Moodle on Raspberry Pi Model 2, Gentoo Linux and Nginx server|Secure your Moodlebox]] ===&lt;br /&gt;
&lt;br /&gt;
This is not needed in normal MoodleBox use, i.e. if you don&amp;#039;t expose your MoodleBox on the Internet.&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
&lt;br /&gt;
* Info about the MoodleBox (kernel version, Raspberry Pi OS version, free space on SD card, CPU load, CPU temperature, CPU frequency, uptime, DHCP clients and more).&lt;br /&gt;
* Warning when under voltage detected.&lt;br /&gt;
* GUI to set the MoodleBox date and time.&lt;br /&gt;
* GUI to set the MoodleBox password.&lt;br /&gt;
* GUI to set the MoodleBox Wi-Fi settings: SSID and its visibility, regulatory country, channel, password (or remove password) and fixed IP address.&lt;br /&gt;
* GUI to resize the partition of the SD card of the MoodleBox, when needed.&lt;br /&gt;
* GUI to restart and shutdown the MoodleBox.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
&lt;br /&gt;
The code is available at [https://github.com/moodlebox/moodle-tool_moodlebox https://github.com/moodlebox/moodle-tool_moodlebox].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://moodlebox.net MoodleBox documentation]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributed code]]&lt;br /&gt;
&lt;br /&gt;
[[es:MoodleBox]]&lt;br /&gt;
[[de:MoodleBox]]&lt;/div&gt;</summary>
		<author><name>1&gt;Mina</name></author>
	</entry>
</feed>