Reset Your Password in Windows 10 Bash / Ubuntu

If you forget your root password for Bash on Windows, you can do the following to reset your password:

First, run: lxrun /setdefaultuser root . This will open a new Bash window as root.

From there, run: passwd your_username and then enter your new root password

Then change the default user for Bash back to your user: lxrun /setdefaultuser your_username

 

That’s it! Enjoy Bash on Windows 10.

Installing Windows Server 2016 (Part One)

So you’ve seen that Microsoft released an evaluation version of the Windows Server 2016 RTM and want to install it? Let’s get this started then! I’ll be doing this on my ESXI hypervisor. I’ve uploaded the ISO and created a VM. My machine had 1 CPU, 100GB of space, and 4GB of RAM.

Once you get the VM booted, you’ll see the purple screen you’ve come to recognize:

Click Next, and then you’ll have one option to install. You can’t say this is hard:

Next, you’ll have to choose the version that you want to install. You can install the eval with the desktop GUI or without it.

Choose the drive you want to install on and you’ll be off to the races.

It’s booting!!!!

And that’s it! You’ll boot into the screen below and you’ll be off on your Server 2016 adventure.

Have a Broken iLo?

I had an iLo that I couldn’t access today via its HTTP / HTTPS interface. You can simply SSH into it and use the reset or restart command (depending on version) to reboot the device. In my case, it came back up and it was accessible!

Rebooting ESXI Host in a Stuck State

Sadly had to use this one this morning… fire up SSH and run this command to force a reboot:

reboot -n -f

 

You’ll lose the SSH connection and the host will reboot

 

 

 

Enable Syncing of Ublock Whitelist and Settings

I’ve been a big fan and user of Ublock (and now uBlock Origin) for a while now, but hated having seperate whitelists on all my devices. I recently found out you can indeed sync those lists if you sync settings within your Chrome or Firefox browser!

Simply right-click on the uBlock icon and click on Options

And on the first page that pops up, you’ll see this option which you should check off:

On your various settings, rules, and whitelist pages you should now see these arrows:

Click the up arrow to upload your current list and then on your other devices, you can enable the setting and hit the down arrow to download that list. And you’re all set!

More info can be found on the github wiki

 

Sharepoint Error – User Not in Directory

Had an odd one today. An internal user with permissions to a Sharepoint site was getting the error “user not in directory”. Searching Google comes up with many different options and reasons for this error, but no concise cause / solution.

The user was able to login to Office365 webmail normally without any errors and was had a Sharepoint license for several weeks and hadn’t reset their password recently.

Eventually, I had the user un-invited and then re-invited and it worked!