LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2018, 12:36 PM   #1
k.king
Member
 
Registered: Oct 2005
Posts: 93

Rep: Reputation: 16
Debian 9 change default UI from built in Gnome to LXDE


sometime back I set a unit to not boot into GUI by issuing cmd
systemctl set-default multi-user.target
And I want to keep this, but occasionally I do want to use a GUI and do so by cmd startx.
But I struggle with the built in Gnome and would prefer to use LXDE.
I've installed the LXDE via apt, but I haven't found how to make it the default GUI, so that when I startx it starts LXDE.
Any pointers?
K.
 
Old 08-07-2018, 12:10 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,808
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
I would expect
Code:
man update-alternatives
and /usr/share/xsessions/x-window-manager to provide the solution.
Code:
update-alternatives -get-selections
is probably showing /usr/bin/gnome currently, and needs a switch to /usr/bin/lxde. Here it shows
Code:
x-window-manager auto /opt/trinity/bin/twin
 
Old 08-07-2018, 01:37 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
https://wiki.debian.org/xinit?highlight=%28startx%29
 
Old 08-08-2018, 03:06 AM   #4
k.king
Member
 
Registered: Oct 2005
Posts: 93

Original Poster
Rep: Reputation: 16
in Debian 9 Stretch there is no /usr/share/xsessions/x-window-manager

/usr/share/xsessions only has .desktop files for gnome-classix, gnome, lightdm, LXDE and openbox

in Debian 9 Stretch the following
update-alternatives -get-selections
needs to be
update-alternatives --get-selections

it shows
x-session-manager auto /usr/bin/gnome-session
x-window-manager auto /usr/bin/openbox

- - -

separately I found /usr/bin/startlxde
but it responds

** Message:main.vala:102: session is LXDE
** Message:main.vala:103: DE is LXDE

(lxsession:6041): Gtk-WARNING ** cannot open display
 
Old 12-14-2018, 10:14 AM   #5
cesarbergara
Member
 
Registered: Feb 2012
Location: Buenos Aires, Argentina
Distribution: Debian, Suse, Mandrake,
Posts: 92

Rep: Reputation: Disabled
Hi. ¿Have you tried gdm3 o gdmflexiserve? It start gdm (xserver manager) and then you can select your window manager.
Have a nice day.
 
Old 12-15-2018, 04:33 PM   #6
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
And I want to keep this, but occasionally I do want to use a GUI and do so by cmd startx.
As root:
Code:
systemctl disable gdm
But I struggle with the built in Gnome and would prefer to use LXDE.

Now, when you reboot, no display manager is running

Code:
systemctl enable gdm
to re-enable it.

Create a file in $HOME, .xinitrc

Code:
exec startlxde
This will run LXDE every time you issue the startx command.

Alternatively, if you want to switch for one session only:
Code:
$ startx /usr/bin/startlxde
replace startlxde with the session you wish to use for that session. IIRC it mus be a fulll, absolute path.
 
1 members found this post helpful.
  


Reply



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
Change default user to use sudo on Gnome [debian] dx486 Linux - Newbie 1 11-25-2017 05:23 AM
How can I change from the default gnome to KDE, please!? polemos Red Hat 1 09-04-2015 05:03 PM
[SOLVED] Debian 7 lxde installed; how to install GNOME? (issue) floppy_stuttgart Debian 3 02-28-2015 09:02 AM
[SOLVED] Unable to change a LXDE desktop settings on Debian Wheezy xcanox Linux - Desktop 4 05-13-2014 04:50 AM
[SOLVED] Changing default session in XFCE (to Gnome or LXDE) SkyerSK Linux - Newbie 6 04-21-2011 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 PM.

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
Open Source Consulting | Domain Registration