Browser and mms

Discussion about user contributed plugins

Moderator: Moderator

Thobug
Posts: 4
Joined: Sat Dec 25, 2010 11:26 am

Browser and mms

Postby Thobug » Sun Jul 24, 2011 9:49 am

Hi,
is there a chance to install and run a lightweight browser e.g. Dillo out of mms. I'd like to view some webpages on my TV screen. Those are html-pages gerated with Griffith, the video collection manager, to have a bit more detailed information of the films in my collection on the TV screen.
I read something about the possibility to execute scripts in the games folder and run by this e.g. Dillo?!

Thanks in advance!

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Browser and mms

Postby naicheben » Sun Jul 24, 2011 8:40 pm

Yes, like you say. Just write a shell script and put it in the path of your "games" (see /etc/mms/GameConfig ), mak eit executible for the user mms runs under. Here is an example, that starts vdr from within mms:

Code: Select all

 cat /home/zenega/mms/spiele/VDR/start_vdr.sh
#!/bin/bash

sudo /etc/init.d/vdr start &

echo "  *****   startet den vdr   ***** "


Some commands can only be executed by superuser, so you might have to add the command to /etc/sudoers
Here is mine for an example:

Code: Select all

#!/bin/bash

sudo /etc/init.d/vdr start &

echo "  *****   startet den vdr   ***** "
root@deb10ega02:/usr/src/mms-1.1.2~pre9-oldstyle/plugins/output/lcd# cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults        env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
zenega ALL=NOPASSWD: /usr/local/bin/zenegalircd.sh
zenega ALL=NOPASSWD: /usr/bin/killall
zenega ALL=NOPASSWD: /etc/init.d/vdr
zenega ALL=NOPASSWD: /etc/init.d/vdradmin-am
zenega ALL=NOPASSWD: /etc/init.d/networking
zenega ALL=NOPASSWD: /sbin/ifup
zenega ALL=NOPASSWD: /sbin/ifdown
zenega ALL=NOPASSWD: /etc/network/run/ifstate
zenega ALL=NOPASSWD: /bin/tar
zenega ALL=NOPASSWD: /usr/bin/osd_cat
MMS runs under the user zenega.
mit Hellseherschein ;.)


Return to “user plugins”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest