7 ms·
Does this actually do anything? Here's the full source: #! /bin/bash echo "testing" >> ~/.ipfs-screen/ipfs-add.log file=ipfs-screen.jpg gnome-
by namuol 10y ago
Does this actually do anything? Here's the full source:
#! /bin/bash
echo "testing" >> ~/.ipfs-screen/ipfs-add.log
file=ipfs-screen.jpg
gnome-screenshot -a -f ~/.ipfs-screen/$file
hash_log=$(ipfs add ~/.ipfs-screen/$file)
echo $hash_log >> ~/.ipfs-screen/ipfs-add.log
hash=$(echo $hash_log | awk '{ print $2; }')
echo "https://ipfs.io/ipfs/$hash" | xclip -selection clipboard
Edit: Nevermind, didn't see the `ipfs add ...` call... I guess this just goes to show how simple it is to use IPFS. ;)
Edit2: I can't seem to resolve any of my files on `ipfs.io` -- probably some problem with my network config that's preventing peers from mirroring my file?
- lkjhgfdsa57 10y agoHave you left the ipfs daemon running? Do any errors show in it? Does this show any connections: ipfs swarm peers
- namuol 10y agoI wasn't aware that `ipfs daemon` was required for it to work. Ran that; it works now. :)