You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
5.7 KiB

  1. Popularity-contest Frequently Asked Questions.
  2. Q) What information is reported by popularity-contest ?
  3. A) popularity-contest reports the system vendor [1], the system architecture
  4. you use, the version of popularity-contest you use and the list of packages
  5. installed on your system. For each package, popularity-contest looks at the
  6. most recently used (based on atime) files, and reports the filename, its
  7. last access time (atime) and last change time (ctime). However, some files
  8. are not considered, because they have unreliable atime. For privacy reasons,
  9. the times are truncated to multiple of twelve hours.
  10. [1] i.e. the dpkg Vendor field, see dpkg-vendor(1).
  11. Q) What is considered a 'vote' for a package ?
  12. A) A computer 'vote's for a package if according to the data provided in the
  13. report, a program provided or depending on the package was used less than
  14. thirty days ago. This computation is performed by the popcon server.
  15. Q) Can submissions be eavesdropped ?
  16. A) Yes, however if the package gnupg is installed and ENCRYPT is set to 'maybe'
  17. or 'yes' in /etc/popularity-contest.conf, the reports are encrypted using
  18. public key cryptography, so the eavesdropper should not be able to decrypt
  19. them. The default is 'maybe' with popularity-contest 1.60.
  20. Q) What are the privacy considerations for popularity-contest ?
  21. A) Each popularity-contest host is identified by a random 128bit uuid
  22. (MY_HOSTID in /etc/popularity-contest.conf). This uuid is used to
  23. track submissions issued by the same host. It should be kept secret.
  24. The reports are sent by email or HTTP to the popcon server. The
  25. server automatically extracts the report from the email or HTTP and
  26. stores it in a database for a maximum of 20 days or until the host
  27. sends a new report. This database is readable only by Debian
  28. Developers. The emails are readable only by the server admins.
  29. Every day, the server computes a summary and posts it on
  30. <>. This summary
  31. is a merge of all the submissions and does not include uuids.
  32. Known weaknesses of the system:
  33. 1) Someone who knows that you are very likely to use a particular package
  34. reported by only one person (e.g. you are the maintainer) might infer you
  35. are not at home when the package is not reported anymore. However this is
  36. only a problem if you are gone for more than two weeks if the computer is
  37. shut-down and 23 days if it is let idle.
  38. 2) Unofficial and local packages are reported. This can be an issue
  39. due to 2) above, especially for custom-built kernel packages.
  40. We are evaluating how far we can alleviate this problem.
  41. Q) /usr is mounted with 'noatime'.
  42. A) popularity-contest relies on atime to know what packages were used during
  43. the last month. This means you will only report the list of packages
  44. installed without usage information.
  45. Q) When does popularity-contest run ?
  46. A) popularity-contest is run by the daily cron job
  47. "/etc/cron.daily/popularity-contest", but only one day in the week,
  48. which is specified in the configuration file. This day is chosen randomly
  49. to spread the load on the server.
  50. Under the default configuration of cron, this happens at 6:47 in the morning.
  51. This can be changed by editing /etc/crontab. If your computer is not always
  52. turned on, we really recommend you install the anacron package.
  53. If /etc/cron.daily/popularity-contest has not run for more than a week, it will
  54. accept to run any day.
  55. Q) I don't want popcon email to be sent by root! How can I change that ?
  56. A) To send as user 'myuser', edit the function 'do_sendmail' in
  57. /etc/cron.daily/popularity-contest to
  58. do_sendmail()
  59. {
  60. su myuser -s /bin/sh -c "/usr/sbin/sendmail -oi \"$MAILTO\""
  61. }
  62. Q) How can I pass extra options to sendmail ?
  63. A) Add a line in /etc/popularity-contest.conf as follow
  64. MTAOPS="-opt1 -opt2 -opt3"
  65. Q) How can I prevent popularity-contest from sending reports via email?
  66. A) This is not recommended. Reports are sent by email only when the HTTP
  67. submission fails, which is generally caused by a temporary lack of internet
  68. connectivity. By contrast, reports sent by email are stored in the mail server
  69. queue until the internet connectivity is back.
  70. Nevertheless, you can prevent popularity-contest from sending reports via email
  71. by adding
  72. MAILTO=
  73. to /etc/popularity-contest.conf
  74. Q) How can I specify a HTTP proxy server for the HTTP submission ?
  75. Popularity-contest honors the environment variable http_proxy that you can
  76. set in /etc/environment. Alternatively you can specify a proxy server
  77. specifically for popularity-contest by adding a line
  78. HTTP_PROXY="http://<proxy hostname>:<port>"
  79. to /etc/popularity-contest.conf.
  80. Q) How can I convert the timestamps in the popcon report to human-readable
  81. dates ?
  82. A) The timestamps are just the number of seconds since the epoch, namely
  83. 1970-01-01 00:00:00 UTC. You can convert e.g. 1139229934 to a human-readable
  84. date with
  85. date -d '@1139229934'
  86. ====== FAQ For derivative distribution ======
  87. Q) How can I set up popularity-contest to report to my own server
  88. in addition to Debian ?
  89. A) You need to provide a keyring file with the public key used by your server,
  90. then you can add a file matching /etc/popularity-contest.d/*.conf with
  91. KEYRING="$KEYRING --keyring /path/to/your/keyring"
  93. SUBMITURLS="$SUBMITURLS http://myserver/popcon.cgi"
  94. MAILTO="$MAILTO, survey@myserver" # Optional
  95. Q) And if I do not want to report to Debian, but I do not want to change
  96. /etc/popularity-contest.conf ?
  97. A) Add a file matching /etc/popularity-contest.d/00*.conf with
  98. KEYRING="/path/to/your/keyring"
  100. SUBMITURLS="http://myserver/popcon.cgi"
  101. MAILTO="survey@myserver" # or MAILTO=""