root and X session [solved]

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
mt12345
Saltimbocca-Roller
Posts: 15
Joined: Sun Jun 19, 2016 2:15 pm
Location: Europe

root and X session [solved]

Unread post by mt12345 » Wed Oct 19, 2016 2:30 pm

Er... how to disable X session autostart when logging as root?
(I run SWIKEE and BREAK but this is edition-independent question).

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: root and X session

Unread post by machinebacon » Wed Oct 19, 2016 2:46 pm

Do you say you log in as "root" and it automatically logs in to X? Check the /root/.bash_profile file, you can comment the line that says "startx" (if it's there)
..gnutella..

User avatar
mt12345
Saltimbocca-Roller
Posts: 15
Joined: Sun Jun 19, 2016 2:15 pm
Location: Europe

Re: root and X session

Unread post by mt12345 » Wed Oct 19, 2016 4:45 pm

It's not there

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: root and X session

Unread post by machinebacon » Wed Oct 19, 2016 5:08 pm

switch to TTY2 and log in as root?
..gnutella..

User avatar
mt12345
Saltimbocca-Roller
Posts: 15
Joined: Sun Jun 19, 2016 2:15 pm
Location: Europe

Re: root and X session

Unread post by mt12345 » Wed Oct 19, 2016 7:16 pm

Solved.

I found 'startx' in
/etc/profile.d/zz-live-config_xinit.sh
so I removed the file and added 'exec startx' to user's .bash_profile

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: root and X session

Unread post by machinebacon » Thu Oct 20, 2016 3:59 am

^ this file is added automatically by https://packages.debian.org/sid/live-config. Every new upgrade of live-config creates it again. I recommend removing live-config and live-boot if you don't plan to remaster your installation.

you're welcome.
..gnutella..

Post Reply