Remote development on Raspberry pi using VS code and Gemini for the Assistance

Remote development on Raspberry pi using VS code and Gemini for the Assistance

Here is the steps by step procedure to setup to interactivity work on a remote Linux machine (raspberry pi in my case) from from the Windows/Linux desktop using VS code.

Also, configure Gemini code Assist.

VS code for Remote access of Linux machine

Firstly, find the Linux machine's ip address or the host name.

# jfyi, 
> nmap -sP 192.168.1.0/20 
# will the list of the machine's in same network and its ip address        

Second, check if the Linux machine is able to connect in ssh via command prompt manually.

ssh pi@<ip address>        

Install latest version of VS code and open

Open extensions, search for "Remote SSH" and install

Open view -> Command Palette -> type "remote" select "Connect to Host"


type in the username and ip address as shown below,

save the configuration

Now, new VS code will be opened automatically and ask to enter password of the Linux Machine

Trust the connect by Click on Yes

Click on File -> Open Folder,

Tada....You will be able to see all the files and folders of Linux machine now.

In the left bottom of status bar shows the connection is alive.

Apologies, all the snapshots above are from another Linux machine desktop due to windows unavailability. But procedure remain exactly same in windows.

Configure Gemini Code Assist

Install "Gemini Code Assist" extension

Open on the "Gemini" Icon in the left bar -> Click on Login to Google Cloud. It will popup the windows, click on "Configure Trusted Domains".

Now this will open up the browser and ask you to login with gmail account, just do it.

Then click on "Select the Google Cloud Project", Create new Google cloud project if you don't have one.

Now, Gemini is activated and ready to use.

Left side is the code from Linux machine(here raspberry pi) and Gemini is available to take its support.

Sharing the work & Credit with Balaji Sriram R M



Thank You

要查看或添加评论,请登录

M Vijaynath的更多文章

社区洞察

其他会员也浏览了