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-05-2003, 04:52 AM   #1
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
? automatically login to X ?


Since there is no graphical login in slackware, how do i go about making a semi-automatic login into KDE? or even a completely automatic login into KDE would be good. I would like to automatically "startx" as my user upon bootup. Login managers and session managers built into KDE appear useless in Slackware.

Last edited by VioLaToR; 05-06-2003 at 04:24 AM.
 
Old 05-05-2003, 07:08 AM   #2
gazonk
LQ Newbie
 
Registered: May 2003
Location: Sweden
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Simply change runlevel

To use graphical login (XDM, KDM, GDM, whathaveyou) you need to change the default runlevel. Edit your /etc/inittab and set the default runlevel to 4. Change the id entry in the inittab to the following:

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

Then edit /etc/rc.d/rc.4 to use the display manager you want. The default in Slackware 9.0 is Gnome Display Manager.

Then simply do the following to switch runlevel:
# telinit 4
 
Old 05-05-2003, 10:33 AM   #3
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
Re: ? automatically login to X ?

Quote:
Originally posted by VioLaToR
Since there is no graphical login in slackware, how do i go about making a semi-automatic login into KDE? or even a completely automatic login into KDE would be good. I would like to automatically "startx" as my user upon bootup. Login managers and session managers built into KDE are useless in Slackware.
There is a way of running a certain program immediately after you login. In FreeBSD, I can edit the file: /etc/passwd and add a command at the end of my regular user line. I think it might work the same in Slackware, although I think you would have to use rc.local instead. Basically, it works like putting 'win.exe' as the last line of 'autoexec.bat' in MSDOS. If you'ever used, Windows 3.x!
 
Old 05-05-2003, 11:34 AM   #4
gazonk
LQ Newbie
 
Registered: May 2003
Location: Sweden
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Yes, you can change your login shell in Linux as well as in FreeBSD (and any Un*x I've ever heard of) and that might work but I would recommend not changing the login shell since this is what xterm runs when you open it.

You could do something like "last line of autoexec.bat" by putting startx or something as the last command in your .login file (assuming tcsh) and then you could tell xterm whether or not the new shell is a login shell (should read .login).

Still I think changing the runlevel is the most straight-forward and correct(TM) way of doing it.
 
Old 05-05-2003, 11:38 AM   #5
hecresper
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & FreeBSD
Posts: 169

Rep: Reputation: 30
Thanks for clarifying that, gazonk. I've been wanting to try placing startx in my startup files for sometime now. I've never had the chance to try it, tho. I will stay away from that idea, now. LOL Altho, it would've been a great learning experience for me to have tried it. For sure I wouldn't have done it after that. LOL
 
Old 05-05-2003, 11:47 AM   #6
gazonk
LQ Newbie
 
Registered: May 2003
Location: Sweden
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Years ago I once changed my login shell to lynx just to try it and it worked fine until I pressed '!' (escape to shell...)

Still...people have been known to use emacs as their login shell...
 
Old 05-06-2003, 04:32 AM   #7
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
I simply made the suggested changes, commented out the GDM so KDE was the first one......All is good now. you all are the greatest.
 
  


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
automatically login a user thebover Linux - Software 3 08-26-2004 08:00 AM
Cannot login automatically arvindn LQ Suggestions & Feedback 1 11-26-2003 10:48 PM
Q) How to automatically login? jattreadwell Linux - General 7 06-20-2003 01:01 PM
How do I automatically login using Rdesktop ? netkepala Linux - Software 2 05-23-2003 11:44 AM
Does X11R6 come up automatically at login? geraldgu Linux - Software 1 12-13-2001 06:25 PM

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

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