Skip to main content

Take RDP of your Ubuntu from windows machine – Ubuntu 14.04

To take the Remote desktop of your ubuntu machine from windows machine using ‘mstsc’, we have an option to do that by installing the xrdp remote desktop protocol. Take RDP of your ubuntu from windows machine – Ubuntu 14.04
With the release of Ubuntu 14.04, the xRDP functionality has been improved but some small issues are still showing up. In this post, we will show you how to
  • Easily install xRDP
  • Connect to your Ubuntu Unity Desktop Interface
  • Set the keyboard layout to be used when using xRDP
Let’s go !
~]$ sudo apt-get install ubuntu-desktop
install ubuntu-desktop
install xrdp using below command
akhil@akhil1-ubuntu:~$ sudo apt-get install xrdp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  vnc4server xbase-clients
Suggested packages:
  vnc-java
The following NEW packages will be installed:
  vnc4server xbase-clients xrdp
0 upgraded, 3 newly installed, 0 to remove and 15 not upgraded.
Need to get 1,857 kB of archives.
After this operation, 7,021 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe xbase-clients all 1:7.7+1ubuntu8.1 [2,756 B]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe vnc4server amd64 4.1.1+xorg4.3.0-37ubuntu5.0.2 [1,577 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty/universe xrdp amd64 0.6.0-1 [277 kB]
Fetched 1,857 kB in 4s (386 kB/s)
Selecting previously unselected package xbase-clients.
(Reading database ... 198219 files and directories currently installed.)
Preparing to unpack .../xbase-clients_1%3a7.7+1ubuntu8.1_all.deb ...
Unpacking xbase-clients (1:7.7+1ubuntu8.1) ...
Selecting previously unselected package vnc4server.
Preparing to unpack .../vnc4server_4.1.1+xorg4.3.0-37ubuntu5.0.2_amd64.deb ...
Unpacking vnc4server (4.1.1+xorg4.3.0-37ubuntu5.0.2) ...
Selecting previously unselected package xrdp.
Preparing to unpack .../xrdp_0.6.0-1_amd64.deb ...
Unpacking xrdp (0.6.0-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up xbase-clients (1:7.7+1ubuntu8.1) ...
Setting up vnc4server (4.1.1+xorg4.3.0-37ubuntu5.0.2) ...
update-alternatives: using /usr/bin/vnc4server to provide /usr/bin/vncserver (vncserver) in auto mode
update-alternatives: using /usr/bin/Xvnc4 to provide /usr/bin/Xvnc (Xvnc) in auto mode
update-alternatives: using /usr/bin/x0vnc4server to provide /usr/bin/x0vncserver (x0vncserver) in auto mode
update-alternatives: using /usr/bin/vnc4passwd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode
update-alternatives: using /usr/bin/vnc4config to provide /usr/bin/vncconfig (vncconfig) in auto mode
Setting up xrdp (0.6.0-1) ...
 * Generating xrdp RSA keys......                                               
Generating 512 bit rsa key...

ssl_gen_key_xrdp1 ok

saving to /etc/xrdp/rsakeys.ini

                                                                         [ OK ]
 * Starting Remote Desktop Protocol server                               [ OK ] 
Processing triggers for ureadahead (0.100.0-16) ...
install xrdp
add the user to access the ubuntu using the same user account
~]$sudo adduser akhil
Note: adding the user will not have a administrator access, in order to provide administrator access to created user account provide sudo access
~]$sudo adduser akhil sudo
start the xrdp service
~]$sudo /etc/init.d/xrdp start
Service start
now try to access from your windows machine
Start >> Run >> mstsc
Take_remote Desktop
type the IP address and click on connect
provide the user name and password which you have created
Note: if your getting an below error
error_xrdp
then do the below steps to resolve the issue
akhil@akhil1-ubuntu:~$ sudo apt-get install gnome-session-fallback
[sudo] password for akhil: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  alacarte gir1.2-gconf-2.0 gir1.2-panelapplet-4.0 gnome-applets
  gnome-applets-data gnome-control-center gnome-control-center-data
  gnome-media gnome-panel gnome-panel-data gnome-session-flashback
  gnome-settings-daemon gstreamer0.10-gconf indicator-applet-complete
  libgnome-media-profiles-3.0-0 libgoa-backend-1.0-1 libpanel-applet-4-0
  metacity notification-daemon
Suggested packages:
  tomboy gnome-netstatus-applet deskbar-applet cpufrequtils desktop-base
  gnome-themes-standard
The following NEW packages will be installed:
  alacarte gir1.2-gconf-2.0 gir1.2-panelapplet-4.0 gnome-applets
  gnome-applets-data gnome-control-center gnome-control-center-data
  gnome-media gnome-panel gnome-panel-data gnome-session-fallback
  gnome-session-flashback gnome-settings-daemon gstreamer0.10-gconf
  indicator-applet-complete libgnome-media-profiles-3.0-0 libgoa-backend-1.0-1
  libpanel-applet-4-0 metacity notification-daemon
0 upgraded, 20 newly installed, 0 to remove and 15 not upgraded.
Need to get 10.3 MB of archives.
After this operation, 50.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main libgoa-backend-1.0-1 amd64 3.10.3-0ubuntu1 [198 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty/universe alacarte all 3.10.0-1ubuntu2 [82.6 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty/main gir1.2-gconf-2.0 amd64 3.2.6-0ubuntu2 [6,182 B]
Get:4 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe libpanel-applet-4-0 amd64 1:3.8.0-1ubuntu12.2 [90.2 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe gir1.2-panelapplet-4.0 amd64 1:3.8.0-1ubuntu12.2 [4,640 B]
Get:6 http://in.archive.ubuntu.com/ubuntu/ trusty/universe gnome-applets-data all 3.5.92-0ubuntu3 [4,574 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe gnome-panel-data all 1:3.8.0-1ubuntu12.2 [1,167 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe gnome-panel amd64 1:3.8.0-1ubuntu12.2 [345 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu/ trusty/universe gnome-applets amd64 3.5.92-0ubuntu3 [158 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main gnome-control-center-data all 1:3.6.3-0ubuntu56.1 [1,216 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main gnome-settings-daemon amd64 3.8.6.1-0ubuntu11.2 [472 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main gnome-control-center amd64 1:3.6.3-0ubuntu56.1 [464 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libgnome-media-profiles-3.0-0 amd64 3.0.0-1ubuntu2 [54.3 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu/ trusty/main gstreamer0.10-gconf amd64 0.10.31-3+nmu1ubuntu5 [67.9 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu/ trusty/universe gnome-media amd64 3.4.0-1ubuntu2 [1,000 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main metacity amd64 1:2.34.13-0ubuntu4.1 [226 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu/ trusty/main notification-daemon amd64 0.7.6-1 [30.9 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe gnome-session-flashback all 1:3.8.0-1ubuntu12.2 [71.7 kB]
Get:19 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe gnome-session-fallback all 1:3.8.0-1ubuntu12.2 [2,946 B]
Get:20 http://in.archive.ubuntu.com/ubuntu/ trusty/universe indicator-applet-complete amd64 12.10.2+14.04.20140403-0ubuntu1 [20.0 kB]
Fetched 10.3 MB in 1min 1s (167 kB/s)                                          
Selecting previously unselected package libgoa-backend-1.0-1:amd64.
(Reading database ... 198301 files and directories currently installed.)
Preparing to unpack .../libgoa-backend-1.0-1_3.10.3-0ubuntu1_amd64.deb ...
Unpacking libgoa-backend-1.0-1:amd64 (3.10.3-0ubuntu1) ...
Selecting previously unselected package alacarte.
Preparing to unpack .../alacarte_3.10.0-1ubuntu2_all.deb ...
Unpacking alacarte (3.10.0-1ubuntu2) ...
Selecting previously unselected package gir1.2-gconf-2.0.
Preparing to unpack .../gir1.2-gconf-2.0_3.2.6-0ubuntu2_amd64.deb ...
Unpacking gir1.2-gconf-2.0 (3.2.6-0ubuntu2) ...
Selecting previously unselected package libpanel-applet-4-0.
Preparing to unpack .../libpanel-applet-4-0_1%3a3.8.0-1ubuntu12.2_amd64.deb ...
Unpacking libpanel-applet-4-0 (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package gir1.2-panelapplet-4.0.
Preparing to unpack .../gir1.2-panelapplet-4.0_1%3a3.8.0-1ubuntu12.2_amd64.deb ...
Unpacking gir1.2-panelapplet-4.0 (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package gnome-applets-data.
Preparing to unpack .../gnome-applets-data_3.5.92-0ubuntu3_all.deb ...
Unpacking gnome-applets-data (3.5.92-0ubuntu3) ...
Selecting previously unselected package gnome-panel-data.
Preparing to unpack .../gnome-panel-data_1%3a3.8.0-1ubuntu12.2_all.deb ...
Unpacking gnome-panel-data (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package gnome-panel.
Preparing to unpack .../gnome-panel_1%3a3.8.0-1ubuntu12.2_amd64.deb ...
Unpacking gnome-panel (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package gnome-applets.
Preparing to unpack .../gnome-applets_3.5.92-0ubuntu3_amd64.deb ...
Unpacking gnome-applets (3.5.92-0ubuntu3) ...
Selecting previously unselected package gnome-control-center-data.
Preparing to unpack .../gnome-control-center-data_1%3a3.6.3-0ubuntu56.1_all.deb ...
Unpacking gnome-control-center-data (1:3.6.3-0ubuntu56.1) ...
Selecting previously unselected package gnome-settings-daemon.
Preparing to unpack .../gnome-settings-daemon_3.8.6.1-0ubuntu11.2_amd64.deb ...
Unpacking gnome-settings-daemon (3.8.6.1-0ubuntu11.2) ...
Selecting previously unselected package gnome-control-center.
Preparing to unpack .../gnome-control-center_1%3a3.6.3-0ubuntu56.1_amd64.deb ...
Unpacking gnome-control-center (1:3.6.3-0ubuntu56.1) ...
Selecting previously unselected package libgnome-media-profiles-3.0-0.
Preparing to unpack .../libgnome-media-profiles-3.0-0_3.0.0-1ubuntu2_amd64.deb ...
Unpacking libgnome-media-profiles-3.0-0 (3.0.0-1ubuntu2) ...
Selecting previously unselected package gstreamer0.10-gconf:amd64.
Preparing to unpack .../gstreamer0.10-gconf_0.10.31-3+nmu1ubuntu5_amd64.deb ...
Unpacking gstreamer0.10-gconf:amd64 (0.10.31-3+nmu1ubuntu5) ...
Selecting previously unselected package gnome-media.
Preparing to unpack .../gnome-media_3.4.0-1ubuntu2_amd64.deb ...
Unpacking gnome-media (3.4.0-1ubuntu2) ...
Selecting previously unselected package metacity.
Preparing to unpack .../metacity_1%3a2.34.13-0ubuntu4.1_amd64.deb ...
Unpacking metacity (1:2.34.13-0ubuntu4.1) ...
Selecting previously unselected package notification-daemon.
Preparing to unpack .../notification-daemon_0.7.6-1_amd64.deb ...
Unpacking notification-daemon (0.7.6-1) ...
Selecting previously unselected package gnome-session-flashback.
Preparing to unpack .../gnome-session-flashback_1%3a3.8.0-1ubuntu12.2_all.deb ...
Unpacking gnome-session-flashback (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package gnome-session-fallback.
Preparing to unpack .../gnome-session-fallback_1%3a3.8.0-1ubuntu12.2_all.deb ...
Unpacking gnome-session-fallback (1:3.8.0-1ubuntu12.2) ...
Selecting previously unselected package indicator-applet-complete.
Preparing to unpack .../indicator-applet-complete_12.10.2+14.04.20140403-0ubuntu1_amd64.deb ...
Unpacking indicator-applet-complete (12.10.2+14.04.20140403-0ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Setting up libgoa-backend-1.0-1:amd64 (3.10.3-0ubuntu1) ...
Setting up alacarte (3.10.0-1ubuntu2) ...
Setting up gir1.2-gconf-2.0 (3.2.6-0ubuntu2) ...
Setting up libpanel-applet-4-0 (1:3.8.0-1ubuntu12.2) ...
Setting up gir1.2-panelapplet-4.0 (1:3.8.0-1ubuntu12.2) ...
Setting up gnome-applets-data (3.5.92-0ubuntu3) ...
Setting up gnome-panel-data (1:3.8.0-1ubuntu12.2) ...
Setting up gnome-panel (1:3.8.0-1ubuntu12.2) ...
Setting up gnome-applets (3.5.92-0ubuntu3) ...
Setting up gnome-control-center-data (1:3.6.3-0ubuntu56.1) ...
Setting up gnome-settings-daemon (3.8.6.1-0ubuntu11.2) ...
Setting up gnome-control-center (1:3.6.3-0ubuntu56.1) ...
Setting up libgnome-media-profiles-3.0-0 (3.0.0-1ubuntu2) ...
Setting up gstreamer0.10-gconf:amd64 (0.10.31-3+nmu1ubuntu5) ...
Setting up gnome-media (3.4.0-1ubuntu2) ...
Setting up metacity (1:2.34.13-0ubuntu4.1) ...
update-alternatives: using /usr/bin/metacity to provide /usr/bin/x-window-manager (x-window-manager) in auto mode
Setting up notification-daemon (0.7.6-1) ...
Setting up gnome-session-flashback (1:3.8.0-1ubuntu12.2) ...
Setting up gnome-session-fallback (1:3.8.0-1ubuntu12.2) ...
Setting up indicator-applet-complete (12.10.2+14.04.20140403-0ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

akhil@akil1-ubuntu:~$ echo "gnome-session --session=gnome-fallback" > ~/.xsession
akhil@akhil1-ubuntu:~$ cat .xsession
gnome-session --session=gnome-fallback
restart the xrdp service
~]$sudo /etc/init.d/xrdp restart
Still no Luck..!!
then try below
~]$ps -ef |grep vnc
~]$kill -9 <PID>
Now try you will get it..

Comments

Popular posts from this blog

Ansible Installation Steps Red Hat Enterprise Linux 7

Ansible is a simple IT automation engine that automates provisioning, configuration management, application deployment and many other IT needs.  Designed for multi-tier deployments, ansible models your IT infrastructure by describing how all of your systems interrelate, rather than just managing one system at a time. In this Article we are going to learn Ansible Installation Steps Red Hat Enterprise Linux 7 – RHEL 7. It uses no agents and no additional custom security infrastructure, so it’s easy to deploy – and most importantly, it uses a very simple language YAML that allow you to describe your automation jobs in a way that approaches plain English. Ansible Architecture Ansible works by connecting to your nodes and pushing out small programs, called “Ansible modules” to them. These programs are written to be resource models of the desired state of the system. Ansible then executes these modules using SSH Protocol, and removes them when finished. Your library of modul...

Troubleshooting Tomcat using Catalina log

Troubleshooting Tomcat using Catalina log We can get the  catalina  logs in  $CATALINA_HOME/logs Here we'll have a  catalina.out We can see some huge info in that log file. If we want to what exactly happens since the start of tomcat then we need to log that into a new file. By default we have log rotation enabled on this logs. For now let us stop tomcat and nullify the catalina.out file and then start tomcat to have some new info in the catalina.out # service tomcat stop # cd $CATALINA_HOME/logs # :> catalina.out (or) cat /dev/null > catalina.out # ll catalina.out -rw-r----- 1 root root 0 Feb 18 16:19 catalina.out # service tomcat start # ll catalina.out -rw-r----- 1 root root 17341 Feb 18 16:21 catalina.out We can see the log being written after the start of tomcat. Now we can notice the instance giving some information about the starting of tomcat, about the configuration for the startup, path of the servlet instance for which the log is re...

Customizing Java Virtual Machine

Customizing Java Virtual Machine Customizing the  catalina.sh CATALINA_OPTS CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS" By default the CATALINA_OPTS line will looks like above. Among which the JPDA_OPTS is used to provide the debug options for the catalina script. Now we need to edit this line and can add our custom options like the size of initial memory of JVM (min. size), the size of memory of the JVM (max. size) it can grow upto, garbage collection options, etc. Add the below at the end of the  CATALINA_OPTS  line -Xms128m -Xmx256m -Xms  means Extended Minimum Size which is the min / initial size of a JVM to start with -Xmx  means Extended Maximum Size which is the max size upto which a JVM can grow