Oskar Stolc's Howto Collection

Articles in the Misc category

Move Old Files to Archive

This is how I move old files to archive directory

#!/bin/bash

# moves files older than 90 days from $FROM_DIR to $ARCHIVE
# For example: /data/docs/blah -> /ARCHIVE/data/docs/blah

FROM_DIR="/data/docs"
ARCHIVE="/ARCHIVE"

cd $FROM_DIR
find . -type f -mtime +90 -print0 |rsync --progress -av --from0 --files-from=- --remove-source-files …

Books

Books I Read

  • RTL Cookbook - Don Lancaster - Feb 2017
  • A Marsi (HU) - Andy Weir - Nov 2016
  • Pomsta oceána (SK) - Frank Schätzing - Jan 2016
  • Postfix: The Definitive Guide - Kyle D. Dent - Mar 2015
  • Whole: Rethinking the Science of Nutrition - Campbell, Colin T. - Mar 2015
  • The Diary of a Young Girl - Anne …

How to Generate a Self Signed Certificate

This is how to generate a strong self signed certificate using one command

openssl req -x509 -nodes -sha256 -newkey rsa:2048 \
        -days 365 \
        -keyout server.key -out server.pem

PXE Boot Server on CentOS 6

To set up a PXE boot server on CentOS 6 we need to install and configure the following

  • DHCP Server
  • TFTP Server
  • Apache HTTP Server
  • Local mirror of a Linux distribution (optional)
  • UPDATE - 2013-04-21 - Added Fedora 18
  • UPDATE - 2013-05-06 - Added Ubuntu 12.04
  • UPDATE - 2013-08-16 - Added Fedora 19, removed Fedora …