{"id":1742,"date":"2023-04-01T08:50:08","date_gmt":"2023-03-31T23:50:08","guid":{"rendered":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1742"},"modified":"2023-04-01T08:57:00","modified_gmt":"2023-03-31T23:57:00","slug":"post-1742","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1742","title":{"rendered":"\u7c21\u5358\u4fbf\u5229\u5b9f\u7528\u7684\u306a\u81ea\u5b85\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306e\u4f5c\u6210\u8aac\u660e\u3002Making-explanation of a simple and practical home file server."},"content":{"rendered":"<hr \/>\n<hr \/>\n<hr \/>\n<p>\u3000\u5b50\u4f9b\u306e\u5199\u771f\u3084\u52d5\u753b\u3068\u304b\u3001\u30b9\u30de\u30db\u6301\u3063\u3066\u308b\u3068\u3044\u3063\u3071\u3044\u64ae\u3063\u3061\u3083\u3044\u307e\u3059\u3088\u306d\u3002\u305d\u308c\u306b\u3001\u6301\u3063\u3066\u308b\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u304b\u3001\u3044\u3056\u3068\u8a00\u3046\u6642\u3092\u8003\u3048\u3066\u3068\u3063\u3066\u8d77\u304d\u305f\u3044\u3067\u3059\u3002\u3067\u3082USB\u306eHDD\u306f\u3069\u3053\u306e\u3069\u308c\u3084\u3089\u306b\u306a\u308a\u305d\u3046\u3060\u3057\u3001\u300cNAS\u3092\u8cb7\u3048\u3070\uff1f\u300d\u3068\u8a00\u308f\u308c\u3066\u3082\u3001\u305d\u3053\u3060\u3051\u306b\u5199\u771f\u3068\u304b\u3092\u6301\u3063\u3066\u3044\u3063\u305f\u3089\u3001HDD\u5225\u306b\u51fa\u6765\u306a\u3044\u304b\u3089\u66f4\u306b\u305d\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3088\u3046\u306eNAS\u304c\u3044\u308b\u3093\u3067\u3059\u3088\u306d\u3002\u300cRAID\u3067\u3044\u3044\u3058\u3083\u3093\u300d\u3063\u3066\u77e5\u3063\u305f\u304b\u3076\u308a\u3057\u3066\u308b\u65b9\u3001\u3042\u308c\u3063\u3066\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u306a\u3044\u3093\u3067\u3059\u3088\u3002\u3061\u3087\u3063\u3068\u6065\u305a\u304b\u3057\u3044\u9593\u9055\u3048\u3067\u3059\u3088\u3002<br \/>\nEveryone and I. We take a lot of photos and videos of our children when we have smartphones. Besides, we want to take a backup of the laptop computer we have and think about when it comes to emergency. But you think it&#8217;s troublesome to manage which USB HDD you put it in? Some people say, &#8220;Why don&#8217;t you just buy a NAS?&#8221; But we stored photos and such only on that NAS. However, NAS cannot store data separately for each HDD. Then you need yet another NAS for backup of that NAS. It&#8217;s expensive and troublesome. Those who pretend to know that &#8220;RAID is fine&#8221;, that&#8217;s not a backup. It&#8217;s an embarrassing mistake.<\/p>\n<p>\u3000\u3053\u3053\u3067\u81ea\u4f5c\u30d1\u30bd\u30b3\u30f3\u3092\u4f7f\u3046\u306e\u4eba\u306e\u3053\u3068\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u30025\u304b\u308910\u5e74\u304f\u3089\u3044\u3067CPU\u304c\u53e4\u304f\u306a\u308a\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u305f\u6570\u53f0\u306e\u30d1\u30bd\u30b3\u30f3\u304c\u5165\u308c\u66ff\u308f\u308a\u307e\u3059\u3002\u79c1\u306f\u304a\u91d1\u3092\u7bc0\u7d04\u3057\u305f\u3044\u306e\u3067\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u3001\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u3092\u5165\u308c\u66ff\u3048\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u53e4\u3044\u65b9\u306e\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u306f\u304a\u4e0b\u304c\u308a\u306e\u30b1\u30fc\u30b9\u306b\u5165\u308c\u307e\u3059\u3002\u305d\u306e\u7e70\u308a\u8fd4\u3057\u3092\u4f55\u53f0\u304b\u3059\u308c\u3070\u3001\u53e4\u3044\u306e\u306f\u3061\u3087\u3046\u3069Windows\u306b\u306f\u4f7f\u3044\u305f\u304f\u306a\u3044\u3051\u308c\u3069\u3001Linux\uff08UBUNTU\uff09\u304c\u3046\u3054\u304f\u30d1\u30bd\u30b3\u30f3\u304c\u4f59\u308b\u306e\u3067\u3059\u3002\u3053\u308c\u306bHDD\u3092\u305f\u304f\u3055\u3093\u3064\u306a\u3052\u3070\u3069\u3046\u3084\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306b\u3067\u304d\u3066\u3001\u76ee\u7684\u306f\u9054\u6210\u3067\u304d\u305d\u3046\u3067\u3059\u3002<br \/>\nNow think about a hobbyist who builds their own personal computer. In about 5 to 10 years, the CPU will get old and some computers that were actually used will be replaced. I want to save money so most of the time I only replace the motherboard. Then put the old motherboard in a hand-me-down case. I do a few repetitions of that. Then, although it is old and I do not want to use it for Windows, I want to run Linux (UBUNTU). That has just the specs for Linux, and that PC is surplus. If many HDDs are connected to this, it can be used as a file server, and as a result, the purpose seems to be achieved.<\/p>\n<p>\u3000\u6b32\u3057\u3044\u6a5f\u80fd\u306f\u3053\u3046\u3044\u3046\u3082\u306e\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u3067\u3001\u3057\u304b\u3082HDD\u304c1\u3064\u305a\u3064\u304c\u3044\u3063\u307a\u3093\u306b\u898b\u6e21\u305b\u308b\u3088\u3046\u306b\u3001HDD\u304c\u30d5\u30a9\u30eb\u30c0\u5358\u4f4d\u3067\u307e\u3068\u307e\u3063\u3066\u308b\u3053\u3068\u3002\u305d\u3057\u3066\u3057\u304b\u3082\u3001HDD1\u30641\u3064\u3092\u3069\u306e\u304f\u3089\u3044\u4f7f\u3063\u3066\u308b\u306e\u304b\u308f\u304b\u308b\u3053\u3068\u3002\u305d\u3046\u3059\u308c\u3070\u3001HDD\u3092\u30da\u30a2\u306b\u3057\u3066\u304a\u4e92\u3044\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u3051\u3070\u3001\u3069\u3061\u3089\u304b\u304c\u58ca\u308c\u305f\u6642\u306b\u66f8\u304d\u623b\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u305d\u3046\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u304c\u826f\u3044\u3067\u3059\u306d\u3002<br \/>\nThe functionality we want is something like this. It is a file server, and the HDDs are as folders, so that we can see the each HDD from conectted drive at once. And what&#8217;s more, we can see how much we&#8217;re using each HDD. That way, if you pair the HDDs and back them up to each other, we can write them back if one of them fails. That kind of file server is we want.<\/p>\n<p>\u3000\u5b9f\u969b\u306b\u79c1\u306f\u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u309210\u5e74\u4ee5\u4e0a\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u305d\u306e\u30b5\u30fc\u30d0\u306e\u4f5c\u308a\u304b\u305f\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u3053\u304b\u3089\u306f\u3001\u7528\u8a9e\u304c\u7406\u89e3\u51fa\u6765\u308b\u4eba\u5411\u3051\u306b\u306a\u3063\u3061\u3083\u3044\u307e\u3059\u3002\u3082\u3057\u5168\u90e8\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304c\u5fc5\u8981\u306a\u65b9\u306f\u3001\u8a73\u3057\u304f\u8aac\u660e\u3057\u305fYoutube\u52d5\u753b\u3092\u5f8c\u306b\u8f09\u305b\u305f\u306e\u3067\u898b\u3066\u304f\u3060\u3055\u3044\u306d\u3002<br \/>\nIn fact I&#8217;ve been using such fileservers for over ten years. This time I will explain how to make this fileserver. From here on, it will be for those who can understand the terminology. If you want the full tutorial, I&#8217;ve posted a detailed YouTube video below.<\/p>\n<p>\uff10\uff0e\u4e0b\u6e96\u5099<br \/>\n<span class=\"Y2IQFc\" lang=\"en\">0. preparation<br \/>\n\u3000\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408\u3001\u307e\u305aUBUNTU22.04LTS\u304c\u52d5\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u6271\u3046\u60c5\u5831\u306e\u901f\u5ea6\u304c\u5fc5\u8981\u306a\u305f\u3081\u5c11\u306a\u304f\u3068\u3082core i\u304b\u3089\u306eCPU\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u79c1\u306e\u5834\u5408\u3001\u6614\u306b\u30e1\u30a4\u30f3\u306b\u4f7f\u3063\u3066\u3044\u305f\u30d1\u30bd\u30b3\u30f3\u304c\u304a\u4e0b\u304c\u308a\u3067\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306b\u306a\u308a\u307e\u3057\u305f\u3002HDD\u3092\u305f\u304f\u3055\u3093\u3064\u3051\u308b\u3053\u3068\u3068 <\/span><span class=\"Y2IQFc\" lang=\"en\">2.5Gb LAN\u306e\u305f\u3081\u306b\u5c11\u3057\u3060\u3051\u624b\u3092\u52a0\u3048\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\nWhen using as a file server, UBUNTU22.04LTS must be booted first. Also, since the speed of handling information is necessary, at least a CPU from core i is good maybe. In my case, the computer that I used to use as my main computer was handed down and became this file server. I modified it a little bit for adding lots of HDDs and 2.5Gb LAN.a<br \/>\n<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>CPU:Core i7-3700k\r\nRAM:24GB\uff088GBx2,4GBx2\uff09\r\nGPU:Nvidia GeForce GT 710\r\nSSD:HP SSD 2.5'' 250GB(System)\r\nServiceHDD\r\n      WD20EZRX-1 2TB\r\n      WD20EZRX-2 2TB\r\n      WD30EZRZ-1 3TB\r\n      WD30EZRX-1 3TB\r\n      WD40EZRZ-1 4TB\r\n      WD40EZRZ-2 4TB\r\n      ST4000DM004-1 4TB\r\n      ST2000DM005-1 2TB\r\n              total 24TB\r\nUSB3.0Card:USB 3.0 Host Controller:Renesas uPD720201\r\n2.5Gb\/s LAN:RSHTECH USB3.0 to Ethernet Adapter WF-A25<\/code><\/pre>\n<\/div>\n<p><span class=\"Y2IQFc\" lang=\"en\"> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e.png\" alt=\"\" class=\"alignnone size-full wp-image-1753\" width=\"1238\" height=\"839\" srcset=\"https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e.png 1238w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-300x203.png 300w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-1024x694.png 1024w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-768x520.png 768w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-530x359.png 530w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-565x383.png 565w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-710x481.png 710w, https:\/\/mifmif.mydns.jp\/masterkudo\/wp-content\/uploads\/2023\/04\/c81e1b5aef3555baa266ddfe81aa793e-725x491.png 725w\" sizes=\"auto, (max-width: 1238px) 100vw, 1238px\" \/><\/span><\/p>\n<p style=\"padding-left: 40px;\">\n<p>\u3000\u307e\u305f\u3001\u4ee5\u524d\u306e\u8a18\u4e8b\u901a\u308a\u30b5\u30fc\u30d0\u5316\u3057\u3066\u3042\u3063\u3066\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3067\u898b\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u30ea\u30f3\u30af\u3092\u5f35\u3063\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nAlso, as in the previous article, it must be serverized so that it can be viewed with remote desktop. I will write the link below.<br \/>\n<a href=\"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1727\">\u3007\u4e2d\u53e4\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u3092\u4f7f\u3063\u3066UBUNTU\u3067\u304a\u6c17\u697d\u7c21\u5358\u81ea\u5b85\u30b5\u30fc\u30d0\u3092\u4f5c\u308d\u3046\u3002\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u8a2d\u5b9a\u7de8\u3001Let\u2019s make a comfortable and easy home server with UBUNTU using a used laptop. Remote desktop setting<\/a><\/p>\n<p>\uff11\uff0e\u3064\u306a\u3052\u305f\u30b5\u30fc\u30d0\u7528\u306eHDD\u3092ext4\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b<br \/>\n1. Format the HDD for the connected server with ext4<br \/>\n\u3000\u30b5\u30fc\u30d0\u7528\u306b\u3064\u306a\u3052\u305fHDD\uff08\u3053\u3053\u3067\u306f\u305d\u306e\u540d\u524d\u3092hddname-1,hddname-2,hddname-3&#8230;\u4eee\u5b9a\u3068\u3057\u3066\u307e\u3059\uff09\u3092gparted\u3067GPT,ext4\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u307e\u3059\u3002\u8cb7\u3063\u3066\u304d\u3066\u3064\u306a\u3052\u305f\u5834\u5408\u307b\u3068\u3093\u3069\u306e\u5834\u5408Windows\u7528\u306bNTFS\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3055\u308c\u3066\u3042\u308b\u306e\u3067ext4\u306b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u306a\u304a\u3057\u307e\u3057\u3087\u3046\u3002\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u65ad\u5316\u304c\u8d77\u3053\u308a\u306b\u304f\u3044\u306e\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5f62\u5f0f\u306fext4\u304c\u3088\u3044\u3067\u3059\u3002\uff09<br \/>\nFormat the HDD connected for the server (here the names are hddname-1, hddname-2, hddname-3&#8230;) with gparted with GPT, ext4. If you buy and connect it, in most cases it is formatted with NTFS for Windows, so let&#8217;s format it again with ext4. (ext4 is a good format, as it is less likely that the file will be fragmented.)<\/p>\n<p>\uff12\uff0e\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u3063\u3066\u30de\u30a6\u30f3\u30c8\u7528\u306b\/etc\/fstab\u3092\u7de8\u96c6\u3059\u308b<br \/>\n2. Create a mount point and edit \/etc\/fstab for mounting<br \/>\n\u3000\u30de\u30a6\u30f3\u30c8\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002\uff08\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u308c\u3070\u3044\u3044\u3067\u3059\uff09\u3053\u3053\u3067\u306f\u3001\u30eb\u30fc\u30c8\u306bfileserver\u3092\u4f5c\u308a\u3001\u305d\u306e\u4e0b\u306bHDD\u306e\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u30923\u3064\u4f5c\u308a\u307e\u3057\u305f\u3002\u3082\u3061\u308d\u3093\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u306b\u3057\u3066\u3001\u30b2\u30b9\u30c8\u3067\u3082\u5165\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nCreate a mount point. (You can create a folder) Here, I created a fileserver in the root and created three folders with the names of the HDDs under it. Of course, make it full access so that even guests can enter.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cd \/\r\n$ sudo mkdir fileserver\r\n$ sudo chmod 777 fileserver\r\n$ cd fileserver\r\n$ mkdir hddname-1\r\n$ mkdir hddname-2\r\n$ mkdir hddname-3\r\n...\r\n$ chmod 777 *<\/code><\/pre>\n<\/div>\n<p>\u3000\u3064\u304e\u306f\u3001drive\u30a2\u30d7\u30ea\u3084blkid\u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30fc\u30d0\u7528HDD\u306eUUID\u3092\u3057\u3089\u3079\u3066\u3001\/etc\/fstab\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\nNext, check the UUID of the server HDD with the drive app or blkid command and edit \/etc\/fstab.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo gedit \/etc\/fstab\r\n------\r\n# For Fileserver service(example)\r\nUUID=5d54e21d-c493-406d-8f5a-0f9a80940f41 \/fileserver\/hddname-1 ext4 errors=remount-ro 0 1\r\nUUID=ce480c10-6161-412c-85a9-90dd5a875cbc \/fileserver\/hddname-2 ext4 errors=remount-ro 0 1\r\nUUID=3e42c71e-649c-4edd-b204-2833d0d68c1e \/fileserver\/hddname-3 ext4 errors=remount-ro 0 1\r\n...\r\n------<\/code><\/pre>\n<\/div>\n<p>\u3000\u518d\u8d77\u52d5\u306a\u3069\u3057\u3066\uff08mount -a\u3067\u3082\u3044\u3044\u3068\u601d\u3044\u307e\u3059\uff09\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<br \/>\nMount it by rebooting (or &#8220;mount -a&#8221; is OK, I think).<\/p>\n<p>\uff13\uff0e\u30de\u30a6\u30f3\u30c8\u5f8c\u306eHDD\u306e\u30e2\u30fc\u30c9\u3082\u5168\u54e1\u304c\u5165\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n3. After mounting, set the mode so that everyone can enter the HDD.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cd \/\r\n$ cd fileserver\r\n$ chmod 777 *\r\n$ ls -al\r\n(check mode of mounted HDDs)<\/code><\/pre>\n<\/div>\n<p>\uff14\uff0eSamba\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3001\u305d\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\uff08\/etc\/samba\/smb.conf\uff09\u306e\u8a2d\u5b9a<br \/>\n4. Install Samba and edit its configuration file (\/etc\/samba\/smb.conf)<br \/>\n\u3000Samba\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\nInstall Samba as follows.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo apt install samba<\/code><\/pre>\n<\/div>\n<p>\u3000Samba\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u5fdc\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u3001\u5185\u5bb9\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<br \/>\nMake a backup copy of the Samba configuration file and edit the contents as follows.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cd \/etc\/samba\r\n$ sudo smb.conf smb.bak.conf\r\n$ sudo gedit smb.conf<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>\u30ef\u30fc\u30af\u30b0\u30eb\u30fc\u30d7\u3092\u66f8\u304d\u63db\u3048\u3066\u304a\u304f\u3002\r\nChange workgroup.\r\n------\r\n# Change this to the workgroup\/NT-domain name your Samba server will part of\r\nworkgroup = ZUNDANET\r\n------\r\n\u4ee5\u4e0b\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff08\u30b2\u30b9\u30c8\u304c\u5165\u308c\u308b\u305f\u3081\u306b\uff09\r\nCheck below (for guests to enter)\r\n------\r\n# This option controls how unsuccessful authentication attempts are mapped\r\n# to anonymous connections\r\nmap to guest = bad user\r\n------\r\n\u3053\u308c\u3092[global]\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u66f8\u304d\u8db3\u3059\u3002\uff08\u30b2\u30b9\u30c8\u306e\u30a2\u30af\u30bb\u30b9\u306e\u305f\u3081\u306b\uff09\r\nAdd this to the [global] section. (for guest access)\r\n------\r\n# public shares, not just authenticated ones\r\nusershare allow guests = yes\r\n------\r\nfileserver\u3068\u3044\u3046\u540d\u524d\u3067\u5171\u6709\u3067\u304d\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u3092\u66f8\u304d\u8db3\u3059\u3002\uff08\u30b2\u30b9\u30c8\u3082\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3001Mac\u306e\u3054\u307f\u30d5\u30a1\u30a4\u30eb\u306f\u62d2\u5426\u3059\u308b\uff09\r\nAdd the following so that it can be shared under the name fileserver. (guests also have full access and deny mac junk files)\r\n[Fileserver]\r\ncomment = Fileserver on zundamon-fileserver(example)\r\npath = \/fileserver\/\r\nwritable = yes\r\nguest ok = yes\r\nguest only = yes\r\ncreate mode = 0777\r\ndirectory mode = 0777\r\nveto files = \/._*\/.DS_Store<\/code><\/pre>\n<\/div>\n<p>\uff15\uff0eSamba\u306e\u5bb9\u91cf\u306e\u8a08\u7b97\u30b9\u30d7\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u3001\u305d\u308c\u3092Samba\u306b\u767b\u9332\u3059\u308b\u3002\uff08\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u7528HDD\u306e\u5bb9\u91cf\u3068\u7a7a\u304d\u5bb9\u91cf\u306e\u8a08\u7b97\u3092Samba\u5916\u90e8\u3067\u3059\u308b\uff09<br \/>\n5. Create a Samba capacity calculation script and register it with Samba. (Calculate the capacity and free space of all server HDDs,informed that to Samba)<\/p>\n<p>\u3000\u307e\u305agawk\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\uff08awk\u304c\u304d\u3061\u3093\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u898f\u683c\u306e\u6574\u6570\u306e\u8a08\u7b97\u3092\u3057\u306a\u3044\u305f\u3081\u3067\u3059\u3002\uff09\u305d\u3057\u3066\u3001\u300c\/etc\/samba\u300d\u4e0a\u306bSamba\u306b\u5bb9\u91cf\u8a08\u7b97\u3092\u3057\u305f\u5f8c\u306e\u5024\u3092\u5f15\u304d\u6e21\u3059\u8a08\u7b97\u3092\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u300cdfree.sh\u300d\u3092\u4f5c\u3063\u3066\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u305d\u308c\u3092Samba\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8db3\u3057\u307e\u3059\u3002<br \/>\nFirst install gawk. (This is because awk does not properly calculate the default standard integer.) And create a script &#8220;dfree.sh&#8221; to pass the value after calculating the capacity to Samba on &#8220;\/etc\/samba&#8221; test. Finally add it to the Samba configuration file.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo apt install gawk\r\n$ cd \/etc\/samba\r\n$ sudo gedit dfree.sh\r\n----contens of drfee.sh-----\r\n#!\/bin\/bash\r\ndf |grep \/fileserver |gawk '{total= total+ $2}{available = available + $4}END{printf \"%d %d \\n\",total,available}'\r\n-----\r\n$ sudo chmod 777 dfree.sh\r\n$ .\/dfree.sh\r\n61393020 52054368\r\n\uff08\u4eee\u306b\u30d5\u30a1\u30a4\u30eb\u3092HDD\u306b\u5165\u308c\u3066\u304a\u3044\u305f\u306e\u3067\u3001\u3053\u306e\u7d50\u679c\u3067\u554f\u984c\u306f\u3042\u308a\u307e\u305b\u3093\uff09\r\n(Because I put on the test file to the HDDs for server, so this result was outputed.It is OK.)\r\n<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ cd \/etc\/samba\r\n$ sudo gedit smb.conf\r\n\uff08\u3053\u306e\u5185\u5bb9\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u66f8\u304d\u8db3\u3059\uff09\r\n(Add this content to the global section)\r\n------\r\n# for calc. diskspace\r\ndfree command = \/etc\/samba\/dfree.sh\r\n------<\/code><\/pre>\n<\/div>\n<p>\uff16\uff0eSamba\u518d\u8d77\u52d5\u3068\u5185\u5bb9\u306e\u30c1\u30a7\u30c3\u30af<br \/>\n6. Restart Samba and check contents of Samba configration file<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo service smbd restart\r\n$ sudo service nmbd restart\r\n$ testperm\r\n...\r\n...<\/code><\/pre>\n<\/div>\n<p>\uff17\uff0e\u30d5\u30a1\u30a4\u30e4\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\uff08\u898f\u5247\u3092\u3064\u3051\u305f\u3059\uff09<br \/>\n7. Firewall settings (adding rules)<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo ufw allow Samba\r\n$ sudo ufw status\r\n...<\/code><\/pre>\n<\/div>\n<p>\uff18\uff0e\u8a2d\u5b9a\uff0d\u5171\u6709\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u540d\u3092\u6c7a\u3081\u308b\u3002<br \/>\n8. Set the computer name in Settings &#8211; Sharing.<br \/>\n\u3000\u30c8\u30c3\u30d7\u30d0\u30fc\u306e\u5de6\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u8a2d\u5b9a\u30a6\u30a4\u30f3\u30c9\u30a6\u3092\u51fa\u3057\u3066\u3001\u5de6\u30da\u30a4\u30f3\u306e\u5171\u6709\u3092\u62bc\u3057\u3066\u3001\u53f3\u30da\u30a4\u30f3\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u540d\u3092\u5909\u3048\u307e\u3059\u3002\uff08\u3053\u308c\u304c\u3001\u5171\u6709\u30d5\u30a1\u30a4\u30eb\u4e0a\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u540d\u306b\u306a\u308a\u307e\u3059\u3002\uff09\u3053\u3053\u3067\u306f\u3001zundaserver\u3068\u3057\u307e\u3057\u305f\u3002<br \/>\nClick the left side of the top bar to bring up the setting window, press Sharing on the left pane, and change the computer name on the right pane. (This will be the computer name on the shared file.) Here, I seted it zundaserver.<\/p>\n<p>\uff19\uff0e\u518d\u8d77\u52d5\u3057\u3066\u30a8\u30e9\u30fc\u304c\u306a\u3044\u304b\u78ba\u304b\u3081\u308b\u3002Windows\u304b\u3089\u30c9\u30e9\u30a4\u30d6\u3068\u3057\u3066\u5272\u308a\u5f53\u3066\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u78ba\u304b\u3081\u308b\u3002<br \/>\n9. Reboot and check for no errors. Assign this server as a drive from Windows and check the properties.<br \/>\n\u3000\u518d\u8d77\u52d5\u3057\u3066\u3001\u5168\u4f53\u306e\u30a8\u30e9\u30fc\u304c\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u554f\u984c\u306a\u3051\u308c\u3070\u3001Windows\u3067\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\nTry rebooting and see if there are any overall errors. If there is no problem, try file sharing on Windows.<br \/>\n\u3000Windows\u4e0a\u3067\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u3092\u8d77\u52d5\u3057\u3001\u5de6\u30da\u30a4\u30f3\u306e\u300cPC\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002\u53f3\u30da\u30a4\u30f3\u306e\u4f55\u3082\u306a\u3044\u5834\u6240\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5834\u6240\u3092\u8ffd\u52a0\u3059\u308b\u300d\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u300c\uffe5\uffe5zundaserver\uffe5fileserver\u300d\u3068\u6307\u5b9a\u3059\u308b\u3002\u305d\u3046\u3059\u308b\u3068\u4eca\u4f5c\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306b\u3064\u306a\u304c\u308a\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u304c\u958b\u3044\u3066\u4e2d\u304c\u898b\u3048\u307e\u3059\u3002HDD\u306e\u540d\u524d\u3067\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nStart Explorer on Windows and click &#8220;This PC&#8221; in the left pane. If you right-click on an empty place in the right pane, &#8220;Add network location&#8221; will appear, so specify &#8220;\\\\zundaserver\\fileserver&#8221;.Then explorer is connected to the file server you created now and open Explorer automatically,and check explorer to see the inside. Make sure you have a folder with the name of your HDD.<br \/>\n\u3000\u3064\u304e\u306b\u3001\u524d\u306e\u300cPC\u300d\u3092\u6307\u5b9a\u3057\u305f\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u306e\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u30fb\u30fb\u30fb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c9\u30e9\u30a4\u30d6\u306e\u5272\u308a\u5f53\u3066\u3092\u300d\u9078\u629e\u3057\u307e\u3059\u3002\u540c\u3058\u304f\u300c\uffe5\uffe5zundaserver\uffe5fileserver\u300d\u3068\u6307\u5b9a\u3057\u307e\u3059\u3002\u3059\u3050\u306b\u305d\u306e\u30c9\u30e9\u30a4\u30d6\u306e\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304c\u958b\u304d\u307e\u3059\u3002\u3055\u304d\u307b\u3069\u306e\u6642\u3068\u540c\u3058\u3088\u3046\u306b\u3001HDD\u306e\u540d\u524d\u306e\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001\u524d\u306e\u300cPC\u300d\u3092\u6307\u5b9a\u3057\u305f\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u306b\u3001\u300czundaserver\u306efaileserver\u300d\u3042\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u30a6\u30a4\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002\u5168\u4f53\u306e\u5bb9\u91cf\u8a08\u7b97\u304c\u5408\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nNext, click &#8220;&#8230;&#8221; in the explorer menu that specified the previous &#8220;PC&#8221; and select &#8220;Map network drive&#8221;. Similarly, specify &#8220;\\\\zundaserver\\fileserver&#8221;. Explorer for that drive will open immediately. As before, confirm that there is a folder with the name of the HDD and close it. Next, in the explorer that specified the previous &#8220;PC&#8221;, there is &#8220;zundaserver&#8217;s faileserver&#8221;, so right-click on it to display the &#8220;Properties&#8221; window. Make sure the HDD&#8217;s size calculations of adding them collect.<\/p>\n<p>\uff11\uff10\uff0eGnome-extention\u3067CPU\u6e29\u5ea6\u3092\u8868\u793a\u3055\u305b\u3066\u304a\u304f\u3002<br \/>\n10. Display CPU temperature with Gnome-extension.<br \/>\n\u3000Gnome-extention\u3067Resource Moniter\u3092\u5165\u308c\u3066\u3001\u30b5\u30fc\u30d0\u3068\u3057\u3066\u4e00\u756a\u628a\u63e1\u3057\u3066\u304a\u304d\u305f\u3044CPU\u6e29\u5ea6\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<br \/>\nInstall Resource Monitor with Gnome-extension and display the CPU temperature that you want to know the most as a server.<br \/>\n\u3000\u7c21\u5358\u306bUbuntu-Software\u3067Extention-manager\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u30e9\u30f3\u30c1\u30e3\u3067\u305d\u308c\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002Resource Moniter\u3092\u305d\u306e\u30a2\u30d7\u30ea\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u30c8\u30c3\u30d7\u30d0\u30fc\u306bCPU\u306a\u3069\u306e\u8868\u793a\u304c\u3067\u307e\u3059\u3002<br \/>\nInstall Extension-manager with Ubuntu-Software easily. Launch it with Launcher. Let&#8217;s install Resource Monitor with that app. You can see the CPU on the top bar.<br \/>\n\u3000CPU\u6e29\u5ea6\u306a\u3069\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3055\u305b\u308b\u306b\u306f\u3001\u30bb\u30f3\u30b5\u30fc\u7528\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u69d8\u306b\u6253\u3061\u8fbc\u3093\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\nTo get hardware information such as CPU temperature, you need a command for the sensor, so type the following to install it.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo apt install lm-sensors<\/code><\/pre>\n<\/div>\n<p>\u3000\u3042\u3068\u306f\u3001\u30c8\u30c3\u30d7\u30d0\u30fc\u306eResource Moniter\u306e\u8868\u793a\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u51fa\u3057\u307e\u3059\u3002\u79c1\u306f\u30a2\u30a4\u30b3\u30f3\u306f\u5de6\u8868\u793a\u306b\u3055\u305b\u3066\u3001\u30e1\u30e2\u30ea\u3068HDD\u306f\u30d5\u30ea\u30fc\u30b9\u30da\u30fc\u30b9\u3092\u8868\u793a\u3055\u305b\u3066\u3001\u30cd\u30c3\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u306e\u8868\u793a\u3092\u3055\u305b\u3066\u3001CPU\u6e29\u5ea6\u306b\u3064\u3044\u3066\u306fcoretemp:Package\u3068\u66f8\u3044\u3066\u3042\u308b\u5168\u4f53\u306e\u6e29\u5ea6\u3092\u8868\u793a\u3055\u305b\u307e\u3057\u305f\u3002<br \/>\nAfter that, click the display part of Resource Monitor on the top bar to display the settings. I set the icon to the left, the memory and HDDs to display as free space, the net to display as default, and the CPU temperature to display the overall temperature written as coretemp:Package. <\/p>\n<p>\uff11\uff11\uff0e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306e\u30b5\u30fc\u30d3\u30b9\u7528HDD\u3054\u3068\u306e\u5229\u7528\u7387\u3001\u5229\u7528\u5bb9\u91cf\u3001\u5168\u4f53\u5bb9\u91cf\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3092\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u8868\u793a\u3055\u305b\u308b\u3002<br \/>\n11. Display indicators of usage rate, used capacity, and total capacity for each service HDD of the file server on the desktop.<br \/>\n\u3000\u300c\u30de\u30b9\u30bf\u30fc\u30af\u30c9\u30a6\u306e\u30da\u30fc\u30b8\u300d\u3092Web\u691c\u7d22\u3057\u3001\u300c<a href=\"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1737\">Fileserver\u3067\u306e\u5bb9\u91cf\u78ba\u8a8d\u306econky\uff08lua\uff09\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3000conky (lua) script for checking capacity on Fileserver<\/a>\u300d\u304b\u3089\u3001\u300cdiskspace-conky.zip\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3057\u3066\u3001\u81ea\u5206\u306e\u30db\u30fc\u30e0\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u300cconky\u300d\u306e\u5168\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u3000Search the web for &#8220;Master Kudou&#8217;s page&#8221; and download &#8220;diskspace-conky.zip&#8221; from &#8220;<a href=\"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1737\">conky (lua) script for checking capacity on Fileserve<\/a><a href=\"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1737\">r<\/a>&#8220;. Extract that file and copy it to your home path. To make it work, install the entire &#8220;conky&#8221; with the following command.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>$ sudo apt install conky-all<\/code><\/pre>\n<\/div>\n<p>\u3000\u305d\u306e\u307e\u307e\u300cconky\u300d\u3068\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3066\u3070\u3001hddname-1\u304b\u3089hddname-3\u307e\u3067\u306f\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3042\u306a\u305f\u306e\u3059\u3079\u304d\u3053\u3068\u306f\u81ea\u5206\u306eHDD\u3067\u305d\u308c\u3092\u52d5\u304f\u3088\u3046\u306b\u76f4\u3059\u3053\u3068\u3067\u3059\u3002\u305d\u306e\u76f4\u3059\u30d5\u30a1\u30a4\u30eb\u306e1\u3064\u306f\u3001\u30db\u30fc\u30e0\u30d1\u30b9\u306b\u3042\u308b\u300c.conkyrc\u300d\u3001\u3082\u30461\u3064\u306f\u300c.lua\/scripts\/clock_rings.lua\u300d\u3067\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u305f\u3061\u306e\u3046\u3061\u76f4\u3059\u3079\u304d\u7b87\u6240\u306f\u3001HDD\u306e\u30d1\u30b9\uff08\/fileserver\/hddname-1\u7b49\uff09\u3068\u3001HDD\u306e\u8868\u793a\u4e0a\u306e\u540d\u524d\uff08hddname-1\u7b49\uff09\u3001\u4f4d\u7f6e\u6307\u5b9a\u90e8\u5206\uff08x=,Y=\u3084voffset,go to \u3067\u3059\u3002\u307e\u305f\u3001HDD\u306e\u9805\u76ee\u3092\u5897\u3084\u3059\u305f\u3081\u306b\u306f\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u3082\u8aac\u660e\u3057\u3066\u3044\u308b\u901a\u308a\u30011\u3064\u306eHDD\u306e\u8a18\u8ff0\u5358\u4f4d\u3092\u3001HDD\u8a2d\u5b9a\u306e\u90e8\u5206\u306b\u306b\u3064\u3051\u8db3\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\nIf you type the command &#8220;conky&#8221; as it is, hddname-1 to hddname-3 will be displayed. What you should do is fix it to work on your HDDs. One of the files to fix is \u200b\u200b&#8221;.conkyrc&#8221; in your home path and the other is &#8220;.lua\/scripts\/clock_rings.lua&#8221;. Among these files, the parts that need to be fixed are the HDDs path (\/fileserver\/hddname-1 etc.), the HDDs display name (hddname-1 etc.), the position specification parts (x=, Y=, voffset, go to) . if you want, Increase the number of HDDs items( as explained in the file own) add one HDDs description unit to the HDDs setting part.<br \/>\n\u3000\u3055\u3044\u3054\u306b\u3001\u3053\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u30fc\u3092\u3001\u300c\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u306b\u5165\u308c\u3066\u3001\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u30e9\u30f3\u30c1\u30e3\u3067\u3001\u300c\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u3092\u8d77\u52d5\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u540d\u524d\u306f\u3042\u306a\u305f\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u3064\u3051\u308c\u3070\u4efb\u610f\u3067\u3044\u3044\u3067\u3059\u3002\uff09<br \/>\nFinally, put this indicator in &#8220;Applications to auto-start&#8221; and auto-start it. In the launcher, start &#8220;Applications that start automatically&#8221; and add the following command (The name in the settings can be anything you want so that you can understand it.)<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>bash -c 'sleep 20;conky<\/code><\/pre>\n<\/div>\n<p>\u3000\u3053\u3053\u306720\u79d2\u5f85\u3064\u306e\u306f\u3001HDD\u306a\u3069\u306e\u521d\u671f\u64cd\u4f5c\u304c\u7d42\u308f\u308b\u3053\u3068\u3092\u8003\u3048\u3066\u3067\u3059\u306e\u3067\u3001\u81ea\u5206\u306e\u74b0\u5883\u3067\u3061\u3087\u3046\u3069\u3088\u3044\u5024\u3092\u5165\u308c\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nWaiting for 20 seconds here is for the sake of finishing the initial operations of the HDD, so please enter a value that is appropriate for your environment.<\/p>\n<p>\u3000\u4ee5\u4e0a\u3067\u8aac\u660e\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<br \/>\n\u3000\u308f\u304b\u308a\u3084\u3059\u3044\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30d3\u30c7\u30aa\u3092YouTube\u306b\u7528\u610f\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u5b9f\u969b\u306e\u64cd\u4f5c\u304c\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u898b\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3000This is the end of the explanation.<br \/>\nWe have prepared an easy-to-understand tutorial video on YouTube, so please watch it if you don&#8217;t know the actual operation.<\/p>\n<p><iframe loading=\"lazy\" title=\"[\u4e2d\u53e4PC\u3001\u81ea\u5b85\u30b5\u30fc\u30d0]\u304a\u304d\u3089\u304f\u3054\u304f\u3089\u304f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u308a\u65b9\uff08\u9577\u3081\u3060\u3051\u3069\u3061\u3083\u3093\u3068\u8aac\u660e\uff09\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/i7QKtqBwnjA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>\u306a\u304a\u3001\u82f1\u8a9e\u5b57\u5e55\u3082\u3064\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\nIt also has English subtitles.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u5b50\u4f9b\u306e\u5199\u771f\u3084\u52d5\u753b\u3068\u304b\u3001\u30b9\u30de\u30db\u6301\u3063\u3066\u308b\u3068\u3044\u3063\u3071\u3044\u64ae\u3063\u3061\u3083\u3044\u307e\u3059\u3088\u306d\u3002\u305d\u308c\u306b\u3001\u6301\u3063\u3066\u308b\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u304b\u3001\u3044\u3056\u3068\u8a00\u3046\u6642\u3092\u8003\u3048\u3066\u3068\u3063\u3066\u8d77\u304d\u305f\u3044\u3067\u3059\u3002\u3067\u3082USB\u306eHDD\u306f\u3069\u3053\u306e\u3069\u308c\u3084\u3089\u306b\u306a\u308a\u305d\u3046\u3060\u3057\u3001\u300cNAS\u3092\u8cb7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1753,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,14,15],"tags":[],"class_list":["post-1742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-ubuntu","category-15"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1742","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=1742"}],"version-history":[{"count":15,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1742\/revisions"}],"predecessor-version":[{"id":1758,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1742\/revisions\/1758"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/media\/1753"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}