installmatlab r2018a in wsl

1 view (last 30 days)
Mahmod Karndash
Mahmod Karndash on 1 Jun 2022
Commented: Mahmod Karndash on 1 Jun 2022
I have wsl2 and I check the version of WSL each is set to by entering the command: wsl -l -v in PowerShell and I have
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\Daren> wsl -l -v
NAME STATE VERSION
* Ubuntu-16.04 Running 2
PS C:\Users\Daren>
but when i run the following commands in ubuntu terminal
export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=1
startlxde ( main command to run the desktop)
i have error
mkdir: cannot create directory ‘/home/daren/.cache’: Permission denied
-bash: /home/daren/.cache/wslu/integration: Permission denied
daren@DESKTOP-SMROJT0:~$ sudo -s
[sudo] password for daren:
root@DESKTOP-SMROJT0:~# export DISPLAY=:0
root@DESKTOP-SMROJT0:~# export LIBGL_ALWAYS_INDIRECT=1
root@DESKTOP-SMROJT0:~# startlxde
Agent pid 555
** Message: main.vala:99: Session is LXDE
** Message: main.vala:100: DE is LXDE
(lxsession:553): Gtk-WARNING **: cannot open display: :0
root@DESKTOP-SMROJT0:~#
and I can not see the lxde desktop
please help me to install wsl2 and desktop (GUI) in WSL and how to install matlab r2018a in wsl
  1 Comment
Mahmod Karndash
Mahmod Karndash on 1 Jun 2022
what is meaning this
mkdir: cannot create directory ‘/home/daren/.cache’: Permission denied
-bash: /home/daren/.cache/wslu/integration: Permission denied

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!