|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
non root user xfce4 does not start
hello, i chose to install openBSD 6.5 with xfce4, in root mode xfce4 starts well.
when i use a non root user xfce4 does not start and returns me user rights errors. how can i set the user rights so that xfce4 starts? |
|
||||
You must either upgrade to the most recent release, or use xenodm(1). OpenBSD 6.5 does not permit non-root users to execute startx(1) or xinit(1).
This matter was discussed in the 6.5 Upgrade Guide: Quote:
|
|
|||
Customizing X for start xfce4 ?
what can i put in .xsession file for startxfce4 command ? |
|
|||
From the xfce4 meta-package readme:
Code:
$OpenBSD: README-main,v 1.14 2019/08/15 07:16:48 landry Exp $ +----------------------------------------------------------------------- | Running ${PKGSTEM} on OpenBSD +----------------------------------------------------------------------- The Xfce desktop is composed of 2 meta-packages: * xfce, for a base Xfce installation * xfce-extras, for a full Xfce installation. Startup ======= Xfce desktop environment is launched through the 'startxfce4' script. Simply add '${LOCALBASE}/bin/startxfce4' to your .xinitrc/.xsession script if you use startx, xenodm or slim. If you use gdm or kdm, have a look at https://wiki.xfce.org/faq#starting_xfce. An xfce4.desktop file is provided for use by gdm. http://cvsweb.openbsd.org/cgi-bin/cv...ype=text/plain |
|
|||
If the commands listed in ./xsession are executable, why does ./xsession itself need to be executable? IIUC it's just a configuration file.
Last edited by johnR; 10th February 2020 at 02:42 PM. |
|
|||
Thanks for the explanation.
|
|
||||
Code:
bsd$ cat .xsession exec ck-launch-session startxfce4 I edit /etc/group and add my regular user to the operator group so that I can use the XFCE4 shutdown button to turn off my laptop.
__________________
hitest |
|
|||
You can just use into your personal .xsession:
Code:
startxfce4 --with-ck-launch
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733 |
|
|||
Quote:
Quote:
TKS |
|
|||
Hi.
What README? I use it-as, segun pkg_readme file about Xfce, on 6.6. It's written: Quote:
As wrote @jggimi, read the bottom of Xsession file. ;-) Code:
$ tail -20 /etc/X11/xenodm/Xsession Quote:
.xsession is to run after xenodm (or other), and .xinitrc is a tool after your loggin (without dm).
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733 Last edited by CiotBSD; 21st February 2020 at 06:37 PM. |
|
|||
Quote:
/usr/local/share/doc/pkg-readmes/xfce I was convinced that I read somewhere, after the README date of 2019/08/15, that both this startxfce4 change and adding the user to the operator group are needed, and that other changes were coming with xfce in 6.6, but I can't find it now (if I find it, I will post.) It seems that either startxfce4 term still seem to work, but the operator step is definitely needed. TKS Last edited by TheTKS; 23rd February 2020 at 01:45 PM. Reason: minor - version reference from 6.7 to 6.6, which needed a change from future to past |
|
|||
What is better from security/performance point of view?
To make .xsession to be executable or not? |
|
|||
Quote:
As far as it being executable, xenodm(1) provides this guidance: Quote:
|
|
|||
So this is one of the references I was thinking of
https://marc.info/?l=openbsd-ports&m...0265131529&w=2 The main OpenBSD-specific change is https://bugzilla.xfce.org/show_bug.cgi?id=14722 (needs testing !) which will make the consolekit/policykit/messagebus dependency completely optional, allowing an user in the operator group to shutdown the machine (ie can run the shutdown binary), or suspend/hibernate if in the wheel group (ie has access to apmdev), instead of relying on 3 daemons running as root. The previous mode of needing messagebus running + spawning startxfce4 within consolekit should still work. which, if I'm reading right, agrees with the text in the README. So if I understand this right, if you put your user in group operator, you should be able to shut down from Xfce without Code:
pkg_scripts="messagebus" but to launch Xfce from xenodm you still need to add Code:
exec startxfce4 --with-ck-launch I need to read up on messagebus. TKS Last edited by TheTKS; 23rd February 2020 at 01:48 PM. Reason: minor correction to command argument |
|
||||
Quote:
Code:
exec startxfce4 --with-ck-launch
__________________
hitest |
|
|||
@shep: ok, ty!
@TheTKS: If I understand well, what Landry had written, with Xfce 4.14, into OpenBSD 6.6, we're not need to use consolekit2 or polkit, just only as operator to allow shutdown, and as wheel to suspend/hibernate, is'nt-it!? If exact, then we need just to start xfce, as : Code:
startxfce4 ---- Why do you use `exec` before `startxfce4`? My .xsession launch xfce4 without this function. ??? ---- Other question: the xfce4-power-manager seems need consolekit2! (this package 'xfce4-power-manager' is need only on laptop, not?!) Code:
$ del consolekit2 can't delete consolekit2-1.2.1p8 without deleting accountsservice-0.6.42 colord-1.3.5p1 mate-1.22 mate-session-manager-1.22.2 mate-settings-daemon-1.22.1 mate-system-monitor-1.22.2 pulseaudio-13.0 xfce4-power-manager-1.6.5 Delete them as well ? [y/N/a] n
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733 Last edited by CiotBSD; 23rd February 2020 at 11:58 AM. |
|
|||
Quote:
Quote:
Quote:
Edit: jggimi beat me by one minute with the answer about exec. Thanks! TKS |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 6 | 20th May 2017 12:03 PM |
Cannot start X from a non-root account | notooth | NetBSD Security | 4 | 2nd July 2015 02:31 PM |
root: unknown user | roddierod | FreeBSD General | 9 | 28th April 2009 10:18 PM |
Run daemon as other user than root | phreud | FreeBSD General | 8 | 11th November 2008 04:11 AM |
Non-root user editing automatically mounted smb share | tad1214 | FreeBSD General | 8 | 8th July 2008 02:28 AM |