Windows Subsystem for Linux

The Windows Subsystem for Linux lets developers run Linux environments — including most command-line tools, utilities, and applications — directly on Windows, unmodified, without the overhead of a virtual machine.

You can:

  1. Choose your favorite Linux distributions from the Windows Store.
  2. Run common command-line utilities such as grepsedawk, etc.
  3. Run Bash shell scripts and Linux command-line applications including:
    • Tools: vim, emacs, tmux
    • Languages: Javascript/node.js, Ruby, Python, C/C++, C# & F#, Rust, Go, etc.
    • Services: sshd, MySQL, Apache, lighttpd
  4. Install additional Linux tools using the distribution’s built in package manager (apt-get, for example).
  5. Invoke Windows applications from the Linux console.
  6. Invoke Linux applications on Windows.

More information on installing the windows ubuntu subsystem can be found in the Microsoft documentation:
https://docs.microsoft.com/en-us/windows/wsl/install-win10

Uninstall office completely from Microsoft PC

If you run into issues while installing Office 16/ Office 365 on your Windows PC,
Windows provides with a FixTool to remove office from your system and perform a clean install in your system.

The tool can be found at:

https://support.office.com/en-us/article/uninstall-office-from-a-pc-9dd49b83-264a-477a-8fcc-2fdf5dbf61d8
(Link as of 3rd March 2018)

Follow the instructions listed on the page and you should have installed Office completely from your system

Windows Product Key

Since Windows 8 Microsoft has made a change in which the product key is delivered to the customer.
Earlier the Product key could have been found on the windows sticker on the windows machine.
Now, most likely you won’t have a product sticker anymore. Instead, they save the Product key in our BIOS/UEFI. This is a pretty nice feature, since now when we reinstall windows it will automatically retrieve Product Key from the BIOS/UEFI.

To retrieve the Product key:

  1. Download RW-EVERYTHING.
    The download can be found here:
    http://www.majorgeeks.com/files/details/rweverything.html
    Choose the RWPortable. Download it and run the RW.exe
  2. Go to the ACPI button and click on the MSDM. Viola! You have your product key.

 

Snipping Tool and Shortcut in windows

There are many ways to take screenshots in your windows machine:

  1. Method 1:
    Press the PrntScrn button on keyboard, open paint and Ctrl + V to save the picture.
  2. Method 2:
    Open the snipping tool app, click new and save the picture.
  3. Method 3(Snipping tool shortcut):
    Create your own shortcut. Open snipping tool file location and then right click to open properties and add a shortcut.
    Press Ctrl + Alt + S is set as the shortcut, this would open the snipping tools menu. Save the picture as in method 2.
  4. Method 4: ScreenShot
    Press  Win + PrntScn
  5. Method 5: Windows 10 only
    Press  Win + Shift + S
    This would copy the image to the clipboard. The users can save it through the tool like paint

Delete Startup entries in Windows

1.

Command Win+R and type in regedit.

      You need to provide administrator permissions in order to make any changes to the registry.

2.  Find the enteries in HKLM(HostKey_LocalMachine) or HKCU(HostKey_CurrentUser). The enteries generally are:

HKLM\Software\Microsoft\Windows\CurrentVersion\Run

HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce

HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices

HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce

HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

3. Delete the values that you need to remove.

4. Confirm your changes. Restart your machine to see the changes in effect.

Python versions in Ubuntu

Ubuntu comes with both python versions 2.x and 3.x.
The default python version in ubuntu is 2.x

The python versions installed in ubuntu can be found using the below commands:
For both cases, to get out from Python shell, write:

 exit()

For installing python modules in python 2.x in ubuntu, use  :

pip

For installing python modules in python 3.x in ubuntu, use:

 pip3

Update setuptools in python

If package installation returns the following error:

python setup.py egg_info" failed with error code 1 in /tmp/xyz moduleName/

Use the below command to get the things working:

pip install --upgrade setuptools --user python

Using the --user python flag will resolve the error in --upgrade flag .

If you are using python3:

pip3 install --upgrade setuptools --user python

 

Ubuntu Snipping Tool

Unlike Windows, Ubuntu has a snipping tool of it’s own.

It’s named as gnome-screenshot.

Have a look at Screenshot. You can find it in Ubuntu Software.

http://apt.ubuntu.com/p/gnome-screenshot

However, there’s also a shortcut key associated in Ubuntu for taking snippets.

Hold down the Shift + PrtScn keys together.

Your mouse will change to a cross-like pointer.
Hold down your left-click key on the mouse and drag.

This uses gnome-screenshot behind the scenes.

You can change the keyboard shortcut via the regular keyboard settings.

STS on Ubuntu launchbar

  1. Open a text editor
  2. Copy and paste the following text into the editor:
    [Desktop Entry]
    Version=1.0
    Name=Eclipse
    Comment=Java IDE<br>Type=Application
    Categories=Development;IDE;
    Exec=/home/{username}/Programs/eclipse/eclipse<br>Terminal=false
    StartupNotify=true
    Icon=/home/{username}/Programs/eclipse/icon.xpm
    Name[en_US]=Eclipse
  3. Update any paths if you extracted Eclipse to a different location
  4. Save the file as eclipse.desktop in /home/{username}/.local/share/applications/
  5. Reboot your machine
  6. Search for Eclipse
  7. Drag and drop the Eclipse icon to the launcher