version 1.0 page 1 Installing NetBeans IDE for use with WSL and C++ (version 1.0) This set of instructions assumes that you have already installed WSL (Windows Subsystem for Linux) along with gcc, g++, make, and gdb. This set of instructions is for WSL ONLY! These instructions do not apply to Cygwin or Linux distributions in general. NetBeans does not currently (as of version 8.2) automatically recognize the gnu compilers installed in WSL. However, you can use the WSL gnu compilers from NetBeans as a “remote host”. This is a process where you use NetBeans on your local machine to edit code and use a remote host to compile and run the code. In this case, Windows will be your local machine and WSL will be the remote host even though both are running on the same computer. Prepare WSL as a Remote Host 1. Update the Linux packages being used by WSL with the following commands in your WSL Ubuntu command window: sudo apt update sudo apt upgrade 2. The following instructions assume you will use the nano text editor to modify a text file. A nano tutorial is available at: https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command- line-text-editor/ Your Windows installation is probably already using port 22 for its SSH server, we need to change WSL’s SSH server to listen to a different port. sudo nano /etc/ssh/sshd_config Change the lines: # What ports, IPs and protocols we listen for Port 22 to Port 2222 The WSL SSH server is initially set up to use key files for authentication. To allow authentication with passwords, change: # Change to no to disable tunnelled clear text passwords PasswordAuthentication no to PasswordAuthentication yes Use Ctrl-o to save the file. Use Ctrl-x to exit the nano text editor.
11
Embed
Installing NetBeans IDE for use with WSL and C++web.cse.msstate.edu/.../Installing_NetBeans_IDE_for... · NetBeans does not currently (as of version 8.2) automatically recognize the
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
version 1.0 page 1
Installing NetBeans IDE for use with WSL and C++ (version 1.0)
This set of instructions assumes that you have already installed WSL (Windows Subsystem for Linux)
along with gcc, g++, make, and gdb.
This set of instructions is for WSL ONLY! These instructions do not apply to Cygwin or Linux distributions
in general.
NetBeans does not currently (as of version 8.2) automatically recognize the gnu compilers installed in
WSL. However, you can use the WSL gnu compilers from NetBeans as a “remote host”. This is a process
where you use NetBeans on your local machine to edit code and use a remote host to compile and run
the code. In this case, Windows will be your local machine and WSL will be the remote host even though
both are running on the same computer.
Prepare WSL as a Remote Host
1. Update the Linux packages being used by WSL with the following commands in your WSL
Ubuntu command window:
sudo apt update
sudo apt upgrade
2. The following instructions assume you will use the nano text editor to modify a text file. A nano tutorial is available at: https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/ Your Windows installation is probably already using port 22 for its SSH server, we need to change WSL’s SSH server to listen to a different port. sudo nano /etc/ssh/sshd_config Change the lines:
# What ports, IPs and protocols we listen for Port 22
to Port 2222
The WSL SSH server is initially set up to use key files for authentication. To allow authentication
with passwords, change:
# Change to no to disable tunnelled clear text passwords PasswordAuthentication no
to PasswordAuthentication yes
Use Ctrl-o to save the file. Use Ctrl-x to exit the nano text editor.