Create Your Personal Private Archive on Raspberry Pi With Archivy

Internet pages are ephemeral—current on another person’s laptop, and beneath another person’s management. Data you depend on and wish could endure for many years solely to vanish in a single day if you want it most. With Archivy you possibly can simply save webpages as Markdown, then manage and edit them by yourself system. Yours for eternity. Here is how.

Why Would You Need to Construct Your Personal Archive?

Virtually all of the world’s info is accessible on-line: Wikipedia is the biggest encyclopedia ever created, and hosts glorious technical articles which present you how you can do cool and fascinating issues. In the event you like an article, it is simple sufficient to bookmark it in your browser to go to later, and when you’ve got a linked account with Google or one other service, you possibly can entry your bookmarks on any system.

However internet pages disappear, websites reorganize their linking constructions, and infrequently pages are up to date to replicate the most recent information, expertise, and information. It’s possible you’ll bookmark a set of directions for a specific software program model, solely to return months later and uncover that the steps have modified to go well with the most recent model. If you’d like to have the ability to depend on and return to the data you discover on-line, it is best to maintain your personal copy offline.

See also  Methods to Boot Raspberry Pi 4 through SSD or Community

What Is Archivy?

Archivy is certainly one of a number of offline archiving options which you’ll be able to run in your Raspberry Pi. Some, similar to ArchiveBox, will scrape web sites and save the output in quite a lot of codecs, together with HTML, PDF, and screenshots.

Archivy is a private archive based mostly round a tree construction of Markdown paperwork. You’ll be able to create branching folders and should you add a bookmark, it is going to scrape the webpage and convert the textual content to Markdown for you—and create and convert the headings right into a clickable desk of contents, and can, in some circumstances, routinely obtain the pictures, and retailer them in your Pi.

You’ll be able to edit the Markdown, add notes and tags to make the archive give you the results you want, and even add standalone notes of your personal ideas and musings. It is greater than an internet archive: it is a private archive you possibly can entry from anyplace.

Learn how to Set up Archivy on Your Raspberry Pi

Archivy is a Python app and is designed to be accessed by means of a browser, so earlier than you begin, you will have to set your Raspberry Pi up as an internet server. If you do not have PIP and Python already put in in your Raspberry Pi, set up them now.

Whereas Archivy can use ElasticSearch that will help you search and handle your archive, it really works properly with RipGrep as properly. Set up RipGrep with:

See also  Improve Your Raspberry Pi Zero 2 W to a Pi 3 or 4 With One Adapter

sudo apt set up ripgrep

Now you possibly can set up Archivy with:

pip set up archivy

Create a brand new listing the place Archivy will retailer its information:

mkdir ~/Archivy_data

Now to configure your system and create an admin consumer.

archivy init

…will begin the wizard

archivy wizard in a terminal

The wizard will ask you for the complete path of your information listing, and whether or not you need to have the ability to use search. Sort “ripgrep” on the immediate when requested what kind you wish to use. When requested if you wish to create an admin consumer, enter “y”.

You can begin Archivy working with:

archivy run

Archivy runs on port 5000, and you’ll entry it by coming into:


…right into a browser in your native community.

If you wish to entry your Archivy archive from outdoors your own home, create a brand new Apache configuration file:

cd /and so on/apache2/sites-availablesudo nano archivy.conf

On this new file, enter:

VirtualHost *:80>

ServerName your.area.tld

ProxyPass / http:

ProxyPassReverse / http:/

ProxyPreserveHost On


Save and exit with Ctrl + O then Ctrl + X. Then restart Apache with:

sudo service apache2 restart

Receive a brand new safety certificates from Let’s Encrypt with

sudo certbot

Certbot will current you with an inventory and ask you to pick which website you need a safety certificates for. Enter the suitable quantity and hit Return, and Certbot will examine that every little thing is so as and create a certificates and key file in your system. Select “redirect” when requested, then restart Apache as soon as once more.

Now if you go to your area or subdomain, Archivy will likely be served over an encrypted connection.

Use Archivy to Archive the Web and Your Concepts

archivy default interface

Log into Archivy with the admin username and password, and you may see there’s just one folder: root. You’ll be able to create a brand new sub-folder by typing a reputation into the sphere subsequent to Create sub listing, then clicking the button. Subdirectories are nested, and you’ll keep it up as deep as you want. A tree diagram is generated on the left of the display that will help you navigate the construction.

archivy add new bookmark dialogue

So as to add a webpage to your archive, click on on the New Bookmark button. You may be requested for the URL, and to specify tags. You do not have so as to add tags, nevertheless it helps for navigation. While you’re prepared, hit Save, and Archivy will scrape the web page and generate a formatted Markdown doc, full with tags and ToC.

muo article in markdown in Archivy

You’ll be able to change the structure of the doc by clicking the edit button, and utilizing normal Markdown formatting to tailor it exactly. You’ll be able to add additional tags by bracing your new tag with “#” anyplace throughout the doc. In the event you click on on any of the tags, you will note an inventory of different archived articles with the identical tag. So as to add a file or observe of your personal, click on New Observe and enter the Markdown instantly.

Archivy remains to be a piece in progress, so you possibly can count on new options to be added sooner or later, and because it’s an open supply undertaking, you possibly can even contribute to the code your self.

Use Your Raspberry Pi for Extra!

The Raspberry Pi is a very versatile machine, and performs extraordinarily properly as a server. The Raspberry Pi 4 particularly can deal with an distinctive workload, and is ready to run dozens of websites and companies on the identical time. No matter your pursuits, from cooking to coding, archiving to audiobooks, there is a self-hosted answer which is able to run in your Raspberry Pi.