On Thu, 03 Dec 2015, +13:37:53 EET (UTC +0200),
Michael Biebl <[email protected]> pressed some keys:

> 
> Am 03.12.2015 um 09:23 schrieb Juhapekka Tolvanen:
> > juhtolv@heresy | to 03 joulu 2015 04:04:14 | 10002 | pts/15
> > /home/juhtolv
> > % ps ux|grep systemd
> > juhtolv    829  0.0  0.2   4960  3556 ?        Ss   03:51   0:00 
> > /lib/systemd/systemd --user
> > juhtolv   7689  0.0  0.1   6292  2136 pts/15   S+   10:21   0:00 grep 
> > --color=auto systemd
> 
> Ah, you don't have a dbus instance running for your user.
> 
> This is usually started when you run a graphical session, e.g. directly
> by your session manager or by
> /etc/X11/Xsession.d/75dbus_dbus-launch
> 
> So I assume that explains why it works when run under uxterm, as you had
> a graphical X session.
> 
> E.g. I get:
> 
> $ ps ux | grep systemd
> michael   1994  0.0  0.0  47168  5172 ?        Ss   01:59   0:00
> /lib/systemd/systemd --user
> michael   2044  0.0  0.0  43612  4800 ?        Ss   01:59   0:00
> /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile
> --systemd-activation
> 
> 
> systemctl as unprivileged user requires a running system dbus daemon to
> access the system instance of systemd and a user dbus daemon to access
> the user instance of systemd.

Okay. How can I start my GNU Screen or tmux so that dbus provides
access to systemd? BTW After sending my bugreport I switched from GNU
Screen to tmux.

Currently I start my tmux during boot this way:

/etc/systemd/system/[email protected] :

----- Clip here ----
[Unit]
Description=tmux
After=network.target

[Service]
#Type=simple
Type=forking
#Type=oneshot
#RemainAfterExit=yes
#User=%i
User=%I
#ExecStart=/usr/bin/tmux -u -2 new-session -d -x 174 -y 56 -s %u -nzsh 'exec 
/bin/zsh -l'
ExecStart=/bin/dash -c "${HOME}/scripts/mytmux.sh"
#ExecStart=/bin/dash -c '${HOME}/scripts/mytmux.sh'
ExecStop=/usr/bin/tmux kill-server
Environment=DISPLAY=:0

[Install]
WantedBy=multi-user.target
#WantedBy=default.target
----- Clip here ----

That mytmux.sh is released here:

http://iki.fi/juhtolv/configs/tmux/


-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
”Perustuu tositapahtumii, tai ainaki tosi todelle tuntuvii unii. Älä ota
tätä oikein. Sä tiedät et mä oon hyvin huono kuuntelemaa toiveit. Siks sori,
jos mä oon liian avoin, mut räpis on vaa liikaa sanoi. Ei mitä sanoo, vaa
mitä jättää sanomatta. Jokainen säe ku pakomatka.”                  Paperi T

_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to