You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Running on Windows page for new Windows installer & medley script (#66)
* Updating running-on-windows for new windows installer; small updates to running-on-linux to match
* Minor fixups for running-on-windows and running-on-linux
* Smallish updates to running-on-windows.md
the .deb package for your platform (i.e., "standard" Linux or WSL) and your machine
58
-
architecture (X86_64, ARM64, or ARMv7) to \<deb_filepath\>.
65
+
architecture (X86_64, ARM64, or ARMv7) to `<deb_filepath>`.
66
+
67
+
Note that on WSL, `<deb_filepath>` will depend on whether the browser was started in Windows or in WSL. If downloading to the standard Downloads folder, using a WSL-based browser `<deb_filepath>` will be in `~/Downloads`. If using a Windows-based browser, `<deb_filepath>` will be in `/mnt/c/Users/<username>/Downloads`.
59
68
60
-
2. Install
69
+
2. Install
61
70
62
71
In a terminal:
63
72
@@ -76,41 +85,43 @@ To install a standard package and run Medley:
76
85
77
86
There are many options to the `medley` command. For a brief overview, run `medley --help`.
78
87
For a more complete description, run `man medley` or `medley --man` or click
the tar (.tgz) file for your platform (i.e., "standard" Linux or WSL) and your machine
136
-
architecture (X86_64, ARM64, or ARMv7) to \<tar_filepath\>.
147
+
architecture (X86_64, ARM64, or ARMv7) to `<tar_filepath>`.
148
+
149
+
Note that on WSL, `<tar_filepath>` will depend on whether the browser was started in Windows or in WSL. If downloading to the standard Downloads folder, using a WSL-based browser `<tar_filepath>` will be in `~/Downloads`. If using a Windows-based browser, `<tar_filepath>` will be in `/mnt/c/Users/<username>/Downloads`.
150
+
151
+
152
+
3. Install Medley
137
153
138
-
3. Install Medley
139
-
140
154
In a terminal:
141
155
142
156
```
143
157
ubuntu@oio:~$ mkdir <interlisp_directory>
144
158
ubuntu@oio:~$ tar -C <interlisp_directory> -xzf <tar_filepath>
145
159
```
146
-
160
+
147
161
4. Run Medley
148
162
149
163
In a terminal:
@@ -160,8 +174,10 @@ To install and run Medley locally:
160
174
For first-time users: `./medley --apps` or for WSL (and you have installed the VNC prerequisites)
161
175
`./medley --apps --vnc` is a good starting point. This will give you a fully populated Medley system,
162
176
including the applications built on Medley such as Notecards and Rooms.
163
-
164
-
Note: By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley
177
+
178
+
#### Notes:
179
+
180
+
* By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley
165
181
system as its *LOGINDIR*. Medley will start up *LOGINDIR* as its current connected directory.
166
182
It will load any personal init file from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally,
167
183
Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR*
Copy file name to clipboardExpand all lines: content/en/running/running-on-win.md
+48-37Lines changed: 48 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,61 +1,72 @@
1
1
---
2
-
title: Running on Windows
2
+
title: Running on Windows 10/11
3
3
weight: 40
4
4
type: docs
5
5
---
6
-
## Running on Windows
7
6
8
-
* Interlisp Online seems to works fine with recent Edge and Chrome; we've tested others but don't regularly use them.
9
-
WARNING: Window/Chrome and Edge use keystrokes (control-W for example) that conflict with Medley use.
7
+
Medley does not (yet) run as a native Windows application. However, you can run Medley on Windows 10/11 in one of two ways: via **Windows System for Linux (WSL)** or via the **Docker Desktop for Windows** and the Medley docker image. Using either of these methods requires the installation (if not already installed) of one additional component to your Windows system - WSL or Docker Desktop. Once this prerequisite component is installed, there is for each case a single step install for Medley as well as a common `medley` script to run Medley.
10
8
11
-
* Docker Desktop is a great possibility, too, if your system can run it.
12
-
* Otherwise, to run installed, you either need
13
-
* WSLg (available with Windows 11) OR
14
-
* WsL2 A running X-server installed on your machine
9
+
On Windows, Medley requires a 64-bit machine.
15
10
16
-
WsL stands for "Windows Subsystem for Linux". It's like docker but a little more integrated (You can get at your linux files from windows and your windows files from linux).
11
+
### **Running on Windows with WSL**
17
12
18
-
## Running on Windows with WSL2
13
+
Medley will run on either WSL1 or WSL2. WSL2 is preferred, but for older machines that do not support virtualization (see [here](https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-requirements)) or Windows builds prior to Windows 10 Build 19041, WSL1 will work just fine although it will be limited to the VNC mode (see below).
19
14
20
-
For users of Windows 10 or 11 (pro), running in WSL2 is a good choice. This requires installing both Maiko, the underlying engine, and Medley. This option requires at least a little familiarity with Linux and running Linux within Microsoft's WSL environment.
15
+
When running under WSL2, Medley can display in one of two ways: in an X-Window (using the X_Windows server built-in to WSL2) or in a VNC-viewer Window. Although the X-windows approach is simpler (i.e., behind the scenes) it does not scale well on high-DPI displays. In VNC mode, the Medley window will scale according to the Windows Display Scale settings. The X vs Vnc mode is set on using the `--vnc` flag on the `medley` command line. When running on WSL1, Vnc mode is always used.
21
16
22
-
###X Server selection
17
+
#### To install an run Medley with WSL:
23
18
24
-
The X11 protocol was invented quite a while ago (inspired by Warren Teitelman and Bob Sproull's Alto Display protocol as part of early Interlisp window system work.)
19
+
1.*Install WSL:* See [here](https://learn.microsoft.com/en-us/windows/wsl/install) for instructions on installing WSL.
25
20
26
-
With X11, the notion of "client" and "server" are reversed. The software you run to manage the display and windows is the "server", and the thing far away which is running with access to files and doing the work is the "client".
21
+
2.*Install medley within WSL:* Once WSL is installed, open a terminal to WSL (e.g., by typing "wsl" in a command or powershell window) and follow the instructions for installing and running Medley on Linux that can be found [here](https://interlisp.org/running/running-on-linux/).
22
+
23
+
3.*Run Medley:* Once Medley has been installed on WSL, you can run medley from either a WSL terminal as described in the Running Medley on Linux instructions ([here](https://interlisp.org/running/running-on-linux/)) or by typing `wsl medley <flags and options>` in a Command or Powershell window.
24
+
25
+
Documentation for the `<flags and options>` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html)
26
+
27
+
For first-time users: `wsl medley --vnc --apps --interlisp --noscroll` or, equivalently, `wsl medley -v -a -e -n` is a good starting point. This will give you a fully populated Medley system, including the applications built on Medley such as Notecards and Rooms.
28
+
29
+
#### Notes:
30
+
31
+
* If Medley for Docker (see below) is also installed on the system, you can also start Medley by typing `medley --wsl <distro> <flags and options>` in a Command or Powershell window. This is equivalent to the `wsl medley <flags and options>` command described above.
32
+
33
+
### **Running on Windows with Docker Desktop**
34
+
35
+
When running with Docker, Medley runs in a Docker container using the Interlisp/medley image found on Docker Hub. A VNC Viewer window is used to display the Medley desktop. All of this is started up using the single `medley` command.
36
+
37
+
#### To install an run Medley with Docker Desktop:
38
+
39
+
1.*Install Docker Desktop:* Install Docker Desktop for Windows as described [here](https://docs.docker.com/desktop/install/windows-install/).
40
+
41
+
2.*Install Medley*: To install Medley, download and run the the `medley-install_<version>.exe` that can be found [here](https://online.interlisp.org/downloads/medley_downloads.html) under the Windows 10/11 heading.
42
+
43
+
This will install Medley on your system, by default in the `%USERPROFILE%/AppData/Local/Medley/Scripts` folder. This folder will be added to your %PATH%. An uninstall will also be added so that you can remove Medley via the standard Add/Remove Programs control panel.
44
+
45
+
Note that to download `medley-install_<version>.exe`, you may have to bypass any security concerns your browser has about downloading an .exe file. In addition, you will have to bypass the Windows Defender protection against executing an unsigned .exe. To do so, click `More info` followed by `Run Anyway` when the Windows Defender window pops up.
46
+
47
+
3.*Run Medley:* Once it is installed, you can run Medley by typing `medley <flags and options>` into either a Command or a Powershell window.
48
+
49
+
Documentation for the `<flags and options>` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html)
50
+
51
+
For first-time users: `medley --apps --interlisp --noscroll` or, equivalently, `medley -a -e -n` is a good starting point. This will give you a fully populated Medley system, including the applications built on Medley such as Notecards and Rooms.
52
+
53
+
54
+
#### Notes:
55
+
56
+
* Docker needs to be installed and *running* in order to run Medley. However, the Docker Dashboard window does not be open. You can check the state and start/stop Docker by right clicking on the Docker icon <img alt="Docker icon" height=15 width=15 src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAAB+CAMAAABlLrHNAAAAY1BMVEUAAAD///+wsLDQ0NC/v7/r6+uioqLx8fEkJCQaGhrh4eFGRkZVVVW8vLwYGBj8/PxbW1tyc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rv86lu243FDGnFgxd92IUwJLTebTRn9+RbGbbk7Z76/wNXm2bXBrf2/JK9v1sydfi1rzUNuVbw5HDf15nQvYT5AQlku7nW5H60EOf15WCiX6ytbxj9jsmFGCytbyBeAbAgnIQ7rM+6UIIfAKNhpaXP69mQ5qwt8dLbMPy+xkaXvseTX0eSspre0CsmQ6zz0sru7yDJ1IlvJY9BGhh6/FaXTJG3TB67WdZrPLcRl2IevHam3HVuPs6L17JvUsncd/7m5bKJmvYrSGRF99s4G7G4v7x2kjjDrAYUsprIa+vRvdud38efirFkG7wVVjGO3deFEOuuw3xzuvTcnBIpuKdtRIxIsRR8s7nhC8fzDQJ76ijjF/ow7Eg8gpXeabQJvziyjd33ohMv72Vf+LGVLyTA1+giTCQF5NJh0T6kdMd4sXRdJPu+tVQUPBOFrwXgOvQH/Fiar4gcYg/drl6XhyZXjkSM7Tq85PkAT3XqFcBusn/HW8dXxqad/n+89VsDG/dx6udeNx6lKp8ZRJWw9tcLCzhh/fFnj1+77/G8TZi4XU88yV/eKb/KgjIW/cy9bMRHq7KQ59OAgvkbRV4YXotKvV5y6qI84dv9u9VBI07Dx4Ryjx/H2ZlmibPv3NN0iQts+Pe9xhVHiI0qH+feF7zFV+3XAAAAABJRU5ErkJggg=="> in the System Tray.
57
+
58
+
* The first time it runs, `medley` will automatically pull the latest Interlisp/medley docker image from Docker Hub. It will use this docker image for all subsequent runs unless the '--update' flag is raised. When --update is raised, `medley` will once again pull the latest Interlisp/medley docker image.
59
+
60
+
* When running with Docker, the Medley file system is for the most part "within" the Docker container. This means that it is deleted whenever Medley stops and is recreated whenever Medley restarts. The exception is the directory `/home/medley/il` (in the Medley file system) which is automatically mapped by `medley` to a directory in the host Windows file system, by default to `%USERPROFILE%/AppData/Local/Medley/il` folder. You can change this mapping to a different windows folder using the `--logindir` option to `medley`.
27
61
28
-
When you run WSL it's like you have two (or more) computers in one box, where one is running windows and the other(s) are running Linux. The linux side(s) have their own Internet Protocol address.
29
62
30
-
The thing that hooks them together is the "DISPLAY" variable in the linux side has the address of the "client".
31
63
32
-
There have apparently been some (mainly unsuccessful) attempts to simplify this for windows 11 users.
33
64
34
-
If you're running Windows 10, you will also need to install an X11 server within your Windows environment. There are different servers with varying capabilities and problems.
35
65
36
-
*[Cygwin/X](https://x.cygwin.com)
37
-
*[XMing](http://www.straightrunning.com/XmingNotes/) (the 6.9 release is old but usable).
38
-
* X410 (in the Microsoft Store, $40) -- useful uses windows sockets.
* install Xvnc and [TightVNC Version 2.8.63 or higher](https://www.tightvnc.com/download.php)
43
66
44
-
### X Server and Windows and Monitor sleep
45
67
46
-
If your windows system or monitor don't sleep by the schedule, there is a [WSLg problem](https://github.com/microsoft/wslg/issues/380) that they didn't want your Windows machine to fall asleep when watching a Linux-side video. If this turns out to be a problem, set your IDLE.PROFILE to TIMEOUT (to run a "screen saver") and then LOGOUT later.
47
68
48
-
## Requirements
49
-
- Windows 10 *or* Windows 11
50
-
- Windows Subsystem for Linux Enabled. [Installing WSL](https://docs.microsoft.com/en-us/windows/wsl/install).
51
-
- An installed Linux distribution. The following distros have been tested:
52
-
-[Pengwin Linux Distro](https://www.microsoft.com/store/apps/9NV1GV1PXZ6P)
53
-
-[Ubuntu Linux Distro](https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6)
54
69
55
-
### Installing Medley via an Install script
56
70
57
-
*tbd*
58
71
59
-
### Manual Installation of Medley
60
72
61
-
The [medley repo README](https://github.com/Interlisp/medley#readme) has a guide for downloading or building your own maiko (for your OS / architecture) and for obtaining Medley
0 commit comments