Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-04-2010, 04:05 PM
|
#1
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Rep: 
|
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.
|
|
|
03-04-2010, 04:13 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
|
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
|
|
|
03-04-2010, 04:42 PM
|
#3
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Original Poster
Rep: 
|
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.
|
|
|
03-04-2010, 05:02 PM
|
#4
|
Member
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161
Rep:
|
Yes definitely upgrade libpng. I don't use -current but I know libpng was recently fixed.
|
|
|
03-04-2010, 05:04 PM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
|
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
|
|
|
03-04-2010, 05:32 PM
|
#6
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Original Poster
Rep: 
|
Compiling against libpng 1.4.0 didn't help.
Attached is my Slim.log
|
|
|
03-04-2010, 06:20 PM
|
#7
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Original Poster
Rep: 
|
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
|
|
|
03-04-2010, 06:20 PM
|
#8
|
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004
Rep:
|
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 
|
|
|
03-04-2010, 06:23 PM
|
#9
|
Senior Member
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004
Rep:
|
@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!
|
|
|
03-04-2010, 06:31 PM
|
#10
|
Member
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519
Original Poster
Rep: 
|
Thanks for the patch, niels.horn.
Glad to have this working.
|
|
|
All times are GMT -5. The time now is 03:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|