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
#!/bin/bash | |
ipVar=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | |
curl https://api.pushbullet.com/v2/pushes \ | |
-u <paste_your_API_key_here>: \ | |
-d device_iden="<device_ID_of_your_phone>" \ | |
-d type="note" \ | |
-d title="Pi IP address" \ | |
-d body=$ipVar \ | |
-X POST |
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
As of say mid 2015, the introduction of "Wheezy", changed the WiFi settings and obsolessioned all the "HOW TO STATIC IP" articles. | |
This is how to get a static IP on your RPI. | |
*** Note: dhcpcd (DHCP client daemon) is not the same as dhcpd (DHCP (server) daemon). *** | |
https://wiki.archlinux.org/index.php/dhcpcd | |
Considerations: |
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 |
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
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
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
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
# 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
# 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
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 | |