Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[HowTo] Debian Pastezone and using pastebinit to upload files to it

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

[HowTo] Debian Pastezone and using pastebinit to upload files to it

#1 Post by sunrat »

Debian Pastezone is a pastebin for storage or uploading files for forum purposes. You can upload manually to https://paste.debian.net or use pastebinit.
pastebinit is a little utility which enables easy uploading of files to Debian Pastezone from command line.

Code: Select all

# apt install pastebinit
Then from a directory in your user home, upload the file with:

Code: Select all

pastebinit filename
which should return a URL which you can post in the forum, eg.

Code: Select all

https://paste.debian.net/1261943/
filename obviously should be the exact name of the file you wish to upload. I found it will only upload files owned by user; trying to run pastebinit as root will fail.
File size limit for Debian Pastezone seems to be 150kB, and the link expires in a week by default. I didn't find an option to change expiry time in pastebinit, but you can manually upload a file to https://paste.debian.net to set different options including never expire.
Another good pastebin is http://pastebin.com/ which allows larger files and also expiry time options.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: [HowTo] Debian Pastezone and using pastebinit to upload files to it

#2 Post by CwF »

I'm missing something!

Can we post png or gif or any image format? It seems to have been done, and I can't figure it out!

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: [HowTo] Debian Pastezone and using pastebinit to upload files to it

#3 Post by sunrat »

CwF wrote: 2023-04-26 16:09 I'm missing something!

Can we post png or gif or any image format? It seems to have been done, and I can't figure it out!
It's only for text or text-based code afaik.
For images I usually use an image sharing site such as https://postimages.org/ or https://imgur.com/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply