LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-04-2010, 04:05 PM   #1
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 517

Rep: Reputation: 132Reputation: 132
Slim login manager in -Current


I had Slim working with the latest -Current updates, but that was with a package I built before updating.

I borked my system yesterday and had to do a fresh install. Now I can't get Slim working.

I tried running the Slim SlackBuild from Slackbuilds.org, and it failed without giving any errors. I figured out that the problem was with this section:
Code:
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null
)
The strip commands were failing and caused the SlackBuild to exit, so I added '|| true' to them.
Code:
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
    xargs strip --strip-unneeded 2> /dev/null || true
)
Not sure why this is needed in -Current and not 13, maybe because of Bash 4.1?

Anyway, now the package builds successfully, but Slim won't start.
My system just hangs at a black screen after 'Starting up X11 session manager...'

Has anybody been able to get Slim working in -Current?

Last edited by piratesmack; 03-04-2010 at 06:21 PM.
 
Old 03-04-2010, 04:13 PM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
MMmmmm

I been having issues with my Slim stuff too

I got Slim from SBOpkg as you did
it boinked at startup and I had to get sysvinit-scripts from SalixOS (thanks gapan)
which adds a place for slim before gdm,etc in /etc/rc.d/rc.4

heres my rc.4

Code:
#! /bin/sh
#
# rc.4		This file is executed by init(8) when the system is being
#		initialized for run level 4 (XDM)
#
# Version:	@(#)/etc/rc.d/rc.4	2.00	02/17/93
#
# Author:	Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by:  Patrick J. Volkerding <volkerdi@slackware.com>
#
# Modified for Salix by: George Vlahavas <vlahavas~at~gmail~dot~com>

# Tell the viewers what's going to happen (in red)...
echo -e "\033[01;31mStarting up X11 session manager...\033[00m"

# Try slim first
if [ -x /usr/bin/slim ]; then
  exec /usr/bin/slim
fi

# Then try gdm
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi

# Someone thought that gdm looked prettier in /usr/sbin,
# so look there, too:
if [ -x /usr/sbin/gdm ]; then
  exec /usr/sbin/gdm -nodaemon
fi

# Not there?  OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
  exec /opt/kde/bin/kdm -nodaemon
elif [ -x /usr/bin/kdm ]; then
  exec /usr/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/bin/xdm ]; then
  exec /usr/bin/xdm -nodaemon
elif [ -x /usr/X11R6/bin/xdm ]; then
  exec /usr/X11R6/bin/xdm -nodaemon
fi

# error
echo
echo "Hey, you don't have GDM, slim, KDM or XDM installed.  Can't use runlevel 4"
echo "without one of those installed."
sleep 30

# All done.
mmm..and I think that solved it.

see here too
http://www.linuxquestions.org/questi...07#post3852707
 
Old 03-04-2010, 04:42 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 517

Original Poster
Rep: Reputation: 132Reputation: 132
Thanks for the quick response.

So you have Slim working on the latest Slackware-Current with a package you built on the latest Current?

Because I already added something similar to my rc.4 and Slim fails to start. (black screen)

EDIT:

I see some libpng errors in /var/log/slim.log
I'll try rebuilding slim against libpng 1.4.0 and see if it fixes the problem.

Last edited by piratesmack; 03-04-2010 at 04:57 PM.
 
Old 03-04-2010, 05:02 PM   #4
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Yes definitely upgrade libpng. I don't use -current but I know libpng was recently fixed.
 
Old 03-04-2010, 05:04 PM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Piratesmack

yes, I have Slim in Absolute-Live
http://linux.softpedia.com/get/Syste...SB-55041.shtml

and also in almost all my *buntu/debian/slack installs

the auto login as root or user is feature not found elseware
 
Old 03-04-2010, 05:32 PM   #6
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 517

Original Poster
Rep: Reputation: 132Reputation: 132
Compiling against libpng 1.4.0 didn't help.
Attached is my Slim.log
Attached Files
File Type: txt slim.log.txt (2.6 KB, 10 views)
 
Old 03-04-2010, 06:20 PM   #7
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 517

Original Poster
Rep: Reputation: 132Reputation: 132
Not sure if this was a good idea, but I patched the Makefile to use /usr/include/libpng14 instead of /usr/include/libpng12 and now it works!

I just added "sed -i 's/png12/png14/g' Makefile" to the SlackBuild
 
Old 03-04-2010, 06:20 PM   #8
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 87
Well, first of all, SlackBuilds are only tested on the stable version of Slackware, like 13.0, not on the -current version.
If you run -current, you are supposed to be able to change source code, mess around with bash scripts, etc.

But, I have SLiM running on -current, after applying the following patch to the png.c file that is included in the source:
Code:
--- slim-1.3.1_orig/png.c	2008-09-25 21:54:15.000000000 -0300
+++ slim-1.3.1/png.c	2010-03-04 21:05:17.894619498 -0300
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <png.h>
+#include <libpng12/png.h>
 
 int
 read_png(const char *filename, int *width, int *height, unsigned char **rgb,
No guarantees here, apply this at your own risk
 
Old 03-04-2010, 06:23 PM   #9
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 87
@piratesmack: We posted at the sabe time

Your patch uses the newer libpng, my patch uses the older header file.
Both ways it should work I guess.

I preferred to point at the older libpng, as SLiM was working with the older lib previously, so less chance of surprises!
 
Old 03-04-2010, 06:31 PM   #10
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 517

Original Poster
Rep: Reputation: 132Reputation: 132
Thanks for the patch, niels.horn.
Glad to have this working.
 
  


Reply

Tags
current, hangs, login, manager, slackware, slim


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Login as Root when Slim is the Display Manager? LaneLester MEPIS 5 02-24-2010 04:57 PM
slim login manager > user can't CQ1ST Linux - Desktop 0 05-15-2008 05:05 PM
How Do I Add ROX To Slim Log In Manager? Mark7 Linux - General 7 03-26-2008 09:19 PM
slim login problem - anyone succeed in configuring slim? rkrishna Slackware 20 02-18-2008 06:50 AM
Change/add window manager to login manager kunalagon Debian 3 06-04-2006 03:33 AM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration