Difference between revisions of "Talk:Systemd/User"

From ArchWiki
Jump to: navigation, search
m (Feynman: setting DBUS_SESSION_BUS_ADDRESS without user-session@.service)
m
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Setting Environment variables without autologin/user-session@.service ==
  
 +
If you're not using auto-login, specifically the user-session@service, the environment variable DBUS_SESSION_BUS_ADDRESS needs to exported to something like {{ic|export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket}} before {{ic|systemd --user}}.  Otherwise, an error shows up in journalctl : "systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11."  Are there any other environment variables that need to be added to that section?
 +
[[User:Feynman|Feynman]] ([[User talk:Feynman|talk]]) 23:57, 5 February 2013 (UTC)
  
==<s> user: command or username </s> ==
+
::Not really. I'm not using auto-login and I'm not using any DE or login manager. It was a bug I ''believe'' on older versions on systemd. Since 198 it's not longer necessary. I still get that error on the start but it actually works without hassle. --[[User:Pabloxcl|Pabloxcl]] ([[User talk:Pabloxcl|talk]]) 16:21, 7 April 2013 (UTC)
  
Maybe a dumm question, but is the {{ic|--user}} command supposed to be used as is in the whole article or is it that we should replace it with our username in some places? --[[User:Maevius|Maevius]] ([[User talk:Maevius|talk]]) 11:31, 17 November 2012 (UTC)
+
== Increasing priority of user services ==
::Yes, you should use {{ic|--user}}. Think about it; if you had to specify your username, it would be instead something like {{ic|1=--user=''your-username''}}. Having a flag like {{ic|1=--''your-username''}} (including the {{ic|--}}), would be too weird. Also, if you do {{ic|man systemctl}}, you'll see the the option is {{ic|--user}}. [[User:Chrisl|Chrisl]] ([[User talk:Chrisl|talk]]) 17:31, 8 January 2013 (UTC)
+
  
 
+
How can I increase priority for user services? When I try to use {{ic|1=CPUShares=2048}}, I get {{ic|Failed to create cgroup cpu:/user/1000.user/2.session/systemd-536/xorg.service: Permission denied}}, when I try to use {{ic|1=Nice=-15}}, I get {{ic|Failed at step NICE spawning /usr/bin/xorg-launch-helper: Permission denied}}.
== Setting Environment variables without autologin/user-session@.service ==
+
 
+
If you're not using auto-login, specifically the user-session@service, the environment variable DBUS_SESSION_BUS_ADDRESS needs to exported to something like {{ic|export DBUS_SESSION_BUS_ADDRESS&#61;/run/user/$(id -u)/dbus/user_bus_socket}} before {{ic|systemd --user}}.  Otherwise, an error shows up in journalctl : "systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11."  Are there any other environment variables that need to be added to that section?
+
[[User:Feynman|Feynman]] ([[User talk:Feynman|talk]]) 23:57, 5 February 2013 (UTC)
+

Revision as of 14:10, 24 May 2013

Setting Environment variables without autologin/user-session@.service

If you're not using auto-login, specifically the user-session@service, the environment variable DBUS_SESSION_BUS_ADDRESS needs to exported to something like export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket before systemd --user. Otherwise, an error shows up in journalctl : "systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11." Are there any other environment variables that need to be added to that section? Feynman (talk) 23:57, 5 February 2013 (UTC)

Not really. I'm not using auto-login and I'm not using any DE or login manager. It was a bug I believe on older versions on systemd. Since 198 it's not longer necessary. I still get that error on the start but it actually works without hassle. --Pabloxcl (talk) 16:21, 7 April 2013 (UTC)

Increasing priority of user services

How can I increase priority for user services? When I try to use CPUShares=2048, I get Failed to create cgroup cpu:/user/1000.user/2.session/systemd-536/xorg.service: Permission denied, when I try to use Nice=-15, I get Failed at step NICE spawning /usr/bin/xorg-launch-helper: Permission denied.