What you are asking is how to edit files.  There are so many ways to
do this, that it is best that we leave that kind of documentation to
the projects that maintain your tools.  I can't afford the time to
support you in using the tool chain I'm using, so I'll speculate
instead.  I dislike speculating in engineering, as it leads quickly to
error.

I'm guessing you may be familiar with Visual Studio Code, a
source-code editor made by Microsoft for Windows, Linux, and macOS.  A
remote SSH extension is available for VS Code.  So an outline of
workflow could be;

1.  set up SSH keyed access into one of the virtual machines from your
development system, preferrably with keys that have no passphrase,
(see the SSH documentation for how to do this),

2.  set up SSH configuration (~/.ssh/config) so that the correct
username is applied, e.g.

        Host vm
        User guest

3.  test that you can SSH into the virtual machines, quickly and
easily, e.g.

        ssh vm whoami

4.  log in using SSH, make the ~/Activities directory (it may already
be there), and clone an activity repository from GitHub, e.g.

        ssh vm
        mkdir ~/Activities
        git clone https://github.com/sugarlabs/hello-world.git 
~/Activities/HelloWorld.activity

5.  restart Sugar, and verify that the activity is shown in the home
view,

6.  install Visual Studio Code, and the remote SSH extension,

7.  use the extension to open the directory, change the source code,
and run the activity in Sugar.

On Sat, May 21, 2022 at 12:47:28AM +0530, Shreyas Sukhdeve wrote:
> Respected sir/ma'am,
> 
> I am Shreyas Sukhadeve, a student of Computer Science and Engineering at 
> Indian
> Institute of Technology, Bhubaneswar (IIT BBS).
> 
> The reason for writing this mail is to seek your help regarding a trouble I am
> facing with editing python scripts in sugar based games on my linux virtual
> machine.
> 
> I do not have a good level of proficiency with using linux machines and have
> tried various steps to solve the issue in the past but failed to successfully
> implement the editable version of the activities.
> 
> The situation I am currently in is that I have installed a total of 4 Linux
> Distributions in my Virtual Box, apart from the Ubuntu 20.04 system that is 
> not
> supported by Sugar, the other 3(fedora, debian and SugarOS) end up allowing me
> to run the activities on sugar when I choose the option of starting with the
> sugar interface when entering password, but I am not able to make any edits to
> the code that will reflect on the sugar interface.
> 
> What I request from you is to help me set up at least one distribution of 
> linux
> or SugarOS where I can edit the code. Also I request you to please screen
> record a segment of your work when accessing sugar activities for editing so
> that I can understand how I need to edit the code when the linux distribution
> is all set for coding.
> 
> I acknowledge that I am requesting a lot but I plead with you to consider my
> situation where I am stuck at the same point from days trying to contribute 
> but
> failing to do so due to this problem.
> 
> Waiting for your reply
> 
> Thank you, 
> Yours Sincerely,
> Shreyas Sukhadeve.
> 
> Sent with [1]Right Inbox
> 
> References:
> 
> [1] https://www.rightinbox.com/?utm_source=signature

> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to