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
b1o
IT and IS Guru-Berserk
Posts: 198
Joined: 15 Mar 2010, 03:16

Re: gdm2setup in Arch isn't working

Postby b1o » 04 Nov 2010, 18:15

Follow my instructions on the .xinitrc you still need that config even though you use the runlevel method
CPU: i7 950 3.1 ghz |RAM: 12 GB DDR3 |Graphics: Nvidia Geforce gtx 280 |motherboard: Rampage II Extreme |OS: Arch + windows7

Just remember, there is no such thing as a stupid question, until you ask it

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

Re: gdm2setup in Arch isn't working

Postby viking60 » 04 Nov 2010, 18:16

okydoky Hang on...
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
b1o
IT and IS Guru-Berserk
Posts: 198
Joined: 15 Mar 2010, 03:16

Re: gdm2setup in Arch isn't working

Postby b1o » 04 Nov 2010, 18:19

After all SLiM uses the startX command which runs the .xinitrc script, and if you don't tell it to start gnome then of course nothing will happen
CPU: i7 950 3.1 ghz |RAM: 12 GB DDR3 |Graphics: Nvidia Geforce gtx 280 |motherboard: Rampage II Extreme |OS: Arch + windows7

Just remember, there is no such thing as a stupid question, until you ask it

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

Re: gdm2setup in Arch isn't working

Postby viking60 » 04 Nov 2010, 18:23

Yup short stroke there on my part :) Even the auto login works! That never worked in gdm! But it should be started in innitab I am going to stay stubborn on that one.
Edit but how do I switch to KDE now?
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
b1o
IT and IS Guru-Berserk
Posts: 198
Joined: 15 Mar 2010, 03:16

Re: gdm2setup in Arch isn't working

Postby b1o » 04 Nov 2010, 18:26

Slim is better then gdm, alternatives to slim is KDM and Quingy. GDM is slow and doesn't support theme changing anymore + I never found one config file for GDM, everything has to be handled graphicly
CPU: i7 950 3.1 ghz |RAM: 12 GB DDR3 |Graphics: Nvidia Geforce gtx 280 |motherboard: Rampage II Extreme |OS: Arch + windows7

Just remember, there is no such thing as a stupid question, until you ask it

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

Re: gdm2setup in Arch isn't working

Postby viking60 » 04 Nov 2010, 18:27

Yes but when loging out there is no option to pick KDE?
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
b1o
IT and IS Guru-Berserk
Posts: 198
Joined: 15 Mar 2010, 03:16

Re: gdm2setup in Arch isn't working

Postby b1o » 04 Nov 2010, 18:30

yes there is but it has to be configured.

https://wiki.archlinux.org/index.php/Slim#Multiple_environments

Tell me how it goes, i don't have two environments so i never tested
CPU: i7 950 3.1 ghz |RAM: 12 GB DDR3 |Graphics: Nvidia Geforce gtx 280 |motherboard: Rampage II Extreme |OS: Arch + windows7

Just remember, there is no such thing as a stupid question, until you ask it

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

HowTo set up slim!

Postby viking60 » 04 Nov 2010, 19:20

Ok here we go:
Replace your .xinitrc with this one:

Code: Select all

DEFAULT_SESSION="ck-launch-session gnome-session"

case $1 in

gnome)
        exec ck-launch-session gnome-session
        ;;

kde)
        exec startkde
        ;;
xfce4)
        exec startxfce4
        ;;
icewm)
        icewmbg &
        icewmtray &
        exec icewm
        ;;
wmaker)
        exec wmaker
        ;;
blackbox)
        exec blackbox
        ;;
*)
        exec $DEFAULT_SESSION
        ;;
esac


The other systems that are not installed will just log you into the default environment, so they can stay.

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.
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: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Replacing gdm with slim (Arch)

Postby dedanna1029 » 04 Nov 2010, 19:48

How configurable is the login manager for slim?
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

Replacing gdm with slim

Postby viking60 » 04 Nov 2010, 19:57

If you mean "looks and feel" there are some nice templates in /usr/share/slim/themes (if you have installed them). Find the one you like and put it (the name) in current_theme in /etc/slim.conf
I Like lake. Regarding choice of environment you have to do it as I posted above. Seems like it fubars auto-login though. I am having a look at that right now...
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
b1o
IT and IS Guru-Berserk
Posts: 198
Joined: 15 Mar 2010, 03:16

Re: gdm2setup in Arch isn't working

Postby b1o » 05 Nov 2010, 00:00

The config file to Viking60 should now work with autologin with multiple desktop environments
CPU: i7 950 3.1 ghz |RAM: 12 GB DDR3 |Graphics: Nvidia Geforce gtx 280 |motherboard: Rampage II Extreme |OS: Arch + windows7

Just remember, there is no such thing as a stupid question, until you ask it

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

Re: gdm2setup in Arch isn't working

Postby viking60 » 05 Nov 2010, 00:01

:B Yes I got it (Edited the description above) Now everything works. And it is Highly configurable. There are a zillion possibilities in /etc/slim.conf!
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!"


Return to “Tips & Tricks”