Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: What is the best way to install CPAN modules on Debian?

by JavaFan (Canon)
on Mar 26, 2009 at 16:14 UTC ( [id://753445]=note: print w/replies, xml ) Need Help??


in reply to Re: What is the best way to install CPAN modules on Debian?
in thread What is the best way to install CPAN modules on Debian?

I think it was JavaFan who told me he uses the idea of having cpan installation dirs writable by a special group, and told me it worked fine.
Actually, I use a special user (usually I call the user perl, camel or onion). But then I use said user to install anything Perl related - I never tried installing half of it as root, and the other half as someone else. About the only module that requires an additional step when installing is Tk on the local machine while using sudo su - xxx to switch users; I don't allow others to open windows on my X client, and hence Tk's test will fail when run as a different user. Running xauth fixes that.

But none of that really relates to what the OP wants to do, so I didn't mention it.

  • Comment on Re^2: What is the best way to install CPAN modules on Debian?

Replies are listed 'Best First'.
Re^3: What is the best way to install CPAN modules on Debian?
by cas2006 (Novice) on Apr 25, 2009 at 00:15 UTC
    I don't allow others to open windows on my X client, and hence Tk's test will fail when run as a different user. Running xauth fixes that.

    i use ssh -X for that. e.g. 'ssh -X otheruser@localhost' or 'ssh -X otheruser@remotehost'.

    it's the least hassle way of allowing other UIDs temporary access to my X server.

    oh, and as for the original thread topic - i use dh-make-perl, and have done so for many years without problem.

    For a systems administrator, if not for a programmer, it is THE best way to use non-packaged CPAN modules and still have a consistent environment across hundreds of systems. package it once on your fastest/best dev box and ship it out using scp and install with dpkg (or, if you're doing it a lot, make your own apt repository for your local packages)

      i use ssh -X for that.
      Yes, that would work, if set up with ssh keys. I typically create adminstrative users like the one I'm talking about without any passwords or ssh keys. It removes a possible line of attack. (Yes, I'm paranoid).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://753445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-16 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found