Replacing gdm with slim (Arch)

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: gdm2setup in Arch isn't working

Postby dedanna1029 » 05 Nov 2010, 09:07

Thanks!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Replacing gdm with slim

Postby dedanna1029 » 09 Jan 2011, 05:17

b1o wrote:Here is my .xinitrc:

Code: Select all

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manage
exec ck-launch-session gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

Question: Why do you have ck-launch-session before gnome-session, or at all? All that's needed is gnome-session? ck-launch-session is only recommended if there are problems with PolicyKit (which one should have disabled anyway... :mrgreen:)

Also, what happens if I don't uninstall gdm first, but just replace gdm with slim in the conf file?

Thanks.

Edit: Also found a way to preview themes. From here:
To preview a theme run while an instance of the Xorg server is running by:

Code: Select all

$ slim -p /usr/share/slim/themes/<theme name>


Sorry if I missed that before.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Replacing gdm with slim

Postby dedanna1029 » 09 Jan 2011, 13:36

dedanna1029 wrote:Question: Why do you have ck-launch-session before gnome-session, or at all? All that's needed is gnome-session? ck-launch-session is only recommended if there are problems with PolicyKit (which one should have disabled anyway... :mrgreen:)

**TIP**: No. What happens is slim actually gives you issues with policykit. **ck-launch-session is a must**

dedanna1029 wrote:Also, what happens if I don't uninstall gdm first, but just replace gdm with slim in the conf file?

Absolutely nothing. You still get slim, because you've chosen it in /etc/inittab. You can keep gdm, kdm, and whatever other login managers installed.

I got it now, and am using slim for my login manager now fully - I *was* using gdm, with a slim theme, but have it totally switched over now. Thanks, guys.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: HowTo set up slim!

Postby dedanna1029 » 20 May 2013, 02:55

viking60 wrote:You need to make some changes in /etc/slim.conf. Look for this section and change it so it looks like the one below:

Code: Select all

# 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            gnome,kde,xfce4,icewm,wmaker,blackbox

Basicaly I have added gnome and kde to the sessions list. The first one is your default environment.

Log out and press F1 to pick your environment and log in - that's it. It works.


Question: If one wants to add gnome classic, razorqt, and openbox to the sessions line, what do we add? What are the commands for them? I'm working on the Mageia DM wiki at https://wiki.mageia.org/en/Display_Mana ... y_Managers - they had some wrong things there for SLiM.

Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Replacing gdm with slim (Arch)

Postby viking60 » 21 May 2013, 00:09

openbox-session, razor-session and gnome-session should do it.
Gnome is started in the same way - it depends what version you have installed.
And yes that wiki is wrong: Slim does support the choice of multiple desktops if you set it up with multiple environments. You can toggle them with F1 on the login screen
Your ~/.xinitrc could contain something like this:

Code: Select all

DEFAULT_SESSION=openbox-session

case $1 in
kde)
   exec startkde
   ;;
gnome)
   exec gnome-session
   ;;
icewm)
   icewmbg &
   icewmtray &
   exec icewm
   ;;
e17)
   exec enlightenment_start
   ;;
razorqt)
   exec razor-session
   ;;
*)
   exec $DEFAULT_SESSION
   ;;

Remember to start the service with systemd.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Replacing gdm with slim (Arch)

Postby dedanna1029 » 21 May 2013, 02:39

Actually, in slim.conf, the line is (I did some hunting around since last post):

Code: Select all

# 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            GnomeClassic,GNOME,xfce4,IceWM,WindowMaker,Openbox,KDE4,LXDE,drak3d,awesome,enlightenment,icewm-session

I had a look at the other DMs, and got it figured out. I changed the wiki as well for Mageia.

So, now that I have all this working on Mageia 2, I think it's time to upgrade to 3.

Thanks, and later. :)
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Replacing gdm with slim (Arch)

Postby viking60 » 21 May 2013, 09:03

Well it is not here - in my slim.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Replacing gdm with slim (Arch)

Postby dedanna1029 » 27 May 2013, 05:21

The point being, that if you want to add Gnome fallback (Classic) to it, you can, among others. That's my edited slim.conf, and it works fine.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Tips & Tricks”