Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save devfelip/d322be1b43cbb8e25d5a3f83281da566 to your computer and use it in GitHub Desktop.

Select an option

Save devfelip/d322be1b43cbb8e25d5a3f83281da566 to your computer and use it in GitHub Desktop.

Revisions

  1. @imami imami revised this gist Mar 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion anydesk-enable-remote-access.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ Here are the commands might be usefull in this purpose:
    #### In case that your target machine is a kind of a `Ubuntu` or a `Debian` based one:
    1. `echo -e "ad.security.allow_logon_token=true\nad.features.unattended=true" >> ~/.anydesk/user.conf`
    2. `sudo echo [your-custom-password] | anydesk --set-password`
    3. `sudo sed -i -e 's/# AutomaticLogin/AutomaticLogin/g' -e 's/#WaylandEnable/WaylandEnable/g' /etc/gdm3/custom.conf`
    3. `sudo sed -i '' -e 's/# AutomaticLogin/AutomaticLogin/g' -e 's/#WaylandEnable/WaylandEnable/g' /etc/gdm3/custom.conf`
    4. `sudo reboot`
    5. Drink your coffee, and `wait` until your system becomes up and accessible via ssh or terminal.
    6. Run `anydesk --get-status` , if its not `online` then run `anydesk --service`.
  2. @imami imami revised this gist Mar 15, 2020. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions anydesk-enable-remote-access.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ##AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
    ###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
    ####
    #### Note:
    Here are the commands might be usefull in this purpose:
    @@ -21,5 +21,6 @@ Here are the commands might be usefull in this purpose:
    6. Run `anydesk --get-status` , if its not `online` then run `anydesk --service`.
    7. Run `anydesk --get-id && echo` to get your desk id.
    8. Use your desk id in your Anydesk client, to access the remote system.
    ---
    ######Github: [github.com/imami](https://github.com/imami/) , Twitter: [@e_imami](https://twitter.com/e_imami/)


    Github: [github.com/imami](https://github.com/imami/) , Twitter: [@e_imami](https://twitter.com/e_imami/)
  3. @imami imami created this gist Mar 15, 2020.
    25 changes: 25 additions & 0 deletions anydesk-enable-remote-access.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ##AnyDesk - How Enable Remote Access from ubuntu/debian terminal.
    ####
    #### Note:
    Here are the commands might be usefull in this purpose:

    - `anydesk --get-status` : To get current status of anydesk, which might be `offlien,online` or nothing.
    - `anydesk --get-id` : To get the ID that your system can be accessed by.
    - `anydesk --service` : To start anydesk service if not already running (for Linux).
    - `anydesk --restart-service` : To restart anydesk service
    - `anydesk --stop-service` : To stop anydesk service
    - `sudo echo qazwsxedc | anydesk --set-password` : to set password on anydesk (required to access from a remote system).

    ---

    #### In case that your target machine is a kind of a `Ubuntu` or a `Debian` based one:
    1. `echo -e "ad.security.allow_logon_token=true\nad.features.unattended=true" >> ~/.anydesk/user.conf`
    2. `sudo echo [your-custom-password] | anydesk --set-password`
    3. `sudo sed -i -e 's/# AutomaticLogin/AutomaticLogin/g' -e 's/#WaylandEnable/WaylandEnable/g' /etc/gdm3/custom.conf`
    4. `sudo reboot`
    5. Drink your coffee, and `wait` until your system becomes up and accessible via ssh or terminal.
    6. Run `anydesk --get-status` , if its not `online` then run `anydesk --service`.
    7. Run `anydesk --get-id && echo` to get your desk id.
    8. Use your desk id in your Anydesk client, to access the remote system.
    ---
    ######Github: [github.com/imami](https://github.com/imami/) , Twitter: [@e_imami](https://twitter.com/e_imami/)