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.

Disable Red Hat Graphical Boot on CentOS 7

Prefer to see what’s actually happening in the background when our CentOS Linux booting up?

Edit /etc/default/grub with your favourite editor, such as nano or vi.

[andy@av ~]# cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_ba-eraappl-v/root rd.lvm.lv=centos_ba-eraappl-v/swap rhgb quiet net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"
[andy@av ~]#

Basically we want to remove both rhgb and quiet above.

If you are curious what are them:

  • rhgb is the red hat graphical boot – This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.
  • quiet hides the majority of boot messages before rhgb starts. These are supposed to make the common user more comfortable. They get alarmed about seeing the kernel and initialising messages, so they hide them for their comfort.

I personally prefer a faster bootloader wait time, hence I lowered my GRUB_TIMEOUT from 5 seconds to 1 seconds.

This is my /etc/default/grub output after I removed both rhgb and quiet option:

[andy@av ~]# cat /etc/default/grub
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos_ba-eraappl-v/root rd.lvm.lv=centos_ba-eraappl-v/swap net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"
[andy@av ~]#

After removed rhgb and quiet option, we need to update our grub2 boot configuration file by issuing this command:

[andy@av ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-862.14.4.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-862.14.4.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-327.36.3.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.36.3.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-06d71e1cb34f47898c320b96609134c6
Found initrd image: /boot/initramfs-0-rescue-06d71e1cb34f47898c320b96609134c6.img
done
[andy@av ~]#

Restart your system and you will notice that your system is now booting faster as well as you will be able to see all the boot processes in detailed.

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!

Disable Boot Splash Screen on Ubuntu Desktop Linux

Prefer to see what’s actually happening in the background when Ubuntu Desktop Linux booting up?

  • Wait for Ubuntu to boot, then login and start a Terminal application
  • Edit /etc/default/grub as root, for example: sudo nano /etc/default/grub
  • Remove splash from GRUB_CMDLINE_LINUX_DEFAULT
  • Save the file and close the editor
  • Run sudo update-grub to regenerate the grub config files

Here’s my /etc/default/grub configuration file looks like after I disabled the splash screen:

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

I tested this on:

andy@computestick:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
andy@computestick:~$

And this is my GRUB version:

andy@computestick:~$ grub-install --version
grub-install (GRUB) 2.02-2ubuntu8.4
andy@computestick:~$

If you have any questions, let me know by commenting down below and I’d happy to answer.