Access Ubuntu Linux using Remote Desktop Connection

In this brief tutorial, I’m going to show you how to use Windows’ own remote desktop connection protocol to connect to Ubuntu Linux 16.04 / 17.10 and 18.04 / 18.10 desktops using Xrdp.

Xrdp is an open-source remote desktop protocol server which uses RDP to present a GUI to the client. It provides a fully functional Linux terminal server, capable of accepting connections from rdesktop, freerdp, and Microsoft’s own terminal server / remote desktop clients including copy + paste content/file, etc.

Step 1: Install Xrdp Server

To get Ubuntu Desktop accepting RDP connections, you must install and enable the Xrdp tool, here are the commands to install and enable the Xrdp tool:

sudo apt install xrdp
sudo systemctl enable xrdp

Step 2: Connect from Windows PC

Now that Xrdp server is installed, go and open Windows Remote Desktop Connection (%windir%\system32\mstsc.exe)

And connect to the server’s IP or hostname.

Type your username in Ubuntu desktop.

Click ‘Connect’ to initiate remote desktop connection to the Ubuntu desktop, you will be warned something like this, but don’t worry that’s perfectly normal:

You can also tick that ‘Don’t ask me again for connection to this computer.’ so it will not warn you again in the future.

Type in your password in Ubuntu desktop.

If your credentials are correct, you should now logged on to your Ubuntu desktop from Windows.

This tutorial should works with other Linux variants as well, especially Debian Linux derivatives, I actually made this tutorial on Kali Linux:

andy@kali:~# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling
andy@kali:~#

Troubleshooting:

  • If you have followed all the steps above but couldn’t logon, make sure you’re not already logged on to the Ubuntu desktop. Best thing is to restart your Ubuntu and don’t logon directly.
  • If you try Xorg session and it quickly disconnect. Select the X11rdp from the drop-down list, it will hang and not fully logon, close the session and try the Xorg session again. Now it should work…
  • But if it keeps prompting you to authenticate, you can cancel the prompt windows… and restart again if the above step doesn’t work right away.

Let me know by commenting down below if you have any question or comments.

Clone from Larger HDD to Smaller SSD

In this post we will learn how to clone Windows from Larger Disk to Smaller Disk, in most cases we do this when we want to do HDD to SSD Upgrade, the hard disk drive usually has a larger size than our solid-state drive.

  1. We need to make sure that our C drive will fit into our SSD drive.
  2. Click here to download the Renee Becca software, it’s 100% free (no hidden charges or anything like that)
  3. The software requires a license, but don’t worry, a valid free license code will be mailed to your email after you enter your email address. Click here to obtain that free license (you can also use some temporary mail to get the license)
  4. Now install the software and open it, activate the software by entering the key you received in your email.
  5. Click on Clone and then select System Redeploy like shown in the picture below:
  6. Choose the Destination and it should be your SSD. The source is your system drive containing Windows files and boot images, etc. Please refer to the picture below:
  7. Now click the Redeploy button and select Yes as shown in the picture above.
  8. The software will then start the process and will complete the data transfer depending on your source disk size. Your partition will be automatically adjusted to fit with your new destination drive.
  9. Physically swap the old drive with the new drive. You can uninstall the software if you prefer not to keep it.

I hope this works for you. Let me know if you have any question by commenting down below. Cheers!

Download and Get the Windows 10 Fall Creators Update

Earlier Microsoft released a Windows 10 Fall Creators Upgrade Assistant, but it’s hard to find now. Just in case you’re missing it, you can download from the link below:

https://files.saputra.org/installers/Windows10Upgrade9252.exe

andy-mac:Downloads andy$ md5 Windows10Upgrade9252.exe 
MD5 (Windows10Upgrade9252.exe) = da222f3519e7387892a7afea30b1cb65
andy-mac:Downloads andy$

Prevent Windows from Automatically doing Updates

Don’t like your Windows performs automatically download, install updates and restart by itself?

Click Start and type in: ‘gpedit.msc‘.

Go to: Local Computer Policy -» Computer Configuration -» Administrative Templates -» Windows Components -» Windows Update -» Configure Automatic Updates.

