Skip to content

Commit ae5881c

Browse files
committed
wsl_debian_setup.org: added a few more setup items
1 parent 865e0e3 commit ae5881c

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

contributing/wsl_debian_setup.org

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ me, MATLAB R2025a ran well enough to leverage it in Emacs matlab-shell.
7373

7474
We need a bunch of packages to be able to install MATLAB. See this [[https://www.mathworks.com/matlabcentral/answers/2018166-what-dependencies-are-needed-to-install-matlab-on-minimal-or-core-linux-installations][MATLAB Answers post]]. The
7575
packages we need for R2025a are listed in [[https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps][matlab-deps]] navigate to [[https://github.com/mathworks-ref-arch/container-images/blob/main/matlab-deps/r2025a/ubuntu24.04/base-dependencies.txt][base-dependencies.txt]] then
76-
create an apt install command. I used this [[https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on][site]] to map Debain 12 to Ubuntu 22 which for the
77-
base_dependencies.txt. Alternatively, I suppose I could have used wsl to install Ubuntu, but I
78-
have familiarity with Debian, so choose Debian.
76+
create an apt install command. I used this [[https://askubuntu.com/questions/445487/what-debian-version-are-the-different-ubuntu-versions-based-on][site]] to map Debain 12 to Ubuntu 22 to determine which
77+
base_dependencies.txt to use (there was one for R2025a with Ubuntu 22 and another for
78+
24). Alternatively, I suppose I could have used wsl to install Ubuntu, but I have familiarity
79+
with Debian, so choose Debian.
7980

8081
#+begin_src bash
8182
sudo apt install ca-certificates ibverbs-providers libasound2 libatomic1 libc6 libcairo-gobject2 libcairo2 libcap2 libcrypt1 libcups2 libdrm2 libfontconfig1 libfribidi0 libgbm1 libgdk-pixbuf-2.0-0 libgl1 libglib2.0-0 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-0 libibverbs1 libice6 libltdl7 libnspr4 libnss3 libnuma1 libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libpsm2-2 librdmacm1 libsndfile1 libtirpc3 libucx0 libuuid1 libwayland-client0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxfont2 libxft2 libxinerama1 libxrandr2 libxt6 libxtst6 libxxf86vm1 locales locales-all make net-tools procps sudo unzip wget x11-xkb-utils zlib1g
@@ -192,6 +193,43 @@ me, MATLAB R2025a ran well enough to leverage it in Emacs matlab-shell.
192193
(load-library "matlab-autoload")
193194
#+end_src
194195

196+
Also install magit and flycheck (flycheck is needed to see compiler warnings in lisp files).
197+
In your ~/.emacs:
198+
199+
#+begin_src emacs-lisp
200+
(require 'package)
201+
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
202+
#+end_src
203+
204+
In Emacs
205+
206+
: M-x package-install
207+
208+
and install from melpa both magit and flycheck, and then update your ~/.emacs to contain
209+
210+
#+begin_src emacs-lisp
211+
(global-flycheck-mode)
212+
213+
(put 'flycheck-emacs-lisp-load-path 'safe-local-variable #'listp)
214+
#+end_src
215+
216+
In the lisp files, we've been using a fill-column of 100:
217+
218+
: M-x customize-variable RET fill-column RET
219+
: and set to 100
220+
221+
Add the w100 command to your ~/.emacs:
222+
223+
#+begin_src emacs-lisp
224+
(defun w100 ()
225+
"Set selected frame width to 100 and height to 49."
226+
(interactive)
227+
(set-frame-size (selected-frame) 100 49))
228+
229+
(when window-system
230+
(w100))
231+
#+end_src
232+
195233
10. Run MATLAB in Emacs:
196234

197235
: M-x matlab-shell

0 commit comments

Comments
 (0)