A pastebin client for the terminal

It would be so good to have a pastebin client preinstalled or at least installable from Manjaro repos.

We could tell any newbie (or oldie) to post any terminal out from TTY.

[Wiki post]

Let's gather some options, for example AUR packages or links to github:




I added and vote for pastebinit. While simpler than some other options, I would expect it to be more intuitive.

1 Like

This is solved then!

Why doesn't anybody recommend it during troubleshooting?

Because we can ctrl+shift+c :wink:

1 Like

I think it was on mint? Who knows, some other distro, where they had aliased a utility so that you would just pipe | pastebin

Which actually, come to think of it, you can do by using sprunge.us and curl. No extra software.

..or you used to be able to. I get 500 errors. Looks like its been a few years since its active. Le Sob

1 Like

At least https://archived.forum.manjaro.org/search?q=pastebinit gives six results thanks to @LizziAS and
https://archived.forum.manjaro.org/search?q=wgetpaste gives 21 results thanks to @badbodh mostly.

Also, would we push the pastebin to pastebin or the open source hastebin?

That's a good question. A similar good question would be to encrypt the content.
But these questions become less important if a n00b can only get into TTY.

Manjaro could self host a hastebin server that's encrypted probably?

$ pastebinit -l
Supported pastebins:
 - cxg.de
 - dpaste.com
 - fpaste.org
 - lpaste.net
 - p.defau.lt
 - paste.debian.net
 - paste.openstack.org
 - paste.pound-python.org
 - paste.ubuntu.com
 - paste.ubuntu.org.cn
 - paste2.org
 - pastebin.com
 - slexy.org
 - sprunge.us

$ wgetpaste -S
Services supported: (case sensitive):
   Name:        | Url:
    bpaste      | https://bpaste.net/
    codepad     | http://codepad.org/
    dpaste      | http://dpaste.com/
    gists       | https://api.github.com/gists
   *poundpython | https://paste.pound-python.org/

Looks like hastebin has a client too.

We have a winner - wgetpaste
Plus it's easy to add your token and send everything to gist account. Manage/remove/edit at your whim.

1 Like

Don't forget, we are talking about Linux newbies too. Should be something nice and simple.

What does that mean? I also don't know what you are talking about. :blush:

Haven't used manjaro for a while now, dunno if things have changed. Assuming they don't, here's my /etc/wgetpaste.conf


# add this to /etc/wgetpaste.conf or ~/.wgetpaste.conf to set some defaults

# set default nick

# change the default service

# change default language for the ca and the osl services

# change default expiration period for the ca service

# gist token
HEADER_gists="Authorization: token <visit https://github.com/settings/tokens>"

Token is optional, so new users need not bother.

1 Like

It was written in the relative tutorial some time ago.

1 Like

Forum kindly sponsored by