May 06, 2013 This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. Step 1: Open the Kali Linux and try to login, if you cannot log in and the password which you enter does not work, go to the right top corner click Restart. Step 2: In the second, when it restarts always comes two options, select the second option (Advance Options for Kali GNU/Linux) and press the Enter from the keyboard.
Active3 months ago
I chose an Openbox DE at the time of login and the system took ages to load the DE. So I switched to CLI (Ctrl+Alt+F1) and rebooted my system (but I wanted to logout from the GUI and not restart the whole system).
My question is, can I issue some command at CLI to log me out from the GUI so that I can select different DE. (I don't want to restart my system every-time DE hangs.)
jokerdino♦33.5k2121 gold badges122122 silver badges188188 bronze badges
AnkitAnkit2,5701414 gold badges4646 silver badges7575 bronze badges
9 Answers
To end all user processes and be sent back to the login screen, you can use:
Don't run it as root though, for reasons discussed here.
mblascomblasco
This can be done using the
gnome-session-quit
command. It needs the --force
option to suppress the confirmation dialog that would appear without it.Unlike applications run from an X terminal emulator, ending a session from a TTY requires you to append the
DISPLAY
variable to indicate which X display is running the session. Hence:assuming that you are running GNOME on :0, which is the case in normal situations.
- In Ubuntu 12.04LTS running GNOME, the commandworks. The '--force' argument doesn't exist in the current update level]
90.6k2323 gold badges250250 silver badges396396 bronze badges
Cumulus007Cumulus007
Please follow takkat's suggestion. The standard is Ctrl+Alt+Backspace.
You can also run:
Community♦
terdon♦terdon
74.1k1414 gold badges151151 silver badges235235 bronze badges
Seth♦37.5k2828 gold badges121121 silver badges178178 bronze badges
SuhaibSuhaib3,39455 gold badges3131 silver badges4545 bronze badges
The real problem is that the DBUS session variables must be set and match the session you're trying to control.
I've created this script that does set the DBUS session variables from the gnome-session environment in case you want to logout other users/sessions:
Community♦
sehesehe
If you are in a xubuntu session or similar, must use xfce4-session-logout insted of gnome session commands, that's why you see warnings
Sergio AbreuSergio Abreu
This is what works best for me (with xfce, lightdm and ssh):
Or
pascalvpascalv
As an alternative, you can terminate user sessions using the following, works well to log out users except for the root user- when doing maintenance for example.
Charles van der GenugtenCharles van der Genugten
You can use the command
Ryan McClureRyan McClurekillall gnome-session
to log out. This will work for all GNOME sessions and if I remember correctly all GNOME-related ones. It takes you right back to LightDM so you can select a new DE or a new user. :)3,41699 gold badges3636 silver badges6464 bronze badges
Not the answer you're looking for? Browse other questions tagged command-linelogoutopenbox or ask your own question.
Active9 months ago
I'm using Kali linux on vmware in windows7. I've been trying to crack my wpa password and noticed that when I leave the system running (in process of cracking password) and leave the laptop on and go away for about 10-15 minutes, Kali linux goes to sleep and I am not sure if the cracking process with reaver is still running or not. When I click onto the page a box comes up prompting me to type in my username and password. When I type that in it logs me back on but my screens that were left open cracking the password are no longer there and everything starts freezing up a lot. The mouse is freezing and if I try to click on anything there is a massive delay before anything happens or nothing at all.
Also there was no option prevent screen going in an inactive state infinitely..(lock and brightness-maximum time 1 hour)
I've since had to switch back to backtrack to do my cracking and has been running perfectly and does not go to sleep when left for long periods.
- Now what I'd like to know is how can I prevent kali linux from goingto sleep and closing my work that's in progress?
Any help on this issue would be appreciated.
jasonwryan53.2k1414 gold badges140140 silver badges194194 bronze badges
EducEduc18811 gold badge44 silver badges1010 bronze badges
10 Answers
With the gui, you do this by changing three settings.To access the settings, click any top right icon (a panel opens), then click the 'settings' icon at the bottom left of the opened panel.
Once the 'All Settings' appears:
- Power > Power Saving > Blank screen: never
- Power > Suspend & Power Button > Automatic suspend: off
- Privacy > Screen Lock: off
lingling
With Kali XFCE, you can disable screen blanking using its power applet. Click on the applet and choose 'Presentation Mode.'
Gene MontgomeryGene Montgomery
Install Cmatrix to keep the screen busy without using a lot of ram:
Usage:
Michael Mrozek♦65k2929 gold badges198198 silver badges216216 bronze badges
3ch0s3ch0s
According to SailorCire, you have to kill the screensaver program, you have to insert the following code with a little change in
/etc/init.d/rc.local
:You have to change
May be above code doesn't work you have to call the
By the way, if it doesn't work, make a script and insert into it, WHY? because may be your screen-saver program run with your graphical mode, Then call with startup program the given script.
PersianGulfPersianGulfpattern
to part of the screensaver name. Of course unique.May be above code doesn't work you have to call the
kill
command with -9
as argument.By the way, if it doesn't work, make a script and insert into it, WHY? because may be your screen-saver program run with your graphical mode, Then call with startup program the given script.
7,38544 gold badges3737 silver badges6464 bronze badges
sleepdaemon is not my best friend
try this (maybe +other gsettings):
you can kill (sleep-daemon && xscreensaver && terminal powersave) with this code
Tamás CsibrákTamás Csibrák
For Kali sana:
1. Open All Setting (at top right corner of your home screen)
2. At hardware panel choose power
3. Disable Dim screen when inactive and blank screen
Enjoy:)
1. Open All Setting (at top right corner of your home screen)
2. At hardware panel choose power
3. Disable Dim screen when inactive and blank screen
Enjoy:)
inkheartinkheart
When running Kali Linux without a monitor, I tired all of the above suggestions and many more. The only thing that worked was the GNOME Caffeine Extension. With this enabled my computer stayed awake all weekend without monitor attached.
To install you can run :
sudo apt-get install gnome-shell-extension-caffeine
DemogoriiDemogorii
Type the below lines in a terminal. It worked for me, the screen still dimmed and locked, but computer did not go to sleep
Daniel SokolowskiDaniel Sokolowski
Actually, You just need to check the setting in : System Settings: (Workspace) Desktop Behavior > Screen Locking |> Lock screen automatically after: 5 MinsAnd, System Settings: (Hardware) Power Management> Energy Saving screen.
Scanda7ousScanda7ous
Just go to terminal and type
jimmij/etc/root/scrnsver reset --u local
34.1k88 gold badges8282 silver badges116116 bronze badges
SupedeSupede