{"id":2185,"date":"2018-10-16T07:59:20","date_gmt":"2018-10-15T22:59:20","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2185"},"modified":"2020-12-28T04:50:43","modified_gmt":"2020-12-27T19:50:43","slug":"troubled-that-redshift-gtk-can-not-acquire-location","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/10\/16\/troubled-that-redshift-gtk-can-not-acquire-location\/","title":{"rendered":"Redshift-gtk \u304c\u4f4d\u7f6e\u60c5\u5831\u3092\u53d6\u5f97\u51fa\u6765\u306a\u304f\u3066\u56f0\u308b"},"content":{"rendered":"<div id=\"__asciidoctor-preview-1__\" class=\"paragraph\">\n<p>\u592a\u967d\u306e\u52d5\u304d\u306b\u5408\u308f\u305b\u3066\u30e2\u30cb\u30bf\u306e\u8272\u3084\u660e\u308b\u3055\u306e\u8abf\u6574\u3092\u3057\u3066\u304f\u308c\u308b f.Lux\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u306aRedshift\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308b\u306e\u3067\u3059\u304c\uff0c\u65b0\u3057\u3044\u74b0\u5883\u306b\u5c0e\u5165\u3057\u3066\u3082\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff0e\u4f4d\u7f6e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-2__\" class=\"ulist\">\n<ul>\n<li><a href=\"http:\/\/jonls.dk\/redshift\/\">Redshift<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/jonls\/redshift\">jonls\/redshift: Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.<\/a><\/li>\n<li><a href=\"https:\/\/justgetflux.com\/\">f.lux: software to make your life better<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-3__\" class=\"paragraph\">\n<p><a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/44624259834\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1937\/44624259834_09ae5f8845.jpg?atomcache=1539644228986\" alt=\"44624259834 09ae5f8845\"\/><\/span><\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-4__\" class=\"listingblock\">\n<div class=\"content\">\n<pre>$ redshift\n\u4f4d\u7f6e\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u8a66\u884c\u3057\u3066\u3044\u307e\u3059...\n\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u65b9\u5f0f `randr' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u521d\u671f\u4f4d\u7f6e\u304c\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308b\u306e\u3092\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059...\nUnable to start GeoClue client: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'redshift' disallowed, no agent for UID 1000.\nAccess to the current location was denied by GeoClue!\nMake sure that location services are enabled and that Redshift is permitted\nto use location services. See https:\/\/github.com\/jonls\/redshift#faq for more\ninformation.\n\u30d7\u30ed\u30d0\u30a4\u30c0\u304b\u3089\u4f4d\u7f6e\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-5__\" class=\"paragraph\">\n<p>geoclue2\u306edemo\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u304c\u3084\u306f\u308a\u52d5\u304d\u307e\u305b\u3093\uff0eagent\u3092\u5b9f\u884c\u3057\u305f\u72b6\u614b\u3060\u3068\u52d5\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-6__\" class=\"listingblock\">\n<div class=\"title\">demo\u3082\u52d5\u304b\u306a\u3044<\/div>\n<div class=\"content\">\n<pre>$ sudo apt install geoclue-2-demo\n$ \/usr\/lib\/geoclue-2.0\/demos\/where-am-i\n\n** (where-am-i:16681): CRITICAL **: 07:00:13.576: Failed to connect to GeoClue2 service: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: 'geoclue-where-am-i' disallowed, no agent for UID 1000<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-7__\" class=\"listingblock\">\n<div class=\"title\">agent\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u8a66\u3059\u3068\u53d6\u5f97\u3067\u304d\u308b\u304c\u78ba\u8a8d\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b<\/div>\n<div class=\"content\">\n<pre>$ \/usr\/lib\/geoclue-2.0\/demos\/agent &amp;\n$ \/usr\/lib\/geoclue-2.0\/demos\/where-am-i\nGeolocation service not in use\nGeolocation service in use\nClient object: \/org\/freedesktop\/GeoClue2\/Client\/1\n\nNew location:\nLatitude:    34.700000\u00b0\nLongitude:   137.733300\u00b0\nAccuracy:    25000.000000 meters\nTimestamp:   2018\u5e7410\u670816\u65e5 07\u664201\u520635\u79d2 (1539640895 seconds since the Epoch)\n$ redshift\n\u4f4d\u7f6e\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u8a66\u884c\u3057\u3066\u3044\u307e\u3059...\n\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u65b9\u5f0f `randr' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u521d\u671f\u4f4d\u7f6e\u304c\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308b\u306e\u3092\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059...\nGeolocation service not in use\nGeolocation service in use\n\u4f4d\u7f6e: \u5317\u7def 34.70\u00b0, \u6771\u7d4c 137.73\u00b0<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-8__\" class=\"paragraph\">\n<p><a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/44434687985\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1978\/44434687985_2bbe2c44ec.jpg?atomcache=1539644228986\" alt=\"44434687985 2bbe2c44ec\"\/><\/span><\/a><br \/>\n<a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/44434688165\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1929\/44434688165_c1b5632101.jpg?atomcache=1539644228986\" alt=\"44434688165 c1b5632101\"\/><\/span><\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-9__\" class=\"paragraph\">\n<p>GeoClue\u306e\u8a2d\u5b9a\u3067\u78ba\u8a8d\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-10__\" class=\"listingblock\">\n<div class=\"title\">\/etc\/geoclue\/geoclue.conf \u306bredshift\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18<\/div>\n<div class=\"content\">\n<pre>$ echo '[redshift]\nallowed=true\nsystem=false\nusers=' | sudo tee -a\n\/etc\/geoclue\/geoclue.conf\n[redshift]\nallowed=true\nsystem=false\nusers=<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-11__\" class=\"listingblock\">\n<div class=\"title\">agent\u3092\u518d\u8d77\u52d5\u3057\u3066\u8a66\u3059<\/div>\n<div class=\"content\">\n<pre>$ kill %1\n[1]+  Terminated              \/usr\/lib\/geoclue-2.0\/demos\/agent\n$ \/usr\/lib\/geoclue-2.0\/demos\/agent &amp;\n[1] 32138\n$ redshift\n\u4f4d\u7f6e\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u8a66\u884c\u3057\u3066\u3044\u307e\u3059...\n\u30d7\u30ed\u30d0\u30a4\u30c0 `geoclue2' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u65b9\u5f0f `randr' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u521d\u671f\u4f4d\u7f6e\u304c\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308b\u306e\u3092\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059...\nGeolocation service not in use\nGeolocation service in use\n\u4f4d\u7f6e: \u5317\u7def 34.70\u00b0, \u6771\u7d4c 137.73\u00b0\n^CGeolocation service not in use<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-12__\" class=\"paragraph\">\n<p>\u3066\u3053\u3068\u3067\uff0cagent\u3092\u5b9f\u884c\u3057\u3066\u304a\u3051\u3070\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u3057\u304b\u3057\uff0c\u4f4d\u7f6e\u304c\u304b\u306a\u308a\u305a\u308c\u3066\u3044\u307e\u3059\uff0e\u6d5c\u677e\u3042\u305f\u308a\u306e\u5ea7\u6a19\u304c\u5e30\u3063\u3066\u6765\u3066\u3044\u307e\u3059\u304c\uff0c\u5b9f\u969b\u306f\u9e7f\u5150\u5cf6\u3067\u3059\uff0e<br \/>\n\u534a\u6642\u9593\u306f\u305a\u308c\u3066\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-13__\" class=\"paragraph\">\n<div class=\"title\">\u6d5c\u677e\u306e\u3042\u305f\u308a\u306e\u5ea7\u6a19<\/div>\n<p><a href=\"https:\/\/www.openstreetmap.org\/#map=15\/34.7000\/137.7333\">https:\/\/www.openstreetmap.org\/#map=15\/34.7000\/137.7333<\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-14__\" class=\"paragraph\">\n<p>Redshift \u306ehelp\u3092\u78ba\u8a8d\u3059\u308b\u3068\u624b\u52d5\u3067\u5ea7\u6a19\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-15__\" class=\"listingblock\">\n<div class=\"title\">redshift help<\/div>\n<div class=\"content\">\n<pre>$ gtk-redshift --help\n\u30d8\u30eb\u30d7\u3092\u51fa\u529b\u3059\u308b\u306b\u306f `redshift -h` \u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n$ redshift -h\n\u4f7f\u3044\u65b9: redshift -l \u7def\u5ea6:\u7d4c\u5ea6 -t \u663c\u306e\u8272\u6e29\u5ea6:\u591c\u306e\u8272\u6e29\u5ea6 [\u30aa\u30d7\u30b7\u30e7\u30f3...]\n\n\u6642\u523b\u306b\u5f93\u3063\u3066\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306e\u8272\u6e29\u5ea6\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n\n  -h            \u3053\u306e\u30d8\u30eb\u30d7 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\n  -v            \u8a73\u7d30\u306a\u51fa\u529b\n  -V            \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\n\n  -b DAY:NIGHT  \u753b\u9762\u306b\u9069\u7528\u3059\u308b\u660e\u308b\u3055 (0.1 \u304b\u3089 1.0 \u306e\u9593)\n  -c FILE       \u6307\u5b9a\u3057\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3080\n  -g R:G:B      \u8ffd\u52a0\u3067\u9069\u7528\u3059\u308b\u30ac\u30f3\u30de\u88dc\u6b63\n  -l LAT:LON    \u3042\u306a\u305f\u306e\u73fe\u5728\u4f4d\u7f6e\n  -l PROVIDER   \u81ea\u52d5\u3067\u4f4d\u7f6e\u60c5\u5831\u3092\u66f4\u65b0\u3059\u308b\u30d7\u30ed\u30d0\u30a4\u30c0\u3092\u9078\u629e\n                (`list' \u3092\u6307\u5b9a\u3059\u308b\u3068\u5229\u7528\u53ef\u80fd\u306a\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u4e00\u89a7\u304c\u898b\u3089\u308c\u307e\u3059)\n  -m METHOD     \u8272\u6e29\u5ea6\u306e\u8a2d\u5b9a\u65b9\u5f0f\n                (`list' \u3092\u6307\u5b9a\u3059\u308b\u3068\u5229\u7528\u53ef\u80fd\u306a\u65b9\u5f0f\u306e\u4e00\u89a7\u304c\u898b\u3089\u308c\u307e\u3059)\n  -o            \u30ef\u30f3 \u30b7\u30e7\u30c3\u30c8 \u30e2\u30fc\u30c9 (\u8272\u6e29\u5ea6\u306e\u5909\u66f4\u306f\u7d99\u7d9a\u3057\u3066\u884c\u3044\u307e\u305b\u3093)\n  -O TEMP       \u30ef\u30f3 \u30b7\u30e7\u30c3\u30c8 \u624b\u52d5\u30e2\u30fc\u30c9 (\u8272\u6e29\u5ea6\u3092\u8a2d\u5b9a\u3057\u307e\u3059)\n  -p            \u8868\u793a\u30e2\u30fc\u30c9 (\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u51fa\u529b\u306e\u307f\u3092\u884c\u3063\u3066\u7d42\u4e86\u3057\u307e\u3059)\n  -P            \u65b0\u3057\u3044\u8272\u52b9\u679c\u306e\u9069\u7528\u524d\u306b\u65e2\u5b58\u306e\u30ac\u30f3\u30de \u30e9\u30f3\u30d7\u3092\u30ea\u30bb\u30c3\u30c8\n  -x            \u30ea\u30bb\u30c3\u30c8 \u30e2\u30fc\u30c9 (\u753b\u9762\u306e\u8abf\u6574\u3092\u89e3\u9664\u3057\u307e\u3059)\n  -r            \u8272\u6e29\u5ea6\u306e\u7de9\u3084\u304b\u306a\u5909\u66f4\u3092\u7121\u52b9\u306b\u3059\u308b\n  -t DAY:NIGHT  \u663c\u9593\/\u591c\u9593\u306b\u8a2d\u5b9a\u3059\u308b\u8272\u6e29\u5ea6\n\n\u30cb\u30e5\u30fc\u30c8\u30e9\u30eb\u306a\u6e29\u5ea6\u306f 6500K \u3067\u3059\u3002\u3053\u306e\u5024\u3092\u7528\u3044\u308b\u3068\n\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306e\u8272\u6e29\u5ea6\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u3088\u308a\u3082\u9ad8\u3044\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\n\u9752\u3044\u5149\u304c\u5897\u3048\u3001\u4f4e\u3044\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u8d64\u3044\u5149\u304c\u5897\u3048\u307e\u3059\u3002\n\n\u65e2\u5b9a\u5024:\n\n  \u663c\u9593\u306e\u6e29\u5ea6: 6500K\n  \u591c\u9593\u306e\u6e29\u5ea6: 4500K\n\n\u30d0\u30b0\u306f &lt;https:\/\/github.com\/jonls\/redshift\/issues&gt; \u306b\u5831\u544a\u3057\u3066\u304f\u3060\u3055\u3044\n$ redshift -l list\n\u5229\u7528\u53ef\u80fd\u306a\u4f4d\u7f6e\u30d7\u30ed\u30d0\u30a4\u30c0:\n  geoclue2\n  manual\n\n`-l \u30d7\u30ed\u30d0\u30a4\u30c0\u540d:\u30aa\u30d7\u30b7\u30e7\u30f3' \u3067\u30b3\u30ed\u30f3\u533a\u5207\u308a\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n`-l \u30d7\u30ed\u30d0\u30a4\u30c0\u540d:help' \u3067\u30d8\u30eb\u30d7\u304c\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-16__\" class=\"paragraph\">\n<p>OpenStreetMap\u306a\u3069\u3067\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u6240\u306eURL\u3067\u6642\u8a08\u5ea6\u306e\u5ea7\u6a19\u304c\u78ba\u8a8d\u51fa\u6765\u307e\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-17__\" class=\"paragraph\">\n<div class=\"title\">\u79cb\u8449\u539f\u4ed8\u8fd1<\/div>\n<p><a href=\"https:\/\/www.openstreetmap.org\/#map=19\/35.69935\/139.76957\">https:\/\/www.openstreetmap.org\/#map=19\/35.69935\/139.76957<\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-18__\" class=\"paragraph\">\n<p>\u5ea7\u6a19\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\uff0e\u5c0f\u6570\u70b9\u4ee5\u4e0b2\u6841\u3057\u304b\u898b\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-19__\" class=\"listingblock\">\n<div class=\"title\">redshift\u306b\u624b\u52d5\u3067\u5ea7\u6a19\u6307\u5b9a<\/div>\n<div class=\"content\">\n<pre>$ redshift -l 35.69935:139.76957\n\u65b9\u5f0f `randr' \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n\u521d\u671f\u4f4d\u7f6e\u304c\u53d6\u5f97\u53ef\u80fd\u306b\u306a\u308b\u306e\u3092\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059...\n\u4f4d\u7f6e: \u5317\u7def 35.70\u00b0, \u6771\u7d4c 139.77\u00b0\n^C\n$ gtk-redshift -l 35.70:139.77 &amp;<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-20__\" class=\"paragraph\">\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4f4d\u7f6e\u60c5\u5831\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u3053\u308c\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u3067ok\u306b\u306a\u308a\u307e\u3059\uff0e(\u79cb\u8449\u539f\u5468\u8fba\u306e\u8a2d\u5b9a)<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-21__\" class=\"listingblock\">\n<div class=\"content\">\n<pre>$ mkdir -p ~\/.config\/redshift\n$ vi ~\/.config\/redshift\/redshift.conf<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-22__\" class=\"listingblock\">\n<div class=\"title\">~\/.config\/redshift\/redshift.conf<\/div>\n<div class=\"content\">\n<pre>[redshift]\n\nlocation-provider=manual\n\n[manual]\n;\u79cb\u8449\u539f\u4ed8\u8fd1\u306e\u5dee\u8868\nlat=35.70\nlon=139.77<\/pre>\n<\/div>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\">ADD 2020-12-28)<\/div>\n<blockquote>\n<div class=\"paragraph\">\n<p>Debian sid amd64\u306e <code>redshift 1.12<\/code> \u3067\u306fPATH\u304c <code>~\/.config\/redshift.conf<\/code> \u306b\u5909\u308f\u3063\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ redshift -V\nredshift 1.12\n$ dpkg-query -W redshift\nredshift        1.12-4\n$ man redshift | grep redshift.conf\n       A  configuration  file  with  the name redshift.conf can optionally be placed in ~\/.config\/. The file has standard INI format. General<\/pre>\n<\/div>\n<\/div>\n<\/blockquote>\n<\/div>\n<div id=\"__asciidoctor-preview-23__\" class=\"paragraph\">\n<p>\u624b\u52d5\u3067\u3068\u308a\u3042\u3048\u305a\u8a2d\u5b9a\u3067\u304d\u307e\u3057\u305f\u304c\uff0c\u79fb\u52d5\u3059\u308b\u305f\u3073\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u5225\u306e\u4f4d\u7f6e\u60c5\u5831\u53d6\u5f97\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-24__\" class=\"listingblock\">\n<div class=\"title\">GeoIP\u306e\u5c0e\u5165\u3068\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/div>\n<div class=\"content\">\n<pre>$ sudo apt install geoip-bin geoip-database geoip-database-extra geoipupdate\n$ sudo geoipupdate\n$ geoiplookup $(curl -s ifconfig.me\/ip)\nGeoIP Country Edition: JP, Japan\nGeoIP City Edition, Rev 1: JP, 13, Hyogo, Nishinomiya, 662-0934, 34.716702, 135.333298, 0, 0\nGeoIP ASNum Edition: AS10013 FreeBit Co.,Ltd.<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-25__\" class=\"paragraph\">\n<p>GeoIP\u306f\u5175\u5eab\u306b\u306a\u308a\u307e\u3057\u305f\uff0e\u5c11\u3057\u8fd1\u3065\u3044\u305f\u3051\u3069\u3084\u306f\u308a\u304b\u306a\u308a\u305a\u308c\u3066\u3044\u307e\u3059\uff0e<br \/>\n\u3053\u308c\u3067\u3046\u307e\u304f\u884c\u3063\u305f\u3089\u3053\u3093\u306a\u611f\u3058\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u306e\u3067\u3059\u304c\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-26__\" class=\"listingblock\">\n<div class=\"title\">GeoIP\u3092\u4f7f\u3063\u305fredshift\u5229\u7528\u4f8b<\/div>\n<div class=\"content\">\n<pre>$ gtk-redshift -l $( geoiplookup $(curl -s ifconfig.me\/ip)|grep City | cut -f7-8 -d, | sed -e 's\/,\/:\/' -e 's\/\\ \/\/g' )<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-27__\" class=\"paragraph\">\n<p>\u3066\u3053\u3068\u3067agent\u3092\u8d77\u52d5\u3059\u308b\u306e\u306f\u9762\u5012\u3060\u3057\u65c5\u884c\u306e\u4e88\u5b9a\u3082\u306a\u3044\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u30de\u30cb\u30e5\u30a2\u30eb\u8a2d\u5b9a\u306b\u3057\u3066\u304a\u304d\u307e\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-28__\" class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W redshift redshift-gtk geoclue-2.0 geoclue-2-demo geoip-bin geoip-database geoip-database-extra geoipupdate\ngeoclue-2-demo  2.4.12-2\ngeoclue-2.0     2.4.12-2\ngeoip-bin       1.6.12-1\ngeoip-database  20180315-1\ngeoip-database-extra    20180315-1\ngeoipupdate     2.5.0-1\nredshift        1.12-2\nredshift-gtk    1.12-2\n$ lsb_release -d\nDescription:    Debian GNU\/Linux unstable (sid)\n$ uname -m\nx86_64<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u592a\u967d\u306e\u52d5\u304d\u306b\u5408\u308f\u305b\u3066\u30e2\u30cb\u30bf\u306e\u8272\u3084\u660e\u308b\u3055\u306e\u8abf\u6574\u3092\u3057\u3066\u304f\u308c\u308b f.Lux\u30a4\u30f3\u30b9\u30d1\u30a4\u30a2\u306aRedshift\u3068\u3044\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3042\u308b\u306e\u3067\u3059\u304c\uff0c\u65b0\u3057\u3044\u74b0\u5883\u306b\u5c0e\u5165\u3057\u3066\u3082\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff0e\u4f4d\u7f6e\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\uff0e Redshift j [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,199],"tags":[427,426,425],"class_list":["post-2185","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-geoclue","tag-geoip","tag-redshift"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2185"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2185\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}