This file contains hidden or 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
# set local domain | |
search local | |
#__________________________{openDNS default here} | |
# OpenDNS IPv4 nameservers | |
nameserver 208.67.222.222 | |
nameserver 208.67.220.220 | |
# OpenDNS IPv6 nameservers | |
nameserver 2620:0:ccc::2 |
This file contains hidden or 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
#Modifcations to /boot/* files, will not be saved when powered on. | |
#Please ensure you edit from the DietPi-RamDisk location /DietPi/* | |
#------------------------------------------------------------------------------------------------------ | |
# D I E T - P I | |
# 1st run settings | |
# All settings below will be applied on the 1st boot of DietPi, ONCE. | |
#------------------------------------------------------------------------------------------------------ | |
# >> Networking Options ----------------------------- | |
#If both Ethernet and Wifi are enabled, Wifi will take priority and Ethernet will be disabled. |
This file contains hidden or 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
Note: The default username for WordPress application is 'user'. | |
To retrieve the password for user you need to SSH the server and type | |
cat bitnami_application_password | |
This file contains hidden or 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
# install utils | |
sudo apt-get -y install libpcap0.8 tcpdump | |
# watch port 53 (DNS) with a specific client | |
sudo tcpdump -npi eth0 -vvv host 192.168.1.9 and port 53 |
This file contains hidden or 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
# sudo nano /etc/lighttpd/lighttpd.conf | |
server.modules = ( | |
"mod_access", | |
"mod_accesslog", | |
"mod_expire", | |
"mod_compress", | |
"mod_redirect", | |
"mod_setenv", | |
"mod_rewrite" |
This file contains hidden or 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
192.168.1.40:/volume1/BackupPi /media/nas-backup nfs defaults,x-systemd.automount 0 0 |
This file contains hidden or 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
apt-get install multitail | |
multitail /var/log/syslog /var/log/auth.log | |
+ display log files in colors, | |
+ scroll back in a log file, | |
+ search inside log file, | |
+ merge mutliple log files effectively | |
This file contains hidden or 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
Logfile RoATING file operations using UNIX logrotate utility. | |
============================================= | |
+ Rotate the log file when file size reaches a specific size | |
+ Continue to write the log information to the newly created file after rotating the old log file | |
+ Compress the rotated log files | |
+ Specify compression option for the rotated log files | |
+ Rotate the old log files with the date in the filename | |
+ Execute custom shell scripts immediately after log rotation | |
+ Remove older rotated log files |
This file contains hidden or 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
IP Addresses of this Pi: | |
127.0.0.1 | |
10.124.161.101 | |
Gateway check: | |
ok | |
####################################### | |
######## Whitelist Comparison ######### | |
####################################### |
This file contains hidden or 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
output: | |
Home › Your nearest OpenNIC DNS servers | |
Your nearest OpenNIC DNS servers | |
Are… | |
45.56.117.118 (ns6.ga.us) -- 99.42% uptime | |
138.197.25.214 (ns10.ny.us) -- 94.79% uptime | |
96.90.175.167 (ns4.co.us) -- 98.10% uptime | |
87.98.175.85 (ns10.fr) -- 98.75% uptime |