-
Notifications
You must be signed in to change notification settings - Fork 11
Debian Installation
Daniel Scharon edited this page Apr 24, 2017
·
6 revisions
This tutorial should work for Ubuntu, as well as any Debian derivative
- Python >= 3.5
- GIT Core
- PIP
- feedparser
- jsonpickle
- slixmpp
- termcolor
- screen
sudo apt-get install python3
sudo apt-get install git-core
sudo apt-get install python3-pip
sudo pip3 install feedparser
sudo pip3 install jsonpickle
sudo pip3 install slixmpp
sudo pip3 install termcolor
sudo apt-get install screen
cd /opt/
sudo git clone https://github.com/edhelas/atomtopubsub.git
sudo chown -R www-data:www-data /opt/atomtopubsub/
cd /opt/atomtopubsub/
sudo mv config_default.py config.py
Edit the config.py file, as per the notations inside the file.
screen -S atomtopubsub
sudo -s -u www-data
python atomtopubsub.py
Use CTRL+A, then CTRL+D to detach the console.
screen -R atomtopubsub
There is no graceful way to shutdown atomtopubsub as of yet. Current known methods are:
- In the time between refreshes, press CTRL+X
- Once the screen session is detached, you can run sudo killall python
- The XMPP account must be authorized to create Pubsub node on the server(s).
- The "key" of each feed of the configuration file will be the name of the Pubsub node
- AtomToPubsub will try to fill the title and the description of the Pubsub node from the title and the subtitle of the Atom node
cd /opt/atomtopubsub
git pull
If all else fails and you want to retest or resubmit a job, you may find that the cache will tell atomtopubsub that the job is already complete, and will skip.
To fix this, you can delete the cache file and run the job again.
rm -f /opt/atomtopubsub/cache.pkl