{"id":3391,"date":"2019-08-01T22:52:35","date_gmt":"2019-08-01T22:52:35","guid":{"rendered":"https:\/\/robertjwallace.com\/?p=3391"},"modified":"2019-08-02T02:56:36","modified_gmt":"2019-08-02T02:56:36","slug":"remote-desktop-in-linux-zorin-ubuntu","status":"publish","type":"post","link":"https:\/\/robertjwallace.com\/es\/remote-desktop-in-linux-zorin-ubuntu\/","title":{"rendered":"Remote Desktop in Linux (zorin\/ubuntu)"},"content":{"rendered":"<p>I have a need to connect to my office using Sonicwall&#8217;s netExtender.  Once connected I need to use RDP to open a remote desktop session to my work computer.  But for some reason I ran into two issues on my AMD-based HP home desktop.  First I was unable to get the netExtenderGui to run.  It kept throwing errors.  And second, I was using Remmina for the RDP client and discovered that it did not support dual monitor displays.<\/p>\n\n\n\n<p>After some googling and yahooing, with a bing or two thrown in I had a solution.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>For the netExtender issue I discovered that all I had to do was run it from the command line.  I added an alias to my .bashrc file and was done. (confidential information is hidden with asterisks) <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">alias work=echo 'y' | \/home\/bob\/Desktop\/netExtenderClient\/netExtender -u Bob -p ******* -d HB ***.hbdesign.com:****<\/pre>\n\n\n\n<p>Now all I have to do is open a terminal window and type &#8220;work&#8221; and I connect.<\/p>\n\n\n\n<p>For the dual monitor issue I found another command line solution.  Instead of using Remmina I use xfreerdp and run it from the command line.  Another alias and I am up and running.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">xfreerdp +multimon \/u:bob \/p:******* \/v:192.***.***.86 +clipboard<\/pre>\n\n\n\n<p>To run both commands from a terminal I type <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">work &amp;\nbobxps<\/pre>\n\n\n\n<p>Which starts netExtender to run in the background and then starts my multimonitor session.  <\/p>\n\n\n\n<p>To exit the multimonitor session I type  ^ctrl alt enter, then right click on the title bar and select close. In the terminal window I enter fg to move netExtender back to the foreground and then type ^c to close it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Next Steps, full automation<\/h2>\n\n\n\n<p>So now that I can open the VPN and then Remote Desktop into my work computer the next step is to make it all a one click shortcut on the desktop.  The first task is to make a bash script.  I named it dowork.sh.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">!\/bin\/bash\n# start the netExtender in the background, sending the \"y\" \n# to the query it gives about the certificate\n<strong>echo 'y' | \/home\/bob\/Desktop\/netExtenderClient\/netExtender -u Bob -p ******* -d HB ***.hbdesign.com:**** &amp;<\/strong>\n# give it time to launch\n<strong>sleep 6<\/strong>\n# now open the remote desktop in the forground\n<strong>xfreerdp +multimon \/u:bob \/p:+intel234 \/v:192.168.0.86 +clipboard <\/strong>\n# when the foreground process terminates, kill the netExtender \n# process\n<strong>pkill netExtender<\/strong><\/pre>\n\n\n\n<p>After testing this script I installed gnome-panel<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install --no-install-recommends gnome-panel\n<\/pre>\n\n\n\n<p>and then created a new desktop shortcut with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ gnome-desktop-item-edit ~\/Desktop\/ --create-new\n<\/pre>\n\n\n\n<p>Now I can click on the desktop icon and open the vpn and connect to my work pc with just one click.  Nice.<\/p>","protected":false},"excerpt":{"rendered":"<p>I have a need to connect to my office using Sonicwall&#8217;s netExtender. Once connected I need to use RDP to open a remote desktop session to my work computer. But for some reason I ran into two issues on my AMD-based HP home desktop. First I was unable to get the netExtenderGui to run. It &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/robertjwallace.com\/es\/remote-desktop-in-linux-zorin-ubuntu\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> &#8220;Remote Desktop in Linux (zorin\/ubuntu)&#8221;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_eb_attr":"","footnotes":""},"categories":[143],"tags":[],"class_list":["post-3391","post","type-post","status-publish","format-standard","hentry","category-computer-stuff"],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Bob","author_link":"https:\/\/robertjwallace.com\/es\/author\/admin\/"},"_links":{"self":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/3391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/comments?post=3391"}],"version-history":[{"count":4,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/3391\/revisions"}],"predecessor-version":[{"id":3396,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/3391\/revisions\/3396"}],"wp:attachment":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/media?parent=3391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/categories?post=3391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/tags?post=3391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}