Tips and Tricks
From JaxlugWiki
Contents |
[edit] Generate a random password using dd and md5sum
dd if=/dev/urandom count=1 2> /dev/null | md5sum | \ head -n 2 | tail -n 1 | cut -c-8
Or generate a random 128-bit WEP key...
dd if=/dev/urandom count=1 2> /dev/null | md5sum | \ head -n 2 | tail -n 1 | cut -c-26
[edit] Urpmi (mandrake) Shell scripts
DEAD LINKS
Very advanced shell script for urpmi updates.
http://shabbir.mine.nu/scripts/urpmi.txt
A much simpler version of the above script.
http://shabbir.mine.nu/scripts/urpmi2.txt
[edit] Send Windows Messenger Messages from Linux
First off, get the network name of the machine you want to send messages to.
#> nbtscan 192.168.1.1-255 // Or whatever your IPV4 IP pool would be
This will list all hostnames of the machines with windows messenger enabled. Next, send your message:
#> smbclient -M <hostname>
This will connect you to your host for messaging. Type your message and hit ctrl+D to send it.
Troubleshoot: Windows Firewall, Norton Firewall and some routers prevent netbios traffic by default. You will have to disable all these protections to use this.
[edit] GPG: Graphing Your Web of Trust
#> gpg --list-sigs | src/perl/sig2dot/sig2dot.pl | neato -Tps | convert – graph.neato.jpg
Such a command yeilds the following from my system:
NOTE: requires imagemagick, graphviz and sig2dot.pl
