To Setup a Home server, including very common used services for internal use:
Aria2 Server 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] rpc-secret=westlife enable-rpc=true rpc-allow-origin-all=true rpc-listen-all=true rpc-listen-port=6800 max-concurrent-downloads=20continue =true max-connection-per-server=5 min-split-size=10Msplit =10 max-overall-download-limit=0 max-download-limit=0 max-overall-upload-limit=0 max-upload-limit=0dir =/media enable-mmap=true file-allocation=prealloc user-agent=Chrome [root@homesrv ~] [root@homesrv ~] [Unit] Description=Aria2c download manager After=network.target [Service] Type=simple User=root Group=root ExecStartPre=/usr/bin/env touch /var/tmp/aria2c.session ExecStart=/usr/bin/aria2c --console-log-level=warn --enable-rpc --rpc-listen-all --conf-path=/etc/aria2/aria2.conf TimeoutStopSec=20 Restart=on-failure [Install] WantedBy=multi-user.target [root@homesrv ~] [root@homesrv ~] Active: active (running) since Wed 2023-11-08 17:31:58 CST; 12min ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] server { listen 80; server_name dl.srv; root /opt/aria2ng/; location / { index index.html; } } EOF [root@homesrv ~]
A very simple Chrome plugin for Aria2Ng
https://chrome.google.com/webstore/detail/aria2-explorer/mpkodccbngfoacfalldjimigbofkhgjn
aliyundrive-webdav aliyun drive resources shared with webdav
protocol and it can be mounted with Infuse
, it’s very convenient to access alien media content with Infuse Pro
+Webdav
.
https://github.com/messense/aliyundrive-webdav
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 [root@homesrv ~] [root@homesrv /opt] /etc/systemd/system/aliyundrive-webdav.service /usr/bin/aliyundrive-webdav /usr/share/doc/aliyundrive-webdav/LICENSE [root@homesrv /opt] [root@homesrv /opt] [root@homesrv /opt] [Unit] Description=AliyunDrive WebDAV After=network.target [Service] Type=simple Environment="REFRESH_TOKEN=xxxxxxxxxxxxxxxxx" ExecStart=/usr/bin/aliyundrive-webdav --port 8000 --redirect --cache-size 16777216 --drive-type backup --auto-index -w /etc/aliyundrive-webdav KillMode=process Restart=on-failure [Install] WantedBy=multi-user.target [root@homesrv /opt] [root@homesrv /opt]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [root@homesrv /opt] server { listen 80; server_name dav.srv; location / { set $ip localhost; proxy_pass $scheme ://$ip :8000; } } [root@homesrv /opt] [root@homesrv /opt] HTTP/1.1 200 OK Server: nginx/1.24.0 Date: Wed, 08 Nov 2023 10:44:28 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive
Alist Server https://alist.nn.ci/zh/guide/install/script.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [root@homesrv /opt] [root@homesrv /opt] [root@homesrv /opt] [root@homesrv /opt] server { listen 80; server_name alist.srv; location / { set $ip localhost; proxy_pass $scheme ://$ip :5244; } } [root@homesrv /opt]
Plex Server https://www.plex.tv/media-server-downloads/
1 2 3 4 5 6 7 8 9 10 11 12 13 [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] server { listen 80; server_name plex.srv; location / { proxy_set_header Host $host ; proxy_pass http://127.0.0.1:32400; } } [root@homesrv /opt]
Then go to http://plex.srv to setup media content.
Samba Server Some file downloaded from aria2
need to be shared between devices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [root@homesrv ~] [root@homesrv ~] [global] workgroup = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw [media] comment = media files path = /media public = yes writable = yes [data] comment = share data path = /data public = yes writable = yes [root@homesrv ~] [root@homesrv ~] [root@homesrv ~] Password for [SAMBA\samba]: Sharename Type Comment --------- ---- ------- media Disk media files data Disk share data IPC$ IPC IPC Service (Samba 4.17.5) SMB1 disabled -- no workgroup available