You are not logged in.

#1 2015-02-20 17:19:47

olliegab
Member
Registered: 2011-05-27
Posts: 19

Starting and stopping X + booting into command line rather than GUI

After installing Arch and struggling a bit to get the gui environment (gnome) to work I am now in a situation where the distro works fine but boots directly into a gnome session.
I would like to be able to stop X and I have tried various recommended commands. The only one that works seems to be "kill -15 X" (after doing Ctrl+Alt+F2), which ends X but sort of stops mid-process without ever going back to any command line prompt.
I copied etc/skel/.xinitrc into my home folder and uncommented "exec xterm", while re-commented "exec gnome-session". This did not make any difference at all so perhaps I'm not even using that script?
As I had some difficulties installing X (or rather get it to work) I may have installed a whole plethora of packages that I may not need. There are references to Wayland for instance, packages I installed. But am I actually using them? How can I find out?
I would like Arch to boot into a command line environment and then I'd start X from there - if that is what I want!

Any pointers in any direction regarding the above are welcome!

Cheers!

Offline

#2 2015-02-20 17:26:17

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Starting and stopping X + booting into command line rather than GUI

What guide did you follow to install? The beginner's guide and the Xorg page contain the relevant information. Following just them should have allowed you avoid the mess you're in. Just saying that you've installed a whole plethora of packages will not help...it makes it near impossible to help.

You ought to read this. It sounds like you installed a display manager and set up auto-login?

Last edited by nullified (2015-02-20 17:26:59)


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-02-20 18:14:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Starting and stopping X + booting into command line rather than GUI

Check the pacman log to see what have you installed.
wayland is a dependency for many packages, e.g. mesa.

Offline

#4 2015-02-20 22:45:37

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,896
Website

Re: Starting and stopping X + booting into command line rather than GUI

If your .xinitrc is not being parsed, you must be using a display manager:

# systemctl stop display-manager.service

Should stop it immediately and drop you to the console.

# systemctl disable display-manager.service

Will disable it completely from the next boot.


There are two ways of constructing a software design: one way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.

— C.A.R. Hoare, The 1980 ACM Turing Award Lecture

Offline

#5 2015-02-21 10:22:11

olliegab
Member
Registered: 2011-05-27
Posts: 19

Re: Starting and stopping X + booting into command line rather than GUI

Tried with Head_on_a_Stick's suggestions.
First as normal user and got the following message:
Failed to stop display-manager.service: Interactive authentication required.

Then as root and got this:
Failed to stop display-manager.service: Unit display-manager.service not loaded.

Offline

#6 2015-02-21 11:24:42

Spider.007
Member
Registered: 2004-06-20
Posts: 1,174

Re: Starting and stopping X + booting into command line rather than GUI

Well, following the user-guide would get you exactly where you wanted to be, so you must have enabled gdm or some other display manager manually instead? What does systemctl tell you about services that auto-start and sound like a display-manager to you?

Offline

#7 2020-10-19 14:49:28

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Starting and stopping X + booting into command line rather than GUI

pkill -x Xorg


ping 127.0.0.1

Offline

#8 2020-10-19 14:59:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,426

Re: Starting and stopping X + booting into command line rather than GUI

Please don't bump 5 year old threads: https://wiki.archlinux.org/index.php/Co … bumping%22

Closing.

Online

Board footer

Powered by FluxBB