LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-18-2019, 07:51 AM   #1
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS 8.3 Sysd and now 8.4
Posts: 173

Rep: Reputation: Disabled
How do you reconfigure X ?


Hi All,
I messed up X somehow. I can log into Openbox with root. But when I run startx as user X shuts down.
It started when I ran " echo openbox > ~/.xinirc " at login rather than a terminal. Don't know why I did that. Was not thinking for sure. Now I can't get to a tty to dom it properly.
Thanks for the help.
 
Old 07-18-2019, 09:13 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,183
Blog Entries: 9

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
But if you use startx, you are already at a console. Why not edit .xinitrc from there?
 
Old 07-18-2019, 09:36 AM   #3
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS 8.3 Sysd and now 8.4
Posts: 173

Original Poster
Rep: Reputation: Disabled
Hey Hazel,
How you been doing? Ok, I cleared the `/.xinitrc and X still terminated on startx command. I can still get to openbox using root and use firefox and xterm.
I'm unable to get to a tty as user though . I hate to mess up all this work from yesterday . Thanks for your help
Dan
 
Old 07-18-2019, 09:56 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,183
Blog Entries: 9

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
You can't just "clear" .xinitrc. It needs to have a session starter command in it. And that has to be an exec operation, not a spawned command like "openbox". Apparently the correct command for starting openbox is "exec openbox-session". That's what the Debian wiki says anyway.
 
Old 07-18-2019, 10:06 AM   #5
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS 8.3 Sysd and now 8.4
Posts: 173

Original Poster
Rep: Reputation: Disabled
Well I tried that and x still terminates as user. Do you know what I would need to reinstall to override the existing x conf settings? I reinstalled x server, twm and xterm.
Thanks
 
Old 07-18-2019, 01:51 PM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,183
Blog Entries: 9

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
I'm just wondering. You have the systemd version of LFS. I wonder if that launches xorg in rootless mode. If that was the case, you might need to be in the video group to use it.
 
Old 07-18-2019, 06:09 PM   #7
rabidlinux
Member
 
Registered: Aug 2017
Location: Wild West
Distribution: Arch,BLFS 8.3 Sysd and now 8.4
Posts: 173

Original Poster
Rep: Reputation: Disabled
Hey Hazel
I don't know for sure. I did try some x reconfig commands none of that worked. So I started again with a clone made when x was completed.
Now I'm building stuff again.
 
  


Reply


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] How do you reconfigure the set-up for e-mail in ubuntu? judoka Linux - Newbie 1 08-15-2009 10:37 AM
how to reconfigure mouse to USB? cevjr Linux - Hardware 1 09-02-2003 11:30 PM
Any way to reconfigure a exixting kernel? sk545 Linux - General 1 03-21-2003 07:06 PM
how do I reconfigure for mouse configuration that was inadvertantly removed? hemlock Linux - Software 3 08-27-2002 07:19 PM
PHP, Apache reconfigure to support Databases aaronsols Programming 0 04-20-2002 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:20 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