找到源代码以学习编程

Dun*_*oit 1 ubuntu libraries

我刚刚在我的电脑上安装了ubuntu,现在我想浏览一些代码.作为一个起点,我看到了GLCells屏幕保护程序的源代码

我如何/在哪里可以找到GLCell的源代码.一般来说,我如何找到ubuntul OS发行版的源代码?

Tro*_*nic 7

sudo apt-get build-dep xscreensaver  # Install the libraries and the tools needed
apt-get source xscreensaver          # Download the sources
cd xscreensaver-5.10
(make changes to code)
dpkg-buildpackage -rfakeroot         # Build a .deb
sudo gdebi ../xscreensaver*.deb      # Install the package
Run Code Online (Sandbox Code Playgroud)

为避免在每次更改后进行完全重新编译,请按照此处的说明进行操作:http://www.debian.org/doc/maint-guide/ch-build.en.html

  • 第一个命令是最重要的命令,它适用于任何Ubuntu包.很棒的答案! (2认同)