How to run windows installation of PostgreSQL on wsl? - postgresql

So I'm trying to get PostgreSQL to work on my windows device. I installed it through wsl and it all works, but I hear its safer to do the windows install and run it through wsl. How do I do this? What port do i give to the windows installation of PostgreSQL? Thanks!

Related

PostgreSQL install : Failed to load sql modules into the database cluster

I tried to install postgreSQL v15.1.1 x64 in my windows 11 but on completion I got an error
I have used administration to install and close firewall.
Then I tried use another computer with windows 10,the install progress is successful.Is there any difference between Windows11 and Windows10 that should be know to install PostgreSQL?

How to follow or kill all queries running?

I'm using PostgreSQL extension for VSCODE to execute basic queries. However, I've executed a query that is running for a long time. I'd like to know if it's possible to track, or simply kill, all queries running through this extension.
I'm using the version 1.1.18 of this extension on remote WSL2 through SSH connection. The system running on WSL is Ubuntu 20.04. The VSCODE version is 1.58.2 running on Windows 10.

Using PostgreSQL installed in Windows inside WSL as well?

I have installed PostgreSQL version 10 in Windows. Since I'm doing Web development work and using WSL frequently I would like to use PostgreSQL from within WSL too.
Is there anyway in which we are able to link the PostgreSQL software installed in Windows with WSL environment so that any new databases created inside WSL is available in the Windows environment also?
1) PostgreSQL10 installed on Windows environment.
2) PostgresSQL9.5 installed inside WSL environment.
My Question is: how do I connect both Windows configurations WSL to use the same PostgreSQL instance?

How do I run eclipse remotely using Cygwin?

I'm running on Windows 7 and I want to be able to access the remote linux server at my school to run eclipse and do my programming assignments.
I installed cygwin, and ssh into the server, but whenever I run the "eclipse" command, it says "Eclipse: Cannot open display".
Is there any additional software I need to do, or commands I need to run in order to display the gui from my windows 7 computer?
aside from just running eclipse on my own computer, I want to do it remotely.
thank you
You need to:
Run an X server on your Windows machine; there's an xorg-server package in cygwin, use that (or the independent Xming).
Configure your ssh client to forward X11 traffic to the X server on your windows machine.
Here's a more detailed tutorial on doing this.

Launching applications on remote windows xp from ubuntu 10.04 machine

I have ubuntu 10.04 installed on my machine. I want to execute commands on remote windows xp machine ( I have username and password of admin account of remote machine ) so as to launch application like Internet Explorer, Notepad or some bat script. Is there any command line utility to do this via ubuntu? I tried rdesktop, winexe, ssh, telnet but they are not much of use. Can you please suggest some other way?
If you are able to install software on the Windows machine, you can use a Virtual Network Computing software (UltraVNC and RealVNC are good).
This will let you connect and interact as if you were in front of the machine.