[Sugar-devel] Regarding contribution in Sugar Repository
Chihurumnaya Ibiam
ibiam at sugarlabs.org
Thu Feb 24 05:23:50 EST 2022
Yes you can clone the activity locally from that link then make any changes
you want and copy the directory to your vm,
after testing any issue you're working on and things are working as
expected then you can push to your fork of the activity and
open a PR from there.
You should check out our contributing guide
<https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md>
for making changes to an activity and Sugar.
Hope that helps!
--
Ibiam Chihurumnaya
ibiam at sugarlabs.org
On Wed, Feb 23, 2022 at 8:48 PM Saumya Kushwaha <saumyakus at gmail.com> wrote:
> Thank you Ibiam,
> Now I am able to copy and change the file via ssh with SCP.
>
> Could you confirm that, If I want to work on let's say "Calculate
> Activity" then I can clone it from here
> <https://github.com/sugarlabs/calculate-activity> then copy the VM
> "calculate Activity" in my local and now after comparing and easily
> checking them using any code editor, can work on any issue, and if things
> are working, then can raise the pr in the cloned repository of "Calculate
> Activity" i.e. here <https://github.com/sugarlabs/calculate-activity>.
>
> Thank again, Other pieces of information are also very helpful.
>
> Saumya Kushwaha
>
>
>
> On Tue, Feb 22, 2022 at 10:45 PM Chihurumnaya Ibiam <ibiam at sugarlabs.org>
> wrote:
>
>> Hi Saumya,
>>
>> If I understand correctly, you currently make changes to sugar locally
>> from a cloned repo and you're trying to get these changes to your Sugar VM,
>> if that's the case then you can either copy the files you changed to the
>> VM via ssh with rsync or scp and move the file to the right directory so you
>> can test it.
>>
>> For changes to Sugar activities, you can clone activities in ~/Activities
>> in the VM and copy your changed files to the specific activity in that
>> folder, you should be
>> able to see the cloned activity from the activity ring in Sugar and to
>> test your changes you can start a new instance of the activity and you
>> should be able to see your changes.
>>
>> For changes to sugar and it's core APIs, the source code in the vm can be
>> found at /usr/src/sugar(-artwork, -toolkit-gtk3, -datastore) and
>> /usr/src/gwebsockets,
>> you can build any of the APIs after copying your changes, check here
>> <https://github.com/sugarlabs/sugar-live-build/blob/master/src/config/hooks/normal/0900-sugar.hook.chroot>
>> for how to build any of the APIs.
>> Changes to any of the APIs can only be done as root and require a restart
>> to propagate.
>>
>> Activity and Sugar logs can be found at ~/.sugar/default/logs.
>>
>> If you use vim, you can make changes directly as you can access the VM
>> via ssh, this removes the need to copy files to the VM.
>>
>> Hope that helps!
>>
>> --
>>
>> Ibiam Chihurumnaya
>> ibiam at sugarlabs.org
>>
>>
>>
>> On Tue, Feb 22, 2022 at 2:53 PM Saumya Kushwaha <saumyakus at gmail.com>
>> wrote:
>>
>>> Respected Sir,
>>>
>>> I am Saumya Kushwaha, a CSE 2nd year student of IITBHU, India. I am
>>> already contributing to SugarLabs from December 2021 in many repositories.
>>> I have queries regarding contribution to the Sugar
>>> <https://github.com/sugarlabs/sugar> repository. I have already set
>>> up the Sugar in my Virtual Machine and can access it via SSH.
>>> But, I am not able to find how I actually connect the forked code of
>>> "Sugar" from my local environment to the Virtual Machine. I mean to say how
>>> after changing the code in my local environment can see the changes in
>>> Virtual machine. I had followed this
>>> <https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md>
>>> file but couldn't able to understand this thing properly.
>>> Could anyone please guide me, share an article or blog from where I can
>>> read, or let me know the steps like after cloning how I connect my Virtual
>>> Machine code to the local machine. SO that I can work on pending issues
>>> and contribute to Sugar.
>>>
>>> It would be a great help!
>>>
>>> Thanks and Regards,
>>> Saumya Kushwaha
>>> Github: https://github.com/S-kus
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel at lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20220224/2ec94a9c/attachment-0001.htm>
More information about the Sugar-devel
mailing list