SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-01-17 15:42:52

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,291

Slim configuration for #! November 2011

Episode 1: The login loop after fresh install

Example: http://crunchbanglinux.org/forums/post/177333/#p177333

Experienced users will create $HOME/.xsession or $HOME/..xinitrc, but this is not meant for linux gurus.

Solution:
enter "console" in the username field
this will start a login xterm
enter your user name and password
then run the command:

sudo update-alternatives --config x-session-manager

You will be presented with a menu with 3 options
select option 2: openbox-session
close the xterm window (enter exit ot Ctrl+D)
enter your username and password
you will be logged in

explanation:
without an $HOME/.xsession or $HOME/.xinitrc, slim starts the xserver with this command:
   ++ exec /usr/bin/ssh-agent /usr/bin/ck-launch-session /usr/bin/dbus-launch \
      --exit-with-session x-session-manager
   and x-session-manager defaults to lxsession via alternatives
   lxsession terminates immediately without (apparently) doing anything (such is the nature of lxsession )
   the session is terminated (--exit-with-session option)
   you are dropped to console for a moment, then
   slim shows login panel again to start a new session
   and we are back at the beginning of the loop.

This is not a slim problem: it is a configuration problem.

Watch out for the next episode: I prefer WM such or such over openbox - how do I do that with slim ?

Coming shortly ...

Last edited by xaos52 (2012-01-17 15:46:25)

Offline

Be excellent to each other!

#2 2012-01-17 17:23:13

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,721
Website

Re: Slim configuration for #! November 2011

Very nice work xaos52 - looking forward to more on this.


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#3 2012-01-18 02:18:20

rippin
#! Member
Registered: 2010-01-26
Posts: 59

Re: Slim configuration for #! November 2011

I am so please you found that Slim fix ... beat my forehead bloody over it last night!


rippin

Offline

#4 2012-01-18 13:52:38

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,291

Re: Slim configuration for #! November 2011

Episode 2: testing window manager such-and-such

So, you want to test a new window-manager, and be able to return to your old window manager when you do not like it.

You have seen this post http://crunchbanglinux.org/forums/post/117831/#p117831 by bigbenaugust and you want to see for yourself what it all looks like...

Start with installing the window-manager

sudo apt-get install jwm

You have slim running as your login manager. We will add the possibility to see JWM at work:

We will be editing /etc/slim.conf as root:

sudo geany /etc/slim.conf

Find the line that starts with "sessions":
It probably looks like this:

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            openbox-session

Just append the new window-manager to the end of that line, so it looks like this:

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            openbox-session,jwm

Save your modifications.

Log out of your current session:

Win+x

Click on 'Logout'.
You are presented with a new login screen

Pressing  F1 multiple times will cycle through your configured window managers.

When JWM is selected, enter your user name and password, and ... tadaaaa

So far I have done this with icewm, jwm and... scrotwm

Yes, scrotwm ! No longer the privilege of guru's, though I would recommend reading up on its configuration before embarking on that one.
In scrotwm, to start a program: press Alt+p and type the name of the program, e.g. terminator to start a terminal window.
To quit from scrotwm, use the key combo Alt + Shift + q
Hurry all over the scrotwm thread http://crunchbanglinux.org/forums/post/102580/#p102580 and join the fun smile

Next episode: I have made up my mind. I want window manager this-or-that as my default window-manager, so I can forget about pressing F1 every time I log in.

Coming to you shortly...

Last edited by xaos52 (2012-01-18 13:54:40)

Offline

#5 2012-01-25 09:04:14

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,291

Re: Slim configuration for #! November 2011

Episode 3: Making scrotwm your default window manager

I do not know about you but I got really tired about having to press F1 every time I wanted to start X using scrotwm as my preferred window manager.

Well it is easily remedied using the following commands

sudo update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/scrotwm 50

sudo update-alternatives --config x-session-manager

The last command will give you a list of installed session/window managers.
The one you added should be the last in line.
Just enter the number corresponding to your preferred session/window manager

You can verify that it is now the default with

sudo update-alternatives --query x-session-manager

That is all there is to it.

Next time you start The X server using slim, no need to select scrotwm with F1. Just enter your user name and password, and you are dropped into the comforting arms of your preferred window manager[ess].

Of course you can use it for any window manager: just replace /usr/bin/scrotwm with the path to your preferred window-manager in above command.

PS: I know you can do this with creating a custom $HOME/.xsession or $HOME/.xinitrc, but I find this more elegant.

Next episode: Logout, shutdown or reboot from the login window.

Last edited by xaos52 (2012-01-25 09:05:42)

Offline

#6 2012-01-25 11:48:26

dkeg
#! Die Hard
From: PA
Registered: 2011-12-05
Posts: 565

Re: Slim configuration for #! November 2011

wow, great stuff xaos52.  Thank you!  Haven't tried it yet, but next thing to experiment with will be this. Subscribing....


the rocky path may just be the best path  | community  |  linuxbbq | dotshare

Offline

#7 2012-01-25 12:21:34

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 2,643

Re: Slim configuration for #! November 2011

@xaos
I don't use SLiM, but will keep this thread in mind if/when I do feel the need to try it.
I like your writing style, btw.

Cheers. smile


Point & Squirt

Offline

#8 2012-01-25 12:44:25

vicshrike
#! by Default
From: thendoftheweb
Registered: 2009-02-13
Posts: 2,430

Re: Slim configuration for #! November 2011

Great how to xaos52, looking forward to the next episode.


#!, all else is but a shadow!

May the Kernel be with you!

Offline

#9 2012-01-27 03:10:49

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Slim configuration for #! November 2011

Awesome how-to, thanks.

xaos52 wrote:

Next episode: Logout, shutdown or reboot from the login window.

Eagerly awaiting this next episode smile


Be eggsalad to each other.

Offline

#10 2012-01-28 14:12:38

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,291

Re: Slim configuration for #! November 2011

Intermezzo: a duet brought to you by slim and Xfce.

Installing Xfce and configuring it to work under slim is quite easy.
By popular request - 2 votes ! - here is the how to:

□ Install the packages xfce4 and xfce4-goodies, if you have not done so already.

sudo apt-get install xfce4 xfce4-goodies

This will automatically add - in the postinst step - an alternative xfce4 session manager for x-session-manager.

□ All that is left to do is activate that session manager:

sudo update-alternatives --config x-session-manager

You will be presented a menu of possible session managers.
Select the number that corresponds with xfce4-session-manager,
Press enter

Restart your system (this is not really necessary, but perhaps for now it is the easiest way - watch out for the next episode in this tutorial for how to log out from your slim session)

Do not use F1 to select your session. You want the default session.

Just fill in user name and password and you will be dropped in Xfce.

That is all, folks, a one-step solution to make Xfce your default session manager.

□ If you want to be able to select the session, first update /etc/slim.conf - like explained in episode 2: http://crunchbanglinux.org/forums/post/180522/#p180522. Add

xfce4-session

to the list of session/window managers. The order in which you specify them is the order in which they will show when you cycle through them using function key F1.

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            openbox-session,xfce4-session,jwm,scrotwm

Save the file, reboot and try it out by pressing F1 repeatedly before filling in your user name and password.

Look out for the next - final? - episode of this quest for slim wisdom.

Have fun with #!

Last edited by xaos52 (2012-01-28 14:16:48)

Offline

#11 2012-01-28 14:51:37

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: Slim configuration for #! November 2011

^ awesome. seen enough people asking for this stuff to be aware or its usefulness. great work on the how-to overall.

Offline

#12 2012-01-28 15:13:31

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,291

Re: Slim configuration for #! November 2011

Thank you, rhowaldt smile

Offline

#13 2012-01-28 15:44:24

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Slim configuration for #! November 2011

Thank you xaos, this will be very handy.


Be eggsalad to each other.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo