Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

4/21/2016

UpdateDB & Locate On Windows

Do you love the "locate" tool on Linux and wish your Windows box had the same capabilities?  If so, check out Invoke-Locate, a PowerShell script written by Chrissy LeMaire.  It builds a SQLlite database (can use a MSSQL DB if you prefer) of files on all local disks, can index mounted drives (careful with that option in a corporate environment), and includes an option to "install" which creates a scheduled task to update the DB every 6 hours.



I would recommend the install option if you can spare the CPU cycles, as manually running the updatedb command takes a few minutes; but subsequent searching using the locate command are lightning quick (far faster than Windows' built-in search even with indexing enabled.)  As always, check the help and example sections of the script for details and a slew of options.

Links:
Chrissy's blog entry announcing the script.
ScriptCenter download page.

4/06/2016

Bash (on Ubuntu) on Windows!

Microsoft released Windows 10 Build 14316 to their Insiders program fast ring today, and it brings along some nifty features like a native dark window theme, some bug fixes.... oh, and BASH!  Not Cygwin, but a full Ubuntu userspace!  (Edit: or Windows Subsystem For Linux for the uber-pedantic) If you want to read the official blog announcing the release, it can be found here - let's dive in and take a look at the basics.

A quick word of warning, as noted in the original announcement this is definitely beta software with more than a few unimplemented features and rough edges. You probably don't want to install this on your production computer, nor try super-adventurous activities the night before your doctorate thesis or big work project are due.

First, the pre-requisites - installation requires a valid (and likely activated) Windows 10 installation running at least Build 14316.  To get this build, you must be signed up for Microsoft's insider program using a Microsoft account.  Then enable the developer mode (under Settings > Update & Security > For Developers > Developer Mode) and set the Insider Preview build ring to "Fast" (under Settings > Update & Security > Windows Update > Advanced Options > Get Insider Preview Builds > move the slider to the right.)

Once Build 14316 is installed, click the "Turn Windows features on or off" in the Programs & Features pane of Control Panel and select "Windows Subsystem for Linux (Beta)"  After the feature installs, reboot your computer.



Log in again, then open a command prompt and type "bash" - follow the prompts and you'll end up in a full-bore bash prompt in mere minutes.




After installation, you'll have access to many of the default Ubuntu CLI functions including bash, awk, sed, grep, manual pages, etc.  The environment also includes a semi-functional aptitude which can be used to install packages (including working dependency resolution) from the official Ubuntu repositories.  A quick demo of installing git, reading the man pages for git and navigating the directory structure is shown below.




Note that although GUI applications (such as Gimp) can be downloaded and installed, the CLI cannot launch them as it does not (yet?) have a functional GTK/QT/X11 environment to use for display.  No word yet on if/when this will be added, but in the mean time get out there and enjoy some *Nix On Windows!

More Links




MacOS Tweaking 101

Is your beloved hunk of Cupertino silicon underperforming?  Wish your Mac had a little more zip?  Then you'll love these tips on squeez...