Aplet zegarów dla różnych stref czasowych.

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
Matrixx
Beginner
Posty: 235
Rejestracja: 03 maja 2016, 16:30

Re: Aplet zegara

Post autor: Matrixx »

Niestety, rezultat: http://imgur.com/a/MukEz
Te 3 fioletowe zegary na dole to z startu roota, jak zabije proces to mam tylko bialo-czarne w wersji default i nadal nie laduje z podanej lokalizacji.
Awatar użytkownika
dedito
Moderator
Posty: 3518
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Aplet zegara

Post autor: dedito »

Ponownie sprawdź ls -l czy właścicielem pliku jest robin.
Matrixx
Beginner
Posty: 235
Rejestracja: 03 maja 2016, 16:30

Re: Aplet zegara

Post autor: Matrixx »

Kod: Zaznacz cały

robin@debian:~$ ls -l /home/robin/.conkyrc
-rw-r--r-- 1 robin robin 1706 Aug 24 08:57 /home/robin/.conkyrc
Awatar użytkownika
dedito
Moderator
Posty: 3518
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Aplet zegara

Post autor: dedito »

Z parametrem -c też nie ładuje tej konfiguracji? (z poziomu robin)
Matrixx
Beginner
Posty: 235
Rejestracja: 03 maja 2016, 16:30

Re: Aplet zegara

Post autor: Matrixx »

Kod: Zaznacz cały

