LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-23-2004, 03:07 PM   #1
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Rep: Reputation: 15
Automatically load up KDE login screen


Hi there, have finished my Slackware install, and would like to use the KDE desktop environment. When I boot up the pc, it ends up at the normal login screen, ie black background. In order to get into KDE, I have to type 'startx' which then takes me into the KDE environment. What I would like to do is have KDE automatically load up on startup, so that when I get to the login screen, it is the KDE login splash screen. Anyone know what files I need to edit to set this up?

Thanks
 
Old 05-23-2004, 03:16 PM   #2
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: Slackware 14
Posts: 87

Rep: Reputation: 15
Hello,

well, try the "search" button, and look for "initdefault slackware".

cu

hp_tux
 
Old 05-23-2004, 03:20 PM   #3
hack124x768
Member
 
Registered: Mar 2004
Location: everett
Distribution: slak
Posts: 61

Rep: Reputation: 15
inittab

What you have to dois change inittab's default runlevel to 4. its location is /etc/inittab heres what you want
Code:
# These are the default runlevels in Slackware:
#   0 = halt
#   1 = single user mode
#   2 = unused (but configured the same as runlevel 3)
#   3 = multiuser mode (default Slackware runlevel)
#   4 = X11 with KDM/GDM/XDM (session managers)
#   5 = unused (but configured the same as runlevel 3)
#   6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
 
Old 05-23-2004, 04:27 PM   #4
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks a lot. That has solved it. I didn't realise there are now about 9 different window managers I can choose from. I like Blackbox, if it actually worked properly. One last question, I use lilo to boot up linux, but I have Windows as well, so wanted to add it to the lilo menu. I added the lines:

other = /dev/hda1
label=Windows XP Pro

to the bottom of the lilo.conf and saved it. But Windows XP Pro still doesn't show up in the lilo startup? Do I need to execute a script or update something to get it to work?

Thanks
 
Old 05-23-2004, 04:31 PM   #5
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
You need to add:

other = /dev/hda1
label = WindowsXP
table = /dev/hda

to your lilo.conf and then rerun lilo as root.
 
Old 05-23-2004, 04:40 PM   #6
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks, got it working now. Lilo doesn't like any spaces in the label then? Never mind, have got Windows-XP-Pro instead

One last thing, I can't reboot or shutdown the computer anymore. If I logout of any of the window managers, it just takes me back to a graphical login screen, where all I can do is login again or change what session I want to use.
 
Old 05-23-2004, 04:53 PM   #7
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you can use the shutdown command, as root - "shutdown -h now". see manpage for flags and options

also iirc, KDM has a shutdown option - you can select to use KDM by commenting /etc/rc.d/rc.4, and set options for KDM in /opt/kde/share/config/kdm/kdmrc
 
Old 05-25-2004, 03:44 PM   #8
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for that. But still no luck.
How do I find out if I've got APM or ACPI installed, and if I have got them, how do i go about configuring them. I know my laptop can power off by itself because I had Gentoo and it worked in that. At the moment, it finishes on Power Down, and then I have to turn it off myself.

Thanks
 
Old 05-27-2004, 03:39 AM   #9
AxelFendersson
Member
 
Registered: Mar 2004
Location: Darkest Oxfordshire
Distribution: Arch, Slackware
Posts: 184

Rep: Reputation: 32
Quote:
Originally posted by annihilate

I know my laptop can power off by itself because I had Gentoo and it worked in that. At the moment, it finishes on Power Down, and then I have to turn it off myself.
Open /etc/rc.d/rc.modules in an editor, and look for this bit:

Code:
#### APM support ###
# APM is a BIOS specification for saving power using several different
# techniques. This is mostly useful for battery powered laptops.
# /sbin/modprobe apm
Uncomment that last line. Then either reboot, or run 'modprobe apm' yourself.

Last edited by AxelFendersson; 05-27-2004 at 03:41 AM.
 
Old 05-27-2004, 12:26 PM   #10
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Have done all this. I also recompiled the kernel and made sure apm support was built in and acpi was not installed at all. Hooray, my laptop does shut itself off now. The only thing is it doesn't recognize my battery. It always thinks there is ac-online even when its running on batteries. Is it worth me recompiling and removing apm support and putting acpi instead?

Thanks
 
Old 05-27-2004, 12:54 PM   #11
dmadcat
Member
 
Registered: Aug 2003
Location: Columbus, OH
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
I would say yes (however much of a pain it is which isn't much if you're using the 2.6 kernel). Otherwise you'll be running on full battery power all the time (no low power mode and no sleep mode).

You can add the ability to Shut Down and Reboot to the KDM or the GDM as by going into the Menu>Applications>System Tools>Login Screen Setup.
 
Old 05-27-2004, 01:08 PM   #12
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, I've got KDM as the login manager now, which comes with a shutdown button in it
And changing to KDM has added shutdown and reboot to the logoff option in KDE which is also what I wanted. I'm using the 2.4 kernel at the moment which I recompiled and added in the APM support. So you reckon I should upgrade kernel, or install acpi instead. And I am pretty new to linux, so if I was to recompile the kernel or put a 2.6 one on, how do I go about keeping the setup I've got, since I know it kind of works. Obviously I would delete the 2.4 kernel if I get another working one, but if the acpi or 2.6 kernel doesn't work, I would like to be able to boot up the system I have at the moment.
 
Old 05-27-2004, 01:23 PM   #13
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
for a step-by-step guide to compiling your own kernel, look here:

http://www.linuxquestions.org/questi...threadid=49035

it will tell you how to save your old kernel and add a new entry to lilo to boot it.
 
Old 05-27-2004, 01:33 PM   #14
dmadcat
Member
 
Registered: Aug 2003
Location: Columbus, OH
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
There's a really great sticky thread for recompiling your kernel. It makes it simple as hell.

For the bare bones of it though, you download the source of the kernel you want from kernel.org and untar it to /usr/src. From a command prompt go into the new directory as root...

type make mrproper (optional for a newly downloaded kernel as it will clean out the default config which I prefer to keep and modify rather than have to go back through and reset everything)

then type make menuconfig

select all the options you need and exit saving the config

For the 2.6 kernels all you have to do then is type 'make' and it'll not only create the bzImage but also make any modules specified

if you added anything as modules just type 'make modules_install'

and you're done with that kernel.

Now go (as root) to the /boot directory and create a symbolic link to the new kernel's bzImage:

ln -s /usr/src/linux-2.6.x/arch/i386/boot/bzImage vmlinuz-2.6.x (you can use whatever name you want for the link, I use vmlinuz-kernel version out of habit)

Go into lilo.conf and just duplicate the existing lines used to boot:

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda1
label = Slack-2.4.7
read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.5
root = /dev/hda1
label = Slack-2.6.5
read-only
# Linux bootable partition config ends

so you'll have a second set of the same lines only change the image from vmlinuz to the link you created vmlinuz-2.6.5 and change the label to something unique. Save the lilo.conf. Run lilo as root and then reboot. You'll see your new kernel show up as an option when you boot and you'll be able to tweak it as need be without losing the option to boot to the old kernel. The first entry will always be the default.

Last edited by dmadcat; 05-27-2004 at 01:36 PM.
 
Old 05-27-2004, 02:00 PM   #15
annihilate
LQ Newbie
 
Registered: Apr 2004
Location: UK
Distribution: Slackware 9.1
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks a lot for that. I'm gonna get the 2.6 kernel now
 
  


Reply



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
fails to load up X, then the login screen keeps flashing? csvke Red Hat 14 04-03-2006 10:59 PM
GUI would not load, stops loading before login screen jeffshen Mandriva 8 05-13-2005 12:51 PM
quick q: KDE + KDM: automatically running a program after login atom Linux - Software 2 04-12-2005 08:50 AM
Change Fedora Login Screen to KDE login screen ada601 Linux - Software 2 08-15-2004 05:07 PM
how to make 'konsole' load automatically after login rvijay17 Linux - Newbie 3 04-05-2003 08:42 PM

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

All times are GMT -5. The time now is 02:52 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