LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How do I turn off my computer? (https://www.linuxquestions.org/questions/mandriva-30/how-do-i-turn-off-my-computer-362471/)

DDRfreak2 09-11-2005 06:27 PM

How do I turn off my computer?
 
I reinstalled Mandriva linux.

When I had it on origionally it would autolog me in. I enabled it to auto log in and I told it to put that data in the MBR. This time I got a command line. So I typed my accout name then it gave me the normal command line without the loging thing. So I typed in kde. So it started KDE. Then I check to make sure auto login was enabled and it was to KDE with my account. Then I thought I would shut it down. Well it isn't that easy. I went ot log off like I normally do then it normally gives me a choise of what to do. But it took me to the command line. I typed shutdown and nothing happened.

1. How do I shut down my computer (Not using the buttons on the comp)?
2. How do I get it back ot normal?

cuiq 09-11-2005 06:32 PM

The command for shutdown in linux is
"halt" w/o quotes.



peace V

cereal83 09-11-2005 06:32 PM

shutdown -r now is the command line, I don't really know the answer to the other stuff sorry

europe 09-11-2005 06:36 PM

Shutting down
 
You need to su to get root access to shutdown (at least on my pc running gentoo)....do the following

Code:

su
enter your root password

then to reboot
Code:

shutdown -r now
or to shutdown totally (I haven't tried this but it should work)

Code:

shutdown -h now
Hope this helps :)

DDRfreak2 09-11-2005 06:59 PM

Thanks and to get it to work normally...?

europe 09-11-2005 07:15 PM

If I understand correctly you want to turn your pc on go straight into kde without having to type your username and password.

I'm not too sure about that. The way my pc usually starts up, it first asks for a login at a command-line, which I quite like anyway as it adds a bit of extra security. Once I've typed my username and password, I type startx to get me into kde (with the line XSESSION="kde-3.4" in my /etc/rc.conf ).

DDRfreak2 09-11-2005 07:37 PM

Well just so it doesn't go into the command line ot shut it on anf off. I do want it to auto log in normallly but I also want the to be able to do it in the GUI.

courtrrb 09-12-2005 04:22 PM

Here how you can get it back to normal.
When asked to log in log into root.
type in startx.
Open a shell and type in "XFdrake" as shown but without the quotes.
In the dialog box that open selete options
select yes
select quit
that shoud be it.

DDRfreak2 09-12-2005 07:16 PM

Still doesn't work.

Lakota 09-12-2005 07:41 PM

to get back to booting into your "user gui" automatically, you first must:

open your "/etc/inittab" file in an editor and change the line that reads "id:3:initdefault" to read "id:5:initdefault".

you can then open "Boot" in the "Mandrakelinux Control Center" and under "Enable autologin and select the user to automatically log in" tab, set up your auto login.


All times are GMT -5. The time now is 04:19 PM.