You are not logged in.

#1 2012-04-14 21:11:01

Tacna
Member
Registered: 2012-04-14
Posts: 25

Music Player Daemon music directory setup

Hello,

I'm following the Archlinux Wiki on the mpd and I'm stuck at the part where it says to do the following:

# mkdir /var/lib/mpd/music
# echo "/home/$USER/music /var/lib/mpd/music none bind" >> /etc/fstab
# mount -a
# rc.d restart mpd

When I type in the second line, it prints out:

bash: /etc/fstab: Permission denied

I also tried that same command but with a sudo in front but it printed out the same thing as before.

Thanks in advance.

Last edited by Tacna (2012-04-14 21:13:33)

Offline

#2 2012-04-14 21:16:28

alex_anthony
Member
From: UK
Registered: 2007-09-25
Posts: 344

Re: Music Player Daemon music directory setup

it needs to be actually run as root, as it only does the echo-ing under sudo, not the actual appending. Or you can use:

echo "/home/$USER/music /var/lib/mpd/music none bind" | sudo tee -a /etc/fstab

Offline

#3 2012-04-14 21:17:30

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Music Player Daemon music directory setup

There's lot on google about this. It's fairly easy to get set up.


meh

Offline

#4 2012-04-14 21:20:17

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Music Player Daemon music directory setup

chamber wrote:

There's lot on google about this. It's fairly easy to get set up.

Then update the Wiki with the new information you have.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2012-04-14 21:24:24

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

alex_anthony wrote:

it needs to be actually run as root, as it only does the echo-ing under sudo, not the actual appending. Or you can use:

echo "/home/$USER/music /var/lib/mpd/music none bind" | sudo tee -a /etc/fstab

Ok I typed that command you posted and it printed:

/home//Music /var/lib/mpd/music none bind

Then I proceeded with mount -a and it printed:

mount: special device /home//Music does not exist

I don't know why it is omitting my username.

Thanks for the help

edit

chamber wrote:

There's lot on google about this. It's fairly easy to get set up.

I've been searching and researching for the past 12 hours. Found different methods and different guides but so far no luck in getting this to work.

Last edited by Tacna (2012-04-14 21:25:57)

Offline

#6 2012-04-14 21:39:00

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Music Player Daemon music directory setup

Try adding in your username to the command.


meh

Offline

#7 2012-04-14 21:53:15

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

chamber wrote:

Try adding in your username to the command.

I used my username throughout the whole process. I never actually put in $USER.

Offline

#8 2012-04-14 22:27:25

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: Music Player Daemon music directory setup

Why don't you open /etc/fstab in an editor and type it out?

Offline

#9 2012-04-14 23:41:55

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

prasinoulhs wrote:

Why don't you open /etc/fstab in an editor and type it out?

Yea it worked. Thanks.

Now my final question is, what if I want to undo all of this in the future? In other words, undo the mount -a and the echo command I performed?

Last edited by Tacna (2012-04-14 23:42:37)

Offline

#10 2012-04-15 01:05:53

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: Music Player Daemon music directory setup

Tacna wrote:

undo the mount -a

man mount
man umount

Tacna wrote:

the echo command I performed?

http://mywiki.wooledge.org/BashGuide/In … edirection

Offline

#11 2012-04-15 01:26:05

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

w0ng wrote:
Tacna wrote:

undo the mount -a

man mount
man umount

Tacna wrote:

the echo command I performed?

http://mywiki.wooledge.org/BashGuide/In … edirection

Thanks for that.


I need some additional help.

ncmpcpp is not displaying my music. I press u but nothing changes.

mpd.conf

# 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		"/home/tacna/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		"/home/tacna/.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			"/home/tacna/.mpd/mpd.db"
# 
# 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			"/home/tacna/.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			"/home/tacna/.mpd/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			"/home/tacna/.mpd/mpdstate"
#
###############################################################################


# 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				"tacna"
#
# 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.
#
#log_level			"default"
#
# If you have a problem with your MP3s ending abruptly it is recommended that 
# you set this argument to "no" to attempt to fix the problem. If this solves
# the problem, it is highly recommended to fix the MP3 files with vbrfix
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
# point gapless MP3 playback can be enabled.
#
#gapless_mp3_playback			"yes"
#
# This setting enables MPD to create playlists in a format usable by other
# music players.
#
#save_absolute_paths_in_playlists	"no"
#
# This setting defines a list of tag types that will be extracted during the 
# audio file discovery process. Optionally, 'comment' can be added to this
# list.
#
#metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc"
#
###############################################################################


# Symbolic link behavior ######################################################
#
# If this setting is set to "yes", MPD will discover audio files by following 
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks	"yes"
#
# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links inside of the configured music_directory.
#
#follow_inside_symlinks		"yes"
#
###############################################################################


# Zeroconf / Avahi Service Discovery ##########################################
#
# If this setting is set to "yes", service information will be published with
# Zeroconf / Avahi.
#
#zeroconf_enabled		"yes"
#
# The argument to this setting will be the Zeroconf / Avahi unique name for
# this MPD server on the network.
#
#zeroconf_name			"Music Player"
#
###############################################################################


# Permissions #################################################################
#
# If this setting is set, MPD will require password authorization. The password
# can setting can be specified multiple times for different password profiles.
#
#password                        "password@read,add,control,admin"
#
# This setting specifies the permissions a user has who has not yet logged in. 
#
#default_permissions             "read,add,control,admin"
#
###############################################################################


# Input #######################################################################
#

input {
        plugin "curl"
#       proxy "proxy.isp.com:8080"
#       proxy_user "user"
#       proxy_password "password"
}

#
###############################################################################

# Audio Output ################################################################
#
# MPD supports various audio output types, as well as playing through multiple 
# audio outputs at the same time, through multiple audio_output settings 
# blocks. Setting this block is optional, though the server will only attempt
# autodetection for one sound card.
#
# See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of 
# other audio outputs.
#
# An example of an ALSA output:
#
audio_output {
	type		"pulse"
	name		"pulse audio"
	device		"hw:0,0"	# optional
	format		"44100:16:2"	# optional
	mixer_device	"default"	# optional
	mixer_control	"PCM"		# optional
	mixer_index	"0"		# optional
}
#
# An example of an OSS output:
#
#audio_output {
#	type		"oss"
#	name		"My OSS Device"
#	device		"/dev/dsp"	# optional
#	format		"44100:16:2"	# optional
#	mixer_device	"/dev/mixer"	# optional
#	mixer_control	"PCM"		# optional
#}
#
# An example of a shout output (for streaming to Icecast):
#
#audio_output {
#	type		"shout"
#	encoding	"ogg"			# optional
#	name		"My Shout Stream"
#	host		"localhost"
#	port		"8000"
#	mount		"/mpd.ogg"
#	password	"hackme"
#	quality		"5.0"
#	bitrate		"128"
#	format		"44100:16:1"
#	protocol	"icecast2"		# optional
#	user		"source"		# optional
#	description	"My Stream Description"	# optional
#	genre		"jazz"			# optional
#	public		"no"			# optional
#	timeout		"2"			# optional
#}
#
# An example of a httpd output (built-in HTTP streaming server):
#
#audio_output {
#	type		"httpd"
#	name		"My HTTP Stream"
#	encoder		"vorbis"		# optional, vorbis or lame
#	port		"8000"
#	quality		"5.0"			# do not define if bitrate is defined
#	bitrate		"128"			# do not define if quality is defined
#	format		"44100:16:1"
#}
#
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
#
#audio_output {
#	type		"pulse"
#	name		"My Pulse Output"
#	server		"remote_server"		# optional
#	sink		"remote_server_sink"	# optional
#}
#
## Example "pipe" output:
#
#audio_output {
#	type		"pipe"
#	name		"my pipe"
#	command		"aplay -f cd 2>/dev/null"
## Or if you're want to use AudioCompress
#	command		"AudioCompress -m | aplay -f cd 2>/dev/null"
## Or to send raw PCM stream through PCM:
#	command		"nc example.org 8765"
#	format		"44100:16:2"
#}
#
## An example of a null output (for no audio output):
#
#audio_output {
#	type		"null"
#	name		"My Null Output"
#}
#
# This setting will change all decoded audio to be converted to the specified
# format before being passed to the audio outputs. By default, this setting is
# disabled.
#
#audio_output_format		"44100:16:2"
#
# If MPD has been compiled with libsamplerate support, this setting specifies 
# the sample rate converter to use.  Possible values can be found in the 
# mpd.conf man page or the libsamplerate documentation. By default, this is
# setting is disabled.
#
#samplerate_converter		"Fastest Sinc Interpolator"
#
###############################################################################


# Volume control mixer ########################################################
#
# These are the global volume control settings. By default, this setting will
# be detected to the available audio output device, with preference going to 
# hardware mixing. Hardware and software mixers for individual audio_output
# sections cannot yet be mixed.
#
# An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
# setting is used other sound applications will be affected by the volume
# being controlled by MPD.
#
#mixer_type			"hardware"
#
# An example for controlling all mixers through software. This will control
# all controls, even if the mixer is not supported by the device and will not
# affect any other sound producing applications.
#
#mixer_type			"software"
#
# This example will not allow MPD to touch the mixer at all and will disable
# all volume controls.
#
#mixer_type			"disabled"
#
###############################################################################


# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "album" or "track". See <http://www.replaygain.org> for more
# details. This setting is disabled by default.
#
#replaygain			"album"
#
# This setting sets the pre-amp used for files that have ReplayGain tags. By
# default this setting is disabled.
#
#replaygain_preamp		"0"
#
# This setting enables on-the-fly normalization volume adjustment. This will
# result in the volume of all playing audio to be adjusted so the output has 
# equal "loudness". This setting is disabled by default.
#
#volume_normalization		"no"
#
###############################################################################


# MPD Internal Buffering ######################################################
#
# This setting adjusts the size of internal decoded audio buffering. Changing
# this may have undesired effects. Don't change this if you don't know what you
# are doing.
#
#audio_buffer_size		"2048"
#
# This setting controls the percentage of the buffer which is filled before 
# beginning to play. Increasing this reduces the chance of audio file skipping, 
# at the cost of increased time prior to audio playback.
#
#buffer_before_play		"10%"
#
###############################################################################


# Resource Limitations ########################################################
#
# These settings are various limitations to prevent MPD from using too many
# resources. Generally, these settings should be minimized to prevent security
# risks, depending on the operating resources.
#
#connection_timeout		"60"
#max_connections		"10"
#max_playlist_length		"16384"
#max_command_list_size		"2048"
#max_output_buffer_size		"8192"
#
###############################################################################


# Character Encoding ##########################################################
#
# If file or directory names do not display correctly for your locale then you 
# may need to modify this setting. After modification of this setting mpd 
# --create-db must be run to change the database.
#
filesystem_charset		"UTF-8"
#
# This setting controls the encoding that ID3v1 tags should be converted from.
#
id3v1_encoding			"UTF-8"
#
###############################################################################

ncmpcpp config

