The officially official Devuan Forum!

You are not logged in.

#1 2019-01-26 16:25:03

mu
Member
Registered: 2019-01-26
Posts: 10  

[SOLVED] boot up without x automatically starting

Forgive me if this is inappropriate but I am trying out star kirk. I think I read it is really pretty much devuan.

I had switched from slim to lightdm and that worked without problem. I then purged both slim and lightdm and booted to the command prompt just fine, but X wouldn't start up by startx (I did create an appropriate ~/.xinitrc). Is there a description of how to do this somewhere that someone could point me to?

Last edited by mu (2019-01-27 12:17:45)

Offline

#2 2019-01-26 18:27:47

PedroReina
Member
From: Madrid, Spain
Registered: 2019-01-13
Posts: 269  
Website

Re: [SOLVED] boot up without x automatically starting

The first thing I'd do is check carefully the file /var/log/Xorg.0.log looking for errors.

Further reading: https://www.x.org/wiki/FAQErrorMessages/

Offline

#3 2019-01-26 23:11:01

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: [SOLVED] boot up without x automatically starting

https://files.devuan.org/devuan_ascii/Release_notes.txt

Skip down to the section 'Starting X from a terminal'.

Offline

#4 2019-01-27 12:20:24

mu
Member
Registered: 2019-01-26
Posts: 10  

Re: [SOLVED] boot up without x automatically starting

Thank you both for your  replies. Installing 'elogind' and 'libpam-elogind' solved it.

Offline

#5 2019-01-27 16:44:32

thierrybo
Member
Registered: 2017-11-11
Posts: 107  

Re: [SOLVED] boot up without x automatically starting

Hi,

I don't understand exactly what you want. If you do not use a display manager and want to boot without starting X automatically, the common solution is to add startx in your .profile and only allow TTY1 to run it. If you don't wan to start X, just change to TTY2 to login:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
	exec startx
fi

Offline

#6 2019-01-27 18:29:35

PedroReina
Member
From: Madrid, Spain
Registered: 2019-01-13
Posts: 269  
Website

Re: [SOLVED] boot up without x automatically starting

thierrybo wrote:

I don't understand exactly what you want.

I had an use case very similar. I wanted to study from the ground up the GNU/Linux system. I started from the command line. Some months later, I decided to install X Window System, but I did not want to start it automaticaly, so I used startx when I saw fit.

Maybe someone has a box with very humble hardware and he/she can use it for a lot of things just without X, but wants to have it around, just in case.

I'm sure that there are a lot more of cases.

Offline

Board footer