On 05/28/2015 11:53 PM, Dalios wrote:
>
> [snip]
>
> 
> When on Debian 6 I used the following two ways:
> 
> Method 1: While on grub menu: press "e" from the keyboard and then use
> the arrow keys to go to the kernel line and add the word "text" at the
> end of the line. After doing whatever it is that you want to do with the
> command line you can use the "startx" command (as a user).
> 
> Method 2: While on your desktop: logout, Ctrl+Alt+F1, login from there
> (I suppose that you will have to login as root to do what you want).
> Then use the command "init 3" do whatever it is that you want to do and
> then use the command "init 5 && exit" to go back to your desktop.
> 
> 
> Strangely, the first method is not working for me right now (Debian 8
> XFCE) despite I am 100% sure it was working with lightdm and XFCE in
> previous versions, I will have to look into this. The second method is
> not expected to work on Debian 8 because of systemd which reminds me
> that I will finally have to do some reading...
> 
> 
> Some useful links from the forums:
> http://forums.debian.net/viewtopic.php?f=16&t=69673
> http://forums.debian.net/viewtopic.php?f=5&t=105137
> 
> 
> 
> 
> 
> Regards,
> Dalios
> 
> 

Firstly, I have to correct myself: As it is (was) widely known to every
user of Debian versions up to Debian 7 Wheezy (currently oldstable)
there are no differences between runlevels 2 to 5. See for example [1].
So the command "init 3" that I gave before should have no effect on a
default Debian system, the correct would be "init 1".

Secondly and for those interested (despite a little off-topic for this
thread) in the systemd era the above mentioned two methods would have to
be adjusted like this:


Method 1: While on grub menu: press "e" from the keyboard and then use
the arrow keys to go to the kernel line and add this "systemd.unit=multi
user.target" at the end of the line. After doing whatever it is that you
want to do with the command line you can use the command "systemctl
isolate graphical.target" (as root) to start the GUI.

Method 2: While on the GUI one can go to the CLI with the command
"systemctl isolate multi-user.target" (as root) either from a VT (using
Ctrl+Alt+F1) with or without prior logout from the desktop or from a
terminal emulator inside the running desktop. To go back to the GUI the
command would be as before "systemctl isolate graphical.target" (as root).


[1]
https://www.debian.org/doc/manuals/debian-reference/ch03.en.html#_stage_4_the_normal_debian_system
[2]
http://unix.stackexchange.com/questions/90554/how-to-boot-linux-to-command-line-mode-instead-of-gui


Regards,
Dalios


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/556793db.4060...@eumx.net

Reply via email to