[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Don't want a desktop environment



Le 21.09.2013 21:41, Fred a écrit :
but I understand I need to do more than that. Seems like I need some
display manager also?

I did try to do

aptitude install slim

which installs, but it's not like it magically autostarts when I boot
the system.

What I need is to config slim to autostart, which will run i3 upon
login?

Or do I need to set up the X server to autostart?

Thanks for any help!

You do not need to install any manager ( gdm, slim, kdm... ) to start an X session: simply install xinit ( if it is still not here, I think it is required by session managers? ) and start your X session with "startx".

Doing it by hand everytime is quite boring, of course, so you can add those lines to your ~/.bash_profile (create the file if it does not exists) :
###########
if [ -z "$DISPLAY" ] && [ `tty` == /dev/tty1 ]
then
	startx
fi
###########
If you need a hint about what is the -z, take a look at "man test", since in bash "[ something ]" means "test something".

Since you are searching for the lightest solution, I think this is what you want. Of course, it means your login will not be a shiny graphical one, but if you really intend to use i3 (which I am using, it is really a nice wm) you probably do not aim at shiny stuff.


Reply to: