Skip to main content

IPtables, SVN, and NMAP

I reviewed some material on IPtables, SVN, and NMAP just for the sake of keeping my mind busy. Here are some useful notes:

  1. IPtables - best resource found at HERE
  2. SVN - best, as in the quickest and simplest intro could be found HERE
  3. NMAP - I honestly don't see in using it for more than port-scanning in a few instances. Anyway, here are a few other options that might come in handy at some point.
nmap -sT/sS/sX/sF/...[-P0] IPADDRESS(range) == to check which ports are open
nmap -sP IPADDRESS(range) == a simple ping scan for availability
nmap -sO IPADDRESS(range) == check what IP protocols are available
nmap -sV IPADDRESS(range) == a scan with version detection
Other useful flags:
-O
== detects OS, part of -v (verbosity) flag as well
-A == detects OS and versions
-v == request high verbosity/detail
-F == performs a fast scan of only a few common ports

Installing Perl modules

Perl modules may be installed using the CPAN module or from source.
SOURCE

From CPAN

perl -MCPAN -e shell (to get an interactive CPAN shell)
perl -MCPAN -e 'install Time::JulianDay' (if you know the name of the module, you can install it directly without interacting with the CPAN shell)

Typing just perl -MCPAN -e 'install PerlMol', I managed to install the PerlMol module from scratch.

Manual installation

1. Download the Perl module from CPAN or other site.
2. Extract the tarball.
3. Run perl Makefile.PL
4. Run make
5. Run make test
6. Run make install

Checking for existence of a Perl module

perl -e 'use module' checks if the module is installed.

For example, I checked if I have the Trig module by typing this prompt:
perl -e 'use Math::Trig'

Comments

Popular posts from this blog

Slow Acroread Startup in OpenSuSe 11.0

It takes more than 30 seconds for acroread to load on my Opensuse machine the first time and the startup time gets shorter in subsequent attempts. Why? This is not the first time I have come across this problem of slow application startups in OpenSuse. Apparently a lot of people had encountered this problem and they found a simple solution - uninstalling the version of acroread that comes with OpenSuse and installing one from Adobe site yourself. Fortunately, that prescription seems to have solved the problem. My acroread startup time is a few seconds now. Why does a very good Linux distribution like OpenSuse with its wide support and following make so many of these mistakes?!?! Over the years, I have seen Suse/OpenSuse sending buggy distributions that make you wonder if they do much testing before releasing their distro. Here are a few bugs I have come across: The extremely slow startup of Openoffice in OpenSuse 10.0 was one of the reasons I switched to Fedora Core for a while...

Tax-and-spend Liberal My Ass

This is a continuation of my earlier posts on economic performance of democratic and republican administrations. My earlier posts include: Politics of the Federal Minimum Wage Democrats Have Kept Unemployment Low Democrats care about poor people Truth About Economic Performance of Political Parties I like to think I have shed light on some facts and debunked some conventional wisdom. In this post, I will attempt to examine the tax-and-spend liberal label put on democrats. Republicans often try to label democrats as tax-and-spend liberals who are soft on national security. While the latter point is based on anecdotal evidence, the earlier is amenable to empirical examination. So, I set out to prove or disprove the notion that democrats often tax and spend in a way that does not yield economic growth. The implication of tax-and-spend liberal is one that puts excessive tax burden on its population and finds inefficient (think socialistic) ways of spending that tax reven...

The Pervasive Mac vs. Windows vs. Linux Analogy

I'm sure everyone has seen the Mac vs. PC ads on TV where the Mac appears to be confident while th PC is in denial about its deficiencies. Missing from that picture is Linux which is robust, but seeks no attention because it has no commercial ambitions. This Mac vs. PC vs. Linux model can serve as a analogy for many things/phenomena. I would like to make a list of those analogies here. For example, The New York Times recently characterized Hillary as a PC and Obama as a mac on the basis of the design of their websites. The analogy would also work if you think of Hillary as the status quo much like Windows, and Obama as the new thing with great promise, cachet and appeal like the newly reborn mac. It is not obvious who would play the role of Linux, but my choice would be Ron Paul. He has some bold and independent ideas along with a very loyal following even though he has no chance of winning. PC Mac Linux Candidate Hillary Clinton Barack Obama Ron Paul States Northeast West Co...