<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Linux on Cebulka Blog</title>
    <link>https://cebulka.in/en/tags/linux/</link>
    <description>Recent content in Linux on Cebulka Blog</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 17 Aug 2024 12:02:00 +0000</lastBuildDate>
    <atom:link href="https://cebulka.in/en/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Kleopatra for Linux installation and operation guide</title>
      <link>https://cebulka.in/en/posts/pgp-kleopatra-linux/</link>
      <pubDate>Sat, 17 Aug 2024 12:02:00 +0000</pubDate>
      <guid>https://cebulka.in/en/posts/pgp-kleopatra-linux/</guid>
      <description>&lt;p&gt;Kleopatra is a PGP tool for managing encryption keys. This guide describes how to create a public PGP key in Kleopatra on Tails and other Linux distributions.&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;setup&#34;&gt;&#xA;  Kleopatra on Tails&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#setup&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;blockquote&gt;&#xA;&lt;p&gt;The Kleopatra tool is installed by default on Tails since version 5.0, and no manual installation of the GPG program on that system is required.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Search for &lt;em&gt;Kleopatra&lt;/em&gt; in the &lt;em&gt;Applications&lt;/em&gt; menu and click to run.&lt;/li&gt;&#xA;&lt;li&gt;To preserve access to the generated and imported keys between sessions, set up an encrypted &lt;a href=&#34;https://tails.net/doc/encryption_and_privacy/kleopatra/index.en.html&#34;&gt;persistent volume&lt;/a&gt;. Select &lt;em&gt;Applications&lt;/em&gt;→&lt;em&gt;Tails&lt;/em&gt;→&lt;em&gt;Persistent Storage&lt;/em&gt;, click &lt;em&gt;Contrinue&lt;/em&gt;, enter a strong random password twice in both &lt;em&gt;Passphrase&lt;/em&gt; and &lt;em&gt;Confirm&lt;/em&gt; fields, and confirm the volume creation by clicking &lt;em&gt;Create Persistent Storage&lt;/em&gt;. Select &lt;em&gt;GnuPG&lt;/em&gt; in the list of persistent volume features and finish setup.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;installing-kleopatra-with-apt-debian-ubuntu--kali-linux&#34;&gt;&#xA;  Installing Kleopatra with APT (Debian, Ubuntu &amp;amp; Kali Linux)&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#installing-kleopatra-with-apt-debian-ubuntu--kali-linux&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;To install Kleopatra on Linux, open a terminal and run the following command:&lt;/p&gt;&#xA;&lt;p&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y &amp;amp;&amp;amp; sudo apt install kleopatra scdaemon -y&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;After the installation is complete, launch the Kleopatra application using the shortcut in the application menu or by typing &lt;em&gt;kleopatra&lt;/em&gt; in the terminal.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Installation 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-001.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;On the first launch, you need to check if scdaemon is installed and configured:&lt;/p&gt;&#xA;&lt;p&gt;sudo gpgconf &amp;ndash;check-options scdaemon&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Then click &lt;em&gt;Rerun Tests&lt;/em&gt;, and then &lt;em&gt;Continue&lt;/em&gt;.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Installation 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-003.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;7&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;If scdaemon is not installed, enter the following command in the terminal:&lt;/p&gt;&#xA;&lt;p&gt;sudo apt install scdaemon -y&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Installation 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-006.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;keygen&#34;&gt;&#xA;  Generating keys in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#keygen&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the Kleopatra application and click the &lt;em&gt;New Key Pair&lt;/em&gt; button.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Generation 1&#34; src=&#34;https://cebulka.in/pl/posts/pgp-kleopatra-linux/deb-007.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Enter your nickname. It is recommended to set a passphrase. Click &lt;em&gt;Advanced Settings&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Generation 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-008.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Select your preferred key algorithm and size &lt;em&gt;RSA, 4096 bits&lt;/em&gt;, check the &lt;em&gt;Authentication&lt;/em&gt; option, and click &lt;em&gt;OK&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Set a passphrase for the key, which will be used to protect it, and then click &lt;em&gt;OK&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Generation 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-009.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Generation 4&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-010.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;backup&#34;&gt;&#xA;  Backing up the private key in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#backup&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Go to the key management screen, select your private key, and click &lt;em&gt;Export Secret keys&amp;hellip;&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Backup 1&#34; src=&#34;https://cebulka.in/pl/posts/pgp-kleopatra-linux/deb-011.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Select the location where you want to save the key, and click &lt;em&gt;Save&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Backup 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-012.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Ensure the key is saved in a secure location.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Backup 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-014.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;It is also recommended to create a backup of the public key.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Backup 4&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-015.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;A backup copy of the private key should be encrypted with &lt;a href=&#34;https://www.veracrypt.fr/en/Home.html&#34;&gt;VeraCrypt&lt;/a&gt; or &lt;a href=&#34;https://www.truecrypt71a.com/&#34;&gt;TrueCrypt&lt;/a&gt; and placed on external media for protection against data loss.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;import&#34;&gt;&#xA;  Importing public keys in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#import&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the email or other communication containing the public key.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Import 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-017.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Copy the public key to the clipboard.&lt;/li&gt;&#xA;&lt;li&gt;Open the Kleopatra application and select the &lt;em&gt;Notepad&lt;/em&gt; option. Paste the public key and click &lt;em&gt;Import Notepad&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Import 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-019.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;You will then need to certify the new certificate. You will likely be prompted for a passphrase.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Import 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-022.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;Your new PGP key has been imported.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Key Import 4&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-023.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;encryption&#34;&gt;&#xA;  Encrypting messages in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#encryption&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the Kleopatra application and click &lt;em&gt;Notepad&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Encryption 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-024.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;2&#34;&gt;&#xA;&lt;li&gt;Paste the content of the message you want to encrypt into the text field.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Encryption 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-026.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Select the recipient&amp;rsquo;s public key from the list of available keys.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Encryption 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-027.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Click &lt;em&gt;Encrypt Notepad&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;After encrypting the message, copy the resulting text to the clipboard.&lt;/li&gt;&#xA;&lt;li&gt;You can now share the encrypted text in another app, such as via an instant messenger, or save it to a file.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Encryption 4&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-029.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;We do not need to import the public key again when encrypting the next messages. The key will be saved in the program files.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;decryption&#34;&gt;&#xA;  Decrypting messages in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#decryption&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the encrypted message in any text editor.&lt;/li&gt;&#xA;&lt;li&gt;Copy the encrypted text to the clipboard, then open the Kleopatra application.&lt;/li&gt;&#xA;&lt;li&gt;Click &lt;em&gt;Notepad&lt;/em&gt; and paste the encrypted text.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Decryption 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-030.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Click &lt;em&gt;Decrypt / Verify Notepad&lt;/em&gt;. If prompted for a passphrase, enter the passphrase for your private key.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Decryption 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-031.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;signing&#34;&gt;&#xA;  Signing messages in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#signing&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the Kleopatra application and click &lt;em&gt;Notepad&lt;/em&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Paste the content of the message you want to sign into the text field.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Signing 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-032.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Select your private key.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Signing 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-033.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;Then click &lt;em&gt;Sign Notepad&lt;/em&gt;. Copy the signed text to the clipboard.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Signing 3&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-034.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;You can now share the signed text in another app, such as via an instant messenger, or save it to a file.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Signing 4&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-035.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Avoid signing messages that seem universal. For example, a signed &amp;ldquo;I agree&amp;rdquo; or &amp;ldquo;It&amp;rsquo;s me&amp;rdquo; message can be saved and used to impersonate you in another conversation. Signed messages should be complete sentences describing the purpose and circumstances of the signature.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;h2 class=&#34;heading&#34; id=&#34;verification&#34;&gt;&#xA;  Verifying messages in Kleopatra&lt;span class=&#34;heading__anchor&#34;&gt; &lt;a href=&#34;#verification&#34;&gt;#&lt;/a&gt;&lt;/span&gt;&#xA;&lt;/h2&gt;&lt;ol&gt;&#xA;&lt;li&gt;Open the signed message and copy its content to the clipboard.&lt;/li&gt;&#xA;&lt;li&gt;Open the Kleopatra application, click &lt;em&gt;Notepad&lt;/em&gt; and paste the signed text into the text field.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Verification 1&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-036.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Click &lt;em&gt;Decrypt / Verify Notepad&lt;/em&gt;. Kleopatra will display the verification result, informing you whether the signature is valid.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;Verification 2&#34; src=&#34;https://cebulka.in/en/posts/pgp-kleopatra-linux/deb-037.jpg#center&#34;&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;We do not need to import the public key again when verifying subsequent signatures of the same author. The key will be saved in the program files.&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;hr&gt;</description>
    </item>
  </channel>
</rss>
