This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | [Terminal] - Ubuntu on Windows 10, Netbeans can't use terminal from the Linux subsystem | ||
---|---|---|---|
Product: | cnd | Reporter: | Christian Lenz <chrizzly> |
Component: | Terminalemulator | Assignee: | ilia |
Status: | CLOSED INVALID | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Christian Lenz
2016-08-08 09:36:31 UTC
Hi Chris, I haven't tested "native" windows bash yet, as you correctly said, it's beta. I'll take a look on this issue soon. NetBeans' Terminal behavior differs on Unix/Windows systems and most likely NetBeans doesn't expect to find bash.exe not as a part of Cygwin/Msys. Nice to hear. Thx. I think it should be easy, because the code already looks for bash or bash.exe insight the code of the dlight.terminal module. The bash.exe for ubuntu on windows is located here: C:\Windows\System32\bash.exe so I played a bit around, but no effect atm. Would be great to see it soon maybe. Will be a great enhancement. Makes work easier. The folders are located to here: C:\Users\[username]\AppData\Local\lxss WSL can be used as a remote host. Step in order to prepare "host". 1) install WSL 2) update Ubuntu 3) fix ssh server (https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10) ---------------------------------------------- sudo apt-get remove --purge openssh-server sudo apt-get install openssh-server sudo vi /etc/ssh/sshd_config # Change Port from 22 to 2222 sudo service ssh --full-restart ---------------------------------------------- 4) apt-get install unzip (I can't create Welcome sample without 'unzip' utility) 5) add localhost:2222 remote host in NetBeans 6) check build, run, debug, terminal valera, What Windows version do you use? I tried to investigate this feature in the most naive way: to use WSL's bash.exe as a Shell/login shell for Windows' local host. But I faced this issue: https://github.com/Microsoft/BashOnWindows/issues/2 https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13425768-allow-windows-programs-to-spawn-bash and had to upgrade to 14926+ version of Windows Insider program. Haven't got a chance to test it on this version yet. Btw, it's great that WSL can work as a remote host! I use latest Windows 10 stable version and it worked. Thx. The only problem is, that I have to leave the bash open to use it. It is ok but it should work without having the bash open. As a workaround you can try to add bash.exe to autorun. Also you can connect to a remote host as Valera (soldatov) described, and then "pin" this remote terminal session (right click -> Pin Tab). This will open the remote session every time you start IDE. I will try Windows Dev build to see if it's possible to start bash.exe without an issue described here https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13425768-allow-windows-programs-to-spawn-bash and will get back with results. I did what soldatov said, it worked fine. I have a remote host inside netbeans, but this is only working, when the bash.exe is open, outside netbeans. I wondered, I closed the bash and the terminal window went away. So of course it is all a quite workaround, but native implemetation inside NB would be better. Because now I have to open both, the terminal and the bash (outside). But my intention is not to open the bash extra for that. (In reply to ilia from comment #7) > What Windows version do you use? Usual Windows 10 (not a "Windows Insider program") > https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on- > ubuntu-on-windo/suggestions/13425768-allow-windows-programs-to-spawn-bash Already fixed My biggest problem, 'bash' doesn't start SSH server by default, because WSL is not a real Linux. Therefore I need to use "sudo service ssh start" command every time. I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-181. Please feel free to change the state of the ticket. |