Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Fri May 25, 2018 12:47 pm

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Apr 30, 2018 5:43 pm 
Offline
Engineer
Engineer

Joined: Mon Apr 30, 2018 3:11 pm
Posts: 3
I have compiled OpenTTD on my raspberry pi. When I run the executable, the program launches without any errors. After an hour, I managed to get the sound working using another thread on this forum.

However, when I switch to my friend's account (sudo is accessible to that account w/o password FYI), the music unexpectedly stops working. Any ideas how to fix this?


Top
   
PostPosted: Mon Apr 30, 2018 6:22 pm 
Offline
Chief Executive
Chief Executive
User avatar

Joined: Mon Dec 23, 2013 4:33 pm
Posts: 703
Location: Bærum, Norway
StellarDoor5319 wrote:
I have compiled OpenTTD on my raspberry pi. When I run the executable, the program launches without any errors. After an hour, I managed to get the sound working using another thread on this forum.

However, when I switch to my friend's account (sudo is accessible to that account w/o password FYI), the music unexpectedly stops working. Any ideas how to fix this?

Don't know about Pi in particular, but on most Linux systems the user must be a member of the "audio" group in order to get sound.

_________________
My screenshots
The 1700-2050 Ships & RVs thread
Norwegian Alternate Town Names


Top
   
PostPosted: Mon Apr 30, 2018 7:38 pm 
Offline
Engineer
Engineer

Joined: Mon Apr 30, 2018 3:11 pm
Posts: 3
The user is a member of all the groups that the default "pi" user is in, including "audio".


Top
   
PostPosted: Tue May 01, 2018 10:34 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Sun Sep 09, 2007 5:03 am
Posts: 4612
Location: home
Likely something related to music doesn't have the correct ownership and/or access rights, for example the music files themselves?

Being able to use sudo without password is not significant by the way, the system does not switch to a different user to resolve access problems by itself. (Which is a good thing imho, making sure everything has the right owner, group, and access rights is a far better solution.)

_________________
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.


Top
   
PostPosted: Tue May 01, 2018 2:46 pm 
Offline
Engineer
Engineer

Joined: Mon Apr 30, 2018 3:11 pm
Posts: 3
Alberth wrote:
Likely something related to music doesn't have the correct ownership and/or access rights, for example the music files themselves?

Being able to use sudo without password is not significant by the way, the system does not switch to a different user to resolve access problems by itself. (Which is a good thing imho, making sure everything has the right owner, group, and access rights is a far better solution.)


What permissions should I use for the files? I noticed that a separate config file and content-download folder are placed into the user's home directory - so surely the user should own them?


Top
   
PostPosted: Wed May 02, 2018 4:29 am 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Sun Sep 09, 2007 5:03 am
Posts: 4612
Location: home
That seems a good idea indeed.

The program looks for files at several places, depending on how and where you install things. You may want to read the README file, which explains in details how that works.

_________________
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.