LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-11-2009, 04:41 PM   #1
returnzero
LQ Newbie
 
Registered: Jun 2009
Distribution: Slackware 13
Posts: 8

Rep: Reputation: 0
Slackware - KDM issues


I'm getting a little frustrated at this and would appreciate any help.

First off, when I try to edit Xterm for like colors and stuff, there is suppose to be a hidden /.Xresources , however there isn't, I also can't find the /.Xsessions file as root.

And, as far as I understand. KDM is like a login manager, so when I'm at the initial command line after logging in, i type "kdm" and nothing happens.

Startx starts KDE however, but no KDM.

Also, where is the .xinitrc file located on slackware 12.2 ?? I tried use "locate" as root, but yet another problem appears

Code:
locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db':  No such file or directory
Ahhhhh

Last edited by returnzero; 06-11-2009 at 04:42 PM.
 
Old 06-11-2009, 06:57 PM   #2
msadiq
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Hi,

1. The KDE and the KDM are different. KDE is the desktop environment, whereas KDM is the Display Manager, which is used to present you an artistic login screen.
Since by the time you give the command 'startx' you are already logged in, there is no point in starting KDM.
Try incorporating a startx command in the startup scripts for Runlevel 5.
KDM becomes functional with appropriate runlevel scripts, so you need to tamper a bit there. Most distros have their post install scripts make the necessary changes to Runlevel 5 scripts when KDM package gets installed. Slackware wants you to do it manually - so that you understand how these things work.

2. There are two ways to find files in Linux:
a) Using find
Find searches a directory and all its subdirectories for matches - so a fresh disk read takes place making the search slower for larger filesystems (with more used inodes).
b) Using locate
Locate instead creates a database of the existing files in a neat format so that searching of files can take place by searching the database instead of searching the entire filesystem.
This makes locate really fast but it can't locate files which were created AFTER the last time the database was updated. (Usually locate database is updated at every reboot or every day).

The error you are getting is obvious - the database doesn't exist. To create it type the command 'updatedb' - it may take some time to finish. Once it completes, you may be able to use locate.

Make sure you keep a boot up script to updatedb or you set-up a cronjob to run the updatedb command on a daily basis.

3. Your path for .xinitrc and .Xsessions is nor correct. They are in the respective user's home directory, so its always ~/.xinitrc and ~/.Xsessions.

Note that if .xinitrc doesn't exist in your home directory, the X server will use the default configuration file located at /etc/X11/xinit/xinitrc or someplace like that.


Hope this helps.

Last edited by msadiq; 06-11-2009 at 07:00 PM. Reason: Update
 
Old 06-11-2009, 06:58 PM   #3
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
If you wanna start KDM you've to edit the /etc/inittab and setting:

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:
As you can see in the last string there must be the 4...Once you'll have to edit the /etc/rc.d/rc.4, comment all strings leaving the KDM's strings free.

Code:
#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
 
Old 06-13-2009, 12:55 PM   #4
returnzero
LQ Newbie
 
Registered: Jun 2009
Distribution: Slackware 13
Posts: 8

Original Poster
Rep: Reputation: 0
Ah, thank you both.

Answered my questions and then some. =)
 
  


Reply


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 configure kdm in slackware 12.2 Vlad420 Slackware 7 05-21-2009 02:23 AM
KDM logon screen resolution and logoff issues in Slackware 12.0 Loslobo Slackware 9 08-02-2007 09:40 PM
KDM on slackware masand Slackware 9 11-02-2005 05:01 AM
kdm issues es7us Debian 1 03-24-2005 05:05 PM
Can I use KDM in Slackware 9? Seph64 Slackware 3 05-02-2003 04:51 PM


All times are GMT -5. The time now is 10:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration