[SOLVED] SBo's SLiM login manager vs. Xfce (Slackware 14.0)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SBo's SLiM login manager vs. Xfce (Slackware 14.0)
Hi,
On one of my machines, I have Slackware 14.0RC2 with Xfce. Until now, I've always more or less used GDM as login manager, but I want to try something new (following a general "the-less-GNOME-the-better" idea).
I added the according stanza in /etc/rc.d/rc.4 to start SLiM, switched manually to init4 and got the SLiM connection window OK.
But when I try to login with my user, I only get a brief "Failed to execute login command", and then there's the SLiM window again.
So what's the thing to do after a stock SLiM installation?
After this, login works OK. Don't know if this is quite orthodox. I reckon all I have to do from here is put this .xinitrc file in /etc/skel for all future users to be able to login.
Correct me if I'm wrong... or if this seems too unorthodox.
I haven't tried Slim on SW 14, but I think shutdown and restart wont work with XFCE. Something about new PolicyKit. But please do let us know how that went.
After this, login works OK. Don't know if this is quite orthodox. I reckon all I have to do from here is put this .xinitrc file in /etc/skel for all future users to be able to login.
Correct me if I'm wrong... or if this seems too unorthodox.
SLiM simply execute .xinitrc, so you have to configure it somehow. You can put it in /etc/skel or tell every future user to run xwmconfig. I prefer xwmconfig, because it sets everything automatically.
'exec startxfce' seems to work (as you stated), but my auto-generated .xinitrc (by xwmconfig) looks like this:
I haven't tried Slim on SW 14, but I think shutdown and restart wont work with XFCE. Something about new PolicyKit. But please do let us know how that went.
I guess XFCE internally use D-Bus and ConsoleKit to reboot and shutdown (http://pifostap.org.ua/blog/2011/12/...down-dbus.html). In -current (few changelogs before 14.0 RC's) every window manager got updated .xinitrc so it now starts D-Bus (for DE-independent auto-mounting deamons).
OK, I did quite a lot of experimenting, and I got it right finally. I started from SBo's SlackBuild script and made a few - essentially cosmetic - alterations to it.
The trick here was to run 'xwmconfig' as simple user, of course. Which generated a nice ~/.xinitrc. Now everything works fine, logout and reboot buttons work with Xfce, and I have built a nice custom login splash for my "Microlinux Enterprise Desktop".
I tried Slim recently, but it seemed to take more time and effort to get through to the desktop.
Like most pretty things, there's usually a cost involved..
I'd compare it to the NVidia driver. When you don't know how to install it, you can spend a whole afternoon pulling your hair out. But when you know it, it's done in less than two minutes, and it's dead easy.
1) Install SBo's slim, as it comes. Use 'sbopkg' maybe.
2) Edit /etc/rc.d/rc.4 and add the stanza you can find in README.Slackware in SBo's build.
3) As a normal user, run 'xwmconfig' and choose your desktop environment (Xfce, WindowMaker, ...). This will create a ~/.xinitrc file that JustWorks(tm).
4) Eventually, set initdefault to 4 in /etc/inittab if you haven't already done that.
5) Enjoy.
SLiM is easily themable. There's an excellent HOWTO on the site.
Thanks to kikinovak, your thread and link in the post #11 is helpful to me.
I can add the a small patch, which changes location of the manpages from default /usr/share/man to /usr/man. Most of the Slackware packages have this. Thanks and sorry for my english.
The patch:
Though maybe I'm just not very good at programming, and you can do without this patch?
UPD: This is for SLiM version 1.3.4, and you want to change SlackBuild follow:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.