I just use 'code' in ubuntu.
i download code_1.74.2-1671533413_amd64.deb in site
sudo apt install ./code_1.74.2-1671533413_amd64.deb
then update package
sudo apt-get install apt-transport-https
sudo apt-get update
apt-get install code # or code-insiders
then i have problem like this.
/mnt/c/Users/jhyun/Desktop$ code
To use Visual Studio Code with the Windows Subsystem for Linux, please install Visual Studio Code in Windows and uninstall the Linux version in WSL. You can then use the code command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyway? [y/N]
how can i solve this?
You have two options when running VSCode under WSL:
Run the Linux version, as you are doing currently.
The Linux version should run fine, but is limited to compiling, running, and debugging Linux applications. It will not be able to use the Windows versions of any of your development tools. This may or may not be a problem for you. If you only plan to use Linux toolchains from WSL, then the Linux version of VSCode will handle those just fine.
Run the Windows version and install the WSL Extension or the Remote Development Extension Pack (which includes the WSL Extension).
This has the advantage of being able to use Linux tools (through a "shim server" that is automatically installed in WSL when you launch code) or native Windows tools.
As a native Windows application, it should also be a bit better integrated with the Windows desktop.
There are just very few reasons (and I can't think of any of them at the moment) why you would want to use the Linux version in this case.
Related
have any of you tried compile and executing SFML c++ project output on wsl?
I tried and got
Failed to open X11 display; make sure the DISPLAY environment variable is set correctly
Aborted
Is it possible at all to execute GUI applications through wsl?
(I've installed ubuntu's for wsl)
Linux distributions set up for WSL 1 will not function with Linux GUI applications, which are only supported with WSL 2.
Due to the official documentation from Microsoft regarding WSL, you might need to check these steps:
Select Start, type PowerShell, right-click Windows PowerShell, and then select Run as administrator.
after that type this command and then press enter:
wsl --update
You will need to restart WSL for the update to take effect. You can restart WSL by running the shutdown command in PowerShell.
wsl --shutdown
now, once again open powershell and type in this command:
wsl --list --verbose
You should see the number 2 for your installed distro under the heading VERSION in the response.
If everything went as planned until this point, see if your distro can open any windows by installing a GUI app like gedit and trying to open it:
sudo apt update
now install gedit:
sudo apt install gedit -y
After the installation has finished, launch gedit by typing gedit in your wsl terminal. A window from wsl inside of Windows should now open, and the issue should now be resolved.
find more information here:
https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
If you had the same problem
first, you need to install VcXsrv and X11 for executing GUI applications through wsl
then you have to add these 2 to your environment variables:
export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=0
I am a windows 7 user and want to download npm and nodejs.
I have tried to install node js on windows 7 but it is not supported.
So, is there any linux version that can be downloaded on windows 7 and supports npm and nodejs ?
Or if anyone can tell any other way to download npm and nodejs on my pc.
And, I cannot upgrade my operating system.
I think you are a bit confused, Linux cannot be installed on Windows (there's the subsystem on Windows 10, but that's different), as Linux is a kernel that is usually paired with the GNU operating system, in practice, this means Linux is used as an operating system, and cannot be installed on Windows.
Installing Linux on your computer would mean deleting Windows.
What you can do, if you can't uninstall Windows, is create a virtual machine running Debian (a popular Linux distribution) using VirtualBox, you'd need to get a Debian ISO and create a virtual machine with it.
Once you install it, you can run sudo apt install npm nodejs inside a terminal to install Node.js and npm.
You don't have to use Debian, I suggested it because I personally like it for servers, but you can use Ubuntu, Fedora, Manjaro or any other distribution.
EDIT:
I did some further reading and found this tutorial, in which is shown how to install Node.js on Windows 7, by installing the LTS release 13.14.0.
I wanted to post this because I didn't find the answer elsewhere and this might just help someone else.
I have Slack installed on my Ubuntu 18.04 Bionic Beaver via FlatPak and would like to have it launch as soon as I login.
Because it is installed via FlatPak, I cannot find it in /usr/share/applications in order to add it to startup applications
You need to install FlatPak applications via Gnome Tweaks. If you haven't already installed Gnome tweaks then run
sudo apt install gnome-tweaks
Launch Gnome Tweaks and navigate to "Startup Applications".
The flatPak applications are easily found from here.
You could add an entry to your .gnomerc, .Xinitrc etc such as
snap run (program)
Need GUI to run qemu on Ubuntu server: I need to run QEMU for ARM on a Ubuntu srever. THis QEmu is not supporting a text mode, so I need to install GUI software on Ubuntu server 13.04. Please suggest any that I can do a sudo apt-get install and get started quickly.
Are you connecting to the server over ssh? You could just use X forwarding to your local machine.
See the very good first answer here.
Then you can just start the software and interact with the GUI on a computer that already has the desktop environment installed.
You can do the following
sudo apt-get install ubuntu-desktop
For more info, look to this link
I am trying to build db-mysql extension for NodeJS under Cygwin. The problem is, that it requires libmysql development libraries and include files. I have no idea how to install (and where to get) this stuff to work with Cygwin. Under Ubuntu i would write something like this:
sudo apt-get install libmysqlclient-dev
But this is not possible under Cygwin. Also there is no available libmysql package when I run Cygwin's setup.exe. Does anybody know how to solve this isue?
I have installed wamp under Windows which includes MySQL database. I would like to use databases from that installation under Cygwin, is that possible?
Thanks
It's available from Cygwin Ports, a large repository of additional Cygwin packages that can be installed through Cygwin's setup.exe.