Single purpose SSH-key

I’m no guru – I simply “borrowed” this from a website. Single-purpose keys So now you’re sshing and scping your brains out. Sooner or later you’ll come across one or both of these situations: 1. You want to automate some ssh/scp process to be done after hours, but can’t because no one will be around […]

md-raid

So, I keep forgetting how to rebuild my arrays with mdadm (since, it doesn’t break that often). But, hereĀ“s some information: mdadm -D /dev/md2 cat /proc/mdstat #mdadm –stop /dev/md2 mdadm –assemble -v /dev/md2 /dev/sdd1 –run fsck /dev/md2 mount /point #example mdadm /dev/md0 –add /dev/sda1 –fail /dev/sdb1 –remove /dev/sdb1

openvas ubuntu (9.10) -install

“Easy” way of installing. Based on 3.0.x of openvas, contains the needed dependencies. #!/bin/bash #make me as a [name.sh] and do me a chmod +x [name.sh] #Ran on ubu 9.10 #Run as root (ie – sudo -i ) cd $HOME wget http://wald.intevation.org/frs/download.php/729/openvas-libraries-3.0.5.tar.gz wget http://wald.intevation.org/frs/download.php/724/openvas-scanner-3.0.2.tar.gz ##wget http://wald.intevation.org/frs/download.php/685/openvas-client-3.0.0.tar.gz gunzip -d $HOME/openvas*.gz tar -xvvf $HOME/openvas-libraries-3.0.5.tar tar -xvvf $HOME/openvas-scanner-3.0.2.tar […]