This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ExternalHd] | |
comment = External USB Disk | |
path = /media/rock/NAS | |
hide files = /media/rock/NAS/z | |
force user = rock | |
writeable = Yes | |
only guest = Yes | |
create mask = 0777 | |
directory mask = 0777 | |
browseable = Yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Personal note : add rules to /etc/rc.local file so they will be loaded after booting up | |
# Change modemif to your network interface value | |
modemif=eth0 | |
iptables -t mangle -N ack | |
iptables -t mangle -A ack -m tos ! --tos Normal-Service -j RETURN | |
iptables -t mangle -A ack -p tcp -m length --length 0:128 -j TOS --set-tos Minimize-Delay | |
iptables -t mangle -A ack -p tcp -m length --length 128: -j TOS --set-tos Maximize-Throughput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage instructions at http://www.megaleecher.net/Best_Raspberry_Pi_Hot_Backup_Shell_Script | |
# This version disables backup image compression as it takes too much time on Pi, to enable uncomment the relavent lines | |
# Setting up directories, Just change SUBDIR and DIR varibales below to get going | |
SUBDIR=raspberrypi_backups | |
DIR=/media/ExternalHd/$SUBDIR |