LinuxQuestions.org
Visit Jeremy's Blog.
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 10-23-2003, 02:30 PM   #1
grassapa
Member
 
Registered: Sep 2003
Posts: 41

Rep: Reputation: 15
I Want Kde Desktop Right After Power On


hi, how do i have to set up my slackware 9.1 installation so when i power up my computer(laptop) it automatically starts kde desktop as root, so i dont have to log in as root, and then type startx.

thanks
 
Old 10-23-2003, 02:35 PM   #2
Randy
LQ Newbie
 
Registered: Jun 2001
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
Edit your /etc/inittab file and change the line that says:

id:3:initdefault

to:

id:4:initdefault

That should start X automatically after bootup.
 
Old 10-23-2003, 02:37 PM   #3
kasperhans
Member
 
Registered: Oct 2003
Location: right behind the moon
Distribution: gentoo
Posts: 466

Rep: Reputation: 30
never use x as root its very unsecure !!!
you can also do a liloconf and there type in a telinit 4 or edit the liloconf file and add appen="telinit 4"
and with xwmconfig you can change the default windowmanager to kde
 
Old 10-23-2003, 03:18 PM   #4
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 30
NWAR - never work as root!!!
 
Old 10-23-2003, 03:23 PM   #5
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
You may also have to edit the /etc/rc.d/rc.4 file. Slack is configured to try GDM (gnome display manager) before KDM (KDE display mangaer) when in runlevel 4. If you have Gnome installed, you'll need to switch the GDM & KDM paragraphs in the file.

Last edited by aaa; 10-23-2003 at 05:18 PM.
 
Old 10-23-2003, 04:05 PM   #6
dhrivnak
Member
 
Registered: Oct 2003
Location: USA
Distribution: Slackware 9.1
Posts: 50

Rep: Reputation: 15
aaa - THANK YOU! I've been loooking for that for a while! I changed some login options in KDE, and they didn't apply, so I'm guessing that's what it is? (the option was the autologin, since I'm the only one using this computer)...

EDIT: yup; that fixed it! Thanks again!

Last edited by dhrivnak; 10-23-2003 at 04:10 PM.
 
Old 10-23-2003, 04:52 PM   #7
grassapa
Member
 
Registered: Sep 2003
Posts: 41

Original Poster
Rep: Reputation: 15
if i change the runlevel to 4, it still prompts me for a username and password, is there a way to have it automatically log into root or a normal user?
thanks

ps i know i shouldnt use x as root, but this is an exceptional case.
 
Old 10-23-2003, 05:14 PM   #8
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
In the settings for KDM (there is a link in the special settings menu, along w/ kernel configuration & lilo configuration. In any case it should be in the kde control center), it has an option for this. I think it's in one of the last tabs.
 
Old 10-23-2003, 05:32 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
If I'm understanding your question correctly, it sounds like what you want to be able to do is to power up the laptop, have root get automatically logged in, and then have KDE automatically start. I don't think it is possible to avoid the logging in step, but even if it is, I would urge you abandon this approach. Automatic logins are a horrible idea, and they're an order of magnitude more horrible if you are logging in as root. (As an analogy, what it sounds like you're trying to do would be similar to permitting somebody to use your ATM card without having to first input the PIN. Yipes!!)

I have a hard time imagining any scenario where somebody would consider the "logging in" step to be an unnecessary burden. Could it be that other people need to use that same machine, and you don't want to give them your ID/PW? If so, you can solve this issue by running the 'adduser' command and set them up with their very own ID/PW. I'll admit that maybe I just don't understand your true intent with this question, but as the other posters have indicated, logging in as root should only be done in rare, specific situations, and not done as the typical, standard, default behavior. -- J.W.
 
Old 10-23-2003, 06:08 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally posted by grassapa
if i change the runlevel to 4, it still prompts me for
a username and password, is there a way to have
it automatically log into root or a normal user?
thanks

ps i know i shouldnt use x as root, but this
is an exceptional case.
A mobile machine with a password-less root login?
That is, indeed, exceptional :} Exceptionally stupid,
one might add. I'd like to hear why you believe you
NEED to run as root, because I'm fairly certain that
there is a safe way to achieve what you need...

