Need help on Webmin installer plugin

Max2Play Home Forums Max2Play Add-ons Need help on Webmin installer plugin

Viewing 4 posts - 1 through 4 (of 4 total)
  • 4. April 2017 at 12:51 #27989


    just doing the first steps with the pluginbuilder, I am stucking at the point when executing the installer.
    There is just a spinning wheel without any progress.

    The scriptes can be executed via bash shell without any problems, but not from webinterface.

    Here is my configuration:

    Path to file: /var/www/max2play/application/plugins/Webmin/scripts/

    echo "Custom Bash-Script"
    sudo apt-get -y remove webmin
    exit 0

    Path to file: /var/www/max2play/application/plugins/Webmin/scripts/

    # Path to current Directory
    CURRENTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
    echo "Install-Script"
    echo "adding repos to sources.list"
    sudo su -c "echo 'deb sarge contrib' >> /etc/apt/sources.list"
    sudo su -c "echo 'deb sarge contrib' >> /etc/apt/sources.list"
    echo "adding key to apt"
    sudo apt-key add jcameron-key.asc
    echo "Update sources"
    sudo apt-get update
    echo "install of webmin can take a while, no panic!!"
    sudo apt-get -y install webmin
    sudo echo "finished"
    exit 0

    Path to file: /var/www/max2play/application/plugins/Webmin/view/setup.php

    	 Example Setup View File
    	 @Copyright 2014 Stefan Rick
    	 @author Stefan Rick
    	 Mail: [email protected]
    	 This program is free software; you can redistribute it and/or modify
    	 it under the terms of the GNU General Public License as published by
    	 the Free Software Foundation; either version 2 of the License, or
    	 (at your option) any later version.
    	 This program is distributed in the hope that it will be useful,
    	 but WITHOUT ANY WARRANTY; without even the implied warranty of
    	 GNU General Public License for more details.
    	 You should have received a copy of the GNU General Public License along
    	 with this program; if not, write to the Free Software Foundation, Inc.,
    	 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
     *   Put HTML and Javascript Content here
    <h1 class="entry-header">
    	<?php echo _t("Webmin Setup") ?>
    		<?php /*
    			Tab navigation	
    		<p class="ui-state-default ui-corner-all" style="padding:4px;margin-bottom:1em;">
    			<span class="ui-icon ui-icon-wrench" style="float:left; margin:-2px 5px 0 0;"></span>
    			<b><?php echo _t('This is an example of a tab navigation within the page:') ?></b></p>				
    		<div id="tabs-min">
    		    <li><a href="#tabs-1"><?php echo _t('Webmin Install') ?></a></li>
    		    <li><a href="#tabs-2"><?php echo _t('Webmin Remove') ?></a></li>	    
    		  <div id="tabs-1">
    		    	<input type="button" value="<?php echo _t("Install Webmin (MTK)") ?>" name="install1" onclick="document.getElementById('action').value='install';submit();" /><br />	    	 
    		  <div id="tabs-2">
    		      <?php echo _('Service Webmin Start');?>: 			  
    			  <input type="button" value="<?php echo _t("Remove Webmin") ?>" name="install2" onclick="document.getElementById('action').value='runMyScript';submit();" /><br />		     
    		  $(function() {
    		    $( "#tabs-min" ).tabs();
    		<br /> 
    	  $(function() {
    	    $( "#accordion" ).accordion({
    	      heightStyle: "content",	      
    	      collapsible: true 
    	<br /><br />
    	<a href="#javascript" onclick="document.getElementById('debug').style.display='';return false;"><?php echo _("DEBUG Informations") ?></a>
    	<textarea id="debug" rows="30" cols="70" style="display:none;"><?php foreach ($Webmin->view->debug as $key => $debug) {
    			echo "#### ". $key. " ####\n"; 
    			 echo $debug." \n\n"; 

    I use max2play Version 2.41 on a Raspberry PI 3 (fresh installation)

    kind regards

    • This topic was modified 7 years ago by mtk. Reason: reformat of text
    11. April 2017 at 12:38 #28096

    Hi Michael

    We will check your code and get back to you, once we have an answer.

    Best Regards,
    Mohammad Mbydeen

    21. Juni 2018 at 3:04 #36283


    I realise this is an old post, but I am having a similar problem using Hifiberry pi3B and Dac Pro. My Ipad has been in this state for more than 6 hours. When I try to restart, I get a blank screen and unable to access server, followed by the M2P page with spinning wheel.

    Has this issue been resolved?

    21. Juni 2018 at 13:39 #36293

    Hi hd,

    Are you trying to create a new plugin with the plugin builder?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Register here