Coder Social home page Coder Social logo

Comments (4)

EzYDark avatar EzYDark commented on July 19, 2024 2

Okay... So I was able to get it to work in some temporary way using X11, which allows me to display the browser (Chrome/Puppeteer) from the remote server on my local machine and I'm able to log in. I've also tried manual setup via F12 etc... but that didn't want to work for some reason (Some Error with my token constantly expiring...). It seems to be working so far. Not the best, but better than nothing.
If anyone is interested in how to make it work, here are the steps (for Windows use only?) using Debian 11 VPS:

1) Install this on your remote server (VPS):
sudo apt update && sudo apt install wget xauth xorg

(Source: https://serverfault.com/questions/422908/how-can-i-prevent-the-warning-no-xauth-data-using-fake-authentication-data-for)

2) Install Google Chrome on that VPS:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

(Source: https://itsfoss.com/install-chrome-debian-kali-linux/)

3) Now you'll need to edit your sshd_config on your VPS:
nano /etc/ssh/sshd_config

  • Edit or add this:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

4) Read this page, follow their steps and install their 'X410' application on your Windows PC:
https://x410.dev/cookbook/enabling-ssh-x11-forwarding-in-visual-studio-code-for-remote-development/

(+ I recommend using the -C argument when connecting to a VPS to use compression)

5) Edit the 'Chromium Path' in VSCode (ChatGPT Extension) to this value: 'google-chrome' (without quotes!)

__

If you followed my steps correctly (and I didn't forget anything), the automatic login should work.
I hope I helped at least a little.

Btw... Quite possibly it should work for WSL too, but it's possible that it could be done more easily using this (https://github.com/microsoft/wslg), but I haven't tried it yet.

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024 1

Updated the readme. Thank you @EzYDark https://github.com/gencay/vscode-chatgpt#troubleshooting

from vscode-chatgpt.

gencay avatar gencay commented on July 19, 2024

Thanks @EzYDark for the question and solution :). Do you mind if I add your steps as a reference to the readme.md -> Troubleshooting? I never tried it with remote workspace but happy to add it for the community!

from vscode-chatgpt.

EzYDark avatar EzYDark commented on July 19, 2024

@gencay
Hey, no problem. Yes, you can, but it would be good if someone else tried it first to see if it works for others. I wouldn't be surprised if I forgot something. ;)

from vscode-chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.