{"id":443,"date":"2020-01-01T12:52:40","date_gmt":"2020-01-01T11:52:40","guid":{"rendered":"http:\/\/vroamam.com\/wordpress\/?p=443"},"modified":"2020-01-01T14:27:11","modified_gmt":"2020-01-01T13:27:11","slug":"rdp-to-kali-linux","status":"publish","type":"post","link":"https:\/\/vroamam.com\/wordpress\/blog\/rdp-to-kali-linux\/","title":{"rendered":"RDP to Kali Linux"},"content":{"rendered":"\n<p>I occasionally have to use Kali in an almost entirely windows infrastructure. It is a VM on ESX and using the console through VSphere is, quite frankly, absolute pants. After struggling for a few weeks I looked for an alternate solution and came across several posts that suggested you could RDP to Kali if you first installed XRDP<\/p>\n\n\n\n<p>What wasn&#8217;t discussed was the fact that XRDP has a long and unresolved problem with higher resolutions and (possibly) with the Gnome windows manager.<\/p>\n\n\n\n<p>After struggling for some time, changing the default windows manager from Gnome and trying several different ones, I stumbled across <a href=\"https:\/\/rafaelhart.com\/2019\/10\/installing-xrdp-on-kali-linux\/\">this article<\/a> from Rafe Hart. The steps I followed are repeated below.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Install XRDP<\/h4>\n\n\n\n<p>Update the package lists and packages<\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ sudo apt update &amp;&amp; apt upgrade<\/p>\n\n\n\n<p>Install XRDP<\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ sudo apt install xrdp<\/p>\n\n\n\n<p>Enable the service to start at boot<\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ sudo systemctl enable xrdp<\/p>\n\n\n\n<p>Restart the service <\/p>\n\n\n\n<p class=\"has-text-color has-background has-vivid-green-cyan-color has-very-dark-gray-background-color\">$ sudo systemctl restart xrdp<\/p>\n\n\n\n<p>XRDP is now installed and setup to start at boot time. Now we have to deal with the issue of permissions and colour depth<\/p>\n\n\n\n<p>Create the the file <em>\/etc\/polkit-1\/rules.d\/02-allow-colord.rules <\/em>and insert the following text as its contents<\/p>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-very-light-gray-color has-very-dark-gray-background-color\"><em>polkit.addRule(function(action, subject) {<br>    if ((action.id == &#8220;org.freedesktop.color-manager.create-device&#8221; ||<br>         action.id == &#8220;org.freedesktop.color-manager.create-profile&#8221; ||<br>         action.id == &#8220;org.freedesktop.color-manager.delete-device&#8221; ||<br>         action.id == &#8220;org.freedesktop.color-manager.delete-profile&#8221; ||<br>         action.id == &#8220;org.freedesktop.color-manager.modify-device&#8221; ||<br>         action.id == &#8220;org.freedesktop.color-manager.modify-profile&#8221;) &amp;&amp;<br>         subject.isInGroup(&#8220;vglusers&#8221;)) {<br>       return polkit.Result.YES;<br>    }<br> });<\/em><\/p>\n\n\n\n<p class=\"has-text-align-left\">Change the colour depth for your remote RDP client to use a maximum of 16 Bit (High Colour). Images below are from Royal TSX,  and Windows RDP <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2020\/01\/RDPv10_MacOS.png\" alt=\"\" class=\"wp-image-444\" width=\"181\" height=\"190\"\/><figcaption>RDPv10 for MacOS<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2020\/01\/2019-10-13-rdp-color-settings.jpg\" alt=\"\" class=\"wp-image-449\" width=\"165\" height=\"192\"\/><figcaption>RDP Client for Windows<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/vroamam.com\/wordpress\/wp-content\/uploads\/2020\/01\/RoyalTSX.png\" alt=\"\" class=\"wp-image-445\" width=\"303\" height=\"209\"\/><figcaption>Display Setting in RoyalTSX v4<\/figcaption><\/figure><\/div>\n\n\n\n<p>Links:<\/p>\n\n\n\n<p><a href=\"https:\/\/rafaelhart.com\/2019\/10\/installing-xrdp-on-kali-linux\/\">Original Post<\/a> &#8211; Author Rafe Hart<\/p>\n\n\n\n<p><a href=\"https:\/\/www.royalapps.com\/ts\/mac\/features\">Royal TSX<\/a> &#8211; from Royal Apps<\/p>\n\n\n\n<p><a href=\"https:\/\/apps.apple.com\/gb\/app\/microsoft-remote-desktop-10\/id1295203466?mt=12\">RDPv10 Client for MacOS<\/a> &#8211; Microsoft Corporation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I occasionally have to use Kali in an almost entirely windows infrastructure. It is a VM on ESX and using the console through VSphere is, quite frankly, absolute pants. After struggling for a few weeks I looked for an alternate solution and came across several posts that suggested you could RDP to Kali if you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[2],"tags":[74,73,79,76,80,34,77,78],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-cybersec","tag-kali","tag-linux","tag-polkit","tag-rdp","tag-royaltsx","tag-vmware","tag-vsphere","tag-xrdp","entry"],"_links":{"self":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":10,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/posts\/443\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vroamam.com\/wordpress\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}