|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
What does "getting mixed results with xenodm" mean?
Code:
$ doas rcctl enable xenodm $ echo "exec startxfce4 --with-ck-launch" > ~/.xsession |
|
||||
Quote:
The last install with xenodm enabled resulted in a log-in screen that didn't work. When I entered my log-in credentials it would just bounce me back to the xenodm log-in screen, that is, XFCE wouldn't launch. I'll try your suggestions today and see what happens.
__________________
hitest |
|
||||
Quote:
Code:
exec name_of_GUI Code:
# start some nice programs |
|
|||
I had this problem before, in my case it was caused because some files in my home directory were owned by root user. After I used chown to change ownership of all contents of /home/victor to victor:victor, the problem was resolved.
|
|
||||
Thank you for all of your kind replies. As always I appreciate your help a lot. I've also had weird errors where the ISO failed to successfully install the base install. I did not have these errors with 6.8. I used a similar .xsession script.. I've probably made some mistakes which is obvious.
I've switched to FreeBSD 13.0 and MATE. All is well.
__________________
hitest |
|
|||
In 6.9, I had the same issue w/ openbox. My ~/.xsession-errors indicated that consolekit2 was not installed for the --with-ck-launch command.
|
|
||||
Quote:
Code:
puffy$ uname -a OpenBSD puffy.darkstar.home 6.9 GENERIC#2 amd64
__________________
hitest |
|
|||
XFCE4 do not need consolekit2 at all.
If your user is in the operator group, he can shutdown and reboot the system. If your user is not in the operator group, there is a polkit action define in /usr/share/polkit-1/actions name org.xfce.session.policy to reboot and shutdown the system. You must create a rule file in /usr/share/polkit-1/rules.d/ to allow your user to use this action. |
|
|||
@ctac's right.
Since OpenBSD 6.6, you need to add the user to the group operator to execute shutdown or reboot, and on the group wheel to hibernate or suspend. And normally, all run correctly with xenodm and XFCE
__________________
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 |
|
||||
Interesting to note I did a clean install this morning of 6.9 using Fluxbox as my WM and xenodm. I didn't use consolekit2. No log-in problems noted. Fluxbox is light and fast. I chalk up this problem to PEBCAK. Many thanks as always for your kind assistance. This is my go to forum for all things BSD.
__________________
hitest |
|
|||
I believe the issue was @hitest original invocation of ~/.xsession.
Code:
echo "exec startxfce4 --with-ck-launch" > ~/.xsession You can start xfce4, openbox and fluxbox without "--with-ck-launch" but in xfce4 you will not have full functionality with features like notifications ... |
|
||||
Quote:
__________________
hitest |
|
|||
Quote:
I had a similar problem on my Raspberry Pi4 at first, on upgrading from 6.8 to 6.9. I will have to go look at my notes for what I did, if I kept notes, if I can add anything. (I'm working on my desktop in 6.8 as I write.) TKS |
|
|||
As I wrote above, I ran into the same problem hitest did, after upgrading from 6.8 to 6.9 including the followup steps that applied: "When I entered my log-in credentials it would just bounce me back to the xenodm log-in screen"
So this is what I did on my Raspberry Pi4 to work around this problem: - Verified that user's .xsession was unchanged from how it was in 6.8, which worked with my setup then Code:
exec startxfce4 --with-ck-launch Code:
# usermod -G operator [user] - Checked user's .xsession-error Code:
/usr/local/bin/startxfce4: X server already running on display :0 You have tried to start Xfce with consolekit support, but ck-launch-session is not installed. Aborted startup... - Looked at the text in /etc/xdg/xfce4/xinitrc Code:
# check if we start xfce4-session with ck-launch-session. this is only # required for starting from a console, not a login manager if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then if command -v ck-launch-session >/dev/null 2>&1; then exec ck-launch-session xfce4-session else echo echo "You have tried to start Xfce with consolekit support, but" echo "ck-launch-session is not installed." echo "Aborted startup..." echo exit 1 fi else # start xfce4-session normally exec xfce4-session fi Code:
# exec startxfce4 --with-ck-launch exec xfce4-session Code:
# usermod -G wheel [user] TKS Last edited by TheTKS; 20th June 2021 at 05:21 PM. |
|
|||
Today, I test it on a new VM OpenBSD 6.9. (xfce 4.16)
In fact, without consolekit2, and my user into both groups operator and wheel: ⇒ I can stop and reboot ⇒ I cant suspend or hibernate Consolekit2 seems not necessary ; good! To hibernate or suspend, you need to activate and start ampd! Code:
# rcctl enable apmd # rcctl set apmd flags -A # rcctl start apmd
__________________
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; 25th July 2021 at 04:09 PM. Reason: typo apmd |
|
|||
Quote:
Thanks, enabling and running apmd might come in handy someday. I didn’t mention that hibernate and suspend don’t work on mine (icons displayed but in grey and do nothing.) I don’t hibernate or suspend on my desktop computer or my Raspberry Pi - when I’m finished, I always shut them down. TKS |
|
|||
@TheTKS: Ty! fixed!
__________________
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems with startx command | Jovan | NetBSD General | 3 | 27th January 2020 08:31 PM |
log in to console and startx in os x | questionguy | Other BSD and UNIX/UNIX-like | 11 | 25th August 2009 05:27 AM |
Startx executes as root, "startx:not found" as user | Mr-Biscuit | NetBSD Installation and Upgrading | 4 | 27th May 2009 08:44 AM |
Startx fails | disappearedng | FreeBSD General | 11 | 19th July 2008 09:32 AM |
User startx error . | bsdnewbie999 | OpenBSD General | 3 | 19th June 2008 02:08 AM |