On Sun, 17 May 2020 13:59:22 -0700, Mike Easter wrote:
> Your priorities in this matter are very different from my own.
Hi Mike,
I figured it out (see revised cut&paste tutorial included below):
$ uname -mrs
Linux 4.4.0-18362-Microsoft x86_64
$ lsb_release -d
Description: Ubuntu 19.10
$ cat /etc/*release|grep VERSION=
VERSION="19.10 (Eoan Ermine)"
$ uname -a
Linux {pcname} 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
However on your suggestion each person's priorities are different...
o I understand you on that and will never disagree.
Adults should never disagree on facts... (facts are funny that way)...
o And yet, adults can reasonably & logically disagree on priorities.
(adults are funny that way)
The facts are that you can easily install linux/wsl from the command line
o Sans any GUI whatsoever, nor any need to log into anything.
You just cut-and-paste the commands I've reproduced below.
o After testing on two different Windows 10 Pro machines.
All along, my priorities were clearly stated in the opening post, namely:
a. *To provide a cut-and-paste tutorial* if people want it, and,
b. For others to help improve that tutorial;
c. So that everyone benefits from the combined effort.
It should be clear that I strive to write gen-purpose tutorials
o The whole goal is to "add value" to Usenet newsgroups where I can.
All I ever ask in that endeavor is your purposefully helpful advice.
> - I have no interest in win10 wsl
Me neither.
o My goal is "sed", "awk", "grep", "tr", etc. inside of Windows.
Oh, and "vi", of course! :)
o *Quick customized-installation tutorial for setting up gVim on Windows*
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/BpPrLrSCza4/4fyzTCGFCAAJ>
> - my attitudes about privacy are different from yours
Would it help if you knew I had (long ago) a TSSI security clearance?
o Remember, I've been in Silicon Valley high tech for decades.
Now that I'm retired, I strive for as few logins as humanly possible
o The good news is you can install Linux inside WSL sans login.
> - I have no interest in doing anything w/ ios/osx
My goal, always, is generic cross platform compatibility
o Among _all_ the common consumer platform operating systems
Generally, all platforms work fine with Android & Windows & Linux
o The one platform I own that is a compatibility issue is iOS
Luckily, Ubuntu 18.04 handles iOS absolutely perfectly
o There's no need for the iTunes abomination when you have Ubuntu!
> Because...
> - I merely 'tinker' w/ win10 as I also tinker w/ various linux distro/s
> - I mostly 'live' in linux, so all its features are always available
> to me w/o wsl
I _love_ Linux, and, in fact, I'm perplexed about Linux' future...
Why, for example, did cellphones DESTROY Garmin personal GPS
o While, for example, open-office suites did NOT destroy M$ Office.
There's something "fundamental" about payware M$ Office that's key.
o Since Linux does everything else that Windows does, IMHO, with aplomb.
> - because I have plenty of old computers which are mostly not rich in
> resources, I also don't use VMs but instead I boot an OS of choice on a
> box within 'reach' which is 5, 4 of them on two monitors and kb/mouse w/
> KVM switching. 2 more are slightly out of reach
I too have all old computers (they are still BIOS, for example)...
o My point about VMs and Cygwin and Docker, etc., are we tried all of them.
This Linux inside of WSL "promises" to be "more convenient" than dual boot.
o Time will tell if I also ditch Linux inside of WSL though...
> - here's a linux, there's (potentially) an XP, there a win7, there a
> win10, but all of those are also likely to be running some linux
I've had 'em all... just like most people here.
o IMHO, Windows is Windows is Windows (they all do exactly the same thing).
Same with Linux, although I break Linux into a couple of flavors.
o Personally, I only use CentOS and Ubuntu - thank God Unity died!
> - some nice winware runs fine on wine else I use some real win ie xp
> or 7, almost never in win10 'tho.
Yikes! I had forgotten about WINE. OMG! What an abomination (IMHO).
o Like everyone here, I've tried 'em all and ditched 'em over time.
My "hope" is that this new "Linux inside of WSL" is "more convenient" than
o Dual boot with Grub
o Docker
o Cygwin
o Linux inside of VMs
o emulators galore
etc.
As an example of "convenience", I've written tutorials on installing Linux
in a Windows VM, where they're looooooooooooooooooong (and detailed because
there are so many gotchas, not the list with respect to AMD vs Intel CPUs).
Nonetheless, I feel good that I can offer a quick cut-and-paste tutorial
for Windows 10 users that allows them, in minutes, to be up and running
with Ubuntu 18.03 inside of Windows in a WSL, thanks to your kind help!
To that end, I tested (and honed) the tutorial using another computer:
1. Obtain the Linux distribution of your choice (e.g., Ubuntu 18.04):
Win+R > cmd{enter}
C:> curl.exe -L -o ubuntu-1804.appx
https://aka.ms/wsl-ubuntu-1804
...or...
Win+R > powershell{enter}
PS> Invoke-WebRequest -Uri
https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
This is the hash of the appx file I downloaded for this tutorial:
Name: ubuntu-1804.appx
Size: 224629284 bytes (214 MiB)
SHA256: 96E4E3E336F08DDE1DF81FA9C266C5C7750BA92729857E92BDE36BF84A1DB002
2. Enable WSL (aka Windows subsystem for Linux):
Win+R > run{control+shift+enter}
C:> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
...or...
Win+R > powershell{control+shift+enter}
PS> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3. Sideload that Linux distribution of your choice:
Win+R > powershell{enter}
PS> Add-AppxPackage -Path ".\ubuntu-1804.appx"
Note the {control+shift+enter} key sequence performs admin magic:
o *What Windows "magic" invokes a command window as an Administrator*
*window simply by using Control+Shift+Enter versus Enter?*
<
https://groups.google.com/d/msg/alt.msdos.batch/ee2rqSSOkS4/kmdsXWC1AgAJ>
4. Reboot
Win+R > shutdown.exe /r /f /t 5 /c "Reboot in 5 seconds!"
Note: Before you reboot, you'll get this message from wsl:
Win+R > cmd{enter}
C:> wsl
'wsl' is not recognized as an internal or external command,
operable program or batch file.
Note: After you reboot, you'll get this message from wsl:
Win+R > cmd{enter}
C:> wsl
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Note: Before you reboot, you'll get this message from ubuntu1804.exe:
Win+R > cmd{enter}
C:> ubuntu1804.exe
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional component is not enabled.
Please enable it and try again.
See
https://aka.ms/wslinstall for details.
Press any key to continue...
Note this is, I think, the default location for "ubuntu18.04.exe":
C:\users\{uname}\appdata\local\microsoft\windowsapps\ubuntu1804.exe
See also:
o *Shutdown or Restart Windows without bickering*
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/Ou___EcjwKo/7XMKgWp7BQAJ>
5. After rebooting, install Ubuntu 18.04 as a WSL inside Windows:
Win+R > cmd{enter}
C:> ubuntu1804.exe
Installing, this may take a few minutes...
Please create a default UNIX user account.
The username does not need to match your Windows username.
For more information visit:
https://aka.ms/wslusers
Enter new UNIX username: {enter a uname}
Enter new UNIX password: {enter a passwd}
Retype new UNIX password: {re-enter that passwd}
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
{uname}@P{pcname}:~$
$ uname -mrs
Linux 4.4.0-18362-Microsoft x86_64
$ lsb_release -d
Description: Ubuntu 18.04.1 LTS
$ cat /etc/*release|grep VERSION=
VERSION="18.04.1 LTS (Bionic Beaver)"
$ uname -a
Linux {pcname} 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
6. Exit out of the Ubuntu 18.04 inside of WSL:
$ exit
C:> exit
7. Enter back into WSL any time you need Linux inside of Windows WSL:
Win+R > wsl{enter}
...or...
Win+R > ubuntu1804.exe{enter}
...or...
Note you can easily pin the resulting command window to the taskbar.
Voila!
Potential commands to update/upgrade might be...
$ man locate
$ locate issue {this is a fast-find feature of Linux}
$ sudo updateb {this updates the fast-find db; warning it takes time!}
$ cat /etc/issue
$ cat /etc/os-release
$ man do-release-upgrade
$ locate release-upgrades
$ sudo vi do-release-upgrade {set prompt=normal to "release-upgrades"}
$ sudo vi /etc/update-manager/release-upgrades
Change from: Prompt=lts
Change to: Prompt=normal.
$ sudo do-release-upgrade {this will fail due to the need for lxd}
$ sudo dpkg --force depends -P lxd; sudo dpkg --force depends -P lxd-client
And now, the fun begins...
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt install update-manager-core
$ sudo apt-get dist-upgrade
etc.
Note for suggestions on how to handle prompts, please see:
o *Upgrade Windows Subsystem Linux - Ubuntu 18.04 to Ubuntu 19.10*
<
https://thelocalhost.blog/2020/01/28/update-wsl-ubuntu-from-18.10-to-19.10/>
As always, please test & improve so all benefit from every action.
--
The best tutorials are those that a noob can run & they still work.