LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-07-2005, 04:43 AM   #1
dmcbeing
LQ Newbie
 
Registered: Nov 2005
Distribution: SlackWare 10.2
Posts: 26

Rep: Reputation: 15
Smile New to linux and whant some advise


Yesterday i installed Slack-ware on my PC :P
The are awesome.I use kde and love it :-)
The only thing that annoys me is that i have to type startx after i login so that i can get to kde.Is there a way to automate the process ?That is, Start KDE and then to login through kde ? After searching in the Control Panel i saw that this is supported by Slack-ware.

any reply will be appreciated
dmcbeing
 
Old 11-07-2005, 06:31 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
in /etc/inittab change the default runlevel from 3 to 4

personally i prefer to keep it at 3 and just login as root and type in init 4 and it logs off CLI and X starts with a GUI waiting to log someone in
 
Old 11-07-2005, 06:40 AM   #3
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
The state in which your system starts up is controlled by what's called runlevels. There are seven, and they usually correspond to:
Code:
0    System halt
1    Single user mode
2    Local multiuser mode without remote network (e.g., NFS)
3    Full multiuser mode with network
4    Not used
5    Full multiuser mode with network and X display manager — KDM, GDM, or XDM
6    System reboot
The ones you're generally interested in are 3 (normal system boot, start in the console) and 5 (normal system boot, graphical login straight into X). To change the default runlevel, edit your /etc/inittab file and change the line that (probably) says 'id:3:initdefault:' to 'id:5:initdefault:'

Note: I use Debian, and runlevels are a bit strange in that case - for me, installing KDM set things up correctly. However, this is how I understand most distros control booting into X, and it should work for Slack.

[Edit]Beat to the punch while reading up...
 
Old 11-07-2005, 07:47 AM   #4
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Dtsazza, Slackware is just a bit different than most distributions of GnU/Linux...

# 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
 
Old 11-07-2005, 08:07 AM   #5
dmcbeing
LQ Newbie
 
Registered: Nov 2005
Distribution: SlackWare 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks everybody :P
 
Old 11-07-2005, 08:07 AM   #6
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Quote:
Originally posted by Okie
Dtsazza, Slackware is just a bit different than most distributions of GnU/Linux...
OK, thanks for the heads-up. Always good to know these things!
 
Old 11-07-2005, 08:10 AM   #7
dmcbeing
LQ Newbie
 
Registered: Nov 2005
Distribution: SlackWare 10.2
Posts: 26

Original Poster
Rep: Reputation: 15
btw how do i use the shutdown command ?
no matter what i do my pc never closes :S
 
Old 11-07-2005, 08:25 AM   #8
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
reboot or init 6

poweroff is the command, if your computer does not automatically shut off, just let it run thru the shut down process until you see "System Halted" on the screen then it is safe to shut off the computer with the power button on the tower.
 
Old 11-07-2005, 08:46 AM   #9
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
The usage of the shutdown command (check the man page for more info) is 'shutdown <option> <time>'. The two most common ways of invoking it are
Code:
To turn off the computer:
# shutdown -h now

To reboot:
# shutdown -r now
, though other options exist, and you can also supply a time instead of now (e.g. shutdown -r 14:30 to reboot at half past two in the afternoon). As you may have noticed from the pound sign, shutdown lives in /usr/sbin and can only be run by root.

Many windowing managers have ways to shut your computer down with a menu option without having to become root (just like in Windows), though.
 
  


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
I Have Windows Xp and i whant To Dual boot with SuSE 9.3 MaxtoRs SUSE / openSUSE 3 07-21-2005 02:08 AM
Advise needed for installing Linux with ASRock P4S61 alxwind Linux - Hardware 0 02-21-2005 03:21 PM
Please advise me! negoa General 5 12-13-2004 10:57 AM
Some advise? windows or linux ? UndiFineD General 6 06-29-2004 11:42 PM
"Linux Certification how to" need advise x2000koh Linux - General 5 04-10-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 PM.

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