This article demonstrates how to create an Ansible PlayBook that will add users to multiple Linux systems and add their public SSH key allowing them to login securely. Install Ansible on the host that you’ll use to target each of the Linux host you want the new users on. sudo
Read moreContact our friendly team to get started.
Dump and Backup all MySQL Databases into their own files
This article demonstrates how to backup all MySQL databases into their own files and then tar the lot including system files. #!/bin/bash TO=”/root” FROM=”/etc /var/www/html /var/backups” DBUSER=”root” DBPASS=’MyPassword’ THISHOST=`hostname` DBLIST=`echo “show databases;” | mysql –password=$DBPASS -u $DBUSER | egrep -v ‘^Database$|^information_schema$|^mysql$’` for DBLOOP in `echo $DBLIST` do mysqldump -u $DBUSER
Read moreSecure Erase a Hard Drive
If you decide that you want to overwrite one of your hard disk drives before reusing or perhaps giving to a friend, you don’t need to download a tool just use a simple script. Be careful with this script as it will overwrite whatever disk you tell it to for
Read moreMigrate from Evolution to Thunderbird
Just recently for work we had to migrate all of our users from evolution to Thunderbird, this is a boring process if you have to do it manually for an office full of people so I wrote a little script. Feel free to edit to match your needs. #!/bin/bash #Check
Read moreCSS Basics
This article explains how CSS (style sheets) work to enhance websites. Essentially CSS is used to change the way content is displayed in a web browser. Get more tips here http://www.w3schools.com/css/ Web browsers know what do to when text is marked-up. But you can change that with CSS. The following is
Read moreWatch a directory for changes with inotify
The following is a quick and simple way to watch a directory for changes and then report any such changes into a file. For this example the watched directory is /var/www/ and the log file location is /srv/log.txt apt-get install inotify-tools apt-get install screen screen -S “inotify script” inotifywait -m
Read moreFind network link speed with powershell
This is a simple command that will allow you to check the link speed of your Windows boxes using powershell, just replace localhost with the name of the machine you want. Get-WmiObject -ComputerName ‘localhost’ -Class Win32_NetworkAdapter | `Where-Object { $_.Speed -ne $null -and $_.MACAddress -ne $null } | `Format-Table -Property
Read moreTerminal Tip – Find your IP quicker
This one is old and simple but can save you time when trying to get the IP address of the machine you are working with, you will not have to scroll through other bits of information just to find your IP, this is designed for a system with a single
Read moreSimple Windows Backup Using Robocopy
This is a simple backup script for Windows Servers, this script can use network shares or local paths however for this example we have used local paths. In this example the data that we want to backup is on A:AGIX and the directory that we want to store it on
Read moreConnect to SMBFS Shortcut Mac
If you need a way to connect to your home Windows File Server from your Mac without dropping to the command line all the time then the following will be for you. Open Terminal and run the following cd ~/ mkdir Stacks cd Stacks mkdir Server_Connect cat > connect.txt mkdir
Read more