robin@debian:~$ conky -c /home/robin/.conkyrc
Conky: desktop window (1400016) is subwindow of root window (280)
Conky: window type - desktop
Conky: drawing to created window (0x2000001)
Conky: drawing to single buffer
Niestety tylko defoult view. (:-(
Awatar użytkownika
dedito
Moderator
Posty: 3518
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Aplet zegara

Post autor: dedito »

Podaj jeszcze wynik z:

Kod: Zaznacz cały

conky -Di10
W man przeczytałem jeszcze:
Default configuration file location is $HOME/.config/conky/conky.conf
or ${sysconfdir}/conky/conky.conf. On most systems, sysconfdir is /etc,
and you can find the sample config file there (/etc/conky/conky.conf).

You might want to copy it to $HOME/.config/conky/conky.conf and then
start modifying it. Other configs can be found at http://conky.sf.net/
Jak to nie zadziała to zrobiłbym wszystko od początku.
wejść na roota: podać hasło root i potem:

Kod: Zaznacz cały

apt-get purge conky-all

Kod: Zaznacz cały

apt-get install conky-all

Kod: Zaznacz cały

rm /home/robin/.conkyrc
wyjść z roota na konto zwykłego użytkownika poprzez ctrl+d:
i już z poziomu użytkownika robin stworzyć plik:

Kod: Zaznacz cały

touch ~/.conkyrc
następnie wypełnić go konfiguracją za pomocą edytora tekstowego jakiego używamy.
lub najpierw stworzyć defaultową konfigurację w swoim katalago domowym poleceniem:

Kod: Zaznacz cały

conky -C > ~/.config/conky/conky.conf
i potem edytować do własnych potrzeb.
I musi działać, "cudów nie ma".
Matrixx
Beginner
Posty: 235
Rejestracja: 03 maja 2016, 16:30

Re: Aplet zegarów dla różnych stref czasowych.

Post autor: Matrixx »

Kod: Zaznacz cały

robin@debian:~$ conky -Di10
DEBUG(0) [../../src/conky.c:5338]: reading contents from config file '/home/robin/.conkyrc'
Conky: desktop window (1400016) is subwindow of root window (280)
Conky: window type - desktop
Conky: drawing to created window (0x1e00001)
Conky: drawing to single buffer
Conky zniknelo calkowicie, biore sie za reinstall.
Napisze jak skoncze.

Juz jest zrobione z lista polecen w CLI.

Kod: Zaznacz cały

robin@debian:~$ su
Password: 
root@debian:/home/robin# apt-get purge conky-all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  conky-std
Suggested packages:
  apcupsd audacious moc mpd xmms2
The following packages will be REMOVED:
  conky-all*
The following NEW packages will be installed:
  conky-std
0 upgraded, 1 newly installed, 1 to remove and 182 not upgraded.
Need to get 0 B/249 kB of archives.
After this operation, 424 kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: conky-all: dependency problems, but removing anyway as you requested:
 conky depends on conky-std | conky-cli | conky-all; however:
  Package conky-std is not installed.
  Package conky-cli is not installed.
  Package conky-all is to be removed.

(Reading database ... 209011 files and directories currently installed.)
Removing conky-all (1.9.0-6) ...
Purging configuration files for conky-all (1.9.0-6) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package conky-std.
(Reading database ... 208983 files and directories currently installed.)
Preparing to unpack .../conky-std_1.9.0-6_amd64.deb ...
Unpacking conky-std (1.9.0-6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for menu (2.1.47) ...
Setting up conky-std (1.9.0-6) ...
Processing triggers for menu (2.1.47) ...
root@debian:/home/robin# apt-get install conky-all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  apcupsd audacious moc mpd xmms2
The following packages will be REMOVED:
  conky-std
The following NEW packages will be installed:
  conky-all
0 upgraded, 1 newly installed, 1 to remove and 182 not upgraded.
Need to get 0 B/328 kB of archives.
After this operation, 424 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: conky-std: dependency problems, but removing anyway as you requested:
 conky depends on conky-std | conky-cli | conky-all; however:
  Package conky-std is to be removed.
  Package conky-cli is not installed.
  Package conky-all is not installed.

(Reading database ... 209006 files and directories currently installed.)
Removing conky-std (1.9.0-6) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for man-db (2.7.0.2-5) ...
Selecting previously unselected package conky-all.
(Reading database ... 208985 files and directories currently installed.)
Preparing to unpack .../conky-all_1.9.0-6_amd64.deb ...
Unpacking conky-all (1.9.0-6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for menu (2.1.47) ...
Setting up conky-all (1.9.0-6) ...
Processing triggers for menu (2.1.47) ...
root@debian:/home/robin# rm /home/robin/.conkyrc
root@debian:/home/robin# exit
robin@debian:~$ touch ~/.conkyrc
robin@debian:~$ conky -C > ~/.config/conky/conky.conf
bash: /home/robin/.config/conky/conky.conf: No such file or directory
robin@debian:~$ nano /home/robin/.conkyrc
robin@debian:~$ conky -C > ~/.config/conky/conky.conf
bash: /home/robin/.config/conky/conky.conf: No such file or directory
robin@debian:~$ conky
Conky: /home/robin/.conkyrc: 1: no such configuration: 'conky.config'
Conky: /home/robin/.conkyrc: 2: config file error
Conky: /home/robin/.conkyrc: 5: config file error
Conky: /home/robin/.conkyrc: 17: no such configuration: 'minimum_height'
Conky: /home/robin/.conkyrc: 18: no such configuration: 'minimum_width'
Conky: /home/robin/.conkyrc: 19: config file error
Conky: /home/robin/.conkyrc: 26: config file error
Conky: use_spacer should have an argument of left, right, or none.  '= 'none',' seems to be some form of 'false', so defaulting to none.
Conky: /home/robin/.conkyrc: 34: no such configuration: '}'
Conky: /home/robin/.conkyrc: 36: no such configuration: 'conky.text'
Conky: /home/robin/.conkyrc: 37: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 38: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 39: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 40: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 41: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 42: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 43: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 44: no such configuration: ']]'
Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_context_free();

	With the parameter:

	context

	being NULL. Please fix your program.
Conky jak nie bylo na monitorze tak nie ma, to chyba cos z konfigiem?
Wiem, ze to malo zabawne, ale zaczyna byc intrygujace.

I jeszcze:

Kod: Zaznacz cały

robin@debian:~$ conky -Di10
Conky: /home/robin/.conkyrc: 1: no such configuration: 'conky.config'
Conky: /home/robin/.conkyrc: 2: config file error
Conky: /home/robin/.conkyrc: 5: config file error
Conky: /home/robin/.conkyrc: 17: no such configuration: 'minimum_height'
Conky: /home/robin/.conkyrc: 18: no such configuration: 'minimum_width'
Conky: /home/robin/.conkyrc: 19: config file error
Conky: /home/robin/.conkyrc: 26: config file error
Conky: use_spacer should have an argument of left, right, or none.  '= 'none',' seems to be some form of 'false', so defaulting to none.
Conky: /home/robin/.conkyrc: 34: no such configuration: '}'
Conky: /home/robin/.conkyrc: 36: no such configuration: 'conky.text'
Conky: /home/robin/.conkyrc: 37: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 38: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 39: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 40: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 41: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 42: no such configuration: '$alignr${color'
Conky: /home/robin/.conkyrc: 43: no such configuration: '$hr'
Conky: /home/robin/.conkyrc: 44: no such configuration: ']]'
Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_context_free();

	With the parameter:

	context

	being NULL. Please fix your program.
Awatar użytkownika
dedito
Moderator
Posty: 3518
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Aplet zegarów dla różnych stref czasowych.

Post autor: dedito »

Poprzedni wynik
robin@debian:~$ conky -Di10
DEBUG(0) [../../src/conky.c:5338]: reading contents from config file '/home/robin/.conkyrc'
wskazywał, że konfiguracja ładowała się jednak z prawidłowego pliku, można było to inaczej rozwiązać.

Ale trudno.
Żle odczytałeś moje instrukcje i zrobiłeś błędy w tej reinstalacji.

Zrób tak:

Kod: Zaznacz cały

Conky -C > ~/.conkyrc
Domyślna konfiguracja się załaduje i będziesz mógł uruchomić conky.
Potem kwestia edycji tej konfiguracji pod własne potrzeby.
Matrixx
Beginner
Posty: 235
Rejestracja: 03 maja 2016, 16:30

Re: Aplet zegarów dla różnych stref czasowych.

Post autor: Matrixx »

Ja tez bym bardzo chcial, ale:

Kod: Zaznacz cały

robin@debian:~$ Conky -C > ~/.conkyrc
bash: Conky: command not found
Conky nadal nie widac.
Wiecej info:

Kod: Zaznacz cały

robin@debian:~$ conky &
[1] 10333
robin@debian:~$ Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_context_free();

	With the parameter:

	context

	being NULL. Please fix your program.
Awatar użytkownika
dedito
Moderator
Posty: 3518
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Aplet zegarów dla różnych stref czasowych.

Post autor: dedito »

Miało być z małej litery:

Kod: Zaznacz cały

conky -C > ~/.conkyrc
trochę mnie martwi, że sam nie wychwytujesz takich "literówek".
ODPOWIEDZ