Installing JRNL

Created at 2019-09-08 Updated at 2020-06-10 Tag Journaling

TL;DR

To install JRNL on Linux Mint 19.2, open up your Terminal, and type the following commands:

$ sudo apt install python3-pycryptodome
$ sudo apt install python3-setuptools
$ pip3 install wheel
$ pip3 install "jrnl[encrypted]"

Add this to the top of your .bashrc file: HISTIGNORE="$HISTIGNORE:jrnl *"

And to edit entries with Sublime Text, edit the .jrnl_config file:

$ xed ~/.jrnl_config

Change the line that starts with "editor" to this: "editor": "subl -w"

The Rest of the Story

This is just a quick post about JRNL. JRNL is an open-source, terminal-based journaling application. I really like it due to the simplicity, so I'm giving it a try. Additionally, I really like the fact that you can encrypt your journal as well :-)

The official installation instructions can be found here. However, I had to take some additional steps, and wanted to document this in case others had similar issues. Additionally, I wanted to install JRNL with Python3 instead of Python2.

So, to install JRNL on Linux Mint 19.2, open up your Terminal, and type the following commands:

$ sudo apt install python3-pycryptodome
$ sudo apt install python3-setuptools
$ pip3 install wheel
$ pip3 install "jrnl[encrypted]"

Note: If the pip3 commands fail, you may have to prepend sudo to the commands above.

Then to start your journal, just open up a Terminal, and type jrnl.

The very first time, you will asked for the location of your journal.txt. You can name the file whatever you like. You will also be asked if you want to encrypt your journal as well. All up to you.

$ jrnl
Path to your journal file (leave blank for ~/journal.txt):
~/my-awesome-journal.txt
Enter password for journal (leave blank for no encryption):
Do you want to store the password in your keychain? [Y/n]
Y
Journal will be encrypted.
[Compose Entry; press Ctrl+D to finish writing]
My first entry.
[Entry added to default journal]

More about JRNL can be found here, and the GitHub page can be found here.

Bonus

You are also going to want to add this to your .bashrc file:

$ xed ~/.bashrc

Just add this at the top: HISTIGNORE="$HISTIGNORE:jrnl *"

This will prevent any JNRL entries for being added to your history file.

Bonus++

I like to edit entries with Sublime Text, and with a simple config file setting, you can do that with JRNL:

$ xed ~/.jrnl_config

Change the line that starts with "editor" to this: "editor": "subl -w"

Conclusion

So that is how you can get started with JRNL, and to begin journaling your day.

Hope this was helpful :-) Feel free to leave comments, or questions below.

End of Line.

Site by Aaron von Awesome using Hexo & Random