Today I’ll share some utility/ sysadmin(?) scripts with you that I use frequently in my home environment for different purposes.
These scripts are well commented, free and open for all as usual. Anyone interested in make their hands dirty for farther development/edits is warmly welcome. Constructive criticism is always welcome.
0. Post Installation Script:
Since 2014 I’m using Debian – started with Debian 6.0 Squeeze – as my daily distro.
Due to stupidity, voltage issues, hard disk crash or a New Year refreshment I reinstall the system.
The following script updates the grub menu and installs my most needed software packages in the freshly installed system.
1. Mirroring Websites:
I do sometimes mirror the permitted FOSS sites/blogs for educational purpose as they often go down over various issues.
Wget, a well documented non-interactive utility tool, is my personal favourite for mirroring those sites, downloading list of movies from my local or ISP’s ftp and doing other geeky stuffs.
Documentation is available here.
This small script mirrors a website given as a URL parameter.
2. Retrieving pdf File Links From a Site:
Wget can be used as a web spider. The following script will crawl a website and store data in an output file.
Later we’ll grep the pdf book links, or the expected file links, using grep. For example
3. Scanning LAN for Intruders:
Nmap is one my favourite toys with which I really love to spend a lot of time at free time.
This script scans the LAN, marks known devices OK and logs the unknown ones without any OK remarks.
The script I often use with my 24/7 raspberry pi torrent box that logs the devices connected to the LAN in every 30 minutes.
Comments
Post a Comment