LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-01-2019, 09:28 AM   #1
rsmereka
Member
 
Registered: Jul 2003
Location: Southwestern Ontario, Canada
Distribution: LFS, Void, NuTyX, MX, OpenBSD, Mint, Gentoo
Posts: 47
Blog Entries: 3

Rep: Reputation: 15
OpenBSD 6.5 Xorg Xfce4 Start Failure


Hi All,

Issue: When I start the graphical desktop using 'startxfce4' (under a normal user account), Xorg fails with:
Quote:
xf86OpenWScons: cannot open /dev/ttyC4 (Permission denied)
Starting from the 'root' account works fine.

Background: Lenovo x61s, OpenBSD 6.5 i386, I am manually starting the graphical desktop from the terminal as I prefer to start and stop the GUI instead of using a logon manager, xenodm is not started at boot. Xorg settings and Xfce settings (at the moment) are OOTB. I have this exact setup working properly on a Dell 131L laptop with an AMD (Turion) chipset under OpenBSD 6.4 i386.

What I have done so far: the regular user belongs to the group 'wheel', /dev/ttyC4 is owned by user 'root', group 'wheel', as per the Xorg log file, I have searched wiki.x.org including the FAQ, KnowledgeBase and typical error messages, I also checked the group list in '/etc/groups' for any group that the regular user could be missing and other than the group '_X11' which I think is being used by Xorg itself while running. I did not find any other group of use, I have also searched here for a possible answer.

Since this works perfectly under the 'root' user, it seems that it is a permission issue but all the permissions check out. There are also lots of internet posts that discuss running Xorg by a regular user which is not a member of the 'wheel' group.

Have any ideas?
TIA
 
Old 05-01-2019, 09:55 AM   #2
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 208

Rep: Reputation: 89
Starting with OpenBSD 6.5 (quoting from the Upgrade Guide) ....
Quote:
The Xorg binary is no longer installed setuid, so startx(1) can no longer be used by non-root users. The xenodm(1) display manager has to be used instead.

To set it up:

# rcctl enable xenodm
# rcctl start xenodm

If you wish to customize X you need to create an executable .xsession file.
 
1 members found this post helpful.
Old 05-01-2019, 01:42 PM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 5,820

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
I used to use startx. Now I use xenodm and quite like it. Here's my .xsession file for XFCE.

Code:
/usr/local/bin/startxfce4 --with-ck-launch
 
Old 05-01-2019, 01:47 PM   #4
rsmereka
Member
 
Registered: Jul 2003
Location: Southwestern Ontario, Canada
Distribution: LFS, Void, NuTyX, MX, OpenBSD, Mint, Gentoo
Posts: 47

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Apologies,

I did not check the Upgrade Guide.

I tried it and while, it does work, this represents a problem for me since once xenodm is launched, it takes over and it is no longer possible to slip back into full screen terminal mode. One can only logout from the Xfce session which brings back the xenodm login page. There is no way, that I found, to exit xenodm back to the terminal.
 
Old 05-01-2019, 09:19 PM   #5
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 208

Rep: Reputation: 89
Using Alt-Ctrl-F1 through Alt-Ctrl-F4 will take you to individual virtual consoles, outside of X. Alt-Ctrl-F1 maps to the system console. Alt-Ctrl-F5 will return you to your X session.

To add additional virtual consoles, see http://www.openbsd.org/faq/faq7.html
 
2 members found this post helpful.
  


Reply

Tags
openbsd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failure after failure after failure.....etc 69Rixter Linux - Laptop and Netbook 5 04-14-2015 09:58 AM
Slackware 14.1 + XFCE4 - xfce4-notifyd and volume controls Freaksta Slackware 1 08-10-2014 10:00 AM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM
xfce4 and icon for xfce4-mixer vehn Slackware 1 11-15-2008 03:37 PM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 05:00 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration