Redigera mpd.conf filen
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Redigera mpd.conf filen
Hej
Har installerat MPD + klient (GMPC) men får inte in min samling. Har kollat runt på lite forum och sett att jag ska redigera mpd.conf men datorn tillåter inte detta.
Hur får jag behörighet att ändra och pilla som jag vill?
// John
Har installerat MPD + klient (GMPC) men får inte in min samling. Har kollat runt på lite forum och sett att jag ska redigera mpd.conf men datorn tillåter inte detta.
Hur får jag behörighet att ändra och pilla som jag vill?
// John
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)
- Konservburk
- Inlägg: 5919
- Blev medlem: 07 apr 2007, 22:28
Re: Redigera mpd.conf filen
Tryck Alt+F2, skriv in gksudo nautilus, fyll i ditt lösenord och fortsätt därifrån.
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Re: Redigera mpd.conf filen
Tack, nu kan jag redigera filen.
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)
Re: Redigera mpd.conf filen
Ett tips är att köra mpd som din vanliga användare och lägga alla inställningar i din home-mapp. Funkar bra och smidigt för mig och man slipper böka med rättigheter och en egen mpd-user osv. Jag kör mpd på en dator med mp3-mappen i /home, inga filer på server osv.
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Re: Redigera mpd.conf filen
Ok, yttterligare frågor:
Har ändrat music_directory i /etc/mpd.conf, trots detta vill inte MPD hitta några musikfiler ,vad är nästa steg?
Vill inte lägga mina filer i /home utan ha dem där de är (så de kan nås av frugan från Windows), dessutom skulle jag gärna vilja kunna streama musiken också.
// JOhn - trött datanewbie
Har ändrat music_directory i /etc/mpd.conf, trots detta vill inte MPD hitta några musikfiler ,vad är nästa steg?
Vill inte lägga mina filer i /home utan ha dem där de är (så de kan nås av frugan från Windows), dessutom skulle jag gärna vilja kunna streama musiken också.
// JOhn - trött datanewbie
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)
- Dagon^
- Inlägg: 1168
- Blev medlem: 27 okt 2007, 14:42
- OS: Arch Linux
- Utgåva: Vet inte/ingen utgåva passar
- Ort: Hell
Re: Redigera mpd.conf filen
Lösningen för att slippa flytta filer är att lägga symlinks i mappen du har specifierat.Oddball skrev:Ok, yttterligare frågor:
Har ändrat music_directory i /etc/mpd.conf, trots detta vill inte MPD hitta några musikfiler ,vad är nästa steg?
Vill inte lägga mina filer i /home utan ha dem där de är (så de kan nås av frugan från Windows), dessutom skulle jag gärna vilja kunna streama musiken också.
// JOhn - trött datanewbie
ln -s är kommandot för att länka
Exempel:
Kod: Markera allt
ln -s /media/mp3 /home/Oddball/music
JAG ÄR INTE FADDER LÄNGRE
Re: Redigera mpd.conf filen
Har du uppdaterat databasen? Installera mpc och körOddball skrev: Har ändrat music_directory i /etc/mpd.conf, trots detta vill inte MPD hitta några musikfiler ,vad är nästa steg?
Kod: Markera allt
mpc update
ǁ A: Because it obfuscates the reading.
ǁ Q: Why is top posting so bad?
ǁ Q: Why is top posting so bad?
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Re: Redigera mpd.conf filen
Har gjort som ni sa. Har uppdaterat mpc (har GMPC spelar det någon roll?) samt länkat musiken (kan man kontrollera så att länkningen fungerar på något sätt?)
Tyvärr så vill det ändå inte rassla till i låtlistan, det står att MPD har uppdaterat databasen men det kommer inga filer.
// John
Tyvärr så vill det ändå inte rassla till i låtlistan, det står att MPD har uppdaterat databasen men det kommer inga filer.
// John
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)
Re: Redigera mpd.conf filen
Oddball skrev:(kan man kontrollera så att länkningen fungerar på något sätt?)
Kod: Markera allt
file sökväg
ǁ A: Because it obfuscates the reading.
ǁ Q: Why is top posting so bad?
ǁ Q: Why is top posting so bad?
- Katt
- AVREGISTRERAD
- Inlägg: 625
- Blev medlem: 19 nov 2009, 11:04
- OS: Arch Linux
- Utgåva: 22.04 Jammy Jellyfish LTS
- Ort: Bohuslän
- Kontakt:
Re: Redigera mpd.conf filen
Oddball. om du startar mpd som din användare så är det alltid bekvämast att ha konfigurationsfilen i din hemkatalog, dvs ~/.mpdconf. Men detta är en smakfråga. Tänk bara på att det är denna filen (om den finns) som läses in om du startar som vanlig användare, annars så startas /etc/mpd.conf. Kontrollera även att alla kataloger som du anger i filen finns, bla music_directory, playlist_directory
För att kunna lösa ditt problem så hade det vart bra om du postade eller bifoga din ~/.mpdconf här i tråden. Ange också sökvägen till din musikkatalog och vilka rättigheter den har.
För att kunna lösa ditt problem så hade det vart bra om du postade eller bifoga din ~/.mpdconf här i tråden. Ange också sökvägen till din musikkatalog och vilka rättigheter den har.
Det är inte lätt när det är svårt!
Re: Redigera mpd.conf filen
Det kan också vara så att mpd-användaren inte har läsrättigheter i din musikkatalog.
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Re: Redigera mpd.conf filen
Det var inte tillåtet att bifoga conf-filer så jag klistrade in den istället.
Music_direcory skall stämma, ligger på windowspartitionen (frugan gillar inte linux än). hittar intget konstigt i övrigt.
När jag går in i egenskaper/rättigheter i mappen ...public/music så kan jag inte ändra rättigheterna för övriga utan den hoppar tillbaka till inget, kan det vara felet. Jag har delat ut mappen.
// John
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# 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 "/media/E4FA85B9FA85888E/Users/Public/Music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory "/var/lib/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file "/var/lib/mpd/tag_cache"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
log_file "/var/log/mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
pid_file "/var/run/mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
state_file "/var/lib/mpd/state"
#
###############################################################################
# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
user "mpd"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
bind_to_address "localhost"
#
# And for Unix Socket
#bind_to_address "/var/run/mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#
#port "6600"
#
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
Music_direcory skall stämma, ligger på windowspartitionen (frugan gillar inte linux än). hittar intget konstigt i övrigt.
När jag går in i egenskaper/rättigheter i mappen ...public/music så kan jag inte ändra rättigheterna för övriga utan den hoppar tillbaka till inget, kan det vara felet. Jag har delat ut mappen.
// John
# An example configuration file for MPD
# See the mpd.conf man page for a more detailed description of each parameter.
# 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 "/media/E4FA85B9FA85888E/Users/Public/Music"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
playlist_directory "/var/lib/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
db_file "/var/lib/mpd/tag_cache"
#
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
log_file "/var/log/mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
pid_file "/var/run/mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
state_file "/var/lib/mpd/state"
#
###############################################################################
# General music daemon options ################################################
#
# This setting specifies the user that MPD will run as. MPD should never run as
# root and you may use this setting to make MPD change its user ID after
# initialization. This setting is disabled by default and MPD is run as the
# current user.
#
user "mpd"
#
# This setting sets the address for the daemon to listen on. Careful attention
# should be paid if this is assigned to anything other then the default, any.
# This setting can deny access to control of the daemon.
#
# For network
bind_to_address "localhost"
#
# And for Unix Socket
#bind_to_address "/var/run/mpd/socket"
#
# This setting is the TCP port that is desired for the daemon to get assigned
# to.
#
#port "6600"
#
# This setting controls the type of information which is logged. Available
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
# argument is recommended for troubleshooting, though can quickly stretch
# available resources on limited hardware storage.
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)
Re: Redigera mpd.conf filen
Jag kan ha fel, men jag tror inte man kan ställa in rättigheter i filsystemet NTFS eller FAT.
Prova att ändra inställningarna så att user "mpd" är din vanliga användare, och du kan också ändra alla andra inställningsfiler (alltså lägga log_file osv i exempelvis ~.config/mpd/).
Prova att ändra inställningarna så att user "mpd" är din vanliga användare, och du kan också ändra alla andra inställningsfiler (alltså lägga log_file osv i exempelvis ~.config/mpd/).
- Oddball
- Inlägg: 20
- Blev medlem: 10 feb 2010, 21:24
- OS: Ubuntu
- Utgåva: 20.04 Focal Fossa LTS
- Ort: Örebro
Re: Redigera mpd.conf filen
bytt användare, hjälpte inte
Valde Ubuntu av tre anledningar: Snålhet, nyfikenhet samt att Windows buggade (ja, i den ordningen)