Windows 10 bash


You’ll need to use the apt-get command to install and update the Ubuntu environment’s software. Be sure to prefix these commands with “sudo”, which makes them run as root–the Linux equivalent of Administrator. Here are the apt-get commands you’ll need to know:
•Download Updated Information About Available Packages: sudo apt-get update
•Install an Application Package: sudo apt-get install packagename (Replace “packagename” with the package’s name.)
•Uninstall an Application Package: sudo apt-get remove packagename (Replace “packagename” with the package’s name.)
•Search for Available Packages: sudo apt-cache search word (Replace “word” with a word you want to search package names and descriptions for.)
•Download and Install the Latest Versions of Your Installed Packages: sudo apt-get upgrade

apt-get command how to ….

The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use ‘apt-get autoremove’ to remove them.

Change default user password
lxrun /setdefaultuser myusername

lxrun /uninstall /full

Windows 10 IIS 503 error

IIS Rewrite Module Problem

It turns out that there’s a new version available that’s more recent (but doesn’t change the version number), and that needs to be installed in order to work. The version I found on the WebPI was dated a month ago (5/27/2015), and I suspect it’s meant to address just the type of problem I’ve been running into with my upgrade.

To install the module:
•Uninstall the Rewrite Module from Windows Features
•Go to the Web Platform Installer
•Pick Url Rewrite from Products | Server section and install
•Restart IIS

And bingo – my IIS installation is up and running again.

Windows port usage

Here is a quick and easy way to dig into what ports are being used, and what apps are using them.

Step 1: Find out what ports are being used:
C:>NetStat -o<an>
Which will return the following (your list will probably be much longer):

Proto Local Address Foreign Address State PID
TCP EC968728:1108 ESTABLISHED 4072

Step 2: See what app (& more) is using that port:
C:>TaskList /FI “PID eq 4072” /FO LIST /V
Which will return the following

PID: 4072
Session Name: Console
Session#: 0
Mem Usage: 105,320 K
Status: Running
User Name: ****DomainName****bgroth
CPU Time: 0:01:44
Window Title: Inbox – Microsoft Outlook

There you have it!

Windows 7 Clean boot

To perform a clean boot in Windows 7:

1.Click Start and type msconfig in the search box.
2.Press Enter.
3.On the General tab, click Selective startup.
4.Clear the Load startup items check box.
5.Click the Services tab.
6.Select the Hide all Microsoft services check box (at the bottom).
7.Click Disable all.
8.Click OK.
9.Click Restart.

After completing your troubleshooting, restore your system by doing the following:
1.Click Start and type msconfig in the search box.
2.Press Enter.
3.On the General tab, select Normal startup.
4.Click OK.
5.Click Yes when asked to restart your computer.