From 5934b317a5dc185f1999e3bb0bb29d6918a72b2c Mon Sep 17 00:00:00 2001 From: Frank G Halasz Date: Thu, 16 Feb 2023 14:46:12 -0800 Subject: [PATCH 1/3] Updating running-on-windows for new windows installer; small updates to running-on-linux to match --- content/en/running/running-on-linux.md | 45 +++++++++------ content/en/running/running-on-win.md | 79 ++++++++++++++------------ 2 files changed, 70 insertions(+), 54 deletions(-) diff --git a/content/en/running/running-on-linux.md b/content/en/running/running-on-linux.md index c2b84fa2e..f491ceb89 100644 --- a/content/en/running/running-on-linux.md +++ b/content/en/running/running-on-linux.md @@ -16,7 +16,7 @@ installed. Medley can be installed on your system in one of two configurations: *standard* and *local*. Standard installation will install Medley into system directories and install any prerequisite packages. Local installation will install Medley into any user directory -but any prerequisite packages must be installed manually. +but any prerequisite packages must be installed manually. ## Standard Installation \(Debian-based systems only\) @@ -48,16 +48,18 @@ while the X Window on WSL will not so scale. The WSL packages also install the w package, which is used by Medley to connect to external browsers as described above. Aside from these two features, a non-WSL .deb package will install and run on WSL. -To install a standard package and run Medley: +#### To install a standard package and run Medley: 1. Download Using a browser download from [the Medley downloads site](https://online.interlisp.org/downloads/medley_downloads.html) the .deb package for your platform (i.e., "standard" Linux or WSL) and your machine - architecture (X86_64, ARM64, or ARMv7) to \. + architecture (X86_64, ARM64, or ARMv7) to ``. -2. Install + Note that on WSL, `` 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 `` will be in `~/Downloads`. If using a Windows-based browser, `` will be in `/mnt/c/Users//Downloads`. + +2. Install In a terminal: @@ -76,17 +78,19 @@ To install a standard package and run Medley: There are many options to the `medley` command. For a brief overview, run `medley --help`. For a more complete description, run `man medley` or `medley --man` or click - [here](https://online.interlisp.org/downloads/man_medley.html). + [here](https://online.interlisp.org/downloads/man_medley.html). For first-time users: `medley --apps` or for WSL `medley --apps --vnc` 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. - - Note: By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley + +#### Notes: + +* By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley system as its *LOGINDIR*. Medley will start up with *LOGINDIR* as its current connected directory. It will load the personal init file (if any) from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally, Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR* - can be changed using the `--logindir` option to `medley`. + can be changed using the `--logindir` option to `medley`. @@ -95,22 +99,22 @@ To install a standard package and run Medley: In a local installation, the Medley system is installed into any user directory from a .tar file. Multiple "Medleys" can be installed in different directories on one machine without interference (except see description of Medley *LOGINDIR* below). Local installation makes it easy (from a file -management p.o.v.) to modify the Medley system code. +management p.o.v.) to modify the Medley system code. Local installation doesn't involve a package manager, so you are responsible for installing any prerequisite packages onto your system before you installing Medley. Also note that with local installations, `man medley` will not work. However, as indicated below, -`./medley --man` will show the medley man page. +`./medley --man` will show the medley man page. -To install and run Medley locally: +#### To install and run Medley locally: 1. Install prerequite packages * For non-WSL installations, use your distro's package manager to install `xdg-utils`. * For WSL all installations, use your distro's package manager to install `wslu`. - + Note that some distros do not include `wslu` in their standard repos. See [https://wslutiliti.es/wslu/install.html](https://wslutiliti.es/wslu/install.html) for installation instructions if this is the case. @@ -133,17 +137,20 @@ To install and run Medley locally: Using a browser download from [the Medley downloads site](https://online.interlisp.org/downloads/medley_downloads.html) the tar (.tgz) file for your platform (i.e., "standard" Linux or WSL) and your machine - architecture (X86_64, ARM64, or ARMv7) to \. + architecture (X86_64, ARM64, or ARMv7) to ``. + + Note that on WSL, `` 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 `` will be in `~/Downloads`. If using a Windows-based browser, `` will be in `/mnt/c/Users//Downloads`. + + +3. Install Medley -3. Install Medley - In a terminal: ``` ubuntu@oio:~$ mkdir ubuntu@oio:~$ tar -C -xzf ``` - + 4. Run Medley In a terminal: @@ -160,8 +167,10 @@ To install and run Medley locally: For first-time users: `./medley --apps` or for WSL (and you have installed the VNC prerequisites) `./medley --apps --vnc` 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. - - Note: By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley + +#### Notes: + +* By default, `medley` will create a directory in *$HOME/il*. This will be used by the Medley system as its *LOGINDIR*. Medley will start up *LOGINDIR* as its current connected directory. It will load any personal init file from *LOGINDIR*/INIT or *LOGINDIR*/INIT.LCOM. Finally, Medley will use *LOGINDIR*/vmem/ to store its virtual memory file(s). The location of *LOGINDIR* diff --git a/content/en/running/running-on-win.md b/content/en/running/running-on-win.md index 9213ba587..5951e5778 100644 --- a/content/en/running/running-on-win.md +++ b/content/en/running/running-on-win.md @@ -3,59 +3,66 @@ title: Running on Windows weight: 40 type: docs --- -## Running on Windows +## Running on Windows 10/11 -* Interlisp Online seems to works fine with recent Edge and Chrome; we've tested others but don't regularly use them. -WARNING: Window/Chrome and Edge use keystrokes (control-W for example) that conflict with Medley use. +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 "app" to run Medley. -* Docker Desktop is a great possibility, too, if your system can run it. -* Otherwise, to run installed, you either need - * WSLg (available with Windows 11) OR - * WsL2 A running X-server installed on your machine +On Windows, Medley requires a 64-bit machine. -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). +## Running on Windows with WSL -## Running on Windows with WSL2 +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). -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. +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. -### X Server selection +#### To install an run Medley with WSL: -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.) +1. *Install WSL:*  See [here](https://learn.microsoft.com/en-us/windows/wsl/install) for instructions on installing WSL. -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". +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/). + +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 ` in a Command or Powershell window. + + Documentation for the `` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html) + +#### Notes: + + * If Medley for Docker (see below) is also installed on the system, you can also start Medley by typing `medley --wsl ` in a Command or Powershell window. This is equivalent to the `wsl medley ` command described above. + +## Running on Windows with Docker Desktop + +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. + +#### To install an run Medley with Docker Desktop: + +1. *Install Docker Desktop:*  Install Docker Desktop for Windows as described [here](https://docs.docker.com/desktop/install/windows-install/). + +2. *Install Medley*:  To install Medley, download and run the the `medley-install_.exe` that can be found [here](https://online.interlisp.org/downloads/medley_downloads.html) under the Windows 10/11 heading. + + 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 uninstall Medley via the + + Note that to download `medley-install_.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 executoing an unsigned .exe. To do so, click `More info` followed by `Run Anyway` when the Windows Defender window pops up. + +3. *Run Medley:*  Once it is installed, you can run Medley by typing `medley ` into either a Command or a Powershell window. + + Documentation for the `` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html) + +#### Notes: + +* 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 Docker icon in the System Tray. + +* 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. + +* 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`. -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. -The thing that hooks them together is the "DISPLAY" variable in the linux side has the address of the "client". -There have apparently been some (mainly unsuccessful) attempts to simplify this for windows 11 users. -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. -* [Cygwin/X](https://x.cygwin.com) -* [XMing](http://www.straightrunning.com/XmingNotes/) (the 6.9 release is old but usable). -* X410 (in the Microsoft Store, $40) -- useful uses windows sockets. - https://x410.dev/cookbook/wsl/using-x410-with-wsl2#vsock - - [VcXsrv](https://sourceforge.net/projects/vcxsrv/) -* GWSL from Microsoft store -* install Xvnc and [TightVNC Version 2.8.63 or higher](https://www.tightvnc.com/download.php) -### X Server and Windows and Monitor sleep -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. -## Requirements - - Windows 10 *or* Windows 11 - - Windows Subsystem for Linux Enabled. [Installing WSL](https://docs.microsoft.com/en-us/windows/wsl/install). - - An installed Linux distribution. The following distros have been tested: - - [Pengwin Linux Distro](https://www.microsoft.com/store/apps/9NV1GV1PXZ6P) - - [Ubuntu Linux Distro](https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6) -### Installing Medley via an Install script -*tbd* -### Manual Installation of Medley -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 From a72d8f0d53a5f53a52d8ebc36eb00c645dd7b6f0 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Thu, 16 Feb 2023 15:17:55 -0800 Subject: [PATCH 2/3] Minor fixups for running-on-windows and running-on-linux --- content/en/running/running-on-linux.md | 13 ++++++++++--- content/en/running/running-on-win.md | 13 ++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/content/en/running/running-on-linux.md b/content/en/running/running-on-linux.md index f491ceb89..8fda76d8e 100644 --- a/content/en/running/running-on-linux.md +++ b/content/en/running/running-on-linux.md @@ -5,7 +5,7 @@ type: docs --- Medley can run on any Linux system that includes X Windows, including Windows -System For Linux (WSL2 only) on Windows 11 and Windows 10 Build 19044+. +System For Linux on Windows 11 and Windows 10 Build 19044+. It is also recommended that the Linux system have a web browser installed. For WSL installations, the browser(s) on the Windows side will suffice. @@ -18,8 +18,15 @@ Medley can be installed on your system in one of two configurations: *standard* any prerequisite packages. Local installation will install Medley into any user directory but any prerequisite packages must be installed manually. +On WSL, 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). +See [here](https://interlisp.org/running/running-on-win/) for more information on running Medley on WSL. -## Standard Installation \(Debian-based systems only\) + +### **Standard Installation \(Debian-based systems only\)** Standard installations are currently supported only for Debian-based systems (i.e., systems that support dpkg), including Debian-based distros on WSL. @@ -94,7 +101,7 @@ Aside from these two features, a non-WSL .deb package will install and run on WS -## Local Installation +### **Local Installation** In a local installation, the Medley system is installed into any user directory from a .tar file. Multiple "Medleys" can be installed in different directories on one machine without interference diff --git a/content/en/running/running-on-win.md b/content/en/running/running-on-win.md index 5951e5778..87331051c 100644 --- a/content/en/running/running-on-win.md +++ b/content/en/running/running-on-win.md @@ -1,15 +1,14 @@ --- -title: Running on Windows +title: Running on Windows 10/11 weight: 40 type: docs --- -## Running on Windows 10/11 -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 "app" to run Medley. +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. On Windows, Medley requires a 64-bit machine. -## Running on Windows with WSL +### **Running on Windows with WSL** 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). @@ -29,7 +28,7 @@ When running under WSL2, Medley can display in one of two ways: in an X-Window ( * If Medley for Docker (see below) is also installed on the system, you can also start Medley by typing `medley --wsl ` in a Command or Powershell window. This is equivalent to the `wsl medley ` command described above. -## Running on Windows with Docker Desktop +### **Running on Windows with Docker Desktop** 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. @@ -39,9 +38,9 @@ When running with Docker, Medley runs in a Docker container using the Interlisp/ 2. *Install Medley*:  To install Medley, download and run the the `medley-install_.exe` that can be found [here](https://online.interlisp.org/downloads/medley_downloads.html) under the Windows 10/11 heading. - 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 uninstall Medley via the + 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. - Note that to download `medley-install_.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 executoing an unsigned .exe. To do so, click `More info` followed by `Run Anyway` when the Windows Defender window pops up. + Note that to download `medley-install_.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. 3. *Run Medley:*  Once it is installed, you can run Medley by typing `medley ` into either a Command or a Powershell window. From 8810aafdc49157b9a2797e4332f3f46a335debb2 Mon Sep 17 00:00:00 2001 From: Frank Halasz Date: Fri, 17 Feb 2023 00:19:48 -0800 Subject: [PATCH 3/3] Smallish updates to running-on-windows.md --- content/en/running/running-on-win.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/en/running/running-on-win.md b/content/en/running/running-on-win.md index 87331051c..d30592da4 100644 --- a/content/en/running/running-on-win.md +++ b/content/en/running/running-on-win.md @@ -20,10 +20,12 @@ When running under WSL2, Medley can display in one of two ways: in an X-Window ( 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/). -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 ` in a Command or Powershell window. +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 ` in a Command or Powershell window. Documentation for the `` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html) + 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. + #### Notes: * If Medley for Docker (see below) is also installed on the system, you can also start Medley by typing `medley --wsl ` in a Command or Powershell window. This is equivalent to the `wsl medley ` command described above. @@ -46,6 +48,9 @@ When running with Docker, Medley runs in a Docker container using the Interlisp/ Documentation for the `` to the `medley` command can be found [here](https://online.interlisp.org/downloads/man_medley.html) + 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. + + #### Notes: * 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 Docker icon in the System Tray.