This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
terminal:profanity [2021/05/26 03:07] nanodano |
terminal:profanity [2021/05/30 21:22] (current) nanodano |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Refer to the official user guide for more details: [[https:// | Refer to the official user guide for more details: [[https:// | ||
| + | |||
| + | ===== Video course ===== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | <iframe width=" | ||
| + | </ | ||
| + | </ | ||
| ===== Installation ===== | ===== Installation ===== | ||
| Line 44: | Line 52: | ||
| <code bash> | <code bash> | ||
| + | # Install dependencies (if needed) | ||
| sudo apt install pass gpg | sudo apt install pass gpg | ||
| - | pass init <id> # id should match GPG key ID. e.g. nobody@devdungeon.com | + | |
| - | pass insert xmpp/ | + | # Generate a private PGP key (if needed) |
| + | gpg --quick-generate-key nobody@devdungeon.com | ||
| + | |||
| + | # Initialize password database (utilizes PGP encryption) | ||
| + | # <gpg_key_id> should match GPG key ID. e.g. nobody@devdungeon.com | ||
| + | pass init < | ||
| + | # Add a password | ||
| + | pass insert xmpp/ | ||
| </ | </ | ||
| Line 52: | Line 68: | ||
| < | < | ||
| - | /account set nobody@devdungeon.com eval_password pass xmpp/nobody | + | /account set nobody@devdungeon.com eval_password |
| </ | </ | ||
| Line 178: | Line 194: | ||
| [connection] | [connection] | ||
| + | defaccount=you@devdungeon.com | ||
| account=you@devdungeon.com | account=you@devdungeon.com | ||
| Line 189: | Line 206: | ||
| nanodano=/ | nanodano=/ | ||
| devdungeon=/ | devdungeon=/ | ||
| + | |||
| + | [logging] | ||
| + | chlog=true | ||
| + | grlog=true | ||
| + | maxsize=1048580 | ||
| + | rotate=true | ||
| + | shared=true | ||
| [otr] | [otr] | ||
| warn=true | warn=true | ||
| - | log=redact | + | log=on |
| - | policy=opportunistic | + | policy=manual |
| + | |||
| + | [presence] | ||
| + | autoaway.mode=away | ||
| + | autoaway.time=15 | ||
| + | autoaway.message=Away from computer | ||
| + | autoaway.check=true | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== PGP Encryption ===== | ||
| + | |||
| + | You need a private key for yourself and the public key of your recipient. If you need someone to send a message to, you can send me a message using my public key. You can get my public key from [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | # Download/ | ||
| + | curl -O https:// | ||
| + | |||
| + | #or | ||
| + | |||
| + | # Fetch nanodano@devdungeon.com public key from a keyserver | ||
| + | gpg --keyserver pgp.mit.edu --recv A6D4E83A1866995E | ||
| + | gpg --keyserver hkps.pool.sks-keyservers.net --recv A6D4E83A1866995E | ||
| + | </ | ||
| + | |||
| + | In Profanity, configure which PGP key should be associated with your XMPP account and set the public key for your recipient: | ||
| + | |||
| + | < | ||
| + | # List keys in your store | ||
| + | /pgp keys | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # Set your private PGP key to your account | ||
| + | /account set < | ||
| + | # For example: | ||
| + | /account set me@devdungeon.com pgpkeyid AAAABBBBCCCCDDDD | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # Set recipient account public key | ||
| + | /pgp setkey nanodano@devdungeon.com A6D4E83A1866995E | ||
| + | </ | ||
| + | |||
| + | Start and end PGP-encrypted conversations with: | ||
| + | |||
| + | < | ||
| + | /pgp start nanodano@devdungeon.com | ||
| + | /pgp end | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== vi keybinds ===== | ||
| + | |||
| + | Profanity uses readline so it supports tab completion and all the same keybinds a shell does like CTRL-P and CTRL-W. You can also set it to use vi keybinds. Update your `~/ | ||
| + | |||
| + | |||
| + | <code | input.rc> | ||
| + | set editing-mode vi | ||
| + | </ | ||
| + | |||