View previous topic :: View next topic |
Author |
Message |
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Tue Jul 18, 2006 10:48 pm Post subject: Good ol' mpd [solved] |
|
|
I'm using a nifty fvwm setup with a music player in the dock, which uses mpd, mpc and ncmpc to play the music. I emerged the three and get this when running mpd
Code: | 20x6 willy # /etc/init.d/mpd start
* Re-caching dependency info (mtimes differ)...
* Starting Music Player Daemon ...
problem opening file "/var/log/mpd.error.log" for writing [ !! ] |
I tried chmod'ing the file, and moving them in the config to ~/.mpd/mpd.error.log, but neither seemed to help. Since mpc and ncmpc require mpd to be started, I'm stuck using xmms for now.
Thanks for any help. _________________ ...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught.
Last edited by chINeSe mIDgEts on Thu Jul 20, 2006 5:20 pm; edited 1 time in total |
|
Back to top |
|
|
phsdv Guru
Joined: 13 Mar 2005 Posts: 372 Location: Europe
|
Posted: Wed Jul 19, 2006 5:36 am Post subject: |
|
|
permissions for my file:
Code: | -rw-r----- 1 mpd audio 5706 Jul 15 21:30 /var/log/mpd.error.log |
the conf file in /etc/mpd.conf
Code: | port "6600"
music_directory "/home/music"
playlist_directory "/home/music/.mpd/playlists"
log_file "/var/log/mpd.log"
error_file "/var/log/mpd.error.log"
state_file "/home/music/.mpd/mpdstate"
user "mpd" |
It might help if you do Code: | touch /var/log/mpd.error.log | to make sure the error file exixts before starting mpd (and assign it to the correct user:group) |
|
Back to top |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Wed Jul 19, 2006 9:21 pm Post subject: |
|
|
Ok, so I decided to try and start mpd again, without touching anything, and I get the same error for /var/log/mpd.log. Chmod'ing still hasnt done anything, and I cant touch it because permission is denied. _________________ ...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught. |
|
Back to top |
|
|
feld Guru
Joined: 29 Aug 2004 Posts: 593 Location: WI, USA
|
Posted: Wed Jul 19, 2006 10:52 pm Post subject: |
|
|
chown it to be owned by the user "mpd"
mpd drops privs to an unpriveleged user _________________ < bmg505> I think the first line in reiserfsck is
if (random(65535)< 65500) { hose(partition); for (i=0;i<100000000;i++) print_crap(); } |
|
Back to top |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Thu Jul 20, 2006 4:33 am Post subject: |
|
|
chown'ing did nothing. I'm stil getting the same error _________________ ...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught. |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Thu Jul 20, 2006 10:03 am Post subject: |
|
|
my sympathies. permission dilemmas are a right pain.
how about this for some lateral thinking
Forget about rigid adherence to portage. Go to /usr/portage/distfiles
and acquire the source versionsof mpd and or ncmpc and copy it to ~/ under a folder name, something descriptive and original, like maybe programs.
Use emerge to remove one or both pkges.
Then run the standard ./configure make make install
on the packages. If you haven't figured out why, it's because
the program will be installed from within your userspace. Your battle is with system / aplication running permissions. Awfull stuff. _________________ idella4@aus |
|
Back to top |
|
|
chINeSe mIDgEts Apprentice
Joined: 02 Mar 2004 Posts: 209 Location: look behind you
|
Posted: Thu Jul 20, 2006 5:00 pm Post subject: |
|
|
It works!! (or so I think) Portage spoils us sometimes. Thanks a bunch for the help.
EDIT: Everything works if I run from the terminal, but the FVWM dock script needs to be fixed. CURSES! _________________ ...it must have been very demanding having to learn how to use Microsoft Office, right up there with other lofty challenges like learning how to zip your fly without getting your dick caught. |
|
Back to top |
|
|
|