jifunks / botany

command line virtual plant buddy
ISC License
438 stars 32 forks source link

how to properly install on server #52

Open lee2sman opened 1 year ago

lee2sman commented 1 year ago

Pardon this beginner-level question.

I'm created a small tilde server and a bit unsure the install process. Does botany get placed inside a shared directory that all users have access to? or is there some other system i should be setting up? Perhaps more explicit install instructions can be added to the README.md (I'd be happy to contribute if i knew the answer)

lee2sman commented 6 months ago

I did, but I have since closed that server as it was for a temporary group. I stupidly forgot to document my exact process, so I'm working from memory, but here is best of my knowledge:

  1. create a botany user. maybe ~botanist
  2. git clone this repo
  3. make a shortcut that everyone on the server can run, such as creating a script file named botany in the /usr/bin/ path
  4. The contents of this script is a single line that runs the botany.py script in the ~botany user's botany directory. So for example my script was /home/botanist/botany/botany.py
  5. Make sure you've set permissions on botany.py so everyone can run it.
lee2sman commented 6 months ago

There's also a 6 year old unmerged PR with an install script worth reviewing: https://github.com/jifunks/botany/pull/23 As I don't have an active server I'm playing with now I can't test.

lee2sman commented 6 months ago

Ok, report back :)

lee2sman commented 6 months ago

Ok, yes confirming. I checked on ctrl-c.club to see if we have botany and we do and ran it and planted a seed! Output of ls -l ~/.botany for me is

-rw-rw-r-- 1 me me when i run ls -l on another user's folder i get the exact same output.