https://askubuntu.com/a/1401317
md
window (!!), run wsl --shutdown
Start WSL2
Run the following inside WSL2
sudo rm -rf /etc/resolv.conf
sudo tee /etc/resolv.conf << EOF
search yourbase.domain.local
nameserver 8.8.8.8
nameserver 1.1.1.1
EOF
https://askubuntu.com/a/1401317
md
window (!!), run wsl --shutdown
Start WSL2
Run the following inside WSL2
sudo rm -rf /etc/resolv.conf
sudo tee /etc/resolv.conf << EOF
search yourbase.domain.local
nameserver 8.8.8.8
nameserver 1.1.1.1
EOF
First we find whether our environment uses Sysv Init or systemd. The below command will give that
ps -p 1
As an example, we use elasticsearch service
Use the update-rc.d
command to configure Elasticsearch to start automatically when the system boots up
sudo update-rc.d elasticsearch defaults 95 10
Elasticsearch can be started and stopped using the service
command:
sudo -i service elasticsearch start
sudo -i service elasticsearch stop
If Elasticsearch fails to start for any reason, it will print the reason for failure to STDOUT. Log files can be found in /var/log/elasticsearch/
To configure Elasticsearch to start automatically when the system boots up, run the following commands:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
Elasticsearch can be started and stopped as follows:
sudo systemctl start elasticsearch.service
sudo systemctl stop elasticsearch.service
Go to the settings of the pem file.
Go the security tab -> Advanced section -> Disable Inheritance -> OK
Reference https://superuser.com/questions/1296024/windows-ssh-permissions-for-private-key-are-too-open
Please do the following steps
sudo apt-get update
sudo apt-get install xrdp
// restart only if needed
sudo /etc/init.d/xrdp restart
sudo apt install lxde
sudo adduser username //for using in the lxde terminal
We can override environment variables in the integrated terminals using the following commands in the settings.json
"terminal.integrated.env.windows": {
"JAVA_HOME": "D:\\Applns\\Java\\amz_jdk11.0.11_9"
}
The above command will override JAVA_HOME for the integrated terminal in windows so that we can run maven with separate JAVA_HOME in vscode
IBM migration toolkit – https://www.ibm.com/docs/en/wamt?topic=migration-toolkit-application-binaries
JVM options Explorer and other utilities – https://jacoline.dev/inspect
Migration steps – https://winterbe.com/posts/2018/08/29/migrate-maven-projects-to-java-11-jigsaw/