Editing Trisquel Source

11 risposte [Ultimo contenuto]
hyperion
Offline
Iscritto: 06/17/2018

I'm a programmer interested in making changes to the OS, mainly for shiggles but also to change minor quirks to my liking. What's the most efficient way to edit the source and test the changes in real time?

jxself
Offline
Iscritto: 09/13/2010

Most people get the source using the package manager. That's what it's for. :) I'm not sure what you mean by "real time" though. This isn't an HTML document that you can just reload in your browser once you make a change. :) Depending on what you're doing you might need to compile the program first. And, depending on the program, that can take a while. This is funny: https://xkcd.com/303/ and maybe even restart (if it's the kernel that you're editing.) Maybe do it in a virtual machine so as to not mess with the host system until it's ready to move in to production?

hyperion
Offline
Iscritto: 06/17/2018

I figured using a VM would be best. Where can I find the source code?

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Jxself suggested you 'sudo apt source'.

gd_scania
Offline
Iscritto: 09/13/2017

Thanks and however, in Parabola, how to get sources using pacman and guix? Or to open Parabola's git repo then run "git clone" to get sources? :)

Legimet
Offline
Iscritto: 12/10/2013

No need for the sudo.

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

That's true, you are not applying any change to your system (or accessing any vital part of it) by downloading the source code.

EDIT: which reminded me about a thought I had several times already.. How come apt update requires sudo?

jxself
Offline
Iscritto: 09/13/2010

It updates the database of installed and available packages. Imagine what sorts of things become possible if anyone on the system can make changes to that.

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

But you don't make changes to packages or the repos, without sudo. How can just updating the repo be of any harm? The users can not upgrade or install without sudo, so just updating the repo would be ok? Or am I missing something?

jxself
Offline
Iscritto: 09/13/2010

Keep in mind that the package manager offers the keys to the kingdom in terms of getting software onto the system.

If you could do do apt update without root that means the package manager's database can be updated by anyone. If the database can be changed by anyone it introduces potential security problems. A malicious user could go and manually edit that database (behind the package manager's back, because the database lives on the local file system) to put in whatever they wanted. You, as the system administrator, could no longer trust what the package manager was telling you about installed or available packages.

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

I see. Although, if you have a malicious user with physical access to a machine..it's always bad, that's why I let only my dog use my computer, and no one else. :)

gd_scania
Offline
Iscritto: 09/13/2017

$ apt source libqt5webengine-data libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5
# Not Trisquel, but I've run this to get the PureOS sources for Qt5-WebEngine for liberating the same package for Parabola in [nonprism]

Thanks jxself and I now can start liberating Qt5-WebEngine to get Falkon browser in Parabola working. :)
References here: https://trisquel.info/en/forum/parabola-start-liberating-qt5-webengine-using-sources-pureos