Setting up MPD for every user on the machine
I'm having a few problems setting up MPD. What I want to do is configure MPD such that it starts automatically at login using the current user config file (so that it uses the correct db) and stops playing and exit (to free port 6600) on logout. This way when a different user logs in MPD will use the correct database and playlists dir.
So far I've created all the needed files (.mpd/{.conf,.pid,etc}) in the home dirs of every user and followed this (MPD/Autostart with systemd/Current Setup) then I followed these steps for user1 (created the needed files in user1's home) Using systemd to manage your session (Should I repeat them for user2?). I'm using this service for mpd:
[Unit]
Description=Music Player Daemon
[Service]
ExecStart=/usr/bin/mpd %h/.config/mpd/mpd.conf --no-daemon
ExecStop= /usr/bin/mpd %h/.config/mpd/mpd.conf --kill #I expected this to stop mpd on logout
[Install]
WantedBy=default.target
The problem is that when I log out the music keeps playing which means mpd is still running. If I log in as user2 I can see users1 database (using ncmpc) but I can't control the playback e.g:If I want to skip the current track it stops playing.
Any ideas?
rodrigomb81 wrote:ExecStop= /usr/bin/mpd %h/.config/mpd/mpd.conf --kill #I expected this to stop mpd on logout
That will stop mpd when the service is stopped, which will happen when the user instance of systemd exits. So logout should do `systemctl --user exit`. (This might be mentioned on the wiki, but that systemd/user page is a big mess.)
Similar Messages
-
How do I set Premiere preferences for all users - University lab machine?
I am setting up an editing suite for our University which has a "per machine" Creative Cloud licence. It is a PC installation. This machine will be used by a class of students who will log in with their own credentials. I need to set the preferences for Premiere (video output, workspace layout, default drives etc) so that it will be the same for all users logging in since we want a consistent setup for teaching purposes and dont want to have to help each student set up so that it shows correctly on the monitors. Is there a way of saving this setting as the default for every user?
The most important one is the preferences - Playback in order to set up the second monitor.
Message was edited by: Bruce CookeHopefully you did manage to do it.
Reading this should be enough Adobe Premiere Pro Help | Preferences -
On firefox 3.5.X i can copy an configured profile from an user-folder to the programm folder of firefox. \mozilla firefox\defaults\profiles.
After an new user log in to the machine the default profile will get the actual profile of the new user. With all bookmarks, configurations and so on.
But this doesn't work with the firefox 3.6.10? What changed? What will be the way i can get an default configuration for every user on one machine? I want to deploy the firefox with an default configuration in our enterprise? Why does the behaviour change?
What to do?
Thanks...No - there are no missing data, because nothing will be copied. The profile - folder does not work.
There are the standard first start behavior.
There might be another trick? Hint? Todo?
Thanks. -
Hi all
Have seen a couple threads regarding this but unfortunately nothing that solves my problem thus far!
Right now, our developers are using the Domain Admin account to promote their website code using MSI files. I'd like to change this as I feel the Domain Admin account should be on lock down and only used when absolutely necessary, pretty common. The
same goes for my account too, I would like to absolve as much use of the Domain Admin as I can.
Problem is, when they run installers from their own accounts, they receive this error: You do not have sufficient privileges
to complete this installation for all users of the machine. Log on as administrator and then retry this installation
The accounts they are using are part of the Built In Administrators group and the Domain Admins group... I'm not sure what other permission you'd need in a domain? We've gone as far as explicitly giving them local admin access on this server and still
nothing changes.
Is there a Group Policy or something that I can change to provide install rights and possibly remove these accounts as Domain Admin and more along the line of Power User?
Thanks much for your help!
RyanHi,
You could use Software Restriction Policies (SRP’s) or Applocker(supported on Windows server 2008 R2/Windows 7 only) to restrict the running
of the application for specific user.
Description of the Software Restriction Policies
http://support.microsoft.com/kb/310791
HOW TO: Restrict Users from Running Specific Windows Programs
http://support.microsoft.com/kb/323525
How to Implement Group Policy Security Filtering
http://www.windowsnetworking.com/articles_tutorials/Group-Policy-Security-Filtering.htmlPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
How to control the data to display for every users?
Hello Experts,
Im creating a module in ORACLE forms6i and I want to control all the data to display for every USERs. I have 1 Table and it has 5 columns.
My module has 5 columns and 5 rows of records to display.
Problems:
For USER1, I want to display all DATA in column3 and column4 only and all remaining columns shoud be null.
For USER2 , I want to dislplay all data in Column1 only and all remaining columns should be null.
How can i control all the data to display for each columns? Can you help me please. Im using the Clear_Items but its not working only the first row are null but the remaining
rows has its records.
Thanks.
LalaI understand that you want certain columns not to show at all on the canvas when a certain user opens the form. Then, in the when-new-form-instance trigger, you should set_item_property(x_item, visible, property_false) for each item you do not want to be dislayed, depending on the user.
-
How to Default what fields and assignment blocks appear for every user?
Is there a standard way to default what users see in the webui? We'd like to display certain assignment blocks, fields, etc without having the user go thru the personalization process. There are certain pieces we need to display across the board for every user and would like to set this up in advance of them logging into the WebUI.
Thanks in advanceHi James,
With the business roles you can define what the user is allowed to see or do and not.
So you create your special user business role e.g. Z_USER_SALESPRO and then you can create a business role specific configuration of the views (add/ remove fields) or overview pages (add/remove assignment blocks).
If you want to you can also deny user with this business role the possibility to personalize their pages at all.
If you want to show information to all user in the same way then just maintain the default configuration in the enhanced component. As the WebUI always looks for the most specific key found within the configurations available.
Please make sure you work in default configuration of the enhanced component, else you change SAP standard cheat sheet.
Hope this helps.
Best regards,
Thea -
Is it possible to save System preference settings for every user that logins to a Mac OS X?
I work at a school and we have iMacs running Mavericks 10.9 in our environment. We have them binded to our Windows domain so that way students can use their own login to access the Macs. I have a number of System preference settings that I would like to take a effect, but I only see that these settings take effect for every user. So even if I login as the Main administrator account and set settings in System Preferences, such as not allowing the Wifi symbol to show, the next user that logins will still see the wifi symbol because the setting isn't taking effect for their System preferences. Does anyone know a way to get System Preference settings to take affect for every user that logins? Maybe a script?
Modifying the user template is not supported. You can Google for people who have done it in the past. I would recommend going to official route, if possible. Here are a couple of training documents. I'm sure there is more available though more official channels.
http://training.apple.com/pdf/wp_osx_configuration_profiles_ml.pdf
https://www.apple.com/education/docs/l521219b_osx_deployment_guide_030513.pdf
http://training.apple.com/pdf/wp_integrating_active_directory_mav.pdf -
HT1660 how can I use one single library for all users on the same laptop?
how can I use one single library for all users on the same laptop?
You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library. -
Set default password for all users including csv file
I would like to set the default password for all users
including the ones imported in the csv file?
Also now the default passwrd in set to the email address. How
do i change that setting to the "login" setting in the csv file so
those users can loin with that password?
Kinda the same question but do yuo get the idea?
Thank you,
ChipYou could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
http://www.rubicode.com/Software/RCDefaultApp/ -
Set default application for *all* users
Hello people, my 1st post here, so forgive me for possible imprecisions, ambiguity, inappropriateness....
When I search how to set/change the default app for opening some type of file I always find the answer "through the getinfo". But doing that, I only change the default application for the current user.
I want to do that for all users of my mac, without repeating the getinfo process for each of them.
Is there any adminstrative tools for doing that?
Thank you.You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
http://www.rubicode.com/Software/RCDefaultApp/ -
Setting Default Preferences for All Users in Crystal Reports Server 2008 v1
We are currently looking to set the default preferences in the CMC for all of our users.
I did locate this page Link: [How to set default preferences for all users in Infoview 3.1/CRS 2008]
The first part of the thread did seem promising but I am unable to find the sample .jsp code that people recommended.
I would assume that this scenario is common enough that someone knows a way to set universal preference defaults.
Thank youI thought I could just run it too but when I attempt to I get a Windows Script Host error:
Script: C:\User Prefs.vbs
Line: 1
Char: 1
Error: Expected statement
Code: 800A0400
Source: Microsoft VBScript compilation error.
I noticed the first most line seems to be markup for a web interface though I am not familiar with vbs so I may be wrong. I used the publishing wizard to put the script on the CMC to attempt to run it through the CMC but it still does not work. -
HT1495 Can I set my iPad for different users? ie user - 1 login & user - 2 login
Can I set my iPad for different users? ie user - 1 login & user - 2 login
Afraid not. The iPad is not intended for multiple users.
-
Set-casmailbox command for all users?
I want to disable the feature in OWA that allows a user to edit their photo. I got the following command to work but I want to run this for all users and the following command requires me to add a name. We have 5 different databases.
Is this possible?
Set-CASMailbox John.Doe -OwaMailboxPolicy "Default".
Ex2013sp1
PennyMAt its simplest you could do something like this:
Get-Mailbox -ResultSize unlimited | Set-CASMailbox -YourOptionGoeshere
Cheers,
Rhoderick
Microsoft Senior Exchange PFE
Blog:
http://blogs.technet.com/rmilne
Twitter: LinkedIn:
Facebook:
XING:
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. -
WHY PGA IS REQUIRED FOR EVERY USER ?
Good Morning Everyone ;
I have a question about PGA.
WHY PGA IS REQUIRED FOR EVERY USER ?
What i got from google ..
Even though the parse information for SQL or PL/SQL may already be available in library cache of shared pool,
the value upon which the user want to execute the select or update statement cannot be shared.
I cant realize it Can anyone show clear example , if possible ?
DB Version is 10.2.0.4.0
OS : oracle linux 5.5
Thanks in advance ..Thanks aman and heok.
My Question :
Your explanation is clear. I think i am getting little bit confused.
Could you please clarify little more ?
>> session 1 :
user is HR
SQL>select * from tab1 ORDER BY name;
>> session 2 :
user is scott
SQL>select * from tab1 where ORDER BY name;
>> session 3 :
user is USER1
SQL>select * from TAB1 where ORDER BY name;
>> session 4 :
user is USER2
SQL>select * from TAB1 where ORDER BY name;
IS this right aman ?
Already sql statements are avail in SGA ,Even though all above users needs same information.
Oracle does sorting operation in PGA. If PGA exceeds , oracle will use temporary tablespace .
Thanks heok and aman. -
Set business closure for a users
i created a business closure in crm 2015 on a particular date,business closure is associating successfully with facility and equipment's but not associating with users.
So how can be set business closure for a users ????Hello,
The TechNet Wiki Discussion Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
Please note that this forum exists to discuss TechNet Wiki as a technology/application.
As it's off-topic here, I am moving the question to the
Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})
Maybe you are looking for
-
Problem with account privs.
Hello, For some reason a week or two ago my main account seems to have "lost" some privileges. Specifically, I cannot replace items in my Applications folder - as a work-around for this, I've been going in and deleting the app I want to replace (with
-
Blank Desktop Icons in Windows 8
I posted this in the Microsoft Windows 8 forum and was directed to post here instead. We did look for answers before posting, but our specific issue is different than what others have had regarding "blank icons." After updating our workstations to Wi
-
I am still waiting for my student approval to set up the Adobe creative suite. Can you please help? Jasper
-
Error message in Itune, after uninstalling and reinstalling of itune
I have uninstalled the itunes by following the instructions in apple website, removing intunes, quicktime and other components in my computer. Then after I reinstalled the itunes 10, it doesnt launch the itunes and gives me a message that "The itunes
-
Distributing an application that uses componentworks++
I am new to using MS. I am going to distribute a Visual C++ application to a remote site, sending the customer a DVD. The application is an MFC application that uses ComponentWorks++ (from Measurement Studio) and NiDaq. What do I need to be able to