Actions

HowTo: Easy Build LKRG Debian Package without Signature Verification

From Whonix

< Linux Kernel Runtime Guard LKRG‎ | Build Debian Package from Source Code
LKRG logo

Here are easier instructions on how to build the LKRG Debian Package from source code without verifying software signatures. Instructions with better security and more explanation can be found here.


The build process of building any of the packages by Whonix developers is always very similar. This very wiki page explain how to build package lkrg. By replacing the name of the package lkrg with the name of any other package you might be interested in building, the other package would be build. You have two options.

OR

Get Build Dependencies[edit]

Update your package lists.

sudo apt-get update

Install from Debian repository.

sudo apt-get install build-essential devscripts git

Change Directory to Build Folder[edit]

This chapter is recommended for better usability, but is not strictly required. [1]

Create folder ~/lkrg-build.

mkdir -p ~/lkrg-build

Change directory to folder ~/lkrg-build.

cd ~/lkrg-build

Get the Source Code[edit]

Get the the package's source code.

git clone https://github.com/Whonix/lkrg.git

Remember it is Whonix, not whonix! If you are prompted for a username for github, it means you have mistyped the web address.

Change Directory to Source Code Folder[edit]

Get into the package's source code folder because later on package build commands are expected to be run from the root of the source folder.

cd lkrg

Choose Version[edit]

This is optional in case you want to build from master branch.

Do not use version 0.1 but a sensible version number.

git checkout 0.7.1-1

Build the Package[edit]

dpkg-buildpackage -b

Build Result[edit]

When a package is build using dpkg-buildpackage the resulting packages will be created in the parent folder. I.e. in this case in the ~/lkrg-build folder.

ls ../

Should show something like this.

lkrg lkrg0.7.1-1-1_amd64.buildinfo lkrg0.7.1-1-1_amd64.changes

Installation[edit]

sudo dpkg -i ../lkrg_0.7.1-1-1_amd64.deb

Clean Up[edit]

Delete temporary files debhelper files in package source folder as well as debhelper artifacts (.deb file etc.) in parent folder.

1) Show extraneous (temporary files debhelper) files.

git clean -ndff

2) NOTE: Read above output carefully if you added files of your own files to that folder.

If that looks good, actually remove.

git clean -dff

3) Delete debhelper artifacts (.deb file etc.) in parent folder.

TODO: document

Footnotes[edit]

  1. When a package is build using dpkg-buildpackage the resulting packages will be created in the parent folder. It's better for usability if this is not the user's home folder since many other files may already reside there. Thereby making the build result files more difficult to find or delete. This is a missing Debian feature. See: dpkg-buildpackage: support output directory other than .. [archive]


Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png link=mailto:?subject=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy&body=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy link=https://reddit.com/submit?url=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&title=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy link=https://news.ycombinator.com/submitlink?u=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&t=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy link=https://mastodon.technology/share?message=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy%20https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&t=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy

Love Whonix ™ and want to help spread the word? You can start by telling your friends or posting news about Whonix ™ on your website, blog or social media.

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

Credits and Source Code[edit]

The original [archive] source software is maintained by Adam "pi3" Zabrocki. See also authorship

This website with Debian package build instructions and LKRG Debian Package Website is the software fork [archive] homepage for LKRG, with a focus on easy installation, added user documentation, and integration with Whonix, Kicksecure, Debian, and other distributions. The software fork source code can be found here [archive].

Footnotes[edit]



Fosshost is sponsors Kicksecure ™ stage server Whonix old logo.png
Fosshost About Advertisements

Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki


Follow: 1024px-Telegram 2019 Logo.svg.png Iconfinder Apple Mail 2697658.png Twitter.png Facebook.png Rss.png Reddit.jpg 200px-Mastodon Logotype (Simple).svg.png

Support: 1024px-Telegram 2019 Logo.svg.png Discourse logo.png Matrix logo.svg.png

Donate: Donate Bank Wire Paypal Bitcoin accepted here Monero accepted here Contriute

Whonix donate bitcoin.png Monero donate Whonix.png United Federation of Planets 1000px.png

Twitter-share-button.png Facebook-share-button.png Telegram-share.png link=mailto:?subject=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy&body=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy link=https://reddit.com/submit?url=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&title=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy link=https://news.ycombinator.com/submitlink?u=https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&t=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy link=https://mastodon.technology/share?message=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy%20https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG/Build_Debian_Package_from_Source_Code/Easy&t=Linux Kernel Runtime Guard LKRG/Build Debian Package from Source Code/Easy

Please help us to improve the Whonix ™ Wikipedia Page. Also see the feedback thread.

https link onion link Priority Support | Investors | Professional Support

Whonix | © ENCRYPTED SUPPORT LP | Heckert gnu.big.png Freedom Software / Osi standard logo 0.png Open Source (Why?)

The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent.