ich habe mir mit kdialog versucht ein einfaches script zu schreiben, das mir hilft einen Samba-Share zu mounten.
Code: Alles auswählen
#!/bin/bash
user=$1
share=$2
mpoint=$3
export DISPLAY=:0
if [ -z $mpoint ]; then
kdialog --error "Parameter: [Benutzername] [Freigabe] [Mountpoint]"
else
pass=`kdialog --title SMB-Share mounten --password "Passwort für $user@$share:"`
if [ $? = 0 ]; then
echo Mounting ....
result=`mount -t smbfs -o username=$user,password=$pass $share $mpoint`
if [ $? != 0 ]; then
kdialog --error "$result"
fi
echo finished
fi
fi
Code: Alles auswählen
sh /root/mountmp3s.sh external //theather/mp3s /mnt
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
Mutex destroy failure: Das Gerät oder die Ressource ist belegt
ICE default IO error handler doing an exit(), pid = 6409, errno = 0
Mounting ....
Danke
TO