You are not logged in.

#1 2013-08-30 17:55:10

Novicode
Member
Registered: 2013-06-24
Posts: 15

Need help installing LXDE

I've installed LXDE with the following commands:

pacman -S lxde
mkdir -p ~/.config/openbox
cp /etc/xdg/openbox/{menu.xml,rc.xml,autostart} ~/.config/openbox
pacman -S gamin

But when I go to start the desktop with "exec startlxde", it logs me out of root so I need to log in again. Why is it doing this?

Offline

#2 2013-08-30 18:24:46

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: Need help installing LXDE

Novicode wrote:

But when I go to start the desktop with "exec startlxde", it logs me out of root so I need to log in again. Why is it doing this?

Firstly, did you follow: https://wiki.archlinux.org/index.php/LXDE

and second did you tried as a non-root user because sometimes it is not possible to run DE's as root " search for it " .

Last edited by arcon (2013-08-30 18:25:05)


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#3 2013-08-30 21:08:20

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: Need help installing LXDE

Ok - step by step: where have you placed "exec startlxde"? Do you start X session by startx command? Try to install lxdm (pacman -S lxdm) and start it from console (root)# systemctl start lxdm.service. If it starts fine you should login to LXDE session. If you would like to have it enabled for each system start as default login manager just (root)# systemctl enable lxdm.service


Lenovo G50 | LXQT-git | compton | conky

Offline

#4 2013-08-30 21:19:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Need help installing LXDE

Novicode wrote:

"exec startlxde", it logs me out of root so I need to log in again. Why is it doing this?

While the "don't run X as root" warning has been alluded to, it is worth repeating and stating it more directly: don't run X as root.

But for this specific question, it did what you told it to do - that's what the exec command does, it replaces the current process with the new one.  If the current process is your login shell, then your login shell will be replaced by startlxde.  When startlxde completes - successfully or not - you will need to log back in.  If you don't want this, then don't use the exec command.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-08-31 17:56:45

Novicode
Member
Registered: 2013-06-24
Posts: 15

Re: Need help installing LXDE

nbvcxz wrote:

Ok - step by step: where have you placed "exec startlxde"? Do you start X session by startx command? Try to install lxdm (pacman -S lxdm) and start it from console (root)# systemctl start lxdm.service. If it starts fine you should login to LXDE session. If you would like to have it enabled for each system start as default login manager just (root)# systemctl enable lxdm.service

I've installed lxdm and gamin using pacman. When I try "systemctl start lxdm.service" it just creates a new line. Nothing gets returned, nothing happens.

Offline

#6 2013-09-01 09:35:25

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: Need help installing LXDE

Novicode wrote:

I've installed lxdm and gamin using pacman. When I try "systemctl start lxdm.service" it just creates a new line. Nothing gets returned, nothing happens.

/var/log/lxdm.log would be the first place to search some clues. Besides you can start from root console /usr/bin/lxdm and see the output. And one more - please assure that you are switched to vt7 (press ATL+F7)


Lenovo G50 | LXQT-git | compton | conky

Offline

#7 2013-09-02 08:50:41

statki_pomyj
Member
From: Poland
Registered: 2013-08-25
Posts: 16

Re: Need help installing LXDE

I've had no problems with LXDE so far, so let's see if you followed my route.

1. After installing the base system, create a user with all required groups, including wheel.
2. Reboot and log into your new user.
3. sudo pacman -S lxde (choose whichever packages you want)
4. sudo systemctl enable lxdm
5. Reboot, and lxdm should start - type in your password and boom, you're in lxsession.
6. Put this in /etc/lxdm/PostLogout to prevent lxdm from crashing when you log out:

if [ ! -z "$(pgrep lxdm)" ]
	then
		systemctl restart lxdm
fi

Offline

#8 2013-09-02 09:26:04

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: Need help installing LXDE

@ statki_pomyj - point 6. should be definitely in Arch Wiki LXDE as it is common problem with lxdm - thx for solution
@ Novicode - let us know if lxdm works fine (and mark subject as [SOLVED]) or if not - paste /var/log/lxdm.log or console messages


Lenovo G50 | LXQT-git | compton | conky

Offline

Board footer

Powered by FluxBB