From d54e31189c08d6ade76e4f153b2ec2b32f77cfce Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 18 Sep 2016 22:13:53 +0100 Subject: changed Silvino Silva to c9 Team and added team page --- tools/tar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/tar.html') diff --git a/tools/tar.html b/tools/tar.html index 876065a..15e779f 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -113,7 +113,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - Silvino Silva. + c9 Team. See the file Gnu Free Documentation License for copying conditions.

-- cgit From 183caada9a628fb2200b6ffe5a43e06ef7830fce Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 18 Sep 2016 22:15:12 +0100 Subject: converted c9 Team to lower char --- core/bash.html | 2 +- core/configure.html | 2 +- core/dash.html | 2 +- core/exim.html | 2 +- core/index.html | 2 +- core/install.html | 2 +- core/linux.html | 2 +- core/network.html | 2 +- core/package.html | 2 +- core/ports.html | 2 +- core/reboot.html | 2 +- core/tmux.html | 2 +- core/tty-terminal.html | 2 +- team.html | 2 +- tools/gitolite.html | 2 +- tools/index.html | 2 +- tools/logrotate.html | 2 +- tools/lynx.html | 2 +- tools/mutt.html | 2 +- tools/nginx.html | 2 +- tools/openssh.html | 2 +- tools/postgresql.html | 2 +- tools/qemu.html | 2 +- tools/squid.html | 2 +- tools/storage.html | 2 +- tools/syslog-ng.html | 4 ++-- tools/tar.html | 2 +- tools/vim.html | 2 +- 28 files changed, 29 insertions(+), 29 deletions(-) (limited to 'tools/tar.html') diff --git a/core/bash.html b/core/bash.html index 1b0ac5d..2c1f6e9 100644 --- a/core/bash.html +++ b/core/bash.html @@ -126,7 +126,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/configure.html b/core/configure.html index 5d44555..74c2a39 100644 --- a/core/configure.html +++ b/core/configure.html @@ -292,7 +292,7 @@ Core OS Index

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/dash.html b/core/dash.html index 755a384..18045e5 100644 --- a/core/dash.html +++ b/core/dash.html @@ -21,7 +21,7 @@ Core OS Index

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/exim.html b/core/exim.html index f5231c1..d6f9982 100644 --- a/core/exim.html +++ b/core/exim.html @@ -213,7 +213,7 @@

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/index.html b/core/index.html index 9682bba..147d160 100644 --- a/core/index.html +++ b/core/index.html @@ -120,7 +120,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/install.html b/core/install.html index 0fa3de1..f956cf4 100644 --- a/core/install.html +++ b/core/install.html @@ -367,7 +367,7 @@ Core OS Index

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/linux.html b/core/linux.html index 87eeec5..53fc304 100644 --- a/core/linux.html +++ b/core/linux.html @@ -124,7 +124,7 @@ Core OS Index

This is part of the c9-doc Manual. Copyright (C) 2016 -c9 Team. +c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/network.html b/core/network.html index 15ff52c..04f1266 100644 --- a/core/network.html +++ b/core/network.html @@ -318,7 +318,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/package.html b/core/package.html index fe2069a..21c029a 100644 --- a/core/package.html +++ b/core/package.html @@ -182,7 +182,7 @@ Core OS Index

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/ports.html b/core/ports.html index 0cf19e8..1d06877 100644 --- a/core/ports.html +++ b/core/ports.html @@ -208,7 +208,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/reboot.html b/core/reboot.html index 75a41d4..3a6758d 100644 --- a/core/reboot.html +++ b/core/reboot.html @@ -123,7 +123,7 @@ Core OS Index

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/tmux.html b/core/tmux.html index 3b00934..d1ab587 100644 --- a/core/tmux.html +++ b/core/tmux.html @@ -110,7 +110,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/core/tty-terminal.html b/core/tty-terminal.html index 7a4d5dc..47f7bf0 100644 --- a/core/tty-terminal.html +++ b/core/tty-terminal.html @@ -74,7 +74,7 @@ Core OS Index

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/team.html b/team.html index a95f64b..ea74a7a 100644 --- a/team.html +++ b/team.html @@ -2,7 +2,7 @@ - c9 Team + c9 team diff --git a/tools/gitolite.html b/tools/gitolite.html index bae0071..8616798 100644 --- a/tools/gitolite.html +++ b/tools/gitolite.html @@ -423,7 +423,7 @@ Tools Index

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/index.html b/tools/index.html index d20efe6..b94bc98 100644 --- a/tools/index.html +++ b/tools/index.html @@ -124,7 +124,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/logrotate.html b/tools/logrotate.html index 7b06dd9..39da406 100644 --- a/tools/logrotate.html +++ b/tools/logrotate.html @@ -157,7 +157,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 -c9 Team. +c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/lynx.html b/tools/lynx.html index 30c8d30..618e482 100644 --- a/tools/lynx.html +++ b/tools/lynx.html @@ -9,7 +9,7 @@
         # Description: Text-based web browser.
         # URL: http://lynx.isc.org/
-        # Packager: c9 Team, silvino at bk dot ru
+        # Packager: c9 team, silvino at bk dot ru
         # Depends on: ncurses openssl zlib
 
         name=lynx
diff --git a/tools/mutt.html b/tools/mutt.html
index 058fd43..276fb51 100644
--- a/tools/mutt.html
+++ b/tools/mutt.html
@@ -310,7 +310,7 @@
         

This is part of the SysDoc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/nginx.html b/tools/nginx.html index 9bec4ec..ad5345d 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -326,7 +326,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/openssh.html b/tools/openssh.html index 540e506..ca504b2 100644 --- a/tools/openssh.html +++ b/tools/openssh.html @@ -296,7 +296,7 @@ Tools Index

This is part of the c9-doc Manual. Copyright (C) 2016 -c9 Team. +c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/postgresql.html b/tools/postgresql.html index b235274..e160ae2 100644 --- a/tools/postgresql.html +++ b/tools/postgresql.html @@ -238,7 +238,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/qemu.html b/tools/qemu.html index 5a31b86..e1ea277 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -141,7 +141,7 @@ Tools Index

This is part of the c9 Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/squid.html b/tools/squid.html index 74362b3..363edba 100644 --- a/tools/squid.html +++ b/tools/squid.html @@ -67,7 +67,7 @@ ssl_bump bump all Tools Index

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/storage.html b/tools/storage.html index 70d2ae8..121c802 100644 --- a/tools/storage.html +++ b/tools/storage.html @@ -370,7 +370,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/syslog-ng.html b/tools/syslog-ng.html index 07970c0..5d6fd2d 100644 --- a/tools/syslog-ng.html +++ b/tools/syslog-ng.html @@ -68,7 +68,7 @@
         # Description: alternate syslogging daemon
         # URL:         http://www.balabit.com/network-security/syslog-ng/opensource-logging-system
-        # Packager:    c9 Team, silvino at bk dot ru
+        # Packager:    c9 team, silvino at bk dot ru
         # Depends on:  eventlog, glib, libwrap
 
         name=syslog-ng
@@ -253,7 +253,7 @@
 
         

This is part of the c9-doc Manual. Copyright (C) 2016 -c9 Team. +c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/tar.html b/tools/tar.html index 15e779f..edd733d 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -113,7 +113,7 @@

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/tools/vim.html b/tools/vim.html index 7848b8b..03ba767 100644 --- a/tools/vim.html +++ b/tools/vim.html @@ -151,7 +151,7 @@ Systools Index

This is part of the c9-doc Manual. Copyright (C) 2016 - c9 Team. + c9 team. See the file Gnu Free Documentation License for copying conditions.

-- cgit From e4b9fd6157b8b5eedf67006719a0ef5f1ac0027e Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Tue, 20 Sep 2016 20:40:25 +0100 Subject: initial r-0.2.1 --- index.html | 2 +- tools/gnupg.html | 294 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/index.html | 4 +- tools/tar.html | 17 ++-- 4 files changed, 306 insertions(+), 11 deletions(-) create mode 100644 tools/gnupg.html (limited to 'tools/tar.html') diff --git a/index.html b/index.html index 3b2e569..d06995d 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@

Version;

-        rev develop
+        rev 0.2.1
         
diff --git a/tools/gnupg.html b/tools/gnupg.html new file mode 100644 index 0000000..61bfaba --- /dev/null +++ b/tools/gnupg.html @@ -0,0 +1,294 @@ + + + + + GnuPG + + + + Tools Index + +

GnuPG

+ +

Install gnupg;

+ +
+        $ sudo prt-get depinst gnupg
+        
+ +

Create a skeleton configuration to be copied by useradd to + each user home directory;

+ +
+        $ sudo mkdir /etc/skel/.gnupg
+        $ sudo cp /usr/share/gnupg/gpg-conf.skel /etc/skel/.gnupg/gpg.conf
+        
+ +

Configure GnuPG to automatically fetch public keys, + uncomment following line to ~/.gnupg/gpg.conf;

+ +
+        keyserver-options auto-key-retrieve
+        
+ +

And add a server, in this example wwwkeys.pgp.net;

+ +
+        # keyserver wwwkeys.pgp.net
+        # keyserver search.keyserver.net
+        keyserver pgp.mit.edu
+        
+ +

Test your configuration as described by Justin R. Miller Mutt Gnupg Howto;

+ +
+        $ gpg --recv-keys 0xC9C40C31
+        
+ +

Confirm;

+ +
+        gpg --list-keys justin
+        
+ +

1. Generate keys

+ +

Options for creating a DSA and ElGamal key;

+
+
Key Size
+
the defaults are ok.
+
Expiring Date
+
Choose a non-expiring key for your own use. For public + at least choose yearly expiration.
+
Name and Email
+
Real name and e-mail address used to identify your key.
+
Comment
+
Can be empty, make a small comment to help indentify.
+
Passphrase
+
Password should use numebers and special chars.
+
+ +

Generate keys;

+ +
+        $ gpg2 --full-gen-key
+        gpg (GnuPG) 2.1.11; Copyright (C) 2016 Free Software Foundation, Inc.
+        This is free software: you are free to change and redistribute it.
+        There is NO WARRANTY, to the extent permitted by law.
+
+        Please select what kind of key you want:
+           (1) RSA and RSA (default)
+           (2) DSA and Elgamal
+           (3) DSA (sign only)
+           (4) RSA (sign only)
+        Your selection? 2
+        DSA keys may be between 1024 and 3072 bits long.
+        What keysize do you want? (2048) 2049
+        Requested keysize is 2049 bits
+        rounded up to 2112 bits
+        Please specify how long the key should be valid.
+                 0 = key does not expire
+              <n>  = key expires in n days
+              <n>w = key expires in n weeks
+              <n>m = key expires in n months
+              <n>y = key expires in n years
+        Key is valid for? (0) 1y
+        Key expires at Tue May 30 20:29:36 2017 WEST
+        Is this correct? (y/N) y
+
+        GnuPG needs to construct a user ID to identify your key.
+
+        Real name: User Name
+        Email address: user@external.org
+        Comment: user at external dot org
+        You selected this USER-ID:
+            "User Name (user at external dot org) <user@external.org>"
+
+        Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
+        
+ +

This will create the follow files;

+ +
+        .gnupg/pubring.gpg
+        .gnupg/random_seed
+        .gnupg/secring.gpg
+        .gnupg/trustdb.gp
+        
+ +

List keys;

+ +
+        $ gpg --list-keys
+        /home/droid/.gnupg/pubring.kbx
+        ------------------------------
+        pub   dsa3072/EE29B7D3 2016-05-30 [SC] [expires: 2017-05-30]
+        uid         [ultimate] User Name (user at external dot org) <user@external.org>
+        sub   elg2112/9BC2DC12 2016-05-30 [E] [expires: 2017-05-30]
+        
+ +

In this case pub key ID is EE29B7D3, add to .profile;

+ +
+        export GPGKEY=0xEE29B7D3
+        
+ +

2. Key Management

+ +

Key Management;

+ +
+        $ gpg --list-keys
+        $ gpg --list-secret-keys
+        $ gpg --fingerprint
+        $ gpg --delete-key UID
+        $ gpg --delete-secret-key
+        $ gpg --edit-key UID
+        
+ +

2.1 Edit key

+ +
+        $ gpg --edit-key KEYID
+        adduid
+        
+ +

Follow the instructions and then select the user you + want to revoque, where N is the UID of the user;

+ +
+        uid N
+        revuid
+        save
+        
+ +

3. Export and import keys

+ +

3.1. Export Key

+ +

Public keys can be exported in binary format + or ASCII-armored format. To export binary format;

+ +
+        $ gpg --list-keys
+        
+ +
+        $ gpg --output user.gpg --export user@localhost
+        
+ +

Generate an ASCII version of your public key;

+ +
+        $ gpg --armor --output user.asc --export 'User Name'
+        
+ +

3.2. Export to keyserver

+ +

The primary public key's ID is referenced in the pub + line after the key size, for example the key created above, + the short key ID is EE29B7D3: +

+        gpg --keyserver search.keyserver.net --send-key EE29B7D3
+        
+ +

3.3. Import Key

+ +

Is very easy to import public keys;

+ +
+        $ gpg --import user.gpg
+        
+ +

To list imported keys;

+ +
+        $ gpg --list-keys
+        
+ +

4. Encrypt, decrypt and signing

+ +

4.1. Encrypt file

+ +

To be abble to decrypt the document we need to include + public key in the recipient list;

+ +
+        $ gpg --output index.html.gpg --encrypt \
+        --recipient user@localhost \
+        --recipient bob@localhost \
+        index.html
+        
+ +

4.2. Decrypt file

+ +

To decrypt the file;

+ +
+        $ gpg --output index.html --decrypt index.html.gpg
+        
+ +

4.3. Signing a File

+ +

A digital signature certifies and timestamps a document. + If the document is subsequently modified in any way, + a verification of the signature will fail. A digital + signature can serve the same purpose as a hand-written + signature with the additional benefit of being + tamper-resistant. Example on how to sign a file;

+ +

To send document uncompressed and wrapped in an ASCII-armored + signature;

+ +
+        $ gpg --clearsign index.html
+        
+ +

Verify signature;

+ +
+        $ gpg --verify index.html.asc
+        
+ +

To encrypt and sign a file;

+ +
+        $ gpg --output index.html.gpg --sign --encrypt \
+        --recipient bob@localhost \
+        index.html
+        
+ +

To decrypt;

+ +
+        $ gpg --output index.html --decrypt index.html.gpg
+        
+ +

You should see this message on the output;

+ +
+        gpg: Good signature from "User (user at localhost) <user@localhost>"
+        
+ +

Detached signatures create a separate file for + signature;

+ +
+        $ gpg --output index.html.sig --detach-sig index.html
+        
+ +

Now you can send index.html.sig and on the other end;

+ +
+        $ gpg --verify index.html.sig
+        
+ + Systools Index +

This is part of the SysDoc Manual. + Copyright (C) 2016 + Silvino Silva. + See the file Gnu Free Documentation License + for copying conditions.

+ + + diff --git a/tools/index.html b/tools/index.html index 0c8e449..7e02974 100644 --- a/tools/index.html +++ b/tools/index.html @@ -16,9 +16,9 @@
-

1.2. View content of tar

+

2. View content of tar

List files inside tar;

@@ -62,7 +62,7 @@ $ tar -ztvpf full-backup-11-November-2045.tar.gz > file.lst
-

1.3. Extract content from tar

+

3. Extract content from tar

If you want to extrat to different directory;

@@ -82,7 +82,7 @@ $ tar --extract --file=core.tar.gz libidn#1.32-1.pkg.tar.gz -

1.4. Add content to tar

+

4. Add content to tar

Only uncompressed tar can append files without having to extract and compress again.

@@ -101,7 +101,7 @@ $ tar -tvf core.tar -

1.5. Remove content of tar

+

5. Remove content of tar

         $ tar -tvf core.tar
@@ -109,7 +109,8 @@
         $ tar -tvf core.tar
         
- Systolls Index + Tools Index +

This is part of the c9-doc Manual. Copyright (C) 2016 -- cgit From 1c46c6d4a7cfcd68debcd728dcab64c6c526ea11 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Wed, 21 Sep 2016 06:58:20 +0100 Subject: tools tar fix --- tools/tar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/tar.html') diff --git a/tools/tar.html b/tools/tar.html index 31a8485..5bd3df6 100644 --- a/tools/tar.html +++ b/tools/tar.html @@ -2,7 +2,7 @@ - 1. Tar + Tar -- cgit