engheneiro
Anmeldungsdatum: 13. August 2009
Beiträge: 2080
Wohnort: Nähe München
|
oder meinst du die Lieder die ich in meinem Homeverzeichnis habe? wie sollte ich denn die rechte ändern?
zum Testen, ja. einfach mal in der Shell eingeben: $ cd
$ chmod 644 *.mp3 und dann das Home-Verzeichnis mal als music_directory in der mpd.conf einstellen
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
Hi ich habe 3 festplatten keine externen 500 GB da ist lubuntu und win 7 drauf ausserdem in einer anderen partition meine music wenn ich da drauf klicke ist sie eingebunden
aber wenn ich dann sonata anklicke gehts immer nocht nicht leider. und 2 x 1 TB so habe das gemacht
chmod 644 *.mp3 haft@lubuntu:~/Musik/1981$ ls -la
insgesamt 62172
drwxr-xr-x 2 shaft shaft 4096 2011-07-31 10:23 .
drwxr-xr-x 3 shaft shaft 4096 2011-07-31 10:36 ..
-rw-r--r-- 1 shaft shaft 4546560 2007-03-12 04:12 001 - Kim Carnes - Bette Davis Eyes.mp3
-rw-r--r-- 1 shaft shaft 3833856 2007-03-09 12:24 005 - Rick Springfield - Jessie's Girl.mp3
-rw-r--r-- 1 shaft shaft 4415488 2007-03-12 04:38 006 - Kool & the Gang - Celebration.mp3
-rw-r--r-- 1 shaft shaft 4001792 2007-03-09 10:58 010 - Reo Speedwagon - Keep On Loving You.mp3
-rw-r--r-- 1 shaft shaft 3983360 2007-03-09 13:27 012 - Sheena Easton - Morning Train (nine To Five).mp3
-rw-r--r-- 1 shaft shaft 4555776 2007-03-09 11:33 017 - Blondie - Tide Is High, the.mp3
-rw-r--r-- 1 shaft shaft 4202496 2007-03-09 11:54 018 - Grover Washington-bill Withers - Just the Two of Us.mp3
-rw-r--r-- 1 shaft shaft 5861376 2011-03-06 17:10 023 - Abba - Winner Takes It All, the.mp3
-rw-r--r-- 1 shaft shaft 4595712 2007-03-09 09:54 035 - Barbara Streisand - Woman In Love.mp3
-rw-r--r-- 1 shaft shaft 4318208 2007-03-09 11:38 037 - Foreigner - Urgent.mp3
-rw-r--r-- 1 shaft shaft 4288512 2007-03-09 07:39 065 - Queen - Another One Bites the Dust.mp3
-rw-r--r-- 1 shaft shaft 4869120 2007-03-09 07:18 071 - Police - Don't Stand So Close To Me.mp3
-rw-r--r-- 1 shaft shaft 3670016 2007-03-09 12:18 092 - Sheena Easton - For Your Eyes Only.mp3
-rw-r--r-- 1 shaft shaft 6504448 2007-03-09 12:37 098 - Diana Ross - I'm Coming Out.mp3 This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "/home/shaft/Musik/1981"
|
Lasall
Ehemalige
Anmeldungsdatum: 30. März 2010
Beiträge: 7723
|
Hi, binde deine Musikpartition mal in der fstab nach Windows-Partitionen einbinden ein. Gruss
Lasall
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0ae8039c
Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 endet nicht an einer Zylindergrenze.
/dev/sda2 13 5227 41881600 7 HPFS/NTFS
/dev/sda3 5228 60801 446397441 5 Erweiterte
/dev/sda5 10583 34421 191486736 7 HPFS/NTFS
/dev/sda6 34422 51019 133323403+ 7 HPFS/NTFS
/dev/sda7 51020 57162 49336320 7 HPFS/NTFS
/dev/sda8 57162 60801 29235200 7 HPFS/NTFS
/dev/sda9 5228 7659 19529728 83 Linux
/dev/sda10 7659 7780 975872 82 Linux Swap / Solaris
/dev/sda11 7781 10582 22505472 83 Linux sda5 ist meine music partition nur was muss ich da genau in der fstab reinschreiben? # /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda9 during installation
UUID=e82c4f17-fa70-442a-9f07-5a0f95d55843 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda11 during installation
UUID=1cb9690d-5fb1-44e9-ba88-86e04ba924f0 /home ext4 defaults 0 2
# swap was on /dev/sda10 during installation
UUID=8a7e5f02-73bc-44a7-a114-97cfa446176c none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
|
engheneiro
Anmeldungsdatum: 13. August 2009
Beiträge: 2080
Wohnort: Nähe München
|
Hi kerasi, der Test oben hat nicht funktioniert? Gibts keine Fehlermeldung beim Starten des mpd oder was passiert? Gruss
Rainer
|
Lasall
Ehemalige
Anmeldungsdatum: 30. März 2010
Beiträge: 7723
|
Hi, kerasi schrieb: sda5 ist meine music partition nur was muss ich da genau in der fstab reinschreiben?
wo genau ist die Anleitung in den Wikiartikeln unverstaendlich? Ansonsten probiere mal wie engheneiro vorschlaegt, das ueber Musiktitel in deinem Homeverzeichnis zu machen. Gruss
Lasall
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
ich habe die lieder in /home/shaft/Musik/1981 aber es geht nicht ich verstehe nicht wieso ich habe doch in der mpd.conf # Files and directories #######################################################
#
# This setting controls the top directory which MPD will search to discover the
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "/home/shaft/Musik" ich verstehe das echt nicht ☹ dass bekomme ich wenn ich sudo blkid eingebe /dev/sda5: LABEL="music" UUID="464C96747AFB6EB9" TYPE="ntfs" das ist meine musik partition aber was muss ich denn genau in die fstab eingeben
ich checke das nicht genau was im wiki drinsteht muss ich das genau so reinkopieren?
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
shaft@lubuntu:~$ mpd
Failed to open /etc/mpd.conf: Permission denied
shaft@lubuntu:~$ sudo mpd
[sudo] password for shaft:
Failed to bind to '127.0.0.1:6600': Address already in use
shaft@lubuntu:~$
|
Lasall
Ehemalige
Anmeldungsdatum: 30. März 2010
Beiträge: 7723
|
Hi.
Kleiner Exkurs: Der Eintrag in der fstab lautet fuer dich:
| UUID=464C96747AFB6EB9 /media/music ntfs rw,auto,users,nls=utf8,umask=007,gid=46 0 0
|
Den Einhaengepunkt /media/music (welchen du natuerlich anpassen kannst), erstellen:
sudo mkdir -p /media/music
Das "-p" erstellt dabei alle notwendigen Elternverzeichnisse, sofern diese nicht schon existieren (und ist hier nicht von Noeten). Du laedst nun die /etc/fstab nach:
sudo mount -a
Kommt es dabei zu keinen Fehlermeldungen ist alles korrekt.
Schaue dir die Datenbank direkt an, sodass ein Fehler bei Sonata ausgeschlossen werden kann:
cat /var/lib/mpd/tag_cache Gruss
Lasall
|
engheneiro
Anmeldungsdatum: 13. August 2009
Beiträge: 2080
Wohnort: Nähe München
|
und warum versuchst du den mpd als user zu starten? Du kennst doch den start/stop-Befehl für mpd: sudo service mpd restart und wenn du das so machst, kommt dann auch eine Fehlermeldung?
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
shaft@lubuntu:~$ sudo nano /etc/fstab
[sudo] password for shaft:
shaft@lubuntu:~$ sudo mkdir -p /media/music
shaft@lubuntu:~$ sudo mount -a
shaft@lubuntu:~$ cat /var/lib/mpd/tag_cache
info_begin
format: 1
mpd_version: 0.16.1
fs_charset: UTF-8
tag: Artist
tag: ArtistSort
tag: Album
tag: AlbumArtist
tag: AlbumArtistSort
tag: Title
tag: Track
tag: Name
tag: Genre
tag: Date
tag: Composer
tag: Performer
tag: Disc
tag: MUSICBRAINZ_ARTISTID
tag: MUSICBRAINZ_ALBUMID
tag: MUSICBRAINZ_ALBUMARTISTID
tag: MUSICBRAINZ_TRACKID
info_end
shaft@lubuntu:~$ es kamen keine Fehler und wenn ich das als user shaft mache sudo service mpd restart
shaft@lubuntu:~$ sudo service mpd restart
* Stopping Music Player Daemon mpd [ OK ]
* Starting Music Player Daemon mpd [ OK ] das komtm wenn ich shaft@lubuntu:~$ mount
/dev/sda9 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sda11 on /home type ext4 (rw,commit=0)
/dev/sda5 on /media/music type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096,default_permissions)
gvfs-fuse-daemon on /home/shaft/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=shaft) aber wenn ich sonata starte passiert immer noch nichts echt komisch und danke für die Hilfe und geduld
- Bilder
|
cornix
Anmeldungsdatum: 9. März 2007
Beiträge: 4763
Wohnort: Ringenberg
|
sudo service mpd stop
sudo service mpd start-create-db
Ausgabe hiervon und von
grep -v "^#\|^$" /etc/mpd.conf bitte posten, falls die ersten beiden Befehle keinen Erfolg bringen. btw: Letzter Befehl gibt die mpd.conf ohne Kommentare und Leerzeilen aus, die Kommentare kennen wir ja alle. 😉 Zum Filtern wurde dabei grep verwendet, geht natürlich auch mit sed: sed '/^#\|^$/d' /etc/mpd.conf Gruß, cornix
|
kerasi
(Themenstarter)
Anmeldungsdatum: 7. Juli 2008
Beiträge: 277
|
shaft@lubuntu:~$ sudo service mpd stop
[sudo] password for shaft:
* Stopping Music Player Daemon mpd [ OK ]
shaft@lubuntu:~$ sudo service mpd start-create-db
* Starting Music Player Daemon mpd
* creating /var/lib/mpd/tag_cache...
[ OK ]
shaft@lubuntu:~$ grep -v "^#\|^$" /etc/mpd.conf
grep: /etc/mpd.conf: Keine Berechtigung
shaft@lubuntu:~$ sudo grep -v "^#\|^$" /etc/mpd.conf
music_directory "/media/music/"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/tag_cache"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
user "mpd"
bind_to_address "localhost"
input {
plugin "curl"
}
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional
format "44100:16:2" # optional
mixer_device "default" # optional
mixer_control "PCM" # optional
mixer_index "0" # optional
}
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8""
|
Lasall
Ehemalige
Anmeldungsdatum: 30. März 2010
Beiträge: 7723
|
Hi kerasi, verschiebe mal deinen mpd -Ordner im Homeverzeichnis:
mv ~/.mpd{,.old}
Danach nochmal (Dienst) neustarten und die Datenbank neu erstellen lassen. Vielleicht auch die Datenbank mal loeschen. Gruss
Lasall
|
cornix
Anmeldungsdatum: 9. März 2007
Beiträge: 4763
Wohnort: Ringenberg
|
kerasi schrieb: shaft@lubuntu:~$ sudo service mpd start-create-db
* Starting Music Player Daemon mpd
* creating /var/lib/mpd/tag_cache...
[ OK ]
Der Schritt sollte entsprechend der Größe deiner Musiksammlung länger gedauert haben, ansonsten konnte mpd nicht lesend auf dein Musikverzeichnis zugreifen. Sieht aber an sich gut aus ([OK]), hast du nochmal überprüft, ob du in Sonata verbinden kannst und nun auf die Datenbank zugreifen kannst? Im Reiter "Bibliothek" Rechtsklick, dann "Aktualisieren → Gesamte Bibliothek". edit: wem gehört denn deine mpd.conf und wie ist die Rechtemaske:
ls -l /etc/mpd.conf Gruß, cornix
|