You are not logged in.

#1 2009-08-15 09:28:37

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved]Poweroff in X.

Hello.
Yesterday I start to use brishbin33 idea to startx in .bashrc and now when I exit X I got login promt.
And Here's my question I can restrart/shutdown my computer from X but it's safe?
That caused any problem's?
I don't use any DM smile
Thanks for answers wink

Last edited by SpeedVin (2009-08-15 14:48:56)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-08-15 11:04:10

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [Solved]Poweroff in X.

Hello SpeedVin!

What's the problem with reboot/shutdown commands ?

Offline

#3 2009-08-15 11:55:04

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved]Poweroff in X.

I don't have any problem but I want to know that shutdon/reboot in X not caused any problem's example kill X smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-08-15 14:16:52

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved]Poweroff in X.

Maybe you mean .bash_profile ... thats where I have configured it.
It is safe if you call your startup command with "&" at the end. That way as soon as you login on the console and X starts it logs out right away.
If you kill X or even if you use ctlr-alt-f* you are greeted with a nice console login prompt tongue Thats what I use, and if you have X configured not to be killed by ctlr-alt-backspace then no worries at all I guess.

Here's how I have my .bash_profile looks like (starts X only if I login from tty1)

. $HOME/.bashrc
if [[ $(tty) == /dev/tty1 ]]; then
startx &> /dev/null &
logout
fi

R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2009-08-15 14:21:15

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [Solved]Poweroff in X.

Running shutdown -h now from inside X is perfectly safe.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2009-08-15 14:32:57

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [Solved]Poweroff in X.

Reboot should be, too.

Offline

#7 2009-08-15 14:48:39

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved]Poweroff in X.

Ok thanks for help ROOKIE thanks for advice wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#8 2009-08-15 21:07:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved]Poweroff in X.

No problem, since you were interested in a console login and I'm using and it has been trouble free for me I share it, spread good karma and good karma will come back when needed big_smile


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB