From ec32686cfbd62d9708bb9c5a85ed8fdc8427c838 Mon Sep 17 00:00:00 2001 From: Steven Burnham Date: Tue, 5 Dec 2023 19:35:02 -0500 Subject: [PATCH] Made more clear that commands are executed in user space --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 718603e..8bb0b54 100644 --- a/README.md +++ b/README.md @@ -44,23 +44,23 @@ create a directory for your Python virtual environment. If you already have one Virtual environments are traditionally placed in a hidden folder in your home directory on Linux/MacOS. It can be created anywhere you wish. These instructions will assume you created it in your home directory. ``` -mkdir ~/.venv +$ mkdir ~/.venv ``` 2. Create a virtual environment using Python 3.10: ``` -python -m venv ~/.venv/pypush +$ python -m venv ~/.venv/pypush ``` 3. Activate the virtual environment: ``` -source ~/.venv/pypush/bin/activate +$ source ~/.venv/pypush/bin/activate ``` 4. Install the required packages using pip: ``` -pip install -r requirements.txt +$ pip install -r requirements.txt ``` 5. Run the demo script, replacing `[ip]` with your phone's local IP address: ``` -python demo.py --phone [ip] +$ python demo.py --phone [ip] ``` # Number reregistration option 1, automatic reregistration Automatic reregistration is handled by determining when your imessage registration certificate expires @@ -78,10 +78,12 @@ done ``` 1. Make the reregistration script executable: ``` -chmod +x ~/pypush_reregister.sh +$ chmod +x ~/pypush_reregister.sh ``` 2. Execute the script -```./pypush_reregister.sh``` +``` +$ ./pypush_reregister.sh +``` # Number reregistration option 2, registration using crontab Put the following in a text file and save as `pypush_reregister.sh` in your home directory: @@ -93,11 +95,11 @@ python ./demo.py --cronreg ``` 1. Make the reregistration script executable: ``` -chmod +x ~/pypush_reregister.sh +$ chmod +x ~/pypush_reregister.sh ``` 2. To automatically reregister every 30 minutes, execute the following: ``` -crontab -e +$ crontab -e ``` 3. Add the following to your crontab file, replacing "user" with your username: ```