You are not logged in.
Pages: 1
Hello,
I want to give mpd and ncmpcpp a try so I've installed them and mpc.
I have configured my .mpd/mpd.conf to play music in ~/Music which contain some directories with flac.
I have set the default port and check in the ncmpcpp config file if it's the same and it is.
I run
mpd
and then
npmcpp
, then I update the database with
mpc update
but I still have no music in ncmpcpp.
What have I missed ?
Offline
Post your configuration files and we may have a chance at helping. Without them we'll all just be guessing.
Offline
Hello,
I want to give mpd and ncmpcpp a try so I've installed them and mpc.
I have configured my .mpd/mpd.conf to play music in ~/Music which contain some directories with flac.
I have set the default port and check in the ncmpcpp config file if it's the same and it is.
I runmpd
and then
npmcpp
, then I update the database with
mpc update
but I still have no music in ncmpcpp.
What have I missed ?
Does it work if you run
mpd ~/.mpd/mpd.conf
?
You should also post the configuration file.
Offline
It doesn't change wether I pass the path to config file by argument.
My mpd.conf :
music_directory "~/Music/"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
log_file "~/.mpd/mpd.log"
pid_file "~/.mpd/mpd.pid"
state_file "~/.mpd/mpdstate"
sticker_file "~/.mpd/sticker.sql"
user "kowa"
group "kowa"
bind_to_address "127.0.0.1"
port "6600"
audio_output {
type "alsa"
name "ALSA Device"
}
log_level "verbose"
auto_update "yes"
auto_update_depth "3"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
Offline
And your ncmpcpp configuration as well please...
Have you created the ~/.mpd directory you specified in your config?
Can you post the output of 'mpc stats'.
Last edited by Slithery (2015-11-23 21:10:47)
Offline
ncmpcpp config?
You can update the database in ncmpcpp with 'u', you could also try just using:
mpc add /path/to/file
mpc play
*edit* doh xpost
Last edited by Proinsias (2015-11-23 21:18:06)
Offline
Have you created the ~/.mpd directory you specified in your config?
And also the *.db, *.log, etc. files.
Offline
ncmpcpp config (just the lines decommented):
ncmpcpp_directory = ~/.ncmpcpp
mpd_host = localhost
mpd_port = 6600
mpd_connection_timeout = 5
mpd_music_dir = ~/Music
also I've tried
mpc add ~/Music
error adding /home/kowa/Music: Malformed URI
Same message when I specify a music file location.
Offline
Hey kowa,
Try the following:
$ mpc update
$ mpc ls
If this actually shows you anything which represents your music directory, then try this
$ mpc ls | mpc add
Those commands above assume that you've set an alias to mpc for example
$ alias mpc='mpc -h pass@locahost'
Last edited by smirky (2015-11-24 12:34:04)
Personal spot :: https://www.smirky.net/ :: Try not to get lost!
Offline
Too obvious to mention, maybe, but nonetheless...
If the album directories and music files in the Music directory lack the correct permissions, mpd will not see them. In which case run the following while in the Music directory:
#!/usr/bin/bash
# give std permissions to subdirs and files in current dir
echo "changing permissions in $(pwd)"
find "$(pwd)"/ -type d -exec chmod 755 {} \;
find "$(pwd)"/ -type f -exec chmod 644 {} \;
echo "permissions standardized"
Enough is more.
Offline
Brix, I have the rights set to 755 for directories and 644 for files like you said but thank you.
mpc ls
show me the directories who are album directories, but ncmpcpp still have no music after updating database.
I have tried to change the hostname in mpd.conf from localhost to my real hostname as I wasn't sure if localhost is a fake name or not but it doesn't recognize my true hostname so I guess I should leave localhost.
Offline
Offline
Yes flac is installed.
Offline
If mpc ls is showing your album directories you should be able to add one to the playlist and listen.
This:
mpc add ~/Music
error adding /home/kowa/Music: Malformed URI
is wrong. You should add a folder from within the ~/Music directory:
mpc add ArchLinux_Ballads
not:
mpc add ~/Music/Archlinux_Ballads
This will give the malformed uri message. It works with completion too which is nice.
Once you've added an album try mpc play.
If you can get mpd/mpc up and running, and if it's listing your albums it sounds like you're pretty much there, you can the leave it alone and focus on ncmpcpp. My ncmpcpp/config file works just fine as a one liner:
mpd_music_dir = /mnt/storage/music
edit: my mpd.conf:
music_directory "/mnt/storage/music"
playlist_directory "~/.config/mpd/playlists"
db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
pid_file "~/.config/mpd/pid"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
restore_paused "yes"
save_absolute_paths_in_playlists "yes"
auto_update "yes"
Last edited by Proinsias (2015-11-26 00:16:36)
Offline
Pages: 1