remote-desktop | A toy remote desktop implemented by python | Computer Vision library

 by   pysrc Python Version: Current License: MIT

kandi X-RAY | remote-desktop Summary

kandi X-RAY | remote-desktop Summary

remote-desktop is a Python library typically used in Artificial Intelligence, Computer Vision, OpenCV applications. remote-desktop has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

Python实现的远程桌面控制
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              remote-desktop has a low active ecosystem.
              It has 74 star(s) with 36 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of remote-desktop is current.

            kandi-Quality Quality

              remote-desktop has 0 bugs and 0 code smells.

            kandi-Security Security

              remote-desktop has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              remote-desktop code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              remote-desktop is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              remote-desktop releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              It has 479 lines of code, 4 functions and 2 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed remote-desktop and discovered the below as its top functions. This is intended to give you an instant insight into remote-desktop implemented functionality, and help decide if they suit your requirements.
            • Handles mouse events
            • Return keycode mapping
            Get all kandi verified functions for this library.

            remote-desktop Key Features

            No Key Features are available at this moment for remote-desktop.

            remote-desktop Examples and Code Snippets

            No Code Snippets are available at this moment for remote-desktop.

            Community Discussions

            QUESTION

            RDP from Powershell command-line
            Asked 2021-Sep-23 at 05:20

            I'm having trouble creating a Powershell script that will open an RDP session without a prompt asking for a password.

            I've followed the instructions in the following post, however the password prompt always pops up.

            Here is the script:

            ...

            ANSWER

            Answered 2021-Sep-23 at 05:20

            So I figured it out with Bonneau21's help (thanks!):

            I'm connecting to a computer that isn't part of a domain, because of that I need to connect with a local user.

            What I did was a slight change to the original script indicating that the user I need to connect with is local:

            Source https://stackoverflow.com/questions/69284560

            QUESTION

            Enable Remote Desktop on Windows 10 Container
            Asked 2021-May-31 at 14:20

            I'm trying to enable remote desktop on a container image.

            Dockerfile ...

            ANSWER

            Answered 2021-May-31 at 14:20

            The reference you used to build your Dockerfile states that after 1709_KB4074588 RDP cannot be made to work anymore. Pulling today that tag does not work either: you get a response from the server but can't execute anything. I have no idea how the windows and servercore images differ in general and in terms of RDP, and on top of that I'm by no means a windows expert. My experience so far (using xfreerdp as client):

            • windows/servercore:1607 cexecsvc running, port 3389 not listening
            • windows/servercore:1709 can connect to RDP but executing an app results in ERRINFO_LOGOFF_BY_USER
            • windows/servercore:1709_KB4074588 behaves same as 1709

            Research shows also that you need to disable remote execution whitelist (don't know the correct name).

            • reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fAllowUnlistedRemotePrograms /t REG_DWORD /d 1
            • reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList" /v fDisabledAllowList /t REG_DWORD /f /d 1

            After reading a brief about sessions, desktops and stations I wrote a quick test enumerating sessions (see LsaEnumerateLogonSessions and LsaGetLogonSessionData) and saw that while a normal RDP session shows many (why? no idea) sessions for the same user and a few of them are interactive (10 - CachedInteractive in my case) a console in a Docker instance shows a single session for the ContainerAdministrator user of type 5 (Proxy - not supported), so as I understand it there's no way to get an interactive desktop from this session.

            Source https://stackoverflow.com/questions/66153861

            QUESTION

            Run a script after a Windows 10 (non-Domain) Reset to enable RDP
            Asked 2020-Dec-06 at 14:15

            For the Reset function, I go to Settings > Updates and Security > Recovery > Reset this PC. So this is a choice that I make, and on that basis I want to choose for that system to run a script after the Reset - and we know that should be possible as we can create completely customised Windows installation ISOs that install apps and Features in a clean state, so can someone tell me how to do a quite simple things - to just get Windows to run a PowerShell script after that Reset?

            Actually, I only want to run a couple of lines:

            ...

            ANSWER

            Answered 2020-Dec-06 at 14:15

            The easiest way to do this is to download PStools from Microsoft and use psexec to give yourself remote access:

            Source https://stackoverflow.com/questions/65166679

            QUESTION

            Enabling RDP by changing registry setting only works if RDP has been enabled several times previously
            Asked 2020-Nov-24 at 21:37

            I'm trying to build an auto config batch file to set up new PC's the way I need them configured. One of the things I need to do is to enable RDP.

            I have found this post which gives a solution involving changing a registry key:

            reg add "HKLM\System\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0x00000000 /f

            Many other posts and blogs give the same advice.

            However, when I test this on my system, it only works if remote desktop has been enabled before, several times.

            If I use the standard settings interface to enable RDP, I get an "enable remote desktop" popup, asking me to confirm that I want to allow RDP. I select yes, and the registry setting changes. I use the settings interface to turn RDP back off, I get another popup to confirm, I click yes, and the registry setting changes back.

            However, it does not work the other way around - changing the registry setting does not affect the slider in the standard settings interface. Setting the registry key to zero does not enable RDP. I have checked that the firewall is configured to allow RDP, and that the relevant RDP services are all started. As soon as I turn the settings RDP slider on, I can RDP into the machine. Once I turn it off, even if I change the registry setting back and make sure all services/firewall settings are OK, I can't RDP in any more.

            However, if I mess with the Enable RDP settings slider enough, eventually it stops showing the confirmation popup and just does it. At this point, changing that registry key has the desired effect - changing the registry key changes the position of the settings slider, and allows me to RDP into the machine as expected.

            Obviously this makes my batch file ineffective on new PC's, which is it's whole purpose.

            How can I overcome this?

            Windows 10 Enterprise LTSC Version 1809

            (edited to clarify some points)

            ...

            ANSWER

            Answered 2020-Nov-24 at 13:46

            The following powershell script works for me:

            Source https://stackoverflow.com/questions/64780110

            QUESTION

            Set/Edit remote desktop connection limit using powershell in windows 10
            Asked 2020-Nov-24 at 03:11

            I created windows VM on azure and I login to VM using RDP. After login, I changed RDS "Limit number of connections" to 2. Now I restart the VM and I cannot login anymore. It says "The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator"

            I have access to powershell/PS and I can run any PS script in azure portal. So if any could give me PS script that will set the RDS "Limit number of connections" to x that would be great.

            Note: RDS - Remote Desktop Service. You can navigate there by typing gpedit.msc to windows Run box. and then Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections -> "Limit number of connections"

            reference link https://www.top-password.com/blog/enable-multiple-remote-desktop-connections-in-windows-server/

            ...

            ANSWER

            Answered 2020-Nov-24 at 03:11

            There is no PowerShell script to update the group policy. To limit the number of connections, you can temporarily edit the related registry MaxInstanceCount in your Azure VM portal.

            For exmaple, add the registry MaxInstanceCount to value 300, refer here.

            Source https://stackoverflow.com/questions/64977980

            QUESTION

            Windows API - Maximize a window across all monitors
            Asked 2020-Nov-18 at 05:48

            We have a custom RDP client that we've built using the RDP ActiveX control and MFC: https://docs.microsoft.com/en-us/windows/win32/termserv/using-remote-desktop-web-connection

            In order to support multiple monitors, we use the put_UseMultimon function: https://docs.microsoft.com/en-us/windows/win32/termserv/imsrdpclientnonscriptable5-usemultimon

            This kind of works, but we have to manually stretch the window across the monitors. Maximizing the window will maximize it on one of the monitors. The experience we get is not so good, we can't really use the entire area, and the window title bar remains (when maximizing the window on one screen it disappears).

            We would like to get an experience similar to mstsc, where maximizing the window will change it's style to maximized and make the window span on the entire area. Is there a way to maximize a window and make it span across all monitors?

            ...

            ANSWER

            Answered 2020-Nov-18 at 05:48

            @JonathanPotter is right.

            WM_GETMINMAXINFO sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position.

            The following is an example to achieve this purpose. (Note: Extend from main display to the second display does work. otherwise doesn't work.)

            Source https://stackoverflow.com/questions/64882357

            QUESTION

            Mate Kiosk Mode - customize desktop context menu & shutdown/lock buttons
            Asked 2020-Sep-15 at 13:08

            my goal is to configure a minimal Mate desktop that allows only Firefox and limited file management.

            Up to now, I managed to strip down most of the desktop by editing the menu files in: /etc/xdg/menus/:

            • mate-applications.menu
            • mate-preferences-categories.menu

            so that it looks now like this:

            This strips the menu for all user, which is not optimal, but will do for this scenario. But I would also like to remove or disable the "lock screen" and "shutdown" buttons.

            I tried this by configuring an appropriate dconf-Profile. There are settings that sound promising - but have no effect:

            ...

            ANSWER

            Answered 2020-Sep-15 at 13:08

            To answer my own question - at least partially:

            One of the problems was the name of the DCONF profile "remote-desktop" - the dash is not an allowed character here. So I renamed my db and profile from "remote-desktop" to "remotedesktop". Still no breakthrough.

            Then I reinstalled mate, dropping "brisk-menu" from the installation and NOT adding a top panel menu. Instead I used dconf to add just Logout and Firefox launcher objects to the top panel. You have to edit the list of panel object-ids to make these object visible and to prevent mate from "bitching" about missing applets (like brisk menu).

            Now I have the desired effect (logout and starting Firefox is accessible, but not Lock-Screen and Shutdown).

            Source https://stackoverflow.com/questions/63633104

            QUESTION

            What does "workspace id:s" do in an RDP file?
            Asked 2020-Jul-15 at 09:41

            I am debugging an RDP connection, and in the .rdp file there is a flag

            ...

            ANSWER

            Answered 2020-Jul-15 at 09:41

            This value seems to appear in remote application session when mouse is over rdp icon in task bar. For example see the icon where i set: workspace id:s:test

            enter image description here

            Source https://stackoverflow.com/questions/62784318

            QUESTION

            Google Cloud virtual instance: Chrome remote desktop indicates remote computer is offline, however Google Cloud Platform shows instance is running
            Asked 2020-May-11 at 05:45

            I am running a virtual machine in Google Cloud. I have installed the default Debian OS, and configured the desktop environment for remote connection, as explained here: https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine

            I have been able to connect to the instance via Chrome Remote Desktop, however periodically I have the problem that the Remote Desktop says the vm instance is online, however if I try to connect to it I get:

            Looking at the Google Cloud console, the instance is clearly running. Normally if I restart the instance the problem is solved, however I have processes running on the instance that I do not want to stop.

            UPDATE:

            Following the advice from Serhii Rohoza I ran

            sudo systemctl status chrome-remote-desktop

            The status looked normal, listing:

            Active: active (exited) since...

            I then ran

            sudo systemctl restart chrome-remote-desktop

            and this solved the problem, I could log into remote desktop again, but it seemed the VM instance had restarted, which is a big problem since I am running processes on it that should not shut down. I guess this is a problem to send to Google Cloud Services support.

            UPDATE 2:

            I'm still running into this problem. I normally have a Jupyter Notebook running on the VM - this Notebook must keep running. When I saw the message saying that the remote computer is offline, I logged in via ssh and checked if the Jupyter Notebook is running:

            jupyter notebook list

            This returned:

            http://localhost:8888/?token=9110bf40789971b5e252a272e9497039b4f3b45e506348df :: /home/qgenixtech

            So the Notebook was running. I then ran:

            sudo systemctl restart chrome-remote-desktop

            and after that again:

            jupyter notebook list

            and then it shows no Notebooks running. So the restart command closed down the Notebook (and also all other open windows on the desktop).

            UPDATE 3:

            I spoke to a support technician at Google. The problem is on the Remote Desktop side, not the virtual machine. According to the technician this is a known problem, by he didn't have a solution for it. He referred me to these two links from Google Support:

            https://support.google.com/chrome/thread/10213547?hl=en

            https://support.google.com/chrome/thread/3333421?hl=en

            The next option for me is to look at something like X2go

            ...

            ANSWER

            Answered 2020-Apr-15 at 13:49

            To solve your issue you should follow documentation Troubleshooting and check status of the Chrome Remote Desktop service with command:

            Source https://stackoverflow.com/questions/61097564

            QUESTION

            How to pass parameters to exe in alternate shell rdp
            Asked 2020-Apr-14 at 17:08

            I'm creating an .rdp file (Remote Desktop Protocol), which will open a machine and open a program made by me in .NET C#, I can already do this, but I would need to pass parameters to this program, is there any way?

            Commands I'm using in .rdp file:

            ...

            ANSWER

            Answered 2020-Apr-14 at 17:08

            I ended up not finding a solution. Apparently it is not possible to pass parameters through the command line, only if it were a RemoteApp, which is not the case, as this should run on old windows.

            I wanted to use parameters to open Forms. But as it was not possible, I will create an .exe for each form, where in the .rdp file I will inform which one I want to open.

            Source https://stackoverflow.com/questions/61123902

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install remote-desktop

            You can download it from GitHub.
            You can use remote-desktop like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/pysrc/remote-desktop.git

          • CLI

            gh repo clone pysrc/remote-desktop

          • sshUrl

            git@github.com:pysrc/remote-desktop.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link