Skip to main content

Add Linux/XFCE to Windows 10, then create a shortcut (.bat file) to start it up

No reason to reinvent the wheel. Begin by following the excellent instructions provided by solarianprogrammer.com

1. Install WSL on Windows 10
2. Install and configure VcXsrv

Now that you have the necessary setup you should save the config file for VcXsrv.
Follow the instructions from step 2 above. Then, after the Extra Settings choose the option to save the configuration:

Save the config file (config.xlaunch) somewhere easy to find.

Now, create a .bat file on your Desktop.
Right-click on Desktop, select New > Text Document.
Save file as somename.bat

Add the following to your new file:

REM Point to saved config file for VcXsrv
REM Use the path for your config file here
C:\config.xlaunch
REM Just giving it a moment to open two windows; 1 for CMD + 1 for VcXsrv
TIMEOUT /t 3
REM change to directory to run bash.exe
cd C:\Windows\system32\
REM taking another moment, mainly so you can watch what's happening in the CMD window
TIMEOUT /t 3
REM now opening an XFCE session in the VcXsrv window
REM the /k option will leave the window open, thus keeping the session active
CMD /k bash -c "DISPLAY=:0 xfce4-session"
REM when done with XFCE you can simply close the DISPLAY window and then close the CMD window

Note: the "REM" lines are simply notes. You can delete or edit.
Save the file and try it out.



Comments

Popular posts from this blog

Installing Acrobat Reader (9.5.5) on Ubuntu 18.04 (Bionic Beaver Linux)

To install Adobe Reader (9.5.5) follow these instructions , courtesy of LinuxConfig.org .  https://linuxconfig.org/how-to-install-adobe-acrobat-reader-on-ubuntu-18-04-bionic-beaver-linux Adding issues I ran into post-install. Possible issues post-install, when running app in terminal.  issues below did not stop 'acroread' from running, nor hinder its performance. if you execute 'acroread' in terminal you'll see issues like the below with ease. Otherwise, if using the shortcut, likely created under the 'Office' category, then you may need to refer to system logs to identify any errors. Murrine (or other theme) missing : sudo apt install --reinstall gtk2-engines-murrine:i386 ( even on 64-bit systems )         OR sudo apt install gtk2-engines-murrine:i386 ( even on 64-bit systems ) For these two errors install the modules listed below : Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-brid...