fpaste on Ubuntu

pastebinit_compfpaste is a text sharing utility (like pastebinit or gist.sh) written in python. It works with Fedora’s pastebin service fpaste.org. However, Ubuntu users may also want to use it because of its unique features. Turns out it’s very easy to use on Ubuntu as well.

Features

  • 200+ language/syntax support
  • tag paste with alias
  • private password protected pastes
  • self-destructing pastes
  • integrated option to share system information
  • returns short and long paste URL
  • read in from X clipboard, copy returned URL to clipboard

Installation

Run the following commands on Ubuntu:

$ git clone git://git.fedorahosted.org/fpaste.git
$ cd fpaste
$ sudo make install

Usage

The utility has an extensive help section:

Usage: fpaste [OPTION]... [FILE]...
  send text file(s), stdin, or clipboard to the http://paste.fedoraproject.org/ pastebin and return the URL.

Examples:
  fpaste file1.txt file2.txt
  dmesg | fpaste
  (prog1; prog2; prog3) | fpaste
  fpaste --sysinfo -d "my laptop" --confirm
  fpaste -n codemonkey -d "problem with foo" -l python foo.py

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit

  fpaste.org Options:
    -n "NICKNAME"       your nickname; default is "";
    -l "LANGUAGE"       language of content for syntax highlighting; default
                        is "text"; use "list" to show all 201 supported langs
    -x EXPIRES          time before paste is removed; default is 2592000
                        seconds; valid options: 1800, 21600, 86400, 604800,
                        2592000
    -P "PRIVATE", --private="PRIVATE"
                        make paste private; default is yes; valid options:
                        yes, no
    -U "FPASTE URL", --URL="FPASTE URL"
                        URL of fpaste server; default is
                        http://paste.fedoraproject.org/
    -d "PASSWORD", --password="PASSWORD"
                        password for paste; default is

  Input/Output Options:
    -i, --clipin        read paste text from current X clipboard selection
                        [requires: xsel]
    -o, --clipout       save returned paste URL to X clipboard
    --selection=CLIP    specify which X clipboard to use. valid options:
                        "primary" (default; middle-mouse-button paste),
                        "secondary" (uncommon), or "clipboard" (ctrl-v paste)
    --fullpath          use pathname VS basename for file description(s)
    --pasteself         paste this script itself
    --sysinfo           paste system information
    --printonly         print paste, but do not send
    --confirm           print paste, and prompt for confirmation before
                        sending

One thought on “fpaste on Ubuntu”

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s