You are not logged in.

#1 2012-10-27 03:28:19

Squiddles
Member
Registered: 2011-05-31
Posts: 73

[SOLVED] Having some trouble with a MPD password

I've recently begun streaming my music with MPD, so I set up a password. Now after some of the issues I've run into, I'm not sure if I want a password at all, which leads to some questions:

1) Is a password necessary for streaming? Is there any security issues to this that could have potentially awful repercussions?

2) I use awesome wm, with that, I have the media keys on my keyboard set up to control ncmpcpp for play/pause, etc. in the rc.lua. With the password set up, these keybinds stop working. I've tried exporting MPD_HOST with my password in my .bashrc which didn't work after restarting the WM or after a reboot. Is there any way around this? This question would be void if the answer to #1 results in safety with no password.

3) With awesome wm, I have a widget set up to show "artist - song" with vicious. The author of the widget claims that 'vicious.widgets.mpd' takes a table as an argument to set password, bound address and port. Though, beyond that, it's not heavily documented. With the password on MPD the widget spits out "N/A - N/A". Would anyone know a way around this? Or rather how to set up this table and pass the the password to 'vicious.widgets.mpd'? This question would also be void depending on #1, unless changing the default port is order, then I still need help with the table.

Any ideas?

Last edited by Squiddles (2012-10-29 05:31:55)

Offline

#2 2012-10-29 05:10:05

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] Having some trouble with a MPD password

I figured out #2 and #3 with the following:

2) I changed the commands for the keybinds in my rc.lua to `ncmpcpp -h password@host <action> &`

3) I found that the table was in the lua for the widget itself in the widgets folder (ie: ~/.config/awesome/vicious/widgets/). In this case, 'mpd.lua' has an array that needs editing. It's so simple it hurts.

I guess the only thing up for debate is whether or not the '&' is needed in the ncmpcpp keybinds.

Offline

#3 2012-10-29 05:21:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Having some trouble with a MPD password

Squiddles wrote:

I figured out #2 and #3 with the following:

So you put srike-throughs on the original questions?  I am not sure how that might be percieved as a good idea.  It makes it mich harder to read, or very distracting at the very least.  In fact, I saw that and stopped reading after a couple of words because I wanted to know why you did it.  Once I figured it out, I am now annoyed enough to not want to read it.

Offline

#4 2012-10-29 05:33:09

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] Having some trouble with a MPD password

Okay, strike-throughs removed...

Offline

Board footer

Powered by FluxBB