EnglishFrenchSpanish

OnWorks favicon

pintodp - Online in the Cloud

Run pintodp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pintodp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pintod - Web interface to a Pinto repository

VERSION


version 0.097

SYNOPSIS


pintod --root=/path/to/repository [--auth key=value] [--port=N]

DESCRIPTION


"pintod" provides a web API to a Pinto repository. Clients (like pinto) can use this API
to manage and inspect the repository. In addition, "pintod" serves up the distributions
within the repository, so you can use it as the backend for cpan or cpanm.

Before running "pintod" you must first create a Pinto repository. For example:

pinto --root=/path/to/repository init

See pinto for more information about creating a reposiotry.

ARGUMENTS


--root PATH
-r PATH
The path to the root directory of the Pinto repository you wish to serve.
Alternatively, you may set the "PINTO_REPOSITORY_ROOT" environment variable.

OPTIONS


--auth KEY=VALUE
Sets an option for the authentication scheme (default is no authentication). Each
time this is used, a key=value pair must follow; one of them must be 'backend', which
should correspond to a class in the Authen::Simple namespace. The remaining options
will be passed as-is to the authentication backend.

See "USING BASIC HTTP AUTHENTICATION" for more guidance on enabling authenticaion with
minimal fuss, or see "USING OTHER AUTHENTICATION SCHEMES" for more complex options.

--port INTEGER
-p INTEGER
Specifies the port number that the server will listen on. The default is 3111. If
you specify a different port, all clients will also have to specify that port. So you
probably don't want to change the port unless you have a very good reason.

other options
All other options supported by plackup are supported too, such as "--server",
"--daemonize", "--access-log", "--error-log" etc. These will be passed to
Plack::Runner. By default, "pintod" uses on the Starman for the server backend. Be
aware that not all servers support the same options.

USING BASIC HTTP AUTHENTICATION


"pintod" ships with Authen::Simple::Passwd, so the easiest way to run the server with
basic HTTP authentication is to create a password file using the "htpasswd" utility:

htpasswd -c /path/to/htpasswd USER

You will be prompted to enter the password for "USER" twice. Then repeat that command
without the -c option for each additional user. You may want to put the htpasswd file
inside the top of your repository.

Then launch pintod like this:

pintod --root path/to/repository --auth backend=Passwd --auth path=path/to/htpasswd

If you already have an htpasswd file somewhere, you may just point to it directly, or
create a symlink. In any case, the htpasswd file needs to be readable by the user that
will be running "pintod".

USING OTHER AUTHENTICATION SCHEMES


If you wish to use a different authenticaion scheme, then you'll first need to install the
appropriate Authen::Simple backend module. Then configure pintod accordingly. For
example, this would be a valid configuration for Kerberos:

--auth backend=Kerberos --auth realm=REALM.YOUR_COMPANY.COM

and this is how the authentication backend will be constructed:

my $auth = Authen::Simple::Kerberos->new(
realm => 'REALM.YOUR_COMPANY.COM'
);

DEPLOYMENT


"pintod" is PSGI compatible, running under Plack::Runner by default. It will use whatever
backend you specify on the command line or have configured in your environment (defaults
to Starman).

If you wish to add your own middleware and/or customize the backend in other ways, you can
use Pinto::Server in a custom .psgi script like this:

# my-pintod.psgi

my %opts = (...);
my $server = Pinto::Server->new(%opts);
my $app = $server->to_app;

# wrap $app with middlewares here and/or
# insert code customized for your backend
# which operates on the $app

Then you may directly launch my-pintod.psgi using plackup.

Use pintodp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad