Hi Leute!
Ich habe gestern mplayer installiert und das hat eigentlich alles wunderbar funktioniert. Da ich damit Videos von meinem WinXP-Rechner abspielen will, habe ich auch versucht einen freigegebenen Ordner zu mounten. Nach einigem Probieren hat das auch geklappt. Um das halbwegs zu automatisieren habe ich die Datei fstab folgendermaßen abgeändert:
/dev/hda2 / reiserfs defaults 1 1
/dev/hdb1 /video reiserfs defaults 0 0
/dev/hda1 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
//192.168.0.1/Videos /videoMatthias smbfs guest 0 0
BTW, kann mir jemand sagen, wozu die letzten beiden Zahlen stehen? Automount oder so?
Die runvdr-Datei sieht so aus:
#!/bin/sh
# runvdr: Loads the DVB driver and runs VDR
#
# If VDR exits abnormally, the driver will be reloaded
# and VDR restarted.
#
# Set the environment variable VDRUSR to the user id you
# want VDR to run with. If VDRUSR is not set, VDR will run
# as 'root', which is not necessarily advisable.
#
# Since this script loads the DVB driver, it must be started
# as user 'root'.
#
# Any command line parameters will be passed on to the
# actual 'vdr' program.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: runvdr 1.9 2002/03/16 16:22:12 kls Exp $
DVBDIR="/usr/local/src/DVB/driver"
VDRDIR="/usr/local/src/VDR"
VDRPRG="vdr"
VDRCMD="$VDRDIR/$VDRPRG -t /dev/tty8 -v /video -s /usr/local/bin/vdrshutdown -w 60 $* \
-P 'mp3 -m /video/plugins/mount.sh' \
-P 'mplayer -m /video/plugins/mount.sh -M /video/plugins/mplayer.sh' \
-P vcd \
-P 'image -m /video/plugins/mount.sh -C /video/plugins/convert.sh' \
-P stream \
-P games"
LSMOD="`/sbin/lsmod | grep -w '^dvb' | wc -l`"
KILL="/usr/bin/killall -q -TERM"
# Den VDR-Admin starten
/usr/local/src/vdradmin/vdradmind.pl
# Load driver if it hasn't been loaded already:
if [ $LSMOD -eq 0 ] ; then
(cd $DVBDIR; make insmod)
fi
while (true) do
cd $VDRDIR
su -c "$VDRCMD" $VDRUSR
if test $? -eq 0; then exit; fi
date
echo "restarting VDR"
$KILL $VDRPRG
sleep 10
(cd $DVBDIR; make rmmod; make insmod)
date
done
Alles anzeigen
Noch ne blöde Frage, wozu bruacht man eigentlich das "$*" im vdr-Aufruf?
Bei der Datei mount.sh habe ich das "eject" bei der action mount wegkommentiert:
#!/bin/bash
#
# This script is called from VDR to mount/unmount/eject
# the sources for MP3 play.
#
# argument 1: wanted action, one of mount,unmount,eject,status
# argument 2: mountpoint to act on
#
# mount,unmount,eject must return 0 if succeeded, 1 if failed
# status must return 0 if device is mounted, 1 if not
#
action="$1"
path="$2"
case "$action" in
mount)
# eject -t "$path" || exit 1 # close the tray
mount "$path" || exit 1 # mount it
;;
unmount)
umount "$path" || exit 1 # unmount it
;;
eject)
eject "$path" || exit 1 # eject disk
;;
status)
cat /proc/mounts | grep -q "$path" # check if mounted
if [ $? -ne 0 ]; then # not mounted ...
exit 1
fi
esac
exit 0
Alles anzeigen
Und die Datei mplayersources.conf sieht so aus:
Soweit so gut. Wenn ich nun den Rechner neu starte wird die Datei runvdr im Runtimelevel 3 ausgeführt und läuft im Hintergrund. Versuche ich dann im mplayer-Menü von vdr den Netzwerkordner zu mounten bekomme ich einen Fehler "mounten fehlgeschlagen". Auf tty8 steht folgendes:
[mntent]: warning: no final newline on the end of /etc/fstab
params.c:Parameter() - Ignoring badly formed line in configuration file: .# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
1095: session request to 192.168.0.1 failed (Called name not present)
1095: session request to 192 failed (Called name not present)
1095: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
Starte ich die datei runvdr manuel (also wenn ich mit root eingeloggt bin) und versuche das Mounten über vdr dann funktioniert alles, obwohl ich noch immer folgende Meldung erhalte:
[mntent]: warning: no final newline on the end of /etc/fstab
params.c:Parameter() - Ignoring badly formed line in configuration file: .# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
1095: session request to 192.168.0.1 failed (Called name not present)
1095: session request to 192 failed (Called name not present)
Kann mir bitte jemand mit diesem Problem weiterhelfen?
Übrigens wird bei mir vdr als root ausgeführt und ich habe Suse 8.2.
Gruß,
Brougs78
P.S.: Tut mir leid, dass der Post so umfangreich ist, aber ich wollte möglichst viele Infos reinpacken.