MinimServer Forum
Minimserver not seeing one of my files - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Minimserver not seeing one of my files (/showthread.php?tid=1060)

Pages: 1 2


RE: Minimserver not seeing one of my files - simoncn - 02-12-2013 22:35

(02-12-2013 22:11)NeilT Wrote:  I have this in /etc/rc.local:

# start minimserver-flac
/home/pi/minimserver-flac/autostart.sh

# start minimserver-mp3
/home/pi/minimserver-mp3/autostart.sh

for the two instances I run.

I commented those lines out and ran manually as you mentioned, and I get the UTF-8 charset. The automatic start means the process is owned by root, which must explain the difference. So I need a better start up process.

The recommended approach is described in this post.

However, I'm not sure why you're getting US-ASCII when you start MinimServer as root. Does the root user on your RPi have a different locale setting? On my RPi, the root user locale is the same as the pi user locale.


RE: Minimserver not seeing one of my files - NeilT - 02-12-2013 22:52

(02-12-2013 22:35)simoncn Wrote:  The recommended approach is described in this post.

However, I'm not sure why you're getting US-ASCII when you start MinimServer as root. Does the root user on your RPi have a different locale setting? On my RPi, the root user locale is the same as the pi user locale.

Yup, that's what I did - you must have posted before seeing my success post Smile

I also have no idea why root is different. I've not knowingly modified the account in any way. I guess that's another challenge to find out - not for any reason,. just because we ought to know!

Again, thanks.


RE: Minimserver not seeing one of my files - simoncn - 02-12-2013 23:26

(02-12-2013 22:52)NeilT Wrote:  Yup, that's what I did - you must have posted before seeing my success post Smile

I also have no idea why root is different. I've not knowingly modified the account in any way. I guess that's another challenge to find out - not for any reason,. just because we ought to know!

Again, thanks.

I've done some experiments, and it seems the US-ASCII problem isn't caused by running MinimServer as root. It seems to be caused by running MinimServer from the /etc/rc.local script. For some reason, the locale isn't set correctly when /etc/rc.local is running.


RE: Minimserver not seeing one of my files - NeilT - 02-12-2013 23:49

(02-12-2013 23:26)simoncn Wrote:  I've done some experiments, and it seems the US-ASCII problem isn't caused by running MinimServer as root. It seems to be caused by running MinimServer from the /etc/rc.local script. For some reason, the locale isn't set correctly when /etc/rc.local is running.

As I understand it, there is technically no actual root user so maybe there is no locale associated. The apparent US is possibly some basic default?