Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: logout< Next Oldest | Next Newest >
bravo-uniform-golf Offline





Group: Members
Posts: 58
Joined: Nov. 2005
Posted: May 31 2006,04:12 QUOTE

ok this is probably a stupid question but i cant figure out how to logout. when i type logout in bash it says i'm not in the login shell or something. the only way i can logout is to exit the window manager then type exit, but i'd like to know how to use bash to logout so i can set up a key binding for easy logouts. thanks

--------------
[URL="http://www.oyuncusitesi.net"]Oyunlar1 - Kraloyun - Oyunskor Oyunlari[/URL]
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 31 2006,04:30 QUOTE

I haven't tried this, but it's worth a shot....
Add "logout" at the very end of $HOME/.bash_profile (AFTER the startx line)
My logic might be off, but I'm thinking that it might log you out as soon as you close the X session.

Another possibility...run startx with the command "startx && logout"

These are both just guesses.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: May 31 2006,15:09 QUOTE

Quote (bravo-uniform-golf @ May 31 2006,00:12)
when i type logout in bash it says i'm not in the login shell

That's because you are not in the login shell!

DSl, like Knoppix, boots in single mode. If you want true multiuser environment you'll have to hack the init scripts.


--------------
THE QEMU FORUM: http://qemu.dad-answers.com/index.php

QEMU ON WINDOWS: http://www.h7.dion.ne.jp/~qemu-win/

How to use floppy, CD-ROM and hard disk - http://www.h7.dion.ne.jp/~qemu-win/HowToFloppyCdrom-en.html

How to use network - http://www.h7.dion.ne.jp/~qemu-win/HowToNetwork-en.html
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 31 2006,15:19 QUOTE

I have my frugal hacked into a multi-user system, and startx && logout works as expected (the logout command runs when the x session ends), but i didn't test the .bash_profile method.

As pr0f3550r said, this won't work if you're not multi-user. In a default DSL in runlevel 5, logging out will cause /.bash_profile to automatically log you back in.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
pr0f3550r Offline





Group: Members
Posts: 378
Joined: Dec. 2005
Posted: June 01 2006,09:32 QUOTE

Incidentally, Mikshaw, you might recall some old thread where DSL was compared to some other distro and the latter was rubbished because it run as root.

Well, DSL runs as root, too, although sudoed as dsl user.

The real thing is that all Unix systems (and live systems are no exceptions) run most of their daemons as root ('sudo ps' as a proof of concept).

The only true multiuser environments are the emulated ones (Qemu and UML) but I don't expect everybody to agree on this.
Back to top
Profile PM 
4 replies since May 31 2006,04:12 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: logout

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code