I've written 'toot', a very simple command-line utility to allow Mastodon posts to be sent from the command-line: https://www.npmjs.com/package/toot
First of all this is an 'npm' module. So it assumes you've got Node.js installed. https://nodejs.org/en/
If you get that far, you should be able to do
npm install -g toot
or
sudo npm install -g toot
After that just run 'toot' and follow the on-screen instructions. Feel free to DM me screenshots.
@glynn_bird I've done a sudo apt-get install nodejs and it says:
nodejs is already the newest version.
nodejs set to manually installed.
@ColinTheMathmo so doing `npm -v` gives you?
@ColinTheMathmo let me try on my virtual ubuntu machine
@ColinTheMathmo I just did
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
(from the instructions in the page I sent you)
and got
node -v
v6.10.2
npm -v
3.10.10
and then
sudo npm install -g toot
worked just fine
@glynn_bird OK, trying that.
@glynn_bird So far so good - stand by ...
@glynn_bird Bingo! Thank you for your help! It looks like it was version skew, so you might want to put the version check somewhere.
But that's working - thank you.
@ColinTheMathmo great news! :smiley: I think Ubuntu ships with an ancient version of Node.
@glynn_bird That would explain it. I am, however, always worried about instructions that have one curl a file directly through bash.
But it's sorted.
@ColinTheMathmo I know. "pipe this unknown thing to sudo bash". Nightmare.
@glynn_bird That's why I prefer to apt-get, and sometimes even to simply download and sha256 to check fingerprints.
Am I overly cautious? Probably, but I am literally paid to be paranoid.
@ColinTheMathmo you are quite right to be paranoid.
@glynn_bird I'm on Ubuntu - can I install node.js with an apt-get? (I'm about to Google for that as well)