Due to my gaming habbits, I am still a Windows user.
But sometimes, some things just are more elegant in Linux, or some tools are not available to Windows at all. So I was quite happy when I discovered WSL, as it allowed me to run linux commands on my Windows file system without switching back and forth to a dual boot Linux.
Running Windows 10.
First, you have to enable the Windows feature "Windows Subsystem for Linux". This can be done either in the settings dialog or using the following command in the Admin-PowerShell:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Next, you have to install a Linux distribution (e.g. Ubuntu 18.04). This is either done using the Windows store, or again using the Admin-PowerShell:
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
Add-AppxPackage .\Ubuntu.appx
In command line run wsl
(or specifically wsl -d Ubuntu-18.04
) which will initialize the linux environment and start a shell.
Note: wsl --list
shows all installed distros.
# Ubuntu Setup ##################################
sudo -s
apt-get update
apt-get upgrade --with-new-pkgs
apt-get upgrade autoremove
Just my usual setup steps for my own mind:
TexLive (web), php7.0
apt-get install php7.0
Todo: nvm, node, lighthouse, sdk, composer, git, pdfnup/*join, ffmpeg, convert, openssh, telnet, imapdump