11 Search results

For the term "perl".

Perl Modules won’t Install on Debian Server

/usr/bin/make — NOT OK Failed during this command: Anytime you cannot get a Perl package to install, here is the likely problem. Run these: sudo apt-get install build-essential What is wrong : a Debian Server install intentionally does not contain development tools for security and efficiency reasons. So when you attempt to run Perl, you find that you can’t get...

Padre Still Crashes on Debian Linux

The linked post was written in 2012 explaining what I think most users of Padre encounter, and therefore I won’t repeat anything already nicely documented there except to quote “And please do not feed me a junk line about it works on my Linux distribution, I do not care. Pretend I am a normal end user for a moment. If...

Fail2ban Mysql Database to Manage Persistent Bans

Step 1 Create Database and Tables in MySQL Add a “source” field for the server name if you want to use a remote database setup (and add it to the UNIQUE KEY).The UNIQUE KEY prevents duplicates of course. But this means you can refresh the perl script without handling duplicates there which would complicate things considerably. CREATE TABLE iptable (...

404 Page Not Found – Craigslist Search Engine by State

I once wrote a Perl script for crawling Craigslist for a particular product. It could be used for localized results, but the real benefit is price comparison capabilities (price arbitrage) by having global results for reference. It is very useful for some products, especially collectibles. I once used it to buy a rare guitar I was wanting. Average prices in...

Perl 24 Hour Sleep Clock

I searched a lot for all kinds of sleep and wake solutions to find everything but what I wanted. Hopefully this helps someone else. Problem: based on a 24hour clock, sleep after 5pm and wake (go back to work) at 8am. Or pause during non-work hours. #!/usr/bin/perl use strict; use warnings; my $waketime = 8; # sleep when hour <...

Perl Script to Find and Delete Duplicate Files for Backup Purposes

A useful script to remove duplicate files, especially designed for saving space for backup purposes. What the program does; finds all files in a Source Directory, puts them into an array, then finds all files in a Target Directory, putting those into another array (edit accordingly). The arrays are compared for matching file names. Matches are then compared for file...

How To Manage Fail2ban Using Perl Script On Remote Servers and A Control Mysql Database

Earlier I posted how to use a text file created by a script to similarly manage the rogue IPs that Fail2ban bans. The problem with using scripts and crontab is that it is not reporting in real-time. The method here works in real-time because Fail2ban reports directly to the MySQL on the control server. On each remote you’ll want to...

Harden Ubuntu Lamp with Bastille Linux

https://help.ubuntu.com/community/BastilleLinux sudo apt-get install bastille sudo apt-get install perl-tk sudo bastille -x

Perl error for LWP::Protocol::https

Problem with HTTPS in Perl When you see any of the below error messages, the solution is sudo apt-get install libssl-dev Error >> openssl-version.c:2:30: fatal error: openssl/opensslv.h: No such file or directory Error >> Warning: Prerequisite ‘Net::SSLeay => 1.46’ for ‘SULLR/IO-Socket-SSL-2.012.tar.gz’ failed when processing ‘MIKEM/Net-SSLeay-1.68.tar.gz’ with ‘make => NO’. Continuing, but chances to succeed are limited. Error >> t/connectSSL-timeout.t …………...

Edit “Other Applications List” in Unity Ubuntu 12.04 Desktop

When installing Padre IDE on Ubuntu Desktop, I found Ubuntu (12.04) does not recognize it as an already installed program. So when trying to open a Perl file for editing using right-click, its a dead end – Padre was nowhere to be found. I wasted an hour looking for the answer; found it here > Ubuntu 12.04 Add Program to...