How to do decrypt a pgp message

After sending my public pgp key and getting an encoded message back. I need to decrypt a pgp message.

I made a pgp file by opening a text editor and saving it as “mypgpfile.pgp”

gpg -o output.txt mypgpfile.pgp

The breakdown:
gpg – the command to encode/decode pgp on linux. Package may need to be installed.
-o – specifies the output file
output.txt – the output filename
mypgpfile.pgp – the input encoded message

How to create a PGP key on linux

First you’ll want to create your key.

gpg --gen-key

Then ascii armor it for sharing.

gpg --armor --export [email protected]

You can view your keys by using the list command.

gpg --list-keys

Asus boot usb

I needed to reinstall Lint Mint on my Asus Laptop. I couldn’t figure out how to boot to usb. Turns out it’s a tricky procedure.

  • Have your USB drive plugged in
  • Turn the Zenbook on
  • Enter UEFI by pounding on the esc key
  • Arrow to the right to the “Boot” tab
  • Press F10, choose “save & exit”
  • I’ll reboot. Once it begins, immediately pound on esc again
  • Arrow over to the “Boot” tab. USB drive should be listed. Switch order if needed.
  • Press F10, choose “save & exit”

How to run ghost in the background

For running ghost blog in the background manually, execute the following within your blog directory.

cd /path/to/your/install/
nohup npm start </dev/null 1>/path/to/your/install/logs/stdout.log 2>/path/to/your/install/logs/stderr.log &

I perfer to run ghost in the background by using Supervisor.

First install supervisor

apt-get install supervisor

Make sure it’s running

sudo service supervisor start

Create the config file

vim /etc/supervisor/conf.d/ghost.conf
command = node /path/to/ghost/index.js
directory = /path/to/ghost
user = ghost
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/ghost.log
stderr_logfile = /var/log/supervisor/ghost_err.log
environment = NODE_ENV="production"

Start Ghost

supervisorctl start ghost


I’ve switched to use the npm package Forever.

To install forever type

npm install forever -g

To start Ghost using forever from the Ghost installation directory type

NODE_ENV=production forever start index.js

To stop Ghost type

forever stop index.js

To check if Ghost is currently running type

forever list

Supervisor information from ghost documentation