Ask Your Question
0

How does the Pastebinit command work?

asked 2017-11-13 07:52:58 -0500

binarystate gravatar image

updated 2017-11-14 09:53:31 -0500

I was trying to use Pastebinit but I don't get a correct URL output, should I file a bug on this?

[user@localhost ~]$ pastebinit pkr.c
https://paste.fedoraproject.org/

It did work with Ubuntu's pastebin

[user@localhost ~]$ pastebinit -b http://paste.ubuntu.com pkr.c
http://paste.ubuntu.com/25961431/

I tried aupplying the pastebin manually

pastebinit -b https://paste.fedoraproject.org/ pkr.c
Unknown website, please post a bugreport to request this pastebin to be added (https://paste.fedoraproject.org/)

Thanks in advance

edit retag flag offensive close merge delete

Comments

florian can you please post your comment as an answer?

binarystate gravatar imagebinarystate ( 2017-11-20 06:00:57 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2017-11-13 15:49:59 -0500

florian gravatar image

updated 2017-11-13 15:50:36 -0500

If you think you have used the command correctly (verify using man pastebinit ) and the result doesn't seem right, of course, file a bug. https://bugs.launchpad.net/pastebinit

It would be helpful to post your command so that someone can check whether it should work...

edit flag offensive delete link more
1

answered 2017-11-13 10:31:15 -0500

Hi, This is how I use it, your mileage can vary...

script /tmp/dummy.txt
do things
exit
pastebin /tmp/dummy.txt
Uploading (2.9KiB)...
https://paste.fedoraproject.org/paste/LsJbhJ40hInEH4yKZRQrd

Works OK on Fedora 27,

Cheers, Casep

edit flag offensive delete link more

Comments

Mine is not uploading in 26

binarystate gravatar imagebinarystate ( 2017-11-14 09:17:32 -0500 )edit

Did you mean to redirect output to the text file? as in script > /tmp/dummy/txt

binarystate gravatar imagebinarystate ( 2017-11-14 09:42:29 -0500 )edit

Sorry, I've just realised you're using pastebinit, not pastebin (pastebin is deployed with a default Fedora install, I needed to install pastebinit). Have you tried using pastebin instead of pastebinit? Looks like pastebinit has some communication/authentication issues with the default servers (about script, no, it is not a redirect, that's the way that command works) Cheers

casep gravatar imagecasep ( 2017-11-15 05:41:43 -0500 )edit

Looking at some of the issues reported with pastebinit ( https://bugs.launchpad.net/pastebinit... ) there are some issues with the configurations deployed with pastebinit. As pastebin is installed and working with FEdora looks like it's worth using it. Cheers

casep gravatar imagecasep ( 2017-11-15 05:57:48 -0500 )edit

I have no such command

binarystate gravatar imagebinarystate ( 2017-11-18 09:38:39 -0500 )edit
0

answered 2018-10-29 17:54:05 -0500

I've had this problem with Fedora28.

The solution is to add the xml file to your root directory for your user and add one of the authorized pastes to it.

Caveat: back when the man pages were written most of the internet wasn't using https, this information is left out of the authorized list of bins.

When editing the config file, make sure the url is in https and not http

From t hat point on when you use pastebinit it will work.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-11-13 07:52:58 -0500

Seen: 359 times

Last updated: Nov 14 '17