Programs used before

This is a note to myself as much as anything; GMvault – used to back up gmail accounts. Very useful Imapsync – used to transfer emails from one gmail account to another. Very handy when closing an account Logstalgia – used to visualise logs. Can install on MacOS and watch logs on other systems

How to pass through a USB device to a Windows Virtualbox VM

Running a Mac with Windows running in a Virtualbox virtual machine? Here’s how to pass through a USB device so that whenever the VM (Virtual Machine) is running and the USB device is plugged into a USB port it appears in the Windows VM and not in Mac OS X. Open up Virtualbox and make sure that the Windows VM is not running:   screen-shot-2016-09-18-at-10-55-51-pm   Click on “Settings” at the top and you should see this screen:   screen-shot-2016-09-18-at-10-56-07-pm   Click on “Ports” (third from the right hand side in the icon menu at the top):   screen-shot-2016-09-18-at-10-56-19-pm   It defaults to Serial – click on USB:   screen-shot-2016-09-18-at-10-56-26-pm   Nobody wants to be using USB 1.1 (slow) so click on USB 2.0:   screen-shot-2016-09-18-at-11-04-01-pm   Then plug in your USB device that you want to pass through. In a nutshell, we will be setting up the specific USB devices we select on this screen to be passed through to the Windows VM whenever they are plugged in while the VM is powered on. If the virtual machine is closed down when you plug in the USB device the normal Mac OS X system will read the USB device as usual.   Click on the icon on the right that has a little green plus and you should see a listing of USB devices that are eligible for passthrough:   screen-shot-2016-09-18-at-10-59-16-pm   In this instance we are selecting the SanDisk Cruzer Blade. Click on it.   screen-shot-2016-09-18-at-10-59-27-pm   Now you should see it listed under “USB Device Filters”. The USB controller has been moved to USB 3.0 in the above screen shot – ignore that, as USB 3.0 currently does not work on Windows 7 VMs. Click OK, and go back to the main Virtualbox screen. Safely remove the USB device from your computer and then start the Windows virtual machine.   screen-shot-2016-09-18-at-11-04-40-pm   If you have only just selected USB 2.0 for the first time you will probably see the above screen. Otherwise, you can now plug your USB device in:   screen-shot-2016-09-18-at-11-05-12-pm   …and it should be picked up as if it were plugged into a physical Windows computer:   screen-shot-2016-09-18-at-11-05-21-pm   All done. Now, if you look in Finder in Mac OS X you won’t see the drive:   screen-shot-2016-09-18-at-11-05-42-pm   Closing down the VM, though, and unplugging/reinserting the drive will make it show up as normal:   screen-shot-2016-09-18-at-11-06-16-pm   In the above screen shot it is appearing as “NO NAME”.   All done! Incidentally, if you want a USB thumbdrive to work in both Windows and OS X you want it formatted into FAT32 or ExFAT rather than NTFS or Mac OS X Extended.   If you wish to remove the USB device from the passthrough list, click on the USB device in the list and then click on the little red minus sign on the right hand side.

How to install Drupal 8 – Step by Step

So, you have downloaded Drupal 8 from the downloads page (link here) and extracted it into your web directory. In our example we have used the RC4 release – we’ll update on release day if anything changes in the process. Here’s what you do next:

Select your language – here English:

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-2

Choose your installation profile. If you’re uncertain, choose “standard” – the minimal installation really is quite minimal and if this is your first Drupal experience the standard installation is a lot easier to start from.

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-5

On the next screen you have to enter your database details. We’ll do a future article on how to create a database and a user in mariaDB/mysql but for now, we’ll assume that you have already done that. If your database server is installed on the same machine/VPS that you’re installing Drupal on, leave the advanced settings alone – “localhost” will be correct for the location of the database, and the port should be correct unless you have specifically changed the mysql/mariaDB port!

sotechdesign-com-au-how-to-install-drupal-8-step-by-step

Assuming you entered the database details correctly, the next screen should be the installing process progress bar:

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-7

On our Binary Lane test VPS it took under a minute to complete:

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-8

Put in your site details in the next screen. We like to choose an administrative account name that isn’t “admin”. Make sure to choose a good password! The password strength meter here seems fairly harsh on rating your passwords, which is a good thing.

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-9

Below that, select your default country and timezone settings:

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-6

The next screen is… drumroll… your new Drupal installation!

sotechdesign-com-au-how-to-install-drupal-8-step-by-step-3

It should be a quick and painless process – now enjoy your new Drupal 8 installation! There will be a lot of people trying out the new Drupal 8 once it’s released later this month – check back here for some more articles on the latest update to one of the best CMS’ around!

Site redesign

We’re updating the look of our website, so things may look a little odd here and there until it’s done! Will update once complete.

What CPU socket does Apple’s Mac Pro use?

  This is a question we have been asked a few times; to date Apple have used two different Intel sockets for their Mac Pro line. For the Mac Pro 1,1, 2,1 and 3,1 models (Mid-2006 to eatly-2008) it was Intel’s Socket 771, and for the 4,1 and 5,1 models (Early 2009, Mid 2010 an Mid 2012) it is Intel’s Socket 1366.   It is interesting to note that to date the platform has not been updated to the replacement of Socket 1366 – namely, Socket 2011. Given that Socket 2011 was released in 2011, it’s been quite a while since the Mac Pro has had a significant refresh.   And for those wondering, if you are bold, foolish or both you can replace and upgrade the CPUs yourself, with some caveats…

New: RSS feed!

  We have added an RSS feed for our articles – you can now get our new posts in your email or RSS feed app! On the right-hand side under the tag cloud you can enter your email, or enter the following url into your RSS reader:   http://www.sotechdesign.com.au/feed/   Enjoy!

Traceroute easter egg

  Here’s another oldie but a goodie:  
tracert -h 66 216.81.59.173
    The above is for Windows command line – the “h” flag is to see all 66 hops necessary to get the full effect! Enjoy 😉

How to remove/delete old or unused kernels in Ubuntu

  If you have upgraded your kernel you will have found that Ubuntu keeps the older ones around, which can be handy if something breaks in the newer kernel and you have to boot from your old system. Over time, however, these can add up in terms of the amount of space consumed – at around 150MB per kernel you could easily find yourself with over a GB of old kernels if you’ve upgraded enough times. In this example the system we are using is Ubuntu 12.0.4.2. If you’re using Ubuntu Desktop, open up a terminal window – if you’re using Ubuntu Server, log in as usual and run:  
uname -r
to see which kernel you are currently running. Make sure not to delete this one. Now, to see a list of the installed kernels, we run:  
dpkg –list | grep linux-image
This command lists the installed packages and filters the list to include only those which have “linux-image” in them, which should only be your kernels. Your list should look something along the lines of:  
ii  linux-image-2.6.32-33-server 2.6.32-33.72     Linux kernel image for version 2.6.32 on x86_64 ii  linux-image-3.2.0-35-generic 3.2.0-35.55      Linux kernel image for version 3.2.0 on 64 bit x86 SMP ii  linux-image-3.2.0-38-generic 3.2.0-38.61      Linux kernel image for version 3.2.0 on 64 bit x86 SMP ii  linux-image-server           3.2.0.38.46      Linux kernel image on Server Equipment.
  To remove a kernel, run the following:  
sudo apt-get purge [kernel]
  Using the above list, say we want to get rid of 3.2.0-35. In that case the command would be:  
sudo apt-get purge linux-image-3.2.0-35-generic  
Once you have removed your unwanted kernels run:  
sudo update-grub2
  This will update the boot menu accordingly.