{"id":371,"date":"2018-06-08T23:03:38","date_gmt":"2018-06-08T14:03:38","guid":{"rendered":"http:\/\/mifmif.mydns.jp\/masterkudo\/index.php\/2018\/06\/08\/post-0\/"},"modified":"2018-06-08T23:03:38","modified_gmt":"2018-06-08T14:03:38","slug":"post-0","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=371","title":{"rendered":"wpserver\u306eUbuntu18.04Lts\u3078\u306e\u79fb\u884c\uff08\u307e\u3068\u3081\uff09"},"content":{"rendered":"<p>\u305d\u306e\u5f8c\u306e\u305f\u3081\u306b\u307e\u3068\u3081\u3092\u8f09\u305b\u3068\u304d\u307e\u3059\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff0evino\u306e\u8a2d\u5b9a<\/span><br \/>\n$ gsettings set org.gnome.Vino require-encryption false<br \/>\n<span style=\"font-size:x-large;\">\uff12\uff0e\u84cb\u3092\u9589\u3058\u3066\u308b\u3068\u8d77\u52d5\u3057\u306a\u3044 <\/span><br \/>\n\/etc\/systemd\/logind.conf<br \/>\n&#8211; #HandleLidSwitch=suspend<br \/>\n+ HandleLidSwitch=ignore<br \/>\n<span style=\"font-size:x-large;\">\uff13\uff0eDropbox\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb <\/span><br \/>\nfirefox\u3067\u63a2\u3057\u3066\u5165\u308c\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff14\uff0efstab <\/span><br \/>\nUSB-HDD\u306e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3068\u30de\u30a6\u30f3\u30c8<br \/>\n<span style=\"font-size:x-large;\">\uff15\uff0esamba <\/span><br \/>\n\u53d6\u3063\u3066\u304a\u3044\u305fsmb.conf<br \/>\n\/etc\/samba\/\u3078\u30b3\u30d4\u30fc<br \/>\n$ sudo service smbd restart<br \/>\n\u3067\u3001\u4ed6\u306ePC\u304b\u3089\u898b\u308c\u308b\u304b\u78ba\u8a8d\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff16\uff0eapache2<\/span><br \/>\n$ sudo apt-add-repository ppa:ondrej\/apache2<br \/>\n$ sudo apt-get update<br \/>\n$ sudo apt-get install apache2<br \/>\nweb\u3067Workit\u3092\u78ba\u8a8d\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff17\uff0ePHP7.0 <\/span><br \/>\n$ sudo add-apt-repository ppa:ondrej\/php<br \/>\n$ sudo apt-get update<br \/>\n$ sudo apt-get install libapache2-mod-php7.0 php7.0-mbstring<br \/>\n<span style=\"font-size:x-large;\">\uff18\uff0ePHP7.0\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u7de8\u96c6<\/span><br \/>\nphp.ini\u306e\u7de8\u96c6<br \/>\n\/etc\/php\/7.0\/apache2\/php.ini<br \/>\nmemory_limit = 128M<br \/>\nupload_max_filesize = 128M<br \/>\npost_max_size = 128M<br \/>\n\u3068\u5909\u3048\u307e\u3059\u3002<br \/>\n$ sudo service apache2 restart<br \/>\n\u3067Web\u30da\u30fc\u30b8\u3092\u78ba\u8a8d\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff19\uff0eahache2\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3001\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30c8 <\/span><br \/>\n\u53d6\u3063\u3066\u304a\u3044\u305fmifmif.ddo.jp.conf<br \/>\n\/etc\/apache2\/sites-available\/\u3078<br \/>\n$ sudo a2dissite 000-default<br \/>\n$ sudo a2ensite mifmif.ddo.jp<br \/>\n$ sudo service apache2 restart<br \/>\n\u30ed\u30b0\u30ed\u30fc\u30c6\u30fc\u30c8<br \/>\n\/etc\/logrotate.d\/apache2<br \/>\n\u306e\u7de8\u96c6<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff10\uff0entpd\u95a2\u4fc2 <\/span><br \/>\nchrony\u306b\u5909\u3048\u307e\u3057\u305f\u3002<br \/>\n$ sudo apt-get install chrony<br \/>\nchrony.conf\u53d6\u3063\u3066\u3066\u304a\u3044\u305f\u306e\u3092\/etc\/chrony\/\u3078\u5165\u308c\u308b<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff11\uff0eclamav\u306e\u30b9\u30ad\u30e3\u30f3\u95a2\u9023 <\/span><br \/>\n$ sudo apt-get install msmtp<br \/>\nroot\u306b<br \/>\n\u53d6\u3063\u3066\u304a\u3044\u305f.msmtprc<br \/>\n\u3092\u5165\u308c\u308b<br \/>\n$ sudo apt install clamav clamav-daemon<br \/>\n$ sudo freshclam<br \/>\nERROR: \/var\/log\/clamav\/freshclam.log is locked by another process<br \/>\nERROR: Problem with internal logger (UpdateLogFile = \/var\/log\/clamav\/freshclam.log).<br \/>\n\u304c\u51fa\u308b\u5834\u5408\u3001<br \/>\n$ sudo rm \/var\/log\/clamav\/freshclam.log<br \/>\n$ sudo touch \/var\/log\/clamav\/freshclam.log<br \/>\n$ sudo chown clamav:clamav \/var\/log\/clamav\/freshclam.log<br \/>\n$ sudo nano \/etc\/logrotate.d\/clamav-freshclam<br \/>\n&#8212;<br \/>\ncreate 640 clamav adm<br \/>\n\u3000\u3000\u2193<br \/>\ncreate 640 clamav clamav<br \/>\n&#8212;<br \/>\n\u306e\u5f8c\u3001<br \/>\n$ sudo freshclam<br \/>\nroot\u306b<br \/>\n\u53d6\u3063\u3066\u304a\u3044\u305fclam-full.sh\u3092<br \/>\n\u5165\u308c\u308b<br \/>\n\u3000\u3042\u3068\u3001virus\u9694\u96e2\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u304a\u304f\u3002<br \/>\n$ sudo mkdir \/var\/log\/clamav\/virus<br \/>\n$ sudo chamod 777 \/var\/log\/clamav\/virus<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff12\uff0ehplips<\/span><br \/>\nSource forge\uff08https:\/\/sourceforge.net\/projects\/hplip\/files\/hplip\/\uff09\u304b\u3089\u3001\u6700\u65b0\u3092\u9078\u629e\u3002<br \/>\nhplip-3.18.5.run\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n\u59cb\u3081\u306b\u4e00\u5fdc\u3001apt\u3067\u5165\u308c\u305f\u53e4\u3044hplip\u3092remove\u3057\u307e\u3059\u3002<br \/>\n$ sudo dpkg -l|grep hplip<br \/>\n\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u2015\u30eb\u72b6\u6cc1\u898b\u3066\u3001<br \/>\n$ sudo apt-get &#8211;purge remove hplip<br \/>\n\u306a\u3069\u3068\u3001\u30d1\u30fc\u30b8\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u6b21\u306brun\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n$ cd \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n$ chmod +x  hplip-3.18.5.run<br \/>\n$ .\/hplip-3.18.5.run<br \/>\n\u3053\u308c\u3067\u3001quit\u3057\u306a\u3051\u308c\u3070\u3001bulid\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u5171\u6709\u540d\u306fdeskjet-5600\u306a\u306e\u3067\u6ce8\u610f<br \/>\n\u3007hplip-gui(hp-systray)\u304c\u3001No system tray detected on this system. Unable to start, exiting.\u3092\u30b2\u30ed\u3057\u3066\u52d5\u304b\u306a\u3044\u3002<br \/>\n\u3000Gnome3.26\u304b\u3089\u3001\u30ec\u30ac\u30b7\u30fc\u306e\u30c8\u30ec\u30a4\u304c\u306a\u304f\u306a\u3063\u305f\u305f\u3081\u3067\u306a\u3044\u306e\u3067\u3001\u30c8\u30ec\u30a4\u30a2\u30a4\u30b3\u30f3\u3092\u30c8\u30c3\u30d7\u30d0\u30fc\u306b\u8868\u793a\u3059\u308b\u30b7\u30a7\u30eb\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3092\u3044\u308c\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u4ee5\u524d\u306b\u3084\u3063\u3066\u3042\u308c\u3070\u3084\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3059\u3002<br \/>\n\u3000$ sudo apt-get install chrome-gnome-shell<br \/>\n\u3000\u4ee5\u4e0b\u3092firefox\u3067\u95b2\u89a7<br \/>\n\u3000https:\/\/addons.mozilla.org\/ja\/firefox\/addon\/gnome-shell-integration\/<br \/>\n\u3000firefox\u3078\u8ffd\u52a0\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<br \/>\n\u4ee5\u4e0a<br \/>\nhttps:\/\/extensions.gnome.org\/extension\/1031\/topicons\/<br \/>\n\u306b\u3066gnome-extention\u3092ON\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u9045\u308c\u3066\u52d5\u304f\u3088\u3046\u306b\u3001\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3067\u81ea\u52d5\u8d77\u52d5\u3067\u691c\u7d22\u3001<br \/>\n\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3067\u3001<br \/>\nHP System Tray Service\u3092\u9078\u629e\u3001\u7de8\u96c6\u3067\u3001\u30b3\u30de\u30f3\u30c9\u306b<br \/>\nsh -c &#8220;sleep 20; exec hp-systray -x&#8221;<br \/>\n\u3068\u6253\u3061\u8fbc\u307f\u307e\u3059\u3002<br \/>\n<a href=\"\/masterkudo\/wp-content\/uploads\/img\/hp-systray3.jpg\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"\/masterkudo\/wp-content\/uploads\/img\/hp-systray3.jpg\" alt=\"hp-systray3.jpg\" border=\"0\" width=\"378\" height=\"204\" \/><\/a><br \/>\nhttps:\/\/extensions.gnome.org\/extension\/1031\/topicons\/<br \/>\n\u3092firefox\u3067\u95b2\u89a7\u3001\u8a2d\u5b9a\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u30a6\u30a4\u30f3\u30c9\u30a6\u304c\u51fa\u307e\u3059\u306e\u3067\u3001<br \/>\nTray horizontal alignment\u3092right\u3068\u3059\u308b\u3068<br \/>\n<a href=\"\/masterkudo\/wp-content\/uploads\/img\/traysetting.jpg\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"\/masterkudo\/wp-content\/uploads\/img\/traysettings.jpg\" alt=\"traysetting.jpg\" border=\"0\" width=\"320\" height=\"233\" \/><\/a><br \/>\n\u3046\u307e\u304f\u53f3\u306b\u5bc4\u308a\u307e\u3059\u3002<br \/>\n<a href=\"\/masterkudo\/wp-content\/uploads\/img\/systray.jpg\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" src=\"\/masterkudo\/wp-content\/uploads\/img\/systray.jpg\" alt=\"systray.jpg\" border=\"0\" width=\"298\" height=\"26\" \/><\/a><br \/>\n<span style=\"font-size:x-large;\">\uff11\uff13\uff0ecups <\/span><br \/>\ndeskjet-5600\u3068\u3057\u3066\u5171\u6709\u8a2d\u5b9a\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff14\uff0ecron\u95a2\u4fc2<\/span><br \/>\n$ sudo crontab -e<br \/>\n*\/12 * * * * wget &#8216;http:\/\/free.ddo.jp\/dnsupdate.php?dn=mifmif&#038;pw=******&#8217; -O ddnsupdatelog<br \/>\n*\/12 * * * * \/usr\/bin\/wget -O mydnsupdatelog  &#8216;http:\/\/mydns*******:***********@www.mydns.jp\/login.html&#8217;<br \/>\n*\/12 * * * * cp \/var\/log\/apache2\/* \/publicmnt\/Public\/apachelog\/<br \/>\n00 00 * * 6 \/root\/clam-full.sh<br \/>\n\/root\u306b\u3067\u304d\u308blog\u3092\u898b\u3066\u3001\u81ea\u52d5\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u3001\u78ba\u8a8d\u3002<br \/>\n<span style=\"font-size:x-large;\">\uff11\uff15\uff0e\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb<\/span><br \/>\n$ sudo ufw enable<br \/>\n$ sudo ufw default DENY<br \/>\nfor vnc<br \/>\n$ sudo ufw allow 5900<br \/>\nfor ntp<br \/>\n$ sudo ufw allow ntp<br \/>\nSamba\u3068Cups\u3068Apache<br \/>\n$ sudo ufw allow Samba<br \/>\n$ sudo ufw allow CUPS<br \/>\n$ sudo ufw allow http<br \/>\n<span style=\"font-size:x-large;\">FMV-A8280\u306e\u72ec\u81ea\u306e\u554f\u984c <\/span><br \/>\n\u3000\u4e00\u5ea6\u3075\u305f\u3092\u9589\u3081\u3066\u3001\u958b\u3051\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u753b\u9762\u304c\u5d29\u308c\u307e\u3059\uff08\u30de\u30a6\u30b9\u30dd\u30a4\u30f3\u30bf\u306e\u4e0b\u304c\u4e00\u8272\u306b\u306a\u308b\uff09\u3002\u305f\u3060\u3057\u3001vnc\u3067\u306f\u6b63\u5e38\u3067\u3059\u3002<br \/>\nugrydesktop.jpg<br \/>\n\u3000grubcousomizer\u3067\u3001\u30ab\u30fc\u30cd\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u306bacpi=off\u3092\u5165\u308c\u308b\u3068\u76f4\u308a\u307e\u3057\u305f\u3002\u30bd\u30d5\u30c8\u5074\u306e\u554f\u984c\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e\u5f8c\u306e\u305f\u3081\u306b\u307e\u3068\u3081\u3092\u8f09\u305b\u3068\u304d\u307e\u3059\u3002 \uff11\uff0evino\u306e\u8a2d\u5b9a $ gsettings set org.gnome.Vino require-encryption false \uff12\uff0e\u84cb\u3092\u9589\u3058\u3066\u308b\u3068\u8d77\u52d5\u3057\u306a\u3044 \/etc\/syste [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-371","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371"}],"version-history":[{"count":0,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/371\/revisions"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}