{"id":16598,"date":"2020-11-10T17:46:18","date_gmt":"2020-11-10T08:46:18","guid":{"rendered":"https:\/\/www.ekbt.work\/?p=16598"},"modified":"2024-05-17T18:27:38","modified_gmt":"2024-05-17T09:27:38","slug":"ubuntu%e3%83%9e%e3%82%b7%e3%83%b3%e3%82%92%e5%86%8d%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/ekbt.info\/?p=16598","title":{"rendered":"Ubuntu\u30de\u30b7\u30f3\u3092\u518d\u69cb\u7bc9"},"content":{"rendered":"<p>Ubuntu\u30de\u30b7\u30f3\u3092\u518d\u69cb\u7bc9\u3002<\/p>\n<p>\u3069\u3046\u3082HDD\u3092\u5165\u308c\u66ff\u3048\u305f\u308a\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3057\u3066\u3044\u305f\u3089\u3001samba\u306e\u5171\u6709\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u3044\u3063\u305d\u3046\u306e\u3053\u3068\u307e\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u304a\u3057\u305f\u3002\u3064\u3044\u3067\u306bHDD\u8d77\u52d5\u3068\u3057\u3066\u307f\u305f\u304c\u3001\u8d77\u52d5\u3082\u305d\u308c\u307b\u3069\u9045\u304f\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u307e\u307e\u3064\u304b\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u305f\u3002\u305b\u3063\u304b\u304f\u306eSSD\u306f\u5916\u3057\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u3053\u306e\u524d\u307e\u3067\u306f\u3001\u30b0\u30e9\u30dc\u306e\u30c9\u30e9\u30a4\u30d0\u3082\u81ea\u52d5\u3067\u30c0\u30a6\u30f3\u3057\u3066\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u305f\u3089\u3001\u4eca\u56de\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u304c\u843d\u3061\u308b\u3002\u306a\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306f\u305d\u3046\u3044\u3063\u305f\u8ffd\u52a0\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u3044\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-16604 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2020\/11\/DSC_9278_trccs2.jpg\" alt=\"\" width=\"1195\" height=\"670\" \/> \u300c\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u4ed6\u306e\u30bd\u30d5\u30c8\u30a6\u30a8\u30a2\u300d\u306e\u6240\u3067\u3001\u300c\u30b0\u30e9\u30d5\u30a3\u30af\u30b9\u3068Wifi\u30fb\u30fb\u30fb\u300d\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u305f\u3002<\/p>\n<p>2TB\u306eHDD\u3092\u30e1\u30a4\u30f3\u306b\u3057\u305f\u306e\u3067\u3001\u3053\u308c\u306f2010\u5e74\u88fd\u9020\u306748\u500b\u307b\u3069\u4ee3\u66ff\u30bb\u30af\u30bf\u304c\u3067\u3066\u3044\u308b\u306e\u3067\u3001\u3044\u3064\u307e\u3067\u3082\u3064\u304b\uff1f\uff1f\uff1f\u3060\u3051\u308c\u3069\u3082\u3001\u4eca\u306e\u3068\u3053\u308d\u8abf\u5b50\u306f\u3044\u3044\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16526 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2020\/08\/hds722020_DSC_0383_ccs.jpg\" alt=\"\" width=\"1620\" height=\"1080\" \/><\/p>\n<p>samba\u306e\u5171\u6709\u306f\u3001\u3081\u3093\u3069\u3046\u304f\u3055\u3044\u306e\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306a\u3057\u306e\u30a2\u30af\u30bb\u30b9\u81ea\u7531\u306a\u30e2\u30fc\u30c9\u306b\u3057\u3066\u307f\u305f\u3002<br \/>\n\u6700\u521d\u306f\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af<br \/>\n$ sudo iptables -L<br \/>\n$ sudo ufw status<br \/>\n\u300c\u72b6\u614b: \u975e\u30a2\u30af\u30c6\u30a3\u30d6\u300d\u3068\u51fa\u308c\u3070\u3001\u52d5\u4f5c\u3057\u3066\u304a\u3089\u305a\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u81ea\u7531\u306e\u72b6\u614b\u3002<br \/>\n\u305d\u3057\u3066samba\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16599 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2020\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-11-08-10-00-42.jpg\" alt=\"\" width=\"853\" height=\"603\" \/><\/p>\n<p>$ sudo apt install samba<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7d42\u4e86\u5f8c\u3001\u307e\u305a\u3001\/home\u306b\u5171\u6709\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u6210\u3002<br \/>\n$ sudo mkdir \/home\/share<br \/>\n\u30a2\u30af\u30bb\u30b9\u30e2\u30fc\u30c9\u3092\u5909\u66f4<br \/>\n$ sudo chmod 777 \/home\/share<\/p>\n<p>\u6b21\u306b\u3001samba\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63\uff08nano\u4f7f\u7528\uff09<br \/>\n$ sudo nano \/etc\/samba\/smb.conf<\/p>\n<p>\u4fee\u6b63\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u306e\u6240<\/p>\n<p>[global]<br \/>\nunix charset = UTF-8\u3000\u3000\uff1c\u30fc\u8ffd\u52a0<br \/>\ndos charset = CP932\u3000\u3000\uff1c\u30fc\u8ffd\u52a0<br \/>\n## Browsing\/Identification ###<br \/>\n# Change this to the workgroup\/NT-domain name your Samba server will part of<br \/>\nworkgroup = XXX\u3000\u3000\u3000\uff1c\u30fc\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u540d<br \/>\n# server string is the equivalent of the NT Description field<br \/>\nserver string = %h server (Samba, Ubuntu)<br \/>\nnetbios name = YYY\u3000\u3000\u3000\uff1c\u30fc\u30cd\u30c3\u30c8\u30d0\u30a4\u30aa\u30b9\u540d<br \/>\n#### Networking ####<br \/>\n# The specific set of interfaces \/ networks to bind to<br \/>\n# This can be either the interface name or an IP address\/netmask;<br \/>\n# interface names are normally preferred<br \/>\ninterfaces = 127.0.0.0\/8 192.168.0.0\/24\u3000\u3000\u3000\uff1c\u30fc\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u7bc4\u56f2\u306b\u5408\u308f\u305b\u308b<br \/>\n# This option controls how unsuccessful authentication attempts are mapped<br \/>\n# to anonymous connections<br \/>\nmap to guest = bad user\u3000\u3000\u3000\u3000\uff1c\u30fc\u3053\u3053\u306f\uff03\u304c\u3042\u3063\u305f\u3089\u524a\u9664<\/p>\n<p>\u6700\u5f8c\u306e\u884c\u306b\u8ffd\u52a0\u3067\u5171\u6709\u306e\u8a2d\u5b9a\u3092\u66f8\u304f<\/p>\n<p>[share]<br \/>\npath = \/home\/share<br \/>\nwritable = yes<br \/>\nguest ok = yes<br \/>\nguest only = yes<br \/>\nforce create mode = 777<br \/>\nforce directory mode = 777<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16600 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2020\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-11-08-10-14-57.jpg\" alt=\"\" width=\"846\" height=\"603\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001samba\u306e\u8d77\u52d5<br \/>\n$ sudo systemctl restart smbd<\/p>\n<p>Windows\u30de\u30b7\u30f3\u306b\u79fb\u52d5\u3057\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306bUbuntu\u30de\u30b7\u30f3\u306eIP\u3092\u5165\u308c\u3066\u3001\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u898b\u3048\u308c\u3070\u52d5\u4f5cOK\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16602 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2020\/11\/share-win20201110-1b.jpg\" alt=\"\" width=\"1151\" height=\"713\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u5f8c\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30c7\u30fc\u30bf\u3092\u66f8\u3044\u305f\u308a\u3057\u3066\u30c6\u30b9\u30c8\u4e2d\u3002<\/p>\n<p>\u4eca\u306e\u3068\u3053\u308d\u9806\u8abf\u306b\u52d5\u4f5c\u3002SSD\u8d77\u52d5\u3088\u308a\u3082\u82e5\u5e72\u9045\u3044\u304c\u3001Linux\u306f\u8efd\u3044\u306e\u3067\u3001Windows\u306e\u3088\u3046\u306b\u5ef6\u3005\u3068\u5f85\u305f\u3055\u308c\u308b\u307b\u3069\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u30de\u30b7\u30f3\u3092\u518d\u69cb\u7bc9\u3002 \u3069\u3046\u3082HDD\u3092\u5165\u308c\u66ff\u3048\u305f\u308a\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3057\u3066\u3044\u305f\u3089\u3001samba\u306e\u5171\u6709\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u3044\u3063\u305d\u3046\u306e\u3053\u3068\u307e\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u304a\u3057\u305f\u3002\u3064\u3044\u3067\u306bHDD\u8d77\u52d5\u3068\u3057\u3066\u307f\u305f\u304c\u3001\u8d77\u52d5\u3082\u305d\u308c\u307b\u3069\u9045\u304f\u306a\u3044\u306e &hellip; <a href=\"https:\/\/ekbt.info\/?p=16598\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Ubuntu\u30de\u30b7\u30f3\u3092\u518d\u69cb\u7bc9&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":18385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[139,10],"tags":[98,412,102,303],"class_list":["post-16598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-win-pc-web","tag-linux","tag-samba","tag-ubuntu","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/16598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16598"}],"version-history":[{"count":2,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/16598\/revisions"}],"predecessor-version":[{"id":18709,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/16598\/revisions\/18709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/media\/18385"}],"wp:attachment":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}