Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
user:codemasterboom [2022/07/04 18:13] – add sftp install stgodjahuser:codemasterboom [2023/07/05 23:47] – added must have section codemasterboom
Line 1: Line 1:
 ==== That is a child subtask of project BtcRelax ====  ==== That is a child subtask of project BtcRelax ==== 
 Project based on GitHub here [[https://github.com/BtcRelax|BtcRelax]] Project based on GitHub here [[https://github.com/BtcRelax|BtcRelax]]
 +
 +My devices:
 +  * [[:toh:hwdata:asus:asus_wl-500gpremium_v2|ASUS WL-500g]]
 +  * [[:toh:tp-link:tl-wr1043nd]|TL-WR1043NDv1]]
  
 Global categories: [[:docs:guide-user:start]] Global categories: [[:docs:guide-user:start]]
Line 7: Line 11:
 Allowing for remote SFTP connection: Allowing for remote SFTP connection:
 <code bash> <code bash>
-opkg update +opkg update && opkg install openssh-sftp-server 
-opkg install openssh-sftp-server +</code> 
-opkg install announce+Must have: 
 +<code bash> 
 +opkg update && opkg install announce  
 +opkg update && opkg install nano  
 +opkg update && opkg install usbutils  
 +opkg update && opkg install mc
 </code> </code>
 +
 +Benchmark your drive
 +Firstly, you will need hdparm program. Then locate your attached drive in /dev directory - typically /dev/sda1 or /dev/sda2 etc.
 +
 +==== Benchmark your drive ====
 +Firstly, you will need ''hdparm'' program. Then locate your attached drive in ''/dev'' directory - typically ''/dev/sda1'' or ''/dev/sda2'' etc.
 +<code bash>
 +opkg update && opkg install hdparm
 +hdparm -t /dev/sda1
 +</code>
 +
 +See also [[docs:guide-user:perf_and_log:benchmark.usb|USB Benchmarks]] and [[docs:techref:hardware:performance|Filesystems performance]] page.
  
 Configuring network filesystems: Configuring network filesystems:
 +
 +<tabbox FTP>
 + The smallest of the three popular FTP servers
 +
 +  - Install from web-interface or command-line: “**opkg install vsftpd**”
 +  -     You might want to start and enable the vsftpd service in web-interface “System/Startup”
 +  -     Configuration file is located in “**/etc/vsftpd.conf**”
 +  -     To set the default FTP folder add the following to the config file: “**local_root=/srv**”
 +  -     To enable PASSIVE mode, add the following to the config file: “pasv_enable=YES”, “pasv_min_port=10090”, and “pasv_max_port=10100”
 +    The vsftpd service can be controlled with the usual commands:
 +
 +<code>
 +   /etc/init.d/vsftpd start     (Start the service)
 +   /etc/init.d/vsftpd stop      (Stop the service)
 +   /etc/init.d/vsftpd restart   (Restart the service)
 +   /etc/init.d/vsftpd reload    (Reload configuration files (or restart if that fails))
 +   /etc/init.d/vsftpd enable    (Enable service autostart)
 +   /etc/init.d/vsftpd disable   (Disable service autostart)
 +</code>
 +
 <tabbox Windows Shares (SAMBA)> <tabbox Windows Shares (SAMBA)>
  
Line 39: Line 80:
  
 <tabbox SCSI > <tabbox SCSI >
 +
 +<code bash>
 +opkg update && opkg install tgt kmod-scsi-core
 +</code>
 +The documentation for the tools used is [[http://stgt.sourceforge.net/|here]] although it is not strictly necessary to read it for a basic setup. 
 +
 +[[:docs:guide-user:services:nas:iscsi|Source documentation]]
  
 </tabbox> </tabbox>
Line 44: Line 92:
 ---- ----
  
-==== Web server: ====+==== Web server configuration: ====
  
 +  * ''[[:docs:guide-user:luci:luci.essentials|Luci installation]]''
 +=== Use alternative ports: ===
 +
 +<code bash>
 +uci -q delete uhttpd.main.listen_http
 +uci add_list uhttpd.main.listen_http="0.0.0.0:8080"
 +uci add_list uhttpd.main.listen_http="[::]:8080"
 +uci -q delete uhttpd.main.listen_https
 +uci add_list uhttpd.main.listen_https="0.0.0.0:8443"
 +uci add_list uhttpd.main.listen_https="[::]:8443"
 +uci commit uhttpd
 +/etc/init.d/uhttpd restart
 +</code>
  
-[[:docs:guide-user:luci:luci.on.lighttpd]]+  * ''[[:docs:guide-user:luci:luci.on.lighttpd|Install Lighttpd webserver]]''
  
 <code bash> <code bash>
  • Last modified: 2023/07/17 23:45
  • by codemasterboom