However, if you use KDE (and kdm as login-manager)
it should be a piece of cake to actually accomplish what
you want.

In Kcontrol, just go to the login manager, there
to the convenience tab, and 'eh voila'

Cheers,
Tink
 
Old 10-24-2003, 12:18 PM   #11
grassapa
Member
 
Registered: Sep 2003
Posts: 41

Original Poster
Rep: Reputation: 15
ok, the reason i want to do this is because i want to set up linux for someone and he doesnt know jack about computers. so i want it to start up right to the desktop. but you guys are right about root, i should log him on as a normal user, but since he doesnt know jack about computers, he might never know how to log in as root if he wants to do something more complicated. and im not ever gonna talk to him.

now that thats cleared, let me ask

why is it so dangerous to be root? i know you can mess up your computer but you, or at least I, wouldnt do anything that you think it can be damaging to your computer. Every kind of config i make, i would consult it first on the net, and then do it. the reason i like to work as root always is that i can do everything fast. create directories, config preferences, etc. Since im a linux newbie, i dont know how to do many things as a normal user. Internet wise, its dangerous because as root, they can hack in to ur computer and do stuff, but after been living in windows for years, that doesnt scare me, after all, i have been pretty careful. Maybe, when i get better, i will realize why root is bad, but for now, i wanna know why and thats why i ask.

thanks
 
Old 10-24-2003, 12:59 PM   #12
mad4linux
Member
 
Registered: Aug 2003
Distribution: Debian Testing / kubuntu
Posts: 86

Rep: Reputation: 21
Hi grassapa
I have a little example for you, why one shouldn't work as root. It happend to me two or three days ago.
I was working as root, altough i should know better, because i started doing some file system stuff as root. After that tryed to enhance a little Shellscript of myself just to lern about the bash. Unfortunaly i made a really bad statment to the /bin/date file. The result was that the /bin/date file was overwritten and that i had to reinstall it from the rpm package.
If i had been working as a normal user, this wouldn't have happend. The /bin/date file is a file with owner root and group root, so only somebody (or any program!) who is stupid enough to work as root (like i am) can overwrite this file.

Hope this helps you to avoid my fault ;-)
Cheers
 
Old 10-24-2003, 01:16 PM   #13
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Quote:
he might never know how to log in as root if he wants to do something more complicated.
Tell him that you normally should be a regular user for security, and certain things are not allowed so as to protect your computer, and if you really know what your doing, you can switch to root temporarily to do things. Tell him that it may be annoying not being able to do certain things, but these things were disabled for regular users for a reason.
 
Old 10-24-2003, 02:09 PM   #14
grassapa
Member
 
Registered: Sep 2003
Posts: 41

Original Poster
Rep: Reputation: 15
mad4linux: unfortunately, i dont even know what shellscripts and bash are, so i wouldnt touch those files. im a noob.

aaa: im not going to talk or see this guy, im giving the computer to someone who is going to give it to him.
 
Old 10-24-2003, 02:33 PM   #15
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Running as root is bad especially if you don't know jack about computers. Running X as root should not even be permitted, IMHO. If your acquaintance is really as computer-illiterate as you say, then maybe Linux is not the best operating system for him.

And certainly don't setup an auto-login for root. Anyone who does know a little about Linux might decide to play a prank on your friend (or on you, while you're away from your computer), open up a console and type 'rm -rf /', thus wiping out your hard drive in the blink of an eye. Not only is it like having no PIN on your ATM card, it's like leaving all of your money in small unmarked bills lying all over your front lawn, and assuming that nothing will happen to them.

Last edited by wapcaplet; 10-24-2003 at 02:37 PM.
 
  


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
KDE Gnome Desktop Menu Edits (right click on desktop) jdier Linux - Software 11 08-03-2006 06:05 AM
Power Saving (APM) on a Desktop? sancho Linux - Hardware 2 11-16-2005 02:57 PM
Controlling desktop power, so that it doesn't go into standby automatically. dmccol Mandriva 6 05-03-2004 08:05 PM
Switiching from a kde desktop to a gnome desktop amb5527 Slackware 4 06-04-2003 09:52 AM
CD-ROM.desktop on KDE desktop / mounting drives as users theabyyss Linux - General 2 02-22-2002 10:07 PM


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