{"id":5028,"date":"2024-04-09T11:16:05","date_gmt":"2024-04-09T16:16:05","guid":{"rendered":"https:\/\/icesquare.com\/wordpress\/?p=5028"},"modified":"2024-04-09T11:21:57","modified_gmt":"2024-04-09T16:21:57","slug":"xrdp-error-problem-connecting","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/xrdp-error-problem-connecting\/","title":{"rendered":"XRDP: error-problem connecting"},"content":{"rendered":"<p>Every once a while, I experience problem to connecting to my Linux servers via Windows Remote Desktop. This is a very annoying issue, because all servers use the same configurations, and some servers throw error while some servers are doing okay. After spending countless of hours, here are my solutions:<\/p>\n<ul>\n<li>Add delay_ms=2000 to \/etc\/xrdp\/xrdp.ini<\/li>\n<li>Remove and rebuild the user&#8217;s home directory<\/li>\n<li>Set the color depth of Windows Remote Desktop Client to 24<\/li>\n<\/ul>\n<p>For the first solution, it is pretty straight forward:<\/p>\n<pre>\r\nsudo nano \/etc\/xrdp\/xrdp.ini\r\ndelay_ms=2000\r\n\r\nsudo systemctl restart xrdp.service; \r\n<\/pre>\n<p>For the second solution, I cloned my home directory and delete all other hidden files, e.g.,<\/p>\n<pre>\r\nsudo su\r\n\r\n#Make a copy first\r\nrsync -avr \/home\/myuser\/ \/home\/myuser_old\/\r\n\r\n<\/pre>\n<p>Then I deleted most of the files such as .vnc\/, .Xauthority\/, .xsession-errors\/. Here are the files I started with:<\/p>\n<pre>\r\ndrwx------  19 myuser myuser 4096 Apr  9 10:12 .\r\ndrwxr-xr-x.  5 root      root        59 Apr  9 09:26 ..\r\n-rw-------   1 myuser myuser 7409 Apr  9 09:26 .bash_history\r\n-rw-r--r--   1 myuser myuser   18 Oct 30  2018 .bash_logout\r\n-rw-r--r--   1 myuser myuser  193 Oct 30  2018 .bash_profile\r\n-rw-r--r--   1 myuser myuser  231 Oct 30  2018 .bashrc\r\ndrwx------   2 myuser myuser   25 May 11  2022 .ssh\r\n<\/pre>\n<p>After I successfully logged in via xRDP, the system generated all of these files:<\/p>\n<pre>\r\ndrwx------  19 myuser myuser 4096 Apr  9 10:12 .\r\ndrwxr-xr-x.  5 root      root        59 Apr  9 09:26 ..\r\n-rw-------   1 myuser myuser 7409 Apr  9 09:26 .bash_history\r\n-rw-r--r--   1 myuser myuser   18 Oct 30  2018 .bash_logout\r\n-rw-r--r--   1 myuser myuser  193 Oct 30  2018 .bash_profile\r\n-rw-r--r--   1 myuser myuser  231 Oct 30  2018 .bashrc\r\ndrwx------  16 myuser myuser 4096 Apr  9 10:05 .cache\r\ndrwxrwxr-x  15 myuser myuser  279 Apr  9 09:29 .config\r\ndrwx------   3 myuser myuser   25 Apr  9 09:27 .dbus\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Desktop\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Documents\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Downloads\r\ndr-x------   2 myuser myuser    0 Apr  9 09:27 .gvfs\r\n-rw-------   1 myuser myuser 1252 Apr  9 10:05 .ICEauthority\r\ndrwx------   3 myuser myuser   19 Apr  9 09:27 .local\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Music\r\ndrwxrwxr-x   2 myuser myuser    6 Apr  9 09:27 perl5\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Pictures\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Public\r\ndrwx------   2 myuser myuser   25 May 11  2022 .ssh\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Templates\r\ndrwxr-xr-t   2 myuser myuser    6 Apr  9 09:27 thinclient_drives\r\ndrwxr-xr-x   2 myuser myuser    6 Apr  9 09:27 Videos\r\ndrwx------   2 myuser myuser  316 Apr  9 10:04 .vnc\r\n-rw-------   1 myuser myuser  242 Apr  9 10:04 .Xauthority\r\n-rw-------   1 myuser myuser    0 Apr  9 10:04 .xsession-errors\r\n<\/pre>\n<p>That&#8217;s it, hope it helps.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every once a while, I experience problem to connecting to my Linux servers via Windows Remote Desktop. This is a very annoying issue, because all servers use the same configurations, <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/xrdp-error-problem-connecting\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6],"tags":[],"class_list":["post-5028","post","type-post","status-publish","format-standard","hentry","category-technology"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-1j6","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3412,"url":"https:\/\/icesquare.com\/wordpress\/how-to-remote-desktop-to-linux-from-windows-xrdp\/","url_meta":{"origin":5028,"position":0},"title":"How to Remote Desktop To Linux From Windows Using XRDP","author":"Derrick","date":"January 24, 2014","format":false,"excerpt":"If you are looking for ways to remote desktop to Linux from Windows, and you are sick of VNC, you are in the right place. I have been looking for a solution to do something very simple. I want to remotely access the desktop of my Linux servers from Windows\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":174,"url":"https:\/\/icesquare.com\/wordpress\/mount_smbfs-kldloadsmbfs-operation-not-permitted-solved\/","url_meta":{"origin":5028,"position":1},"title":"&#8220;mount_smbfs: kldload(smbfs): Operation not permitted&#8221; SOLVED!!!!","author":"Derrick","date":"July 28, 2009","format":false,"excerpt":"When I tried to mount a windows share from FreeBSD: sudo mount_smbfs -I WindowsBoxIPaddress \/\/username@WindowsBoxIPaddress\/WindowsShare \/mnt I always got this error: mount_smbfs: kldload(smbfs): Operation not permitted After searching this error message on Google, I found that all suggested solutions were related to running this command using sudo, which I already\u2026","rel":"","context":"In &quot;FreeBSD&quot;","block_context":{"text":"FreeBSD","link":"https:\/\/icesquare.com\/wordpress\/category\/sever-problem\/freebsd\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2181,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-updateinstalling-updates-install-usrsrcliblibcgenlibc_dlopen-c-no-such-file-or-directory\/","url_meta":{"origin":5028,"position":2},"title":"[FreeBSD-update]Installing updates&#8230;install: \/\/\/usr\/src\/lib\/libc\/gen\/libc_dlopen.c: No such file or directory","author":"Derrick","date":"December 23, 2011","format":false,"excerpt":"When I tried to upgrade my FreeBSD system today, I received a last minute Christmas gift from the FreeBSD team. :-) #sudo freebsd-update fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Inspecting system... done. Preparing to download files...\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3263,"url":"https:\/\/icesquare.com\/wordpress\/freebsdportsnap-gunzip-cant-stat-files-gz-no-such-file-or-directory\/","url_meta":{"origin":5028,"position":3},"title":"[FreeBSD]Portsnap \/ gunzip: can&#8217;t stat: files\/&#8230; .gz: No such file or directory","author":"Derrick","date":"May 23, 2013","format":false,"excerpt":"My FreeBSD got an unknown fever today. When I updated my ports using portsnap, it gave the following error message: #sudo portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found. Fetching snapshot tag from your-org.portsnap.freebsd.org... done. Fetching snapshot metadata... done. Updating from Thu May 23 09:08:53 CDT 2013 to Thu\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2036,"url":"https:\/\/icesquare.com\/wordpress\/solvedtftp-error-code-2-access-violation\/","url_meta":{"origin":5028,"position":4},"title":"[Solved]TFTP: Error code 2: Access violation","author":"Derrick","date":"December 13, 2011","format":false,"excerpt":"This post is an extension of my original post on TFTP: How to Setup TFTP. Although the post was written for Ubuntu, the same idea can be applied to all systems. So, here is our problem. You set up a TFTP server. It starts fine. You upload a file, it\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/11\/TFTP_Small.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1780,"url":"https:\/\/icesquare.com\/wordpress\/how-to-get-hp-laserjet-1000-or-any-ancient-hp-printers-working-on-windows-7-8-64-bit\/","url_meta":{"origin":5028,"position":5},"title":"How to get HP LaserJet 1000 (or any ancient HP printers) working on Windows 7\/8 64-bit","author":"Derrick","date":"July 7, 2014","format":false,"excerpt":"I bought a HP LaserJet 1000 printer back in 2001. Still Loving it! The running cost is low and the output quality is great. It is still working great after running for 13 years! Its quality even out beats my brand new Samsung LaserJet! HP LaserJet\u00a01000 is a almost-perfect printer\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2013\/06\/Multifunction-printer.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/5028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=5028"}],"version-history":[{"count":4,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/5028\/revisions"}],"predecessor-version":[{"id":5032,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/5028\/revisions\/5032"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}