mik30s / Cysboard

A lightweight system monitor similar to conky with html and css for themes
GNU General Public License v3.0
156 stars 18 forks source link

Failed to connect to Mir #30

Open Dwijad opened 7 years ago

Dwijad commented 7 years ago

Hi I have compiled Cysboard in Ubuntu 16.10 and the cysboard executable is generated in the folder ~/Cysboard/build

I am trying to execute it like below.

$ cd ~/Cysboard/build $ root@ubuntu:~/Cysboard/build# ls -l total 19228 -rwxr-xr-x 1 root root 535168 May 3 14:09 Cysboard -rw-r--r-- 1 root root 19165304 May 3 13:58 libsciter-gtk-64.so $ ./Cysboard Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused

Shall i install unity8-desktop-session-mir ?

Regards

mik30s commented 7 years ago

Hmm...I'm not clear on what libsciter is trying to do here. I guess you could install mir and see what happens. I'll try to clarify with the developers of libsciter in the meantime. Thanks for catching this.

Dwijad commented 7 years ago

I have installed gnome which was missing earlier and the Cysboard is displaying System and CPU information but RAM information is 0 KB.

Regards

cysboard

/etc/lsb-release and /etc/os-release

cysboard2

mik30s commented 7 years ago

Is that your own theme you are working on? Maybe you used the wrong ID names. Can you also check if you have /proc/meminfo on you system.

Dwijad commented 7 years ago

Memory Info from proc

root@ubuntu:~/.config/cysboard# cat /proc/meminfo MemTotal: 1012716 kB MemFree: 142380 kB MemAvailable: 613900 kB Buffers: 35164 kB Cached: 439816 kB SwapCached: 7464 kB Active: 383652 kB Inactive: 340012 kB Active(anon): 126256 kB Inactive(anon): 148828 kB Active(file): 257396 kB Inactive(file): 191184 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 262140 kB SwapFree: 211284 kB Dirty: 28 kB Writeback: 0 kB AnonPages: 244164 kB Mapped: 112432 kB Shmem: 26400 kB Slab: 73492 kB SReclaimable: 42836 kB SUnreclaim: 30656 kB KernelStack: 4972 kB PageTables: 18272 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 768496 kB Committed_AS: 1922180 kB VmallocTotal: 34359738367 kB VmallocUsed: 0 kB VmallocChunk: 0 kB DirectMap4k: 14200 kB DirectMap2M: 1034240 kB DirectMap1G: 0 kB

I am using the example template from https://github.com/mike168m/Cysboard

selection_001

Regards

mik30s commented 7 years ago

Ok, seems like I have to start looking for alternate sources for getting information. I will see if i can use the posix apis on linux. One last thing, are there any permisssions on that file which might cause this?

Dwijad commented 7 years ago

Permissions seems ok. I am running cysboard as root and all the files that i am using/created have root ownership. selection_002

The main.html file

main.txt

mik30s commented 7 years ago

Ok, looking for a fallback source.