####################################################
## this is example configuration file, copy it to ##
## ~/.ncmpcpp/config and set up your preferences  ##
####################################################
#
##### connection settings #####
#
## set it in order to make tag editor and renaming files work properly
#
mpd_host = "localhost"
#
mpd_port = "6600"
#
mpd_music_dir = "/home/tacna/Music"
#
#mpd_connection_timeout = "5"
#
#mpd_crossfade_time = "5"
#
##### music visualizer #####
##
## Note: In order to make music visualizer work you'll
## need to use mpd fifo output, whose format parameter
## has to be set to 44100:16:1. Example configuration:
## (it has to be put into mpd.conf)
##
## audio_output {
##        type            "fifo"
##        name            "My FIFO"
##        path            "/tmp/mpd.fifo"
##        format          "44100:16:1"
## }
##
#
#visualizer_fifo_path = ""
#
##
## Note: To enable spectrum frequency visualization
## you need to compile ncmpcpp with fftw3 support.
##
#
#visualizer_type = "wave" (spectrum/wave)
#
##### system encoding #####
##
## ncmpcpp should detect your charset encoding
## but if it failed to do so, you can specify
## charset encoding you are using here.
##
## Note: You can see whether your ncmpcpp build
## supports charset detection by checking output
## of `ncmpcpp --version`.
##
## Note: Since MPD uses utf8 by default, setting
## this option makes sense only if your encoding
## is different.
##
#
#system_encoding = ""
#
##### delays #####
#
## delay after playlist highlighting will be disabled (0 = don't disable)
#
#playlist_disable_highlight_delay = "5"
#
## defines how long various messages are supposed to be visible
#
#message_delay_time = "4"
#
##### song format #####
##
## for song format you can use:
##
## %l - length
## %f - filename
## %D - directory
## %a - artist
## %t - title
## %b - album
## %y - year
## %n - track number (01/12 -> 01)
## %N - full track info (01/12 -> 01/12)
## %g - genre
## %c - composer
## %p - performer
## %d - disc
## %C - comment
## $R - begin right alignment
##
## you can also put them in { } and then it will be displayed
## only if all requested values are available and/or define alternate
## value with { }|{ } eg. {%a - %t}|{%f}
##
## Note: Format that is similar to "%a - %t" (i.e. without any additional
## braces) is equal to "{%a - %t}", so if one of the tags is missing,
## you'll get nothing.
##
## text can also have different color than the main window has,
## eg. if you want length to be green, write $3%l$9
##
## available values:
##
## - 0 - default window color (discards all other colors)
## - 1 - black
## - 2 - red
## - 3 - green
## - 4 - yellow
## - 5 - blue
## - 6 - magenta
## - 7 - cyan
## - 8 - white
## - 9 - end of current color
##
## Note: colors can be nested.
##
#
#song_list_format = "{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}"
#
#song_status_format = "{{%a{ \"%b\"{ (%y)}} - }{%t}}|{%f}"
#
#song_library_format = "{%n - }{%t}|{%f}"
#
#tag_editor_album_format = "{(%y) }%b"
#
##
## Note: Below variables are for alternative version of user's interface.
## Their syntax supports all tags and colors listed above plus some extra
## markers used for text attributes. They are followed by character '$'.
## After that you can put:
##
## - b - bold text
## - u - underline text
## - r - reverse colors
## - a - use alternative character set
##
## If you don't want to use an attribute anymore, just put it again, but
## this time insert character '/' between '$' and attribute character,
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename
## with reversed colors.
##
#
#alternative_header_first_line_format = "$b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b"
#
#alternative_header_second_line_format = "{{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}"
#
##
## Note: Below variables also supports
## text attributes listed above.
##
#
#now_playing_prefix = "$b"
#
#now_playing_suffix = "$/b"
#
#browser_playlist_prefix = "$2playlist$9 "
#
#selected_item_prefix = "$6"
#
#selected_item_suffix = "$9"
#
## colors are not supported for below variable
#
#song_window_title_format = "{%a - }{%t}|{%f}"
#
##### columns settings #####
##
## syntax of song columns list format is "column column etc."
##
## - syntax for each column is:
##
## (width of column)[column's color]{displayed tag}
##
## Note: Width is by default in %, if you want a column to
## have fixed size, add 'f' after the value, e.g. (10)[white]{a}
## will be the column that take 10% of screen (so the real column's
## width will depend on actual screen size), whereas (10f)[white]{a}
## will take 10 terminal cells, no matter how wide the screen is.
##
## - color is optional (if you want the default one, type [])
##
## Note: You can give a column additional attributes by putting appropriate
## character after displayed tag character. Available attributes are:
##
## - r - column will be right aligned
## - E - if tag is empty, empty tag marker won't be displayed
##
## E.g. {lr} will give you right aligned column of lengths.
##
#
#song_columns_list_format = "(7f)[green]{l} (25)[cyan]{a} (40)[]{t} (30)[red]{b}"
#
##### various settings #####
#
##
## Note: Custom command that will be executed each
## time song changes. Useful for notifications etc.
##
## Attention: It doesn't support song format anymore.
## Use `ncmpcpp --now-playing SONG_FORMAT` instead.
##
#execute_on_song_change = ""
#
#playlist_show_remaining_time = "no"
#
#playlist_display_mode = "classic" (classic/columns)
#
#browser_display_mode = "classic" (classic/columns)
#
#search_engine_display_mode = "classic" (classic/columns)
#
#incremental_seeking = "yes"
#
#seek_time = "1"
#
#autocenter_mode = "no"
#
#progressbar_look = "=>"
#
#default_place_to_search_in = "database" (database/playlist)
#
#user_interface = "classic" (classic/alternative)
#
#media_library_left_column = "a" (possible values: a,y,g,c,p, legend above)
#
#default_find_mode = "wrapped" (wrapped/normal)
#
#default_space_mode = "add" (add/select)
#
#default_tag_editor_left_col = "albums" (albums/dirs)
#
#default_tag_editor_pattern = "%n - %t"
#
#header_visibility = "yes"
#
#statusbar_visibility = "yes"
#
#header_text_scrolling = "yes"
#
#fancy_scrolling = "yes"
#
#cyclic_scrolling = "no"
#
#lines_scrolled = "2"
#
#follow_now_playing_lyrics = "no"
#
#ncmpc_like_songs_adding = "no" (enabled - add/remove, disabled - always add)
#
#show_hidden_files_in_local_browser = "no"
#
#display_screens_numbers_on_start = "yes"
#
#jump_to_now_playing_song_at_start = "yes"
#
#ask_before_clearing_main_playlist = "no"
#
#clock_display_seconds = "no"
#
#display_bitrate = "no"
#
#display_remaining_time = "no"
#
#regular_expressions = "basic" (basic/extended)
#
##
## Note: If below is enabled, ncmpcpp will ignore leading
## "The" word while sorting items in browser, tags in
## media library, etc.
##
#ignore_leading_the = "no"
#
#block_search_constraints_change_if_items_found = "yes"
#
#mouse_support = "yes"
#
#empty_tag_marker = "<empty>"
#
#enable_window_title = "yes"
#
##
## Note: These triggers will allow you to phisically remove
## files and directories from your hdd in using ncmpcpp's
## browser screen.
##
#
#allow_physical_files_deletion = "no"
#
#allow_physical_directories_deletion = "no"
#
##### lyrics support #####
##
## supported lyrics databases:
##
## - 1 - lyricsplugin.com
##
#
#lyrics_database = "1"
#
#external_editor = ""
#
#use_console_editor = "no" (set to yes, if your editor is console app)
#
##### colors definitions #####
#
#colors_enabled = "yes"
#
#empty_tag_color = "cyan"
#
#header_window_color = "default"
#
#volume_color = "default"
#
#state_line_color = "default"
#
#state_flags_color = "default"
#
#main_window_color = "yellow"
#
#color1 = "white"
#
#color2 = "green"
#
#main_window_highlight_color = "yellow"
#
#progressbar_color = "default"
#
#statusbar_color = "default"
#
#alternative_ui_separator_color = "black"
#
#active_column_color = "red"
#
#window_border_color = "green"
#
#active_window_border = "red"
#

Last edited by Tacna (2012-04-15 01:27:06)

Offline

#12 2012-04-15 18:53:31

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Music Player Daemon music directory setup

Is it definitely mounted?  Check with "mount".  If so are there any errors?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#13 2012-04-16 00:03:42

bslackr
Member
Registered: 2012-01-27
Posts: 131

Re: Music Player Daemon music directory setup

If you are the only user on your machine, you might want to just follow the directions for a  local setup. I've been using this for a while now without any issues.

Offline

#14 2012-04-16 05:42:57

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

bslackr wrote:

If you are the only user on your machine, you might want to just follow the directions for a  local setup. I've been using this for a while now without any issues.

Ok I've done all of that except for that last step with the script. Where do I need to place Rasi's script?

Offline

#15 2012-04-16 06:04:45

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Music Player Daemon music directory setup

Tacna wrote:
bslackr wrote:

If you are the only user on your machine, you might want to just follow the directions for a  local setup. I've been using this for a while now without any issues.

Ok I've done all of that except for that last step with the script. Where do I need to place Rasi's script?

The script automates the setup.  If you have already done it manually there is no need to run the script.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#16 2012-04-16 06:32:19

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

loafer wrote:
Tacna wrote:
bslackr wrote:

If you are the only user on your machine, you might want to just follow the directions for a  local setup. I've been using this for a while now without any issues.

Ok I've done all of that except for that last step with the script. Where do I need to place Rasi's script?

The script automates the setup.  If you have already done it manually there is no need to run the script.

Well then, even after following the local user guide, ncmpcpp doesn't show my music. It runs properly but no music in the Media Library.

Last edited by Tacna (2012-04-16 06:47:59)

Offline

#17 2012-04-16 07:10:43

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Music Player Daemon music directory setup

Have you updated the database yet?

mpc update

Last edited by skunktrader (2012-04-16 07:10:56)

Offline

#18 2012-04-16 21:25:29

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

skunktrader wrote:

Have you updated the database yet?

mpc update

Just prints out

volume: n/a   repeat: off   random: off   single: off   consume: off

and ncmpcpp's library still empty even after updating ncmpcpp as well.

Offline

#19 2012-04-16 22:05:36

bslackr
Member
Registered: 2012-01-27
Posts: 131

Re: Music Player Daemon music directory setup

Can you post the contents of the .mpdconf in your home directory as well as the output of "ls ~/.mpd"

Nevermind, I didn't see it before. the only thing that I have different in mine is that the user is commented out completely as well as the bind_to_address, so you could try doing that.

Last edited by bslackr (2012-04-16 22:14:14)

Offline

#20 2012-04-16 22:24:50

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Music Player Daemon music directory setup

Run

mpc ls | mpc add

meh

Offline

#21 2012-04-16 23:26:40

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

chamber wrote:

Run

mpc ls | mpc add

Ran it. What is suppose to happen?

Offline

#22 2012-04-17 07:07:15

chamber
Member
From: ~/
Registered: 2012-03-29
Posts: 279

Re: Music Player Daemon music directory setup

mpc ls Lists all files/folders, mpc add will add files to the playlist.  Running mpc ls | mpc add will add all files to the playlist. If you run mpc play and do not hear anything you have set something up wrong.

http://linux.die.net/man/1/mpc


meh

Offline

#23 2012-04-18 02:47:46

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

chamber wrote:

mpc ls Lists all files/folders, mpc add will add files to the playlist.  Running mpc ls | mpc add will add all files to the playlist. If you run mpc play and do not hear anything you have set something up wrong.

http://linux.die.net/man/1/mpc

Darn. Back to square one.

Well I removed mpd, mpc and ncmpcpp and started from scratch in order to eliminate anything I may have done wrong.

I followed the local user procedure on the Arch Linux wiki. Something curious is happening. When I type mpd I get:

 config: problems opening file /etc/mpd.conf for reading: Permission denied
Aborted

I find it odd that mpd is trying to access that file when the mpd.conf (that I configured) is sitting right there in my ~/ directory.

Offline

#24 2012-04-18 03:08:36

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Music Player Daemon music directory setup

I believe the local file is supposed to be called ~/.mpdconf

Offline

#25 2012-04-18 03:25:02

Tacna
Member
Registered: 2012-04-14
Posts: 25

Re: Music Player Daemon music directory setup

skunktrader wrote:

I believe the local file is supposed to be called ~/.mpdconf

Tried that too. Still doesn't work.

Just want to say, even if this doesn't work, thank you guys for all your help.

Last edited by Tacna (2012-04-18 03:32:09)

Offline

Board footer

Powered by FluxBB