To get KDM up and running for a graphical login, you need to edit /etc/inittab using your favourite editor (as root). Change the 3 to a 4 to start runlevel 4 (graphical login), as shown below:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
to
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
Then just restart your PC and it should show a nice graphical login screen.
[edit] In Slackware you cannot just run "sudo command" and expect it to run as root (unless you set your sodoers file up specifically for that functionality). You can use `su` (or `su -` if you want to preserve the proper root environment) to switch to root, and then issue any commands. Or, you could try `su -c "command"`. Note that, unlike with sudo, you need to enter the
root password here, not your user's. [/edit]