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

Replacing gdm with slim (Arch)

Postby b1o » 03 Nov 2010, 17:19

You might want to uninstall GDM and use SLIM (Simple Login Manager) instead. Easier to configure than GDM and it's more lightweight.

Instructions are on the arch Wiki:
https://wiki.archlinux.org/index.php/SLiM
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
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re:Replacing gdm with slim

Postby dedanna1029 » 04 Nov 2010, 01:51

Yeah, I've done that, just haven't figured out how to switch from gdm to it.
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

Postby viking60 » 04 Nov 2010, 16:24

b1o will write a tip I am sure.
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: Replacing gdm with slim

Postby b1o » 04 Nov 2010, 17:24

Well you install slim from pacman. then you remove gdm from rc.conf daemon list and replace it with slim.

Example Daemon list in rc.conf:

Code: Select all

DAEMONS=(syslog-ng @network @netfs @crond @acpid @hal @smbnetfs @samba @networkmanager slim)


This will start slim on startup. Now to get gnome to start when you login you need to edit the .xinitrc in the home folders of the users you might have.

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


This should be enough to get slim up and running.
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: Replacing gdm with slim

Postby viking60 » 04 Nov 2010, 17:34

Well that is not going to help her. Nobody in their right mind starts gdm as a daemon in rc.conf, it is started in /etc/inittab so I guess she must comment out:

Code: Select all

x:5:respawn:/usr/sbin/gdm -nodaemon
in inittab.
And add/uncomment this line:

Code: Select all

x:5:respawn:/usr/bin/slim >& /dev/null
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: Replacing gdm with slim

Postby b1o » 04 Nov 2010, 17:41

Why is it better to start it from inittab?
Does it start faster or is it just the benefit of being started up again when the X server crashes?
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
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: Replacing gdm with slim

Postby dedanna1029 » 04 Nov 2010, 17:43

Ah, I got it from what you've posted b1o - thanks so much. Have no clue why I didn't think of it, but then the brain's been on other things lately.

Thanks again. :)
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

Postby viking60 » 04 Nov 2010, 17:46

b1o wrote:Why is it better to start it from inittab?
Does it start faster or is it just the benefit of being started up again when the X server crashes?

Yes it starts faster and It respawns in the event of a crash. And it is more stable IMO.
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

Replacing gdm with slim

Postby b1o » 04 Nov 2010, 17:49

No problem. if you want to change the themes you should packman the slim-themes or the archlinux-themes-slim packages. these contain some good arch linux themes, and if you want to change the background you can just edit the background image in the theme folder. The themes should be located in /usr/share/slim/themes, and you edit which one to use in the /etc/slim.conf file
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:10

Hm that thing is refusing to log me in :f
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:12

That thing? are you sure you edited the .xinitrc in your home folder?
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:13

I am sure I did not! I used the inittab method. I get the nice looking login screen but it just refuses to accept the data.
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”