LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-23-2012, 04:47 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
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?
 
Old 08-23-2012, 04:53 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
I did find something that works, sort of.

Edit my users' ~/.xinitrc like this:

Code:
exec startxfce4
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.
 
Old 08-23-2012, 04:53 AM   #3
Konchdrone
LQ Newbie
 
Registered: Jun 2011
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
Hello,

Have you tried running xwmconfig again? I had to do that when I used slim and it solved the problem.
 
Old 08-23-2012, 05:15 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by Konchdrone View Post
Hello,

Have you tried running xwmconfig again? I had to do that when I used slim and it solved the problem.
No, won't do. But I sense it's time to finally do some RTFM about the innards of SLiM.
 
Old 08-23-2012, 06:20 AM   #5
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Rep: Reputation: 8
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.
 
Old 08-23-2012, 07:05 AM   #6
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
Quote:
Originally Posted by kikinovak View Post
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:

Code:
# Slackware -current (14RC2)
# prepare environment - Xresources, Xmodmap, ...
# [...]

########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
  exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
 
Old 08-23-2012, 07:24 AM   #7
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
Quote:
Originally Posted by diwljina View Post
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).
 
Old 08-23-2012, 10:05 AM   #8
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
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".
 
Old 08-23-2012, 10:15 AM   #9
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Rep: Reputation: 64
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..
 
Old 08-23-2012, 11:32 AM   #10
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by clifford227 View Post
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.
 
Old 08-23-2012, 12:44 PM   #11
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
And since we just initiated the Slackware Documentation Project, I just published a more detailed explanation there.

http://docs.slackware.com/howtos:slim

Enjoy.

Last edited by kikinovak; 08-24-2012 at 02:47 AM.
 
2 members found this post helpful.
Old 10-02-2012, 12:31 PM   #12
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
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:
Code:
zcat mandir.fix.patch.gz 
*** ./CMakeLists.txt.orig    2012-09-29 07:43:20.287147436 +0400
--- ./CMakeLists.txt    2012-09-29 07:43:09.370146787 +0400
***************
*** 24,30 ****
  set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
  set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/share/slim")
  set(SYSCONFDIR "/etc")
! set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man")
  
  set(SLIM_DEFINITIONS)
  if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
--- 24,30 ----
  set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE PATH "Installation Directory")
  set(PKGDATADIR "${CMAKE_INSTALL_PREFIX}/share/slim")
  set(SYSCONFDIR "/etc")
! set(MANDIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation Directory")
  
  set(SLIM_DEFINITIONS)
  if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR
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:
Code:
cmake \
  -DCFLAGS="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
  -DUSE_PAM=${USE_PAM} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=$ARCH-slackware-linux \
  -DMANDIR:PATH=/usr/man

Last edited by yars; 10-02-2012 at 12:44 PM.
 
  


Reply

Tags
login, slim, xfce


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Login as Root when Slim is the Display Manager? LaneLester MEPIS 9 05-23-2022 12:09 PM
[SOLVED] Debian testing: SLiM Login manager has many unneeded sessions available ratman1 Linux - Newbie 2 05-03-2012 04:05 AM
[SOLVED] Slim login manager in -Current piratesmack Slackware 9 03-04-2010 06:31 PM
slim login manager > user can't CQ1ST Linux - Desktop 0 05-15-2008 05:05 PM
slim login problem - anyone succeed in configuring slim? rkrishna Slackware 20 02-18-2008 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration