Thursday, June 2, 2016

[Quick Install: RDP Ubuntu]: Take RDP of your ubuntu from windows machine – Ubuntu 14.04

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
aravi@ankam-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 arkit
add user
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 arkit sudo
provide admin access to user
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_username and password
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
aravi@ankam-ubuntu:~$ sudo apt-get install gnome-session-fallback
[sudo] password for aravi: 
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) ...
aravi@ankam-ubuntu:~$ echo "gnome-session --session=gnome-fallback" > ~/.xsession
aravi@ankam-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..

No comments: