When I was using the editor on the desktop screen of Raspberry Pi from a PC with VNC I had some complaints. . .
** "Don't use ..." **
** "Cho use it ..." **
The copy and paste didn't go well, or the movement was sluggish. I was wondering if something could be done.
"Ah, I wish I had an editor like Atom or VC code ..." . .
So, edit, save and run the Python file in the Raspberry Pi with Atom I summarized the method.
With VNC (Virtual Network Computing) virtual network connection From the method of displaying and operating the editor on the desktop screen of Raspberry Pi from the PC,
I will do the method of remotely accessing the Raspberry Pi on Atom and editing the file.
--Main body: Raspberry Pi 4 4B-32GB
-: Pencil2: The part with this mark represents the input. -: Mag: The part with this mark indicates confirmation.
It was introduced by the following procedure.
--Installing Atom --Package installation --Setting to connect with Raspberry Pi --Test
Download the software from the Atom website (https://atom.io/).
Follow the download procedure this article.
Install the following three packages.
-** japanese-menu : Package to be translated into Japanese - ftp-remote-edit : A package that allows you to connect to Raspberry Pi via SFTP and edit files. - platformio-ide-terminal **: A package that makes an external terminal available
. First, click "Atom", then "Preferences ..." in the sidebar.
You have transitioned to Settings. Then click "install" to get to a location where you can install the package.
: pencil2: Enter the package name here to display the installation package.
Click ": cloud: install" to install.
If you want to check the installed packages, click "Package" and they will be displayed in a list.
Click Packages> Ftp-Remote-Edit> Toggle.
: pencil2: At first, you will be asked to set a password, so enter the password.
After that, you will need a password for setting and connecting, so make a note of it.
Once the password is passed, a tab called "Remote" will appear on the screen. Place the cursor in that tab, right-click and click Edit Serves.
: pencil2: The setting screen will be displayed, so enter as follows.
: mag: If the connection is successful, it will be as follows.
Let's open some file. This time, I will open "test-code.py" on the desktop of Raspberry Pi.
Atom
VNC
I was able to confirm that they were in sync.
Try opening Astro Boy's terminal and launching the program. Click the "+" at the bottom left of the screen to open the terminal.
Log in to your Raspberry Pi to work with the files on your Raspberry Pi. : pencil2: Enter as follows.
Change to the directory where "test-code.py" is located. : pencil2: Since it is located on the desktop, enter cd Desktop /.
: pencil2: The program starts with python "filename".
I feel that UX has improved a lot because it is possible to edit files with Atom. The increased color scheme makes it easier to see, and above all, the response has improved.
I have a feeling that I might find more useful features in combination with other packages: sunglasses: