mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
300 lines
16 KiB
HTML
300 lines
16 KiB
HTML
<!-- Start Configure Pane -->
|
|
<div class="row-fluid"> <!-- Configure Header -->
|
|
<div class="col-md-9 col-md-offset-3">
|
|
<h1>Configure the School Server</h1>
|
|
</div>
|
|
</div> <!-- row -->
|
|
<div class="tabbable"> <!-- Configure Menu Options -->
|
|
<div class="row-fluid">
|
|
<div class="col-md-3 xsce-left-nav">
|
|
<h2>Configuration</h2>
|
|
<ul class="nav nav-pills nav-stacked">
|
|
<li class="active"><a href="#confNetwork">Network Parameters</a></li>
|
|
<li><a href="#confNetFilter">Internet Caching/Filtering</a></li>
|
|
<li><a href="#confHostapd">Internal Wifi AP</a></li>
|
|
<li><a href="#confPortal">Server Portal</a></li>
|
|
<li><a href="#confServices">Services Enabled</a></li>
|
|
<li><a href="#confWhitelist">Edit Permitted URLs</a></li>
|
|
</ul>
|
|
<h2>Actions</h2>
|
|
<div class="action-buttons">
|
|
<button id="SAVE-WHITELIST" type="button" class="btn btn-lg btn-success">Update Permitted URLs List</button>
|
|
<button id="SET-CONF-CMD" type="button" class="btn btn-lg btn-success">Save Configuration</button>
|
|
<button id="RUN-ANSIBLE" type="button" class="btn btn-lg btn-danger">Install Configured Options</button>
|
|
</div>
|
|
|
|
</div> <!-- left column -->
|
|
<div class="col-md-9"> <!-- right column -->
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="confNetwork"> <!-- Start Configure Network Pane -->
|
|
<h2>Network Parameters</h2>
|
|
<p><b>WARNING:</b> If you change the Host Name or Domain Name, you will need to refresh the browser after clicking Install Configured Options.</p>
|
|
<form role="form" class="form-horizontal" id="confNetworkForm">
|
|
<div class="form-group">
|
|
<div class="col-sm-4"><label>Host Name</label><input type="text" class="form-control" name="xsce_hostname" id="xsce_hostname" onblur="return xsce_hostnameVal()"></div>
|
|
<div class="col-sm-4"><label>Domain Name (no inital dot)</label><input type="text" class="form-control" name="xsce_domain" id="xsce_domain" onblur="return xsce_domainVal()"></div>
|
|
</div>
|
|
<h3>Server's Role in the Network</h3>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_network_role" id="gui_desired_network_role-Gateway" value="Gateway">Gateway - You need two or more network adapters, one of which must be connected to the Internet or a larger Network (WAN).</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_network_role" id="gui_desired_network_role-Appliance" value="Appliance">Appliance - You only need one network adapter, which must be connected to the Internet or a larger Network (WAN).</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_network_role" id="gui_desired_network_role-LanController" value="LanController">Lan Controller - You only need one network adapter. It is probably part of a standalone Network (LAN).</label>
|
|
</div>
|
|
<h2>Advanced Network Parameters</h2>
|
|
<h3>Network Discovered at Last Boot</h3>
|
|
<div id="discoveredNetwork">
|
|
Gateway Found<BR>
|
|
WAN Device p2p1<BR>
|
|
LAN Device p7p1<BR>
|
|
**** HARD CODED FOR TESTING ***
|
|
</div>
|
|
<h3>Override IP Addresses</h3>
|
|
<div class="checkbox">
|
|
<label><input type="checkbox" name="gui_static_wan" id="gui_static_wan" >Check to use a static WAN IP Address instead of DHCP</label>
|
|
</div>
|
|
<p><b>Please Note:</b> These parameters only take effect when you have checked the box above and have the necessary Network Adapters.</p>
|
|
|
|
<div class="row"><label class="col-md-3">Static Wan IP Address</label><div class="col-md-3"><input type="text" class="form-control" name="gui_static_wan_ip" id="gui_static_wan_ip"></div></div>
|
|
<div class="row"><label class="col-md-3">Static Wan Mask</label><div class="col-md-3"><input type="text" class="form-control" name="gui_static_wan_netmask" id="gui_static_wan_netmask"></div></div>
|
|
<div class="row"><label class="col-md-3">Static Wan Gateway</label><div class="col-md-3"><input type="text" class="form-control" name="gui_static_wan_gateway" id="gui_static_wan_gateway"></div></div>
|
|
<div class="row"><label class="col-md-3">Static Wan Name Server</label><div class="col-md-3"><input type="text" class="form-control" name="gui_static_wan_nameserver" id="gui_static_wan_nameserver"></div></div>
|
|
|
|
<h3>Internet Access for Installations</h3>
|
|
<p><b>Please Note:</b> This parameter will only be rarely changed.</p>
|
|
<div class="checkbox">
|
|
<label><input type="checkbox" name="use_cache" id="use_cache" >Check to force cache use even when online</label>
|
|
</div>
|
|
<h3>Admin Console Security</h3>
|
|
<p><b>Please Note:</b> This program is password protected, so this only needs to be changed if you are worried that there could be people listening on your network.</p>
|
|
<div class="checkbox">
|
|
<label><input type="checkbox" name="adm_cons_force_ssl" id="adm_cons_force_ssl" >Check to force https (ssl) access to this program.</label>
|
|
</div>
|
|
</form>
|
|
</div> <!-- network pane -->
|
|
<div class="tab-pane" id="confNetFilter"> <!-- Start Configure Network Filter Pane -->
|
|
<h2>Internet Caching/Filtering</h2>
|
|
<p><b>Please Note:</b> These parameters only take effect when you have selected the Gateway Role on the previous screen and have the necessary Network Adapters.</p>
|
|
<form role="form" id="confNetFilterForm">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="squid_enabled" id="squid_enabled">Check to Enable local Web Page storage for later fast Access (squid cache)
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="gw_squid_whitelist" id="xo-gw_squid_whitelist">Check to Restrict Web Page Access to a Specific List of Sites (Permitted URLs)
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="gw_block_https" id="xo-gw_block_https">Check to Block all HTTPS Access to Web Page
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="dansguardian_enabled" id="dansguardian_enabled">Check to Restrict Web Page Access according to Words in the Content (dansguardian)
|
|
</label>
|
|
</div>
|
|
</form>
|
|
</div> <!-- network Filter pane -->
|
|
<div class="tab-pane" id="confHostapd"> <!-- Start Configure Hostapd Pane -->
|
|
<h2>Internal Wifi Access Point</h2>
|
|
<p><b>Please Note:</b> These parameters only take effect if there is an internal wifi adapter and hostapd is enabled.</p>
|
|
<form role="form" id="confHostapdForm">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="hostapd_enabled" id="hostapd_enabled">Check to Enable the internal wifi adapter as an Access Point.
|
|
</label>
|
|
</div>
|
|
<div class="row"><label class="col-md-3">Internal Wifi Access Point Name</label><div class="col-md-3"><input type="text" class="form-control" name="host_ssid" id="host_ssid"></div></div>
|
|
<div class="row"><label class="col-md-3">Internal Wifi Access Point Mode</label><div class="col-md-3"><input type="text" class="form-control" name="host_wifi_mode" id="host_wifi_mode"></div></div>
|
|
<div class="row"><label class="col-md-3">Internal Wifi Access Point Channel</label><div class="col-md-3"><input type="text" class="form-control" name="host_channel" id="host_channel"></div></div>
|
|
</form>
|
|
</div> <!-- Configure Hostapd pane -->
|
|
<div class="tab-pane" id="confPortal"> <!-- Start Configure Server Portal Pane -->
|
|
<h2>Server Portal</h2>
|
|
<p><b>Please Note:</b> The selected Portal Page will only work if the corresponding software is Enabled.</p>
|
|
<form role="form" id="confPortalForm">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="wordpress_enabled" id="wordpress_enabled">Check to Enable WordPress.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" name="dokuwiki_enabled" id="dokuwiki_enabled">Check to Enable Dokuwiki.
|
|
</label>
|
|
</div>
|
|
<h3>Select Server Home Page</h3>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_home_url" id="gui_desired_home_url-home" value="home">/home</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_home_url" id="gui_desired_home_url-xs-portal" value="xs-portal">/xs-portal</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_home_url" id="gui_desired_home_url-wordpress" value="wordpress">/wordpress</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label><input type="radio" name="gui_desired_home_url" id="gui_desired_home_url-wiki" value="wiki">/wiki</label>
|
|
</div>
|
|
</form>
|
|
</div> <!-- Configure Server Portal pane -->
|
|
<div class="tab-pane" id="confServices"> <!-- Start Configure Services Pane -->
|
|
<h2>Check Each Service to Enable</h2>
|
|
<form role="form" id="confServicesForm">
|
|
<h3>For Students</h3>
|
|
<div class="checkbox xo-services_service">
|
|
<label>
|
|
<input type="checkbox" name="xo-services_enabled" id="xo-services_enabled">Services for XO Laptops such as Registration, Backup, and the Activity Server
|
|
</label>
|
|
</div>
|
|
<div class="checkbox ejabberd_service">
|
|
<label>
|
|
<input type="checkbox" name="ejabberd_enabled" id="ejabberd_enabled">Chat and Collaboration Server for XO Laptops and Others
|
|
</label>
|
|
</div>
|
|
<div class="checkbox moodle_service">
|
|
<label>
|
|
<input type="checkbox" name="moodle_enabled" id="moodle_enabled">Moodle, a Courseware Manager and E-Learning Platform
|
|
</label>
|
|
</div>
|
|
<div class="checkbox kiwix_serve_service">
|
|
<label>
|
|
<input type="checkbox" name="kiwix_serve_enabled" id="kiwix_serve_enabled">Kiwix, serves Wikipediae and other content from sources below. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox kalite_service">
|
|
<label>
|
|
<input type="checkbox" name="kalite_enabled" id="kalite_enabled">Khan Academy Lite, serves Khan Academy videos and Exercises. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox kalite_cron_service">
|
|
<label>
|
|
<input type="checkbox" name="kalite_cron_enabled" id="kalite_cron_enabled">The Khan Academy Downloader. You can turn this off if you don't plan to download videos.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox iiab_service">
|
|
<label>
|
|
<input type="checkbox" name="iiab_enabled" id="iiab_enabled">Open Street Maps from the original Internet-in-a-Box. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox rachel_service">
|
|
<label>
|
|
<input type="checkbox" name="rachel_enabled" id="rachel_enabled">RACHEL, another collection of popular content from World Possible. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox calibre_service">
|
|
<label>
|
|
<input type="checkbox" name="calibre_enabled" id="calibre_enabled">Calibre, an E-Book Platform. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox pathagar_service">
|
|
<label>
|
|
<input type="checkbox" name="pathagar_enabled" id="pathagar_enabled">Pathagar, another E-Book Platform. You must also install content.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox sugarizer_service">
|
|
<label>
|
|
<input type="checkbox" name="sugarizer_enabled" id="sugarizer_enabled">Sugarizer provides SugarLabs activities directly on the server.
|
|
</label>
|
|
</div>
|
|
<h3>Media Sharing and Printing</h3>
|
|
<div class="checkbox elgg_service">
|
|
<label>
|
|
<input type="checkbox" name="elgg_enabled" id="elgg_enabled">ELGG, a Social Networking Platform for Student Blogging, File Sharing, and Collaboration
|
|
</label>
|
|
</div>
|
|
<div class="checkbox owncloud_service">
|
|
<label>
|
|
<input type="checkbox" name="owncloud_enabled" id="owncloud_enabled">OwnCloud is a local server-based facility for sharing files, photos, contacts, calendars, etc.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox samba_service">
|
|
<label>
|
|
<input type="checkbox" name="samba_enabled" id="samba_enabled">SAMBA provides Network File Sharing
|
|
</label>
|
|
</div>
|
|
<div class="checkbox cups_service">
|
|
<label>
|
|
<input type="checkbox" name="cups_enabled" id="cups_enabled">CUPS provides support for printers.
|
|
</label>
|
|
</div>
|
|
|
|
<h3>For Monitoring and Administration</h3>
|
|
<div class="checkbox schooltool_service">
|
|
<label>
|
|
<input type="checkbox" name="schooltool_enabled" id="schooltool_enabled">SchoolTool is a School Administration System.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox xovis_service">
|
|
<label>
|
|
<input type="checkbox" name="xovis_enabled" id="xovis_enabled">XO Visualization—Graphs of Student Usage Statistics.
|
|
</label>
|
|
</div>
|
|
<div class="form-group xovis_service">
|
|
<label for="xovis_chart_heading">Title to Appear on XO Visualization Charts</label>
|
|
<input type="text" name="xovis_chart_heading" class="form-control" id="xovis_chart_heading" placeholder="Enter chart heading.">
|
|
</div>
|
|
<div class="checkbox sugar-stats_service">
|
|
<label>
|
|
<input type="checkbox" name="sugar-stats_enabled" id="sugar-stats_enabled">Collect statistics on the use of Sugar Activities.
|
|
</label>
|
|
</div>
|
|
<!-- removed ajenti -->
|
|
<div class="checkbox monit_service">
|
|
<label>
|
|
<input type="checkbox" name="monit_enabled" id="monit_enabled">Monit watches critical applications and restarts them if they fail.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox munin_service">
|
|
<label>
|
|
<input type="checkbox" name="munin_enabled" id="munin_enabled">Munin collects and graphs system-level statistics.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox vnstat_service">
|
|
<label>
|
|
<input type="checkbox" name="vnstat_enabled" id="vnstat_enabled">VnStat gathers and displays networking statistics.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox awstats_service">
|
|
<label>
|
|
<input type="checkbox" name="awstats_enabled" id="awstats_enabled">AWStats graphs statistics on web server usage.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox phpmyadmin_service">
|
|
<label>
|
|
<input type="checkbox" name="phpmyadmin_enabled" id="phpmyadmin_enabled">PhpMyadmin allows maintenance of mysql databases.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox openvpn_service">
|
|
<label>
|
|
<input type="checkbox" name="openvpn_enabled" id="openvpn_enabled">Open VPN allows a secure connection between servers over the Internet for remote maintenance.
|
|
</label>
|
|
</div>
|
|
<div class="checkbox teamviewer_service">
|
|
<label>
|
|
<input type="checkbox" name="teamviewer_enabled" id="teamviewer_enabled">TeamViewer provides a secure connection for Remote Support and Online Meetings.
|
|
</label>
|
|
</div>
|
|
</form>
|
|
</div> <!-- services pane -->
|
|
<div class="tab-pane" id="confWhitelist"> <!-- Start Configure Whitelist Pane -->
|
|
<h2>Edit Permitted URLs</h2>
|
|
<p><b>Please Note:</b> These parameters only take effect when you have Checked Server should act as a Gateway to the Internet the previous screen.</p>
|
|
<form role="form" id="confNetFilterForm">
|
|
<div class="form-group">
|
|
<label for="xsce_whitelist">Permitted URLs</label>
|
|
<textarea rows="20" name="xsce_whitelist" class="form-control" id="xsce_whitelist" placeholder="Enter a list of permitted URLs."></textarea>
|
|
</div>
|
|
</form>
|
|
</div> <!-- End Whitelist pane -->
|
|
</div> <!-- tab-content -->
|
|
</div> <!-- right column -->
|
|
</div> <!-- row -->
|
|
</div> <!-- tabbable -->
|
|
<!-- Configure -->
|