Set from ‘Not Configured’ to: ‘Enabled‘.

Configure automatic updating: ‘2 – Notify for download and notify for install‘.

Click ‘Apply‘ then ‘OK‘.

See screenshot below:

Windows Automatic Update Policy

Control Panel crashes with Windows Explorer on Windows 10

So when you open Control Panel the Windows Explorer crashes?

If you have IDT Audio Drivers, use your File Explorer to get to:

C:\Windows\System32

And then remove: IDTNCPL.cpl and IDTNCPL64.cpl

Those files are remnants from the previous Windows Driver update and are safe to be removed, it has potential to crash Control Panel with the Windows Explorer (i.e. the explorer.exe process)

Tested on Windows 10 Creators Update [Version 10.0.15063]

See/Recover Stored Wi-Fi Password in Windows

So you want to recover the Wi-Fi password you previously stored on your Windows? It is very simple, you will just need to execute two easy commands below.

Firstly, open up Command Prompt by clicking Start -» type: ‘cmd‘ then press Enter.

Type in:

C:\Users\Andy>netsh wlan show profiles

Profiles on interface Wi-Fi:

Group policy profiles (read only)
---------------------------------
<None>

User profiles
-------------
All User Profile : CWMGuest5G
All User Profile : Mercury
All User Profile : SPARK-JVYXR4
All User Profile : Brick
All User Profile : Ellerslie
All User Profile : Telecom-8080
All User Profile : JR-WIFI
All User Profile : JEAL-WIRELESS
All User Profile : ANDY-IPHONE
All User Profile : Millennium Conference
All User Profile : BETHEL
All User Profile : CSC-Guest


C:\Users\Andy>

And then to see the password, type in:

C:\Users\Andy>netsh wlan show profiles WIFI-SSID key=clear

Profile BETHEL on interface Wi-Fi:
=======================================================================

Applied: All User Profile

Profile information
-------------------
 Version : 1
 Type : Wireless LAN
 Name : BETHEL
 Control options :
 Connection mode : Connect automatically
 Network broadcast : Connect only if this network is broadcasting
 AutoSwitch : Do not switch to other networks
 MAC Randomization : Disabled

Connectivity settings
---------------------
 Number of SSIDs : 1
 SSID name : "BETHEL"
 Network type : Infrastructure
 Radio type : [ Any Radio Type ]
 Vendor extension : Not present

Security settings
-----------------
 Authentication : WPA2-Personal
 Cipher : CCMP
 Authentication : WPA2-Personal
 Cipher : Unknown
 Security key : Present
 Key Content : thiswillbethewifipassword

Cost settings
-------------
 Cost : Unrestricted
 Congested : No
 Approaching Data Limit : No
 Over Data Limit : No
 Roaming : No
 Cost Source : Default


C:\Users\Andy>

Simply replace WIFI-SSID with your SSID you want to reveal the key.

Tested and working properly on Windows 10 Creators Update (Version: 1703 (Build: 10.0.15063.296))

Hope this helps, cheers!

Enable Windows Photo Viewer in Windows 10

Those you who have upgraded from Windows 7 or Windows 8.1 to Windows 10 probably have Windows Photo Viewer program in Windows 10. But some users are reporting that Windows Photo Viewer has gone missing after clean installing Windows 10.

If you are missing the Windows Photo Viewer, we can bring back the classic Photo Viewer to Windows 10.

  1. Copy and paste the following registry key and save as PhotoViewer.reg:
    Windows Registry Editor Version 5.00
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.jpg]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.jpeg]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.gif]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.png]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.bmp]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.tiff]
    @="PhotoViewer.FileAssoc.Tiff"
    
    
    ; Change Extension's File Type
    [HKEY_CURRENT_USER\Software\Classes\.ico]
    
    @="PhotoViewer.FileAssoc.Tiff"
  2. Double-click on the saved PhotoViewer.reg file.
  3. Click Yes button when you see the following confirmation dialogue to merge it. Alternatively, you can right-click on it, and then click Merge option.
  4. Click OK button again when you get the following dialogue box and that’s it! You have just enabled the classic Windows Photo Viewer in Windows 10.
  5. Optionally you can also make it default for images.