WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Anydesk  (Read 5752 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #45 on: December 21, 2021, 08:24:48 AM »
Hi Rabie
Oh, I thought  /home/tc/.anydesk  was a config file, not a directory.

Is there a  .gtkrc-2.0.mine  file whose contents you could post?

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #46 on: December 21, 2021, 08:30:03 AM »
Hi Rabie
Oh, I thought  /home/tc/.anydesk  was a config file, not a directory.

Is there a  .gtkrc-2.0.mine  file whose contents you could post?

i already search for it there is unfortunately no such a file
Code: [Select]
tc@box:~$sudo find / -name ".gtkrc-2.0.mine"
tc@box:~$

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #47 on: December 21, 2021, 08:54:04 AM »
Hi Rabie
Change:
Code: [Select]
include .gtkrc-2.0.mineto:
Code: [Select]
#include .gtkrc-2.0.mine

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #48 on: December 21, 2021, 09:04:00 AM »
Hi Rabie
Change:
Code: [Select]
include .gtkrc-2.0.mineto:
Code: [Select]
#include .gtkrc-2.0.mine

the unknown scanner errors went away:

Code: [Select]
./anydesk

(anydesk:17976): GLib-GObject-CRITICAL **: 19:11:05.812: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(anydesk:17976): GLib-GObject-CRITICAL **: 19:11:05.817: g_object_set: assertion 'G_IS_OBJECT (object)' failed
double free or corruption (fasttop)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #49 on: December 22, 2021, 07:44:50 PM »
Hi Rabie
Personally, I suspect there's a bug in the program.

What happens if you start it like this:
Code: [Select]
MALLOC_CHECK_=0 ./anydesk

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #50 on: December 23, 2021, 05:22:53 AM »
Hi Rabie
Personally, I suspect there's a bug in the program.

What happens if you start it like this:
Code: [Select]
MALLOC_CHECK_=0 ./anydesk

Same error, but here what i found out until yet and thats why i don't think that its a bug:

i took the same installation file "anydesk-6.0.1-amd64.tar.gz" and installed it on an Ubuntu Machine and it works perfectly.

Then i looked into the File "anydesk.trace" on the Ubuntu machine:

Code: [Select]
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                         impl_selector - using avx2
 * * * * * * * * * * * * * * * * * *
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - * AnyDesk Linux Startup *
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - * Version 6.0.1 (linux_release_6.0.1 ce4f5badb2839d0e36a167da46f34596f2e89093)
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - * Build 20200824175011
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - * Prefix ad
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - * Copyright (C) 2017 philandro Software GmbH *
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main -
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - Distribution Info: Ubuntu 20.04.3 LTS
   info 2021-12-23 12:59:50.823         ad   main   3356   3356                                  main - Found GLib Version: 2.64.
warning 2021-12-23 12:59:50.834         ad   main   3356   3356                   fiber.ipc_namespace - Local namespace without service.
   info 2021-12-23 12:59:50.834         ad   main   3356   3356                   fiber.ipc_namespace - Global: no
   info 2021-12-23 12:59:50.834         ad   main   3356   3356                       app.common_path - user_data_dir = /home/user/.anydesk, logged_in_user_data_dir = /home/user/.anydesk, current_home = /home/user

   info 2021-12-23 12:59:50.834         ad   main   3356   3356                       app.common_path - initialized user = /home/user/.anydesk, system = /home/user/.anydesk
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                         impl_selector - using avx2
 * * * * * * * * * * * * * * * * * *
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - * AnyDesk Linux Startup *
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - * Version 6.0.1 (linux_release_6.0.1 ce4f5badb2839d0e36a167da46f34596f2e89093)
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - * Build 20200824175011
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - * Prefix ad
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - * Copyright (C) 2017 philandro Software GmbH *
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main -
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - Distribution Info: Ubuntu 20.04.3 LTS
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                                  main - Found GLib Version: 2.64.
warning 2021-12-23 12:59:50.860         ad   main   3359   3359                   fiber.ipc_namespace - Local namespace without service.
   info 2021-12-23 12:59:50.860         ad   main   3359   3359                   fiber.ipc_namespace - Global: no
   info 2021-12-23 12:59:50.863         ad   main   3359   3359                       app.common_path - user_data_dir = /home/user/.anydesk, logged_in_user_data_dir = /home/user/.anydesk, current_home = /home/user
   info 2021-12-23 12:59:50.834         ad   main   3356   3356                       app.common_path - initialized user = /home/user/.anydesk, system = /home/user/.anydesk
   info 2021-12-23 12:59:50.840         ad   main   3359   3359                         impl_selector - using avx2

it automaticly made the path as a normal user (See last line in the log)

on Tinycore its trying to make the common Path to "root" that doese not exist:
Code: [Select]
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                         impl_selector - using avx2
 * * * * * * * * * * * * * * * * * *
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - * AnyDesk Linux Startup *
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - * Version 6.0.1 (linux_release_6.0.1 ce4f5badb2839d0e36a167da46f34596f2e89093)
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - * Build 20200824175011
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - * Prefix ad
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - * Copyright (C) 2017 philandro Software GmbH *
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main -
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - Distribution Info: TinyCoreLinux 10.1
   info 2021-12-23 13:07:43.081         ad   main  32470  32470                                  main - Found GLib Version: 2.60.
warning 2021-12-23 13:07:43.091         ad   main  32470  32470                   fiber.ipc_namespace - Local namespace without service.
   info 2021-12-23 13:07:43.091         ad   main  32470  32470                   fiber.ipc_namespace - Global: no
   info 2021-12-23 13:07:43.091         ad   main  32470  32470                       app.common_path - user_data_dir = /root/.anydesk, logged_in_user_data_dir = /root/.anydesk, current_home = /root

  error 2021-12-23 13:07:43.091         ad   main  32470  32470                       app.common_path - Could not access AnyDesk user config directory (13) (/root/.anydesk)

so its definitly not a bug from the Program.
but i can't figure this out, how do i make it the choose the right path  :-\  :-\





Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13848
Re: Anydesk
« Reply #51 on: December 23, 2021, 05:46:50 AM »
Have you tried creating /home/user/.anydesk on tinycore?

Alternatively, you could set the permissions for /root/.anydesk to root:staff
« Last Edit: December 23, 2021, 06:02:32 AM by Juanito »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #52 on: December 23, 2021, 07:56:07 AM »
Hi Hi Rabie
It appears Anydesk is not using the  USER  environmental variable to determine  user_data_dir  and as a result
is defaulting to root for some reason.

See if running these export commands helps any:
Code: [Select]
export XDG_CONFIG_HOME=/home/$USER/.config
export XDG_SESSION_CLASS=user

From the Ubuntu anydesk.trace:
Quote
app.common_path - user_data_dir = /home/user/.anydesk, logged_in_user_data_dir = /home/user/.anydesk, current_home = /home/user
Am I correct that the user name you used here is  user ?

On the Ubuntu machine, run this command and attach the  env.txt  file to your next post:
Code: [Select]
env > env.txt

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13848
Re: Anydesk
« Reply #53 on: December 23, 2021, 08:15:05 AM »
You could also load the xdg-user-dirs extension and run xdg-user-dirs-update.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #54 on: December 23, 2021, 09:07:06 AM »
Quote
Have you tried creating /home/user/.anydesk on tinycore?
no, but now i did, it didn't help. also i think that doesn't make sense, because anydesk should look at the actual user directory

Quote
Alternatively, you could set the permissions for /root/.anydesk to root:staff
this directory doesn't exist

Quote
It appears Anydesk is not using the  USER  environmental variable to determine  user_data_dir  and as a result
is defaulting to root for some reason.
i think this is the Problem..

Quote
See if running these export commands helps any:
Code: [Select]
export XDG_CONFIG_HOME=/home/$USER/.config
export XDG_SESSION_CLASS=user
keep getting the same error

Quote
Am I correct that the user name you used here is  user ?

Yes that is right

Quote
On the Ubuntu machine, run this command and attach the  env.txt  file to your next post:
See Attachment
i also tried to set those like in the Ubuntu Machine:
Code: [Select]
export XDG_SESSION_TYPE=tty
export XDG_SESSION_ID=4
Quote
You could also load the xdg-user-dirs extension and run xdg-user-dirs-update.

i just did that, the path won't change  :-\

Offline GNUser

  • Hero Member
  • *****
  • Posts: 865
Re: Anydesk
« Reply #55 on: December 23, 2021, 08:07:27 PM »
Assuming your username on TCL is tc, why not just copy the config directory from your Ubuntu machine (/home/user/.anydesk), which we know is working, to TCL (/home/tc/.anydesk)?

Then do this on your TCL machine:
Code: [Select]
sudo ln -sf /home/tc/.anydesk /root/.anydesk

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #56 on: December 23, 2021, 09:16:33 PM »
Hi Rabie
...
Quote
Alternatively, you could set the permissions for /root/.anydesk to root:staff
this directory doesn't exist ...
Code: [Select]
sudo mkdir /root/.anydesk
sudo chown root:staff /root/.anydesk

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #57 on: December 24, 2021, 02:56:12 AM »
Assuming your username on TCL is tc, why not just copy the config directory from your Ubuntu machine (/home/user/.anydesk), which we know is working, to TCL (/home/tc/.anydesk)?

Then do this on your TCL machine:
Code: [Select]
sudo ln -sf /home/tc/.anydesk /root/.anydesk


Hi GNUser,

i already tried that:

Code: [Select]
tc@box:/opt/anydesk-6.0.1$ ./anydesk
/home/tc/.gtkrc-2.0:16: error: scanner: unknown error
/home/tc/.gtkrc-2.0:16: error: scanner: unknown error
sh: lsb_release: not found
/home/tc/.gtkrc-2.0:16: error: scanner: unknown error
/home/tc/.gtkrc-2.0:16: error: scanner: unknown error

(anydesk:13631): GLib-GObject-CRITICAL **: 10:47:54.366: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(anydesk:13631): GLib-GObject-CRITICAL **: 10:47:54.368: g_object_set: assertion 'G_IS_OBJECT (object)' failed

Code: [Select]
nano /home/tc/.gtkrc-2.0
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
gtk-theme-name="Raleigh"
gtk-icon-theme-name="nuoveXT2"
gtk-font-name="Sans 10"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
include .gtkrc-2.0.mine
even if i comment the last line, just the Unknown scanner will go away but anydesk it doesn't start
But at least anydesk doesn't say anymore, that it clouldn't access the /root/.anydesk dir and try to start
 
« Last Edit: December 24, 2021, 03:00:16 AM by Rabie »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 251
Re: Anydesk
« Reply #58 on: December 24, 2021, 03:04:13 AM »
Hi Rabie
...
Quote
Alternatively, you could set the permissions for /root/.anydesk to root:staff
this directory doesn't exist ...
Code: [Select]
sudo mkdir /root/.anydesk
sudo chown root:staff /root/.anydesk

hi Rich,
if i make the dir myself, i get this error

Code: [Select]
info 2021-12-24 11:02:39.438         ad   main  26146  26146                       app.common_path - user_data_dir = /root/.anydesk, logged_in_user_data_dir = /root/.anydesk, current_home = /root

  error 2021-12-24 11:02:39.438         ad   main  26146  26146                       app.common_path - Found no place for system data.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10210
Re: Anydesk
« Reply #59 on: December 24, 2021, 07:40:09 AM »
Hi Rabie
... this time i got the error "double free or corruption (fasttop)" without running it as root ...
I just realized, you're still running as root. The anydesk.trace file you posted on December 20 shows this:
Code: [Select]
   info 2021-12-20 22:38:20.424         ad   main  15880  15880                       app.common_path - user_data_dir = /home/tc/.anydesk, logged_in_user_data_dir = /home/tc/.anydesk, current_home = /home/tc

   info 2021-12-20 22:38:20.424         ad   main  15880  15880                       app.common_path - initialized user = /home/tc/.anydesk, system = /home/tc/.anydesk
   info 2021-12-20 22:38:20.424         ad   main  15880  15880             app.named_process_starter - Spawning new process with: UID: 1001, DPY: , ID: , SEAT: 38736144
See where it says  UID: 1001 , that is the ID for user  tc.  The other trace files I looked at show UID as zero, which
belongs to user  root.

This is from the most recent trace file:
Code: [Select]
   info 2021-12-24 10:49:55.980         ad   main  15350  15350                       app.common_path - user_data_dir = /root/.anydesk, logged_in_user_data_dir = /root/.anydesk, current_home = /root

   info 2021-12-24 10:49:55.980         ad   main  15350  15350                       app.common_path - initialized user = /root/.anydesk, system = /root/.anydesk
   info 2021-12-24 10:49:55.981         ad   main  15350  15350             app.named_process_starter - Spawning new process with: UID: 0, DPY: , ID: , SEAT: 40280672
 ----- SNIP -----
warning 2021-12-24 10:49:56.010       tray   wrk0  15353  15360        base.signal.global.shared_file - open (/var/lib/AccountsService/users/tc) failed (2): Datei oder Verzeichnis nicht gefunden
warning 2021-12-24 10:49:56.010       tray   wrk0  15353  15360                      unix_app.control - Could not update account image (File not found: /home/tc/.face.icon).
It shows it starting as root and later looking for files belonging to user tc.

On your Ubuntu system, make a copy of the  .anydesk  directory:
Code: [Select]
tar -czf anydeskDir.tar.gz .anydeskand attach  anydeskDir.tar.gz  to your next post.

Also, what does this command return:
Code: [Select]
id