Pinto:...talling(3pm)
π Pinto::Manual::Installing π
okay so bestie, this is Pinto::Manual::Installing β a page from the User Contributed Perl Documentation, and it's literally just tips for installing Pinto. no cap. let's get you set up π«Ά
β¨ VERSION β¨
version 0.14 β that's the vibe check for this page π
πΈ SYNOPSIS πΈ
for the girlies who are impatient (me, it's me)β¦
curl -L http://getpinto.stratopan.com | bash
source ~/opt/local/pinto/etc/bashrc
and then possiblyβ¦
echo source ~/opt/local/pinto/etc/bashrc >> ~/.bashrc
π¦ APPLICATION VERSUS LIBRARY VERSUS SERVER π¦
okay so here's the tea β For most situations, Pinto is more like an application than a library. It's a tool you use to develop and manage your code, but Pinto itself is not part of your code. Also Pinto has a LOT of dependencies, and some of them may conflict with or complicate your code. it's giving messy roommate energy π
Pinto can also serve as the backend supporting a daemonized Starman server exposed to the wilds of the internet. Doing so opens the door to many additional security concerns. Below are some practices we hope will serve to minimize the risks of doing so. stay safe out there π
π INSTALLING AS AN APPLICATION π
for the reasons above, I recommend installing Pinto as a stand-alone application in its own sandbox. That way, it doesn't pollute your environment with its dependencies. Nor will you pollute Pinto with changes to your environment, so Pinto will function even when your other environment dependencies are broken. And hopefully, you can use Pinto to help fix whatever broke! it's the circle of life bestie β¨
π Step 1: Run the pinto installer script π
The installer script at <http://getpinto.stratopan.com> is mostly just a wrapper around cpanm, which installs pinto in a self-contained directory:
# If you use curl...
curl -L http://getpinto.stratopan.com | bash
# If you use wget...
wget -O - http://getpinto.stratopan.com | bash
All the dependent modules will come from a curated repository on Stratopan <http://stratopan.com>. These aren't always the latest versions of things, but they are versions that I know will work. curated = the algorithm but make it trustworthy π
π Step 2: Set up the pinto environment π
The pinto installer generates a setup script for you. By default, it is located at ~/opt/local/pinto/etc/bashrc. To load that setup into your current shell, just give this command:
source ~/opt/local/pinto/etc/bashrc
To make these settings part of your everyday shell environment, just add that last command to your ~/.profile or ~/.bashrc or whatever setup file is appropriate for your shell. set it and forget it, periodt π
If you wish to customize any of the other environment variables that pinto uses, you can place those commands in ~/.pintorc. If that file exists, the setup script will source them as well. See pinto for a list of the relevant environment variables. π
π₯ INSTALLING AS A SERVER π₯
If you will be running the pintod daemon exposed to the internet, it is suggested that you assume root privileges and proceed as follows:
- create a pinto user like so:
adduser --system --home /opt/local/pinto --shell /bin/false \
--disabled-login --group pinto
- set some environmental variables:
export PINTO_HOME=/opt/local/pinto
export PINTO_REPOSITORY_ROOT=/var/pinto
check that the exports took with env. π
- run the installer as described above, and source the environmental variables to facilitate the steps of setting up the repository.
- choose an authentication backend and install it like so:
cpanm -L $PINTO_HOME Authen::Simple::Kerberos
to review your options see Authen::Simple. π§
- choose an appropriate startup script and install it:
cp $PINTO_HOME/etc/init.d/pintod.debian /etc/init.d/pintod
update-rc.d pintod start 50 2 3 4 5 . stop 20 0 1 6 .
β οΈ AN IMPORTANT NOTE ABOUT SECURITY β οΈ
Currently daemonizing thepintodserver will run the starman workers as root. We hope to soon have thepintoddaemon drop its privileges after initiating the master and before spawning the workers, so that the workers will run as thepintouser. Until that feature is in place, pinto repository administrators are urged to keep their installations safely behind firewalls, protected from the potentially hostile user.
no seriously bestie, firewall it. root workers are NOT the slay we're looking for ππ₯
π INSTALLING AS A LIBRARY π
If you're going to be hacking on Pinto itself, or want to try building on the API directly, then you can install Pinto straight into your development environment, just like you would do for any other module.
Just beware that Pinto has lots of dependencies. And if you subsequently upgrade any of those dependencies to something that breaks Pinto, then you might find yourself in a pickle. The whole point of Pinto is to help you manage your dependencies, so if you break Pinto, it won't be able to help you. the irony is genuinely unreal π
π OTHER INSTALLATION OPTIONS π
Naturally, installation procedures will vary from one environment to another. If this procedure doesn't work for you, or if you'd like to suggest a procedure for a different environment (e.g. Windows, Perlbrew, Strawberry Perl, etc.), then please contact me. Your contributions would be greatly appreciated. yes this is your sign to submit that PR π«Ά
π SEE ALSO π
Pinto::Manual::QuickStartPinto::Manual::TutorialPinto(the library)pinto(the command)
β AUTHOR β
Jeffrey Ryan Thalhammer <jeff@stratopan.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page babes β¨ this was Pinto::...talling(3pm) from perl v5.40.1, dated 2025-04-21 β go forth and install, you absolute icon ππ
π¦ where this page comes from
- debian trixie: pinto 0.14000-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: pinto 0.14000-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms