thumbnail of 1378021634969.jpg
thumbnail of 1378021634969.jpg
1378021634969 jpg
(80.62 KB, 930x858)
 >>/10498/
> I wanted to have a thing that I could use anywhere on my LAN (on any device) to archive webpages and whatever...
That's needed to have an archive-focused thing which I control instead of it being so remote and centralized. Struggles with that below:

> However, this Python thing doesn't work:
>  >https://pypi.org/project/IPFS-Toolkit/
That, and/or my HTTP API at /ip4/127.0.0.1/tcp/5001 doesn't work well:
> $ curl http://127.0.0.1:5001/api/v0/swarm/peers
> 405 - Method Not Allowed
> $ # WebUI at http://127.0.0.1:5001/webui -> http://127.0.0.1:5001/ipfs/bafybeiamycmd52xvg6k3nzr6z3n33de6a2teyhquhj4kspdtnvetnkrfim/
More/important info:
>  https://ethereum.stackexchange.com/questions/4531/how-to-add-a-file-to-ipfs-using-the-api
>  https://github.com/ipfs-shipyard/py-ipfs-http-client/issues/303

Error with Python thing "ipfs_api":
>  $ python3
>  Python 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0] on linux
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> import ipfs_api
>  >>> print(ipfs_api.my_id()) # print your IPFS peer ID
>  [bunch of errors, both with ipfs online and with it offline - such as "ConnectionRefusedError: [Errno 111] Connection refused"]

Other than those two, with just using CGI, www-data got permission denied even on a file with 777 (chmod, 0777/*rwxrwxrwx); that file is needed to run it. Maybe related: https://superuser.com/questions/835779/allowing-another-user-to-execute-program (Also, 777 is a bit dangerous because it give "total access to everyone"). This funny/weird image is
> file:///ipfs/bafybeifoniioydbdstmupn2jor3fzdc2vptkbzfboj7maeuikwpmnz4vgq/02/1378021634969.jpg