Xfce4 is a lightweight desktop environment that developers have been able to get working with both wsl and wsl2. When you type init 1 command your session will then begin to shut down and bring you into single user text mode. If not, run sudo service lightdm start or sudo start lightdm to start your x server again. Restarting your x session with keyboard combination no. This is sometimes called the magic process, as the x session will end when this application stops running. Ask ubuntu is a question and answer site for ubuntu users and developers. Prevent x from starting turn desktop into server ask question asked 10 years, 10 months ago. Restarting your x session with keyboard combination no linux restarting. April 24, 2007 if you ever need to restart your x session your work will be lost if not previously saved. Xfce4 desktop environment and x server for ubuntu on wsl 2. To stop an x server started by the login manager gdm, run. Download the latest lts version of ubuntu, for desktop pcs and laptops. How to close x server, to avoid errors while updating. Lts stands for longterm support which means five years, until april 2025, of free security and maintenance updates, guaranteed.
Although wsl2 is intended as a command line tool for developers, a desktop environment can be run inside wsl2 and you can use an x server for windows such as xming or vcxsrv to listen for x11 graphical programs in linux. The second line specifies the application that drives the x session. You might be required to reboot when the installation finishes. When you type init 2 command your session will then begin to shut down and bring you into gui mode. One way if you cannot open a gnome terminal or an xterm is to start a text console. To stop the x server killall x or sudo killall x if you are not owner of the process.638 930 1098 1436 501 428 118 1491 619 2 1450 221 1232 1266 451 800 128 444 1507 320 1208 178 78 1138 665 605 661 648 960 1079 1332 1546 1300 1134 1386 253 1062 1273 177 376 406 950 1310 1098 491 240