View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Apr 03, 2006 12:37 pm 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
IMHO, MythTV is the "killer app", and knoppmyth is the best way to go. However, I've noticed that many of the solutions to problems have been "run this script", where the script is unknown to people like me.

So...I'm going to try to write a webmin module for mythtv, and most of it will be specific to knoppmyth. The reason why I don't want to put this into mythweb is this is for the system administrater, while mythweb is for the system user (not always the same). Has this been done before?

At first it will be buttons and help screens to keep cesman & co. from answering the same question over and over. It may have more...I don't know yet. Maybe later it will have other things like MythTV status, like MythWeb.

Comments?


Last edited by LinuxSneaker on Fri Apr 07, 2006 2:37 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject: Re: MythTV Webmin Module
PostPosted: Mon Apr 03, 2006 2:07 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
LinuxSneaker wrote:
So...I'm going to try to write a webmin module for mythtv, and most of it will be specific to knoppmyth. The reason why I don't want to put this into mythweb is this is for the system administrater, while mythweb is for the system user (not always the same). Has this been done before?
...
Comments?


No one has done so as far as I know. I think that would be a great contribution.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 8:08 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
That sounds really fabulous. Of course it presumes that we can get newbies to set up webmin. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 1:06 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I have a script that sets up webmin, although I have not used it for a while as I haven't needed to use webmin. If the interface could be added to MythWeb I think this would be a better solution.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 4:27 am 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
Well, it sounds like people are interested. I've set up the basic webmin module structure, made a horrible "myth TV" icon, and started working on the help files and starting and stopping mythbackend. I've not written cgi programs before, but I do have some PERL experience. Will put it out there, and if you like it great. If not, I sure can use it. My wife hates it when I kick her off the TV to do "admin" stuff... :lol:
I'll then add the buttons to run the knoppmyth script, then (if possible) the ability to change some of the mythtv settings that are stored in the mysql table.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 7:51 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
It does sound like a good plan. Webmin is good, maybe mythweb would be more accessible to new folks.

In case you can use this script, I've made this for re-starting the front-end when it locks up or gets goofy. Needs to be run as root/sudo.

#!/bin/sh
#rfe - reboot front end
#Purpose: restart the front-end when it's crashed.
#by Chris Thornton
#11/27/2005

/etc/init.d/gdm stop
#echo Sleeping 4 secs...
sleep 4
/etc/init.d/gdm start
#echo Done!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 2:36 pm 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
Thanks. Haven't put it in yet, but I have developed the "framework". Here is the module:http://swaret.sourceforge.net/files/mythtv.wbm.gz

Right now all it does it detect the version of mythtv, and also shows different buttons depending on if mythbackend is running.

Also, it has a draft help screen, and the beginnings of things to configure. However, it doesn't do anything when you hit buttons except tell you it doesn't do anything.

Reasons why I'm putting this out:
1) I need what buttons people think should be on the page
2) I'm hoping someone will create nice "MythTV" icons for the buttons. I suck at graphics.
3) So far it doesn't error out, but I'm running a KnoppMyth box. Eventually, I want it to work on any MythTV box.
4) I'm not a great PERL programmer. What I've done can most likely be done better. Let me know.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 3:28 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
Hmm.
I may be doing something wrong.
I went into webmin, and "install module".
I used the option to upload the mythtv.wbm file (which viewed ok on my XP pc, using TextPad, which understands Unix format just fine).

Result:
Code:
Install Module    
The following modules have been successfully installed and added to your access control list :

<-  Return to webmin configuration


I then re-started webmin, and it doesn't show up anywhere, nor does it show up on the modules that can be deleted.
Is this how to do it?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 3:47 pm 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
Hmmm...let me remove and install....it should be under Servers....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 4:36 pm 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
It works for me....I wonder what is wrong. There are two ways to create a .wbm file...one is to use the recent "Export Module" in the newer webmin, or you just do a "tar c mythtv > mythtv.wbm", where mythtv is the directory containing the mythtv webmin files....anyone else having this problem, or someone figure out what I did wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 7:05 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Doesn't install for me either, here is what is listed in Webmin Action Log.

Quote:
Details of logged action 1144458098.5470.0
Description Installed module
Webmin module Webmin Configuration Generated by script webmin/install_mod.cgi
Webmin user root Client IP or hostname 192.168.0.188
Session ID e9e6b6a5a5037fd1bd23b0e5940dce23 Date and time 07/Apr/2006 21:01:38

No config file changes were logged for this action


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 08, 2006 4:20 pm 
Doesn't appear here either.


Top
  
 
 Post subject:
PostPosted: Mon Apr 10, 2006 1:21 pm 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
Ok, well the problem may be that the default webmin install for knoppmyth is set to be APLINUX 3.1 instead of Debian. I'll look into it and release the fixed module.

Right now I have the module detect if you are running a KnoppMyth box, and if so will give you additional options. What "commands" should you be able to run (such as install_mythburn.sh) under the knoppmyth section?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 8:54 am 
Offline
Joined: Mon Feb 13, 2006 10:44 am
Posts: 16
Ok, fixed the problem (I think). It seemed that the config file permissions were wrong, so Webmin just stopped the install.

The newest version is 0.0.2, and the install URL will always be http://swaret.sourceforge.net/files/mythtv.wbm.gz

Things added:
Starting & stopping mythbackend works
Detects a KnoppMyth install
Buttons for installing MythBurn, MythStream, and MythStreamTV are under the KnoppMyth menu

To Do:
Better icons
More detailed help files
More knoppmyth scripts
Configuration of remote
Pull mythtv data from mysql database
Add config files for other mythtv distros

This should be my last post under this subject. Any feedback to me please post at http://swaret.sourceforge.net/index.php?name=PNphpBB2&file=index&c=5&sid=f3321bc1cad2242de44cb3eae0b0dc34.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 2:22 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
Still doesn't work. Sorry


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu