# 1.1. configure sshd sudo cp$SSHD_FILE${SSHD_FILE}.`date'+%Y-%m-%d_%H-%M-%S'`.back sudo sed -i '/^Port/ d'$SSHD_FILE sudo sed -i '/^ListenAddress/ d'$SSHD_FILE sudo sed -i '/^UsePrivilegeSeparation/ d'$SSHD_FILE sudo sed -i '/^PasswordAuthentication/ d'$SSHD_FILE echo"# configured by CLion" | sudo tee -a $SSHD_FILE echo"ListenAddress ${SSHD_LISTEN_ADDRESS}" | sudo tee -a $SSHD_FILE echo"Port ${SSHD_PORT}" | sudo tee -a $SSHD_FILE echo"UsePrivilegeSeparation no" | sudo tee -a $SSHD_FILE echo"PasswordAuthentication yes" | sudo tee -a $SSHD_FILE # 1.2. apply new settings sudo service ssh --full-restart
# 2. autostart: run sshd sed -i '/^sudo service ssh --full-restart/ d' ~/.bashrc echo"%sudo ALL=(ALL) NOPASSWD: /usr/sbin/service ssh --full-restart" | sudo tee -a $SUDOERS_FILE cat << 'EOF' >> ~/.bashrc sshd_status=$(service ssh status) if [[ $sshd_status = *"is not running"* ]]; then sudo service ssh --full-restart fi EOF
# summary: SSHD config info echo echo"SSH server parameters ($SSHD_FILE):" echo"ListenAddress ${SSHD_LISTEN_ADDRESS}" echo"Port ${SSHD_PORT}" echo"UsePrivilegeSeparation no" echo"PasswordAuthentication yes"
$ /usr/bin/gcc-5 --version gcc-5 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.020160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc helloworld.c -o helloworld
$ ./helloworld Hello, world!
$ file helloworld helloworld: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=3a0c7be5c6a8d45613e4ef2b7b3474df6224a5da, not stripped
And to prove it really was working, disable i386 support and try again:
1 2 3 4 5
$ sudo service binfmt-support stop * Disabling additional executable binary formats binfmt-support [ OK ]
Remove all Virtual machine features. This being: Hyper-V, containers, Virtual Machine Platform, Windows Hypervisor Platform, Windows Sandbox and Windows Subsystem for Linux.
Reboot the computer!
Follow the manual WSL installation instructions provided by Microsoft as shown here: http://aka.ms/wslinstall
Reboot the computer!
Make sure that your Linux Distro converts to WSL2 if you want your Distro to operate under a full Linux Kernel.
There is no harm in invoking Windows Update at this point. I recommend you do.
Install the Windows Hypervisor Platform. (The likes of VMware and Virtual Box need it.)
No harm in rebooting the computer at this point.
No harm in invoking Windows Update at this point.
If you use it, install the Windows Sandbox feature and test it.
Finally install Hyper-V and put back all your required settings.
At this point everything, for me, started working.
I have noticed that on the completion of installing any of the virtualisation features, when invoking Windows Update then KB4592438 gets reapplied. If you wish, and maybe recommended, invoke Windows Update when you install a Windows Feature. That’s what I did. Installed a feature, rebooted and invoked Window Update. (I think the only one where I didn’t invoke Windows Update is when I installed the Windows Hypervisor Platform.)