Copyright 2021 Simon Quantrill, All Rights Reserved

Mac Recover wireless keys

Tue 13 January 2015
Go to: Applications Utilities Keychain Access System (top left; defaults to login) Found the SSID of key that I was trying to recover and double-click Select the Show Password checkbox Enter your admin password.

Hard core linux users access to windows shares

Tue 13 January 2015
smbclient -L NTSERV3 -U Gives a list of shares smbclient \NTSERV3\Install Connects to NTSERV3 Directory share Install smb: \SimonsStuff> tarmode smb: \SimonsStuff> recurse smb: \SimonsStuff> prompt smb: \SimonsStuff> mget Directory/

Service run-levels Debian

Tue 13 January 2015
0 System Halt 1 Single user 2 Full multi-user mode (Default) 3-5 Same as 2 6 System Reboot Run levels 2 through 5 are full multi-user mode and are the same in a default User Linux (Debian) system. It is a common practice in other Linux distributions to use run …

Using gpg

Tue 13 January 2015
GPG is used to perform encryption and signing of email and data. here are a few tips if you use gpg. Create NEW gpg key gpg —gen-key - Create a revocation certificate gpg —output revoke.asc —gen-revoke - Listing keys ǐ gpg —list-keys - Get keys from server gpg —keyserver keyserver.argoss.nl …

How I do stuff on all servers at once ..

Tue 13 January 2015
quantrill@amos:~/bin $ cat all_hosts #!/bin/bash #This Script allows you to create a list of hosts #and run a command line on each host in the list. # # #./all_hosts.sh "command;command2;" hostgroup #./all_hosts.sh ls workstations #./all_hosts.sh ls dmzservers #./all_hosts.sh ls lanservers …

Remote Xwindows access

Tue 13 January 2015
If you need to get a xwindows session to a remote machine at a push you can try this: $ssh -X -C user@remote user@remote$ Xnest :1 -geometry 800x600 & user@remote$ gnome-session -display :1 & Its slow but functional!

Failed RPM database

Tue 13 January 2015
RPM database screwed RPM the package manager of Red Hat sometimes goes a bit wierd, the database becomes bad the way to clear it is as such: A simple check for the database is: rpm -qa –qf ‘%{name}-%{version}-%{release}.%{arch}.rpm\n’ If this fails to complete or hangs …

Shared agenda for geeks

Tue 13 January 2015
The Shared Agenda for GEEKS The current shared agenda allows differing access methods but the handiest is Ical.. i here is a technique I use to see the shared agenda and it basicaly echos the agenda to your i terminal on activation.. first you need some software installed $ sudo aptitude …

Sync directions with windows

Tue 13 January 2015
Sync your directories with windows First you need to install microsoftsrktoolsthat includes robocopy if you have any other OS than vista IMPORTANT: Make sure you understand the difference between the source and the destination, robocopy is not that inteligent it will overwrite newer files with older without asking!! you have …

Chroot a DNS server

Tue 13 January 2015
Chroot DNS Install bind9 and its docs and utilities: aptitude install bind9 bind9-doc dnsutils It will probably autostart after install, so stop it before proceeding: /etc/init.d/bind9 stop Create the chroot. This requires a minimal file tree: mkdir -p /var/named/{etc,dev,var/cache/bind,var/run …