This Week in Past is an open-source CLI tool that fetches historical events that happened on this week from Wikipedia. In this tutorial, we'll discuss how to install This Week in Past on Debian Latest.
Firstly, open the terminal on your Debian machine and clone the This Week in Past repository from Github with the following command:
git clone https://github.com/RouHim/this-week-in-past.git
Now, navigate to the cloned "this-week-in-past" directory and install the required Node.js packages using NPM:
cd this-week-in-past
sudo npm install
After installing the packages successfully, run the following command to verify that the installation is done correctly and to check the top historical events that happened on the current week:
npm start
If everything is okay, you should see a list of historical events in the terminal.
Lastly, create a shortcut command for This Week in Past by updating your Linux profile file e.g., .bashrc or .zshrc. You can modify it with the text editor you wish, for example:
nano ~/.bashrc
And then add the following new line at the end of the file:
alias this-week-in-past="cd ~/this-week-in-past && npm start"
After that, save the changes and execute the following command to make it effective in the current terminal:
source ~/.bashrc
Now you have successfully installed the This Week in Past tool on your Debian latest machine. You can use the shortcut command "this-week-in-past" to access the top historical events that happened on the current week.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!