{"id":1381,"date":"2023-01-04T12:20:58","date_gmt":"2023-01-04T12:20:58","guid":{"rendered":"https:\/\/sznetwork.systems\/?page_id=1381"},"modified":"2023-01-04T12:20:59","modified_gmt":"2023-01-04T12:20:59","slug":"sz_dlnanas-small-simple-nas-storage-to-downloading-and-streaming-video-in-local-network","status":"publish","type":"page","link":"https:\/\/sznetwork.systems\/?page_id=1381","title":{"rendered":"SZ_dlnaNAS small simple NAS storage to downloading and streaming video in local network"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Small simple NAS storage to downloading and streaming video in local network\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/9MyRBAH4clQ?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>\n<\/div><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Today i will create small and simple home NAS storage for home multimedia.\nI used old one IDE HDD with enclosure and Orange Pi zero, someday cheapest SBC on Aliexpress.\nI choose Armbian as OS on Orange Pi, its lightest OS for Orange Pi. \nJust download from <strong>armbian.com<\/strong> website OS image for Orage Pi zero board.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1-1024x550.png\" alt=\"\" class=\"wp-image-1201\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1-1024x550.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1-300x161.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1-768x413.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1-1536x826.png 1536w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen1-1.png 1667w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">To write downloaded OS image file into SD card i use <strong>balenaEtche <\/strong>software, available on <strong>balena.io<\/strong> website.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1-1024x551.png\" alt=\"\" class=\"wp-image-1202\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1-1024x551.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1-300x161.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1-768x413.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1-1536x826.png 1536w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen2-1.png 1668w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Run <strong>balenaEtcer <\/strong>and click <strong>Flash from file<\/strong> button\nChoose <strong>downloaded image file<\/strong>\nThen click on S<strong>elect target<\/strong> and choose your SD card \nPress <strong>Flash!<\/strong> and wait while balenaEtcher writes file to SD card.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"650\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen3-1-1024x650.png\" alt=\"\" class=\"wp-image-1203\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen3-1-1024x650.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen3-1-300x190.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen3-1-768x488.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen3-1.png 1041w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After image flashed to SD card, remove card from reader and insert into Orange Pi zero.\nConnect all wires to Orange Pi zero, HDD enclosure, Ethernet cable, power.\nI checked <strong>IP address<\/strong> of Orange Pi zero on my <strong>router DHCP registration table<\/strong>, another way is using UART interface on Orange Pi zero, but you need additional USB to UART adapter.\nWhen i know <strong>IP address<\/strong>, i connect to Orange Pi zero with <strong>Putty<\/strong> SSH client.\nLogin username is <strong>root<\/strong> and password <strong>1234<\/strong>.\nAfter successful login Armbian asks to change default password.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"663\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen4-1024x663.png\" alt=\"\" class=\"wp-image-1204\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen4-1024x663.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen4-300x194.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen4-768x497.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen4.png 1427w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">When password changed, i install system on External HDD that connected via USB\nRun command: <strong>nand-sata-install<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"68\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen5.png\" alt=\"\" class=\"wp-image-1205\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen5.png 394w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen5-300x52.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Choose <strong>Boot from SD<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"213\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen6.png\" alt=\"\" class=\"wp-image-1206\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen6.png 455w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen6-300x140.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Then select your connected HDD<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"185\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen7.png\" alt=\"\" class=\"wp-image-1207\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen7.png 449w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen7-300x124.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Choose filesystem, i use <strong>ext4<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"152\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen8.png\" alt=\"\" class=\"wp-image-1208\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen8.png 446w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen8-300x102.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After system files copied to External HDD, and system restarted, i make new directory in root directory and named in Storage.\nCommands are:\n<strong>cd \/\nmkdir Storage\nchmod 777 Storage<\/strong>\nand for checking\n<strong>ls -la<\/strong>\nWe can see that folder Storage have for permissions for all users read and write in this directory.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"431\" height=\"435\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen9.png\" alt=\"\" class=\"wp-image-1209\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen9.png 431w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen9-297x300.png 297w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen9-150x150.png 150w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next installing Transmission torrent client:\n<strong>sudo apt install transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"411\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen10.png\" alt=\"\" class=\"wp-image-1210\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen10.png 411w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen10-300x15.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">When installed, need to stop service to change configuration:\n<strong>systemctl stop transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen11.png\" alt=\"\" class=\"wp-image-1211\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen11.png 413w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen11-300x15.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Then edit transmission-daemon config file:\n<strong>nano \/etc\/transmission-daemon\/settings.json<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"24\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen12.png\" alt=\"\" class=\"wp-image-1212\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen12.png 472w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen12-300x15.png 300w\" sizes=\"auto, (max-width: 472px) 100vw, 472px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Edit:\n<strong> \"download-dir\": \"\/Storage\",\n \"incomplete-dir\": \"\/Storage\/Incomplete\",\n \"incomplete-dir-enabled\": true,\n \"rpc-authentication-required\": false,\n \"rpc-bind-address\": \"0.0.0.0\",\n \"rpc-whitelist-enabled\": false,<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"823\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen13.png\" alt=\"\" class=\"wp-image-1213\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen13.png 686w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen13-250x300.png 250w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After configuration done, start daemon again:\n<strong>systemctl start transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"21\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen14.png\" alt=\"\" class=\"wp-image-1214\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen14.png 409w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen14-300x15.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Checking status of daemon:\n<strong>systemctl status transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"214\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen15-1024x214.png\" alt=\"\" class=\"wp-image-1215\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen15-1024x214.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen15-300x63.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen15-768x160.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen15.png 1125w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Checking webpage, entered Orange Pi zero <strong>ip_address:9091 <\/strong>port.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"574\" height=\"236\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen17.png\" alt=\"\" class=\"wp-image-1217\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen17.png 574w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen17-300x123.png 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next i decided to run transmission-daemon with nobody user and nogroup group.\n<strong>nano \/etc\/inint.d\/transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"469\" height=\"15\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen18.png\" alt=\"\" class=\"wp-image-1218\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen18.png 469w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen18-300x10.png 300w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Change USER field to\n<strong>USER=nobody:nogroup<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"227\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen19.png\" alt=\"\" class=\"wp-image-1219\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen19.png 573w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen19-300x119.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Also need to change user in systemd configuration.\n<strong>nano \/lib\/systemd\/system\/transmission-daemon.service<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"23\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen20.png\" alt=\"\" class=\"wp-image-1220\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen20.png 598w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen20-300x12.png 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Change:\n<strong>User=nobody\nType=notify\nExecStart=\/usr\/bin\/transmission-daemon -f --log-error --config-dir=\/var\/lib\/transmission-daemon\/info<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"220\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen21.png\" alt=\"\" class=\"wp-image-1221\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen21.png 726w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen21-300x91.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next reload systemctl daemons configuration:\n<strong>systemctl daemon-reload<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"354\" height=\"15\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen22.png\" alt=\"\" class=\"wp-image-1222\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen22.png 354w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen22-300x13.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Checking status of transmission-daemon service:\n<strong>systemctl status transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"258\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen23-1024x258.png\" alt=\"\" class=\"wp-image-1223\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen23-1024x258.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen23-300x76.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen23-768x194.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen23.png 1130w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Changing owner of transmission-daemon folders:\n<strong>chown -R nobody:nogroup \/var\/lib\/transmission-daemon\nchown -R nobody:nogroup \/etc\/transmission-daemon<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"30\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen24.png\" alt=\"\" class=\"wp-image-1224\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen24.png 577w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen24-300x16.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next i install samba for file sharing with home windows based pc:\n<strong>sudo apt install samba<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"307\" height=\"21\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen25.png\" alt=\"\" class=\"wp-image-1225\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen25.png 307w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen25-300x21.png 300w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After installation edit samba config file:\n<strong>nano \/etc\/samba\/smb.comf<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"359\" height=\"14\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen26.png\" alt=\"\" class=\"wp-image-1226\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen26.png 359w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen26-300x12.png 300w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">In section \"# This option controls how unsuccessful authentication attempts are mapped to anonymous connection\"\nedit and insert lines:<strong>\nsecurity = user\nmap to guest = bad password<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"68\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen27.png\" alt=\"\" class=\"wp-image-1227\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen27.png 544w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen27-300x38.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">In section \"Share Definitions\"\nremove all default lines and add:<strong>\n[DLNA-NAS]\n    path =\/Storage\n    guest ok = yes\n    read only = no\n    create mask = 0777\n    directory mask = 0777<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"476\" height=\"144\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen28.png\" alt=\"\" class=\"wp-image-1228\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen28.png 476w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen28-300x91.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Save, exit and restart Samba service by command:\n<strong>systemctl restart smbd<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"18\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen29.png\" alt=\"\" class=\"wp-image-1229\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen29.png 344w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen29-300x16.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Checking samba, find our nas in network, and trying to create and delete files. If all works Samba installed correctly.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"184\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen30.png\" alt=\"\" class=\"wp-image-1231\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen30.png 449w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen30-300x123.png 300w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next going to install MiniDLNA multimedia streaming software\n<strong>sudo apt install minidlna<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"316\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen31.png\" alt=\"\" class=\"wp-image-1232\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen31.png 316w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen31-300x18.png 300w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After installed editing configuration file\n<strong>nano \/etc\/minidlna.conf<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"17\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen32.png\" alt=\"\" class=\"wp-image-1234\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Change <strong>media_dir<\/strong> parameter\n<strong>media_dir=\/Storage<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"203\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/12\/Screen47.png\" alt=\"\" class=\"wp-image-1355\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/12\/Screen47.png 594w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/12\/Screen47-300x103.png 300w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Save, exit and restart minidlna service\n<strong>systemctl restart minidlna<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen33.png\" alt=\"\" class=\"wp-image-1235\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen33.png 323w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen33-300x19.png 300w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">I will check minidlna on PC with media player, in future will be checked also on TV<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"584\" height=\"282\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen34.png\" alt=\"\" class=\"wp-image-1236\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen34.png 584w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen34-300x145.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Latest one software will be web server, i choose <strong>lighttpd<\/strong>\n<strong>sudo apt install lighttpd<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"323\" height=\"16\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen35.png\" alt=\"\" class=\"wp-image-1237\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen35.png 323w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen35-300x15.png 300w\" sizes=\"auto, (max-width: 323px) 100vw, 323px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Going into NAS IP address to check if web browser working<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36-1024x375.png\" alt=\"\" class=\"wp-image-1238\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36-1024x375.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36-300x110.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36-768x281.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36-1536x563.png 1536w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen36.png 1605w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next going into \/var\/www\/html folder and removing all files\n<strong>cd \/var\/www\/html\nrm *<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"243\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen37.png\" alt=\"\" class=\"wp-image-1239\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Installing python and python3-pip\n<strong>sudo apt -install python3 python3-pip<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"297\" height=\"18\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen38.png\" alt=\"\" class=\"wp-image-1240\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Installing python module bottle\n<strong>pip install bottle<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"20\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen39.png\" alt=\"\" class=\"wp-image-1241\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Next creating poweroff.py file, and inserting python code for system shutdown\n<strong>nano poweroff.py<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\"><strong>import os\nfrom bottle import route, run\n\n@route('\/&lt;name&gt;')\ndef index(name):\n    if name == \"power\":\n        os.system(\"sudo shutdown -h now\")\n\nrun(host='0.0.0.0', port=8080)<\/strong>\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"265\" height=\"15\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen40.png\" alt=\"\" class=\"wp-image-1242\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Editing <strong>rc.local<\/strong> file to autostart python service\n<strong>nano \/etc\/rc.local<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"287\" height=\"15\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen42.png\" alt=\"\" class=\"wp-image-1244\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Adding our file destination path\n<strong>python3 \/root\/poweroff.py<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"136\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen41.png\" alt=\"\" class=\"wp-image-1243\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen41.png 332w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen41-300x123.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Save, exit and reboot system\n<strong>sudo reboot<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"196\" height=\"17\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen43.png\" alt=\"\" class=\"wp-image-1245\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">After system rebooted checking service availiability\n<strong>ss -4nlp<\/strong>\nLatest one is our python service listening port 8080<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"210\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44-1024x210.png\" alt=\"\" class=\"wp-image-1246\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44-1024x210.png 1024w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44-300x62.png 300w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44-768x158.png 768w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44-1536x316.png 1536w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen44.png 1587w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Editing webpage\n<strong>nano \/var\/www\/html.index.html<\/strong>\nAnd adding html code for main screen of our NAS<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\"><strong>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.container { \n  position: relative;  \n}\n.button {\n  background-color: #4CAF50; \/* Green *\/\n  border: none;\n  color: white;\n  padding: 15px 32px;\n  text-align: center;\n  text-decoration: none;\n  display: inline-block;\n  font-size: 16px;\n  margin: 4px 2px;\n  cursor: pointer;\n  width:100%;\n}\n.center {\n  margin: 0;\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  -ms-transform: translate(-50%, -50%);\n  transform: translate(-50%, -50%);\n.button2 {background-color: #008CBA;}\n}\n\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;p id=\"demo\"&gt;&lt;\/p&gt;\n&lt;br&gt;\n&lt;br&gt;\n&lt;div class=\"container\"&gt;\n&lt;h1 class =\"center\"&gt;SZ_DLNA-NAS Web page&lt;\/p&gt;\n&lt;\/div&gt;\n&lt;br&gt;\n&lt;br&gt;\n&lt;br&gt;\n&lt;br&gt;\n&lt;div class=\"container\"&gt;\n  &lt;div class=\"center\"&gt;\n    &lt;button class=\"button button2\" onclick=\"window.location.href=+':9091'\"&gt;Transmission&lt;\/button&gt;\n\t&lt;br&gt;\n\t&lt;button class=\"button button2\" onclick=\"window.location.href=+':8200'\"&gt;miniDLNA&lt;\/button&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n\n<\/strong><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"352\" height=\"19\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen45.png\" alt=\"\" class=\"wp-image-1247\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen45.png 352w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen45-300x16.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">Save, exit, and then check entering in browser NAS server IP address<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"253\" src=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen46.png\" alt=\"\" class=\"wp-image-1248\" srcset=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen46.png 443w, https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/11\/Screen46-300x171.png 300w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\">That all, i use this NAS about half of year and its works perfectly for downloading and streaming serials in local network.<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted has-black-color has-cyan-bluish-gray-background-color has-text-color has-background\"><a href=\"https:\/\/sznetwork.systems\/wp-content\/uploads\/2022\/12\/B-SZ_dlnaNas.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Python and index.html files download link <\/strong><\/a><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today i will create small and simple home NAS storage for home multimedia. I used old one IDE HDD with enclosure and Orange Pi zero, someday cheapest SBC on Aliexpress.. <a class=\"read-more-link\" href=\"https:\/\/sznetwork.systems\/?page_id=1381\">read more&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1248,"parent":97,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1381","page","type-page","status-publish","has-post-thumbnail","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/pages\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1381"}],"version-history":[{"count":1,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/pages\/1381\/revisions"}],"predecessor-version":[{"id":1382,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/pages\/1381\/revisions\/1382"}],"up":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/pages\/97"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sznetwork.systems\/index.php?rest_route=\/wp\/v2\/media\/1248"}],"wp:attachment":[{"href":"https:\/\/sznetwork.systems\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}