Lewsnetter is a tool that allows you to send newsletter-style emails to a subscriber list using your Gmail account. Here's how to install Lewsnetter on EndeavourOS.
To use Lewsnetter, you need to install some required packages first. Open up a terminal and enter the following commands:
sudo pacman -S python python-setuptools gcc musl openssl
Now that the required packages are installed, let's move on to installing Lewsnetter. First, clone the Lewsnetter repository from GitHub:
git clone https://github.com/bborn/lewsnetter.git
Then, navigate to the Lewsnetter directory and install it using setup.py
:
cd lewsnetter
sudo python setup.py install
To use Lewsnetter with your Gmail account, you need to create Google API credentials. Follow these steps to set up your credentials:
Finally, you need to configure Lewsnetter with your API credentials and other settings. Copy the downloaded credentials JSON file to Lewsnetter's resources
directory:
cp path/to/credentials.json lewsnetter/resources/client_secret.json
Then, configure Lewsnetter by editing config.json
:
nano lewsnetter/config.json
Change the following settings:
"profile_name"
: Enter a name for your Gmail account."from_name"
: Enter the name you want to appear as the sender of your newsletters."from_email"
: Enter the email address you want to use as the sender of your newsletters."subject_prefix"
: Enter a prefix to use for your newsletter subjects (e.g. [My Newsletter]
)."client_secrets_path"
: Change this to "./resources/client_secret.json"
."spreadsheet_id"
: Enter the ID of your Google Sheets spreadsheet containing your subscriber list.You're now ready to start Lewsnetter! To send a newsletter, run:
lewsnetter run
And that's it! You've successfully installed and configured Lewsnetter on EndeavourOS. Happy emailing!
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!