Skip to content

Commit 70f8dbe

Browse files
authored
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
1 parent 89172d6 commit 70f8dbe

File tree

2 files changed

+85
-58
lines changed

2 files changed

+85
-58
lines changed

content/en/running/running-on-linux.md

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: docs
55
---
66

77
Medley can run on any Linux system that includes X Windows, including Windows
8-
System For Linux (WSL2 only) on Windows 11 and Windows 10 Build 19044+.
8+
System For Linux on Windows 11 and Windows 10 Build 19044+.
99

1010
It is also recommended that the Linux system have a web browser installed.
1111
For WSL installations, the browser(s) on the Windows side will suffice.
@@ -16,10 +16,17 @@ installed.
1616
Medley can be installed on your system in one of two configurations: *standard* and
1717
*local*. Standard installation will install Medley into system directories and install
1818
any prerequisite packages. Local installation will install Medley into any user directory
19-
but any prerequisite packages must be installed manually.
19+
but any prerequisite packages must be installed manually.
2020

21+
On WSL, Medley will run on either WSL1 or WSL2. WSL2 is preferred, but for older machines
22+
that do not support virtualization (see
23+
[here](https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-requirements))
24+
or Windows builds prior to Windows 10 Build 19041, WSL1 will work just fine although it will be limited
25+
to the VNC mode (see below).
26+
See [here](https://interlisp.org/running/running-on-win/) for more information on running Medley on WSL.
2127

22-
## Standard Installation \(Debian-based systems only\)
28+
29+
### **Standard Installation \(Debian-based systems only\)**
2330

2431
Standard installations are currently supported only for Debian-based systems (i.e.,
2532
systems that support dpkg), including Debian-based distros on WSL.
@@ -48,16 +55,18 @@ while the X Window on WSL will not so scale. The WSL packages also install the w
4855
package, which is used by Medley to connect to external browsers as described above.
4956
Aside from these two features, a non-WSL .deb package will install and run on WSL.
5057

51-
To install a standard package and run Medley:
58+
#### To install a standard package and run Medley:
5259

5360
1. Download
5461

5562
Using a browser download from
5663
[the Medley downloads site](https://online.interlisp.org/downloads/medley_downloads.html)
5764
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`.
5968

60-
2. Install
69+
2. Install
6170

6271
In a terminal:
6372

@@ -76,41 +85,43 @@ To install a standard package and run Medley:
7685
7786
There are many options to the `medley` command. For a brief overview, run `medley --help`.
7887
For a more complete description, run `man medley` or `medley --man` or click
79-
[here](https://online.interlisp.org/downloads/man_medley.html).
88+
[here](https://online.interlisp.org/downloads/man_medley.html).
8089
8190
For first-time users: `medley --apps` or for WSL `medley --apps --vnc` is a good starting
8291
point. This will give you a fully populated Medley system, including the applications built
8392
on Medley such as Notecards and Rooms.
84-
85-
Note: By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley
93+
94+
#### Notes:
95+
96+
* By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley
8697
system as its *LOGINDIR*. Medley will start up with *LOGINDIR* as its current connected directory.
8798
It will load the personal init file (if any) from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally,
8899
Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR*
89-
can be changed using the `--logindir` option to `medley`.
100+
can be changed using the `--logindir` option to `medley`.
90101
91102
92103
93-
## Local Installation
104+
### **Local Installation**
94105
95106
In a local installation, the Medley system is installed into any user directory from a .tar file.
96107
Multiple "Medleys" can be installed in different directories on one machine without interference
97108
(except see description of Medley *LOGINDIR* below). Local installation makes it easy (from a file
98-
management p.o.v.) to modify the Medley system code.
109+
management p.o.v.) to modify the Medley system code.
99110
100111
Local installation doesn't involve a package manager, so you are responsible for installing any
101112
prerequisite packages onto your system before you installing Medley.
102113
103114
Also note that with local installations, `man medley` will not work. However, as indicated below,
104-
`./medley --man` will show the medley man page.
115+
`./medley --man` will show the medley man page.
105116
106-
To install and run Medley locally:
117+
#### To install and run Medley locally:
107118
108119
1. Install prerequite packages
109120
110121
* For non-WSL installations, use your distro's package manager to install `xdg-utils`.
111122
112123
* For WSL all installations, use your distro's package manager to install `wslu`.
113-
124+
114125
Note that some distros do not include `wslu` in their standard repos. See
115126
[https://wslutiliti.es/wslu/install.html](https://wslutiliti.es/wslu/install.html)
116127
for installation instructions if this is the case.
@@ -133,17 +144,20 @@ To install and run Medley locally:
133144
Using a browser download from
134145
[the Medley downloads site](https://online.interlisp.org/downloads/medley_downloads.html)
135146
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
137153
138-
3. Install Medley
139-
140154
In a terminal:
141155
142156
```
143157
ubuntu@oio:~$ mkdir <interlisp_directory>
144158
ubuntu@oio:~$ tar -C <interlisp_directory> -xzf <tar_filepath>
145159
```
146-
160+
147161
4. Run Medley
148162
149163
In a terminal:
@@ -160,8 +174,10 @@ To install and run Medley locally:
160174
For first-time users: `./medley --apps` or for WSL (and you have installed the VNC prerequisites)
161175
`./medley --apps --vnc` is a good starting point. This will give you a fully populated Medley system,
162176
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
165181
system as its *LOGINDIR*. Medley will start up *LOGINDIR* as its current connected directory.
166182
It will load any personal init file from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally,
167183
Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR*

content/en/running/running-on-win.md

Lines changed: 48 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,72 @@
11
---
2-
title: Running on Windows
2+
title: Running on Windows 10/11
33
weight: 40
44
type: docs
55
---
6-
## Running on Windows
76

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.
108

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.
1510

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**
1712

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).
1914

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.
2116

22-
### X Server selection
17+
#### To install an run Medley with WSL:
2318

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:*&nbsp;&nbsp;See [here](https://learn.microsoft.com/en-us/windows/wsl/install) for instructions on installing WSL.
2520

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:*&nbsp;&nbsp;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:*&nbsp;&nbsp;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:*&nbsp;&nbsp;Install Docker Desktop for Windows as described [here](https://docs.docker.com/desktop/install/windows-install/).
40+
41+
2. *Install Medley*:&nbsp;&nbsp;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:*&nbsp;&nbsp;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/PxbW1tycnKqqqra2toRERHKyso3Nzd+fn5hYWGXl5doaGhMTEw8PDxBQUGNjY2GhoYwMDDd4iByAAAE4UlEQVR4nO2c69aqIBCGIQ8UHdSoTK30/q9ya7b7lIOMhUJr+f6chfZEMMwMEMJmtYo5PSKj70dG34bJHfGiRj/ANO924e1p4V14u1p4F96uFt6Ft6uF97d4i9/ixX7CKTP7ftO8OOJk+PXGeScWiDcKOJHGSnirtKnhDgbxhod1X3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6L17JvUsncd/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`.
2761

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.
2962

30-
The thing that hooks them together is the "DISPLAY" variable in the linux side has the address of the "client".
3163

32-
There have apparently been some (mainly unsuccessful) attempts to simplify this for windows 11 users.
3364

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.
3565

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.
39-
https://x410.dev/cookbook/wsl/using-x410-with-wsl2#vsock
40-
- [VcXsrv](https://sourceforge.net/projects/vcxsrv/)
41-
* GWSL from Microsoft store
42-
* install Xvnc and [TightVNC Version 2.8.63 or higher](https://www.tightvnc.com/download.php)
4366

44-
### X Server and Windows and Monitor sleep
4567

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.
4768

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)
5469

55-
### Installing Medley via an Install script
5670

57-
*tbd*
5871

59-
### Manual Installation of Medley
6072

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

Comments
 (0)