Editing Trisquel Source
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
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?
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?
I figured using a VM would be best. Where can I find the source code?
Jxself suggested you 'sudo apt source'.
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? :)
No need for the sudo.
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?
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.
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?
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.
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. :)
$ 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
- Vous devez vous identifier ou créer un compte pour écrire des commentaires