- -- - - - - - - - - - - - - - - - - - TrB.jpg Margaret.png Jkb.jpg JoeD.jpg Edbatchelor.jpg JimB.png DAD-TINT.JPG C03515.jpg

Difference between revisions of "Remote server"

From Batchelor-s
Jump to navigationJump to search
(Created page with " I am not sure that you know what was in the '''rpi''' that I gave you. It had '''lamp''' installed running a Private Cloud with the wiki. A turnkey system for $100...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
<big>
 
I am not sure that you know what was in the '''[[rpi]]'''
 
I am not sure that you know what was in the '''[[rpi]]'''
  
that I gave you. It had '''[[lamp]]''' installed
+
It had '''[[lamp]]''' installed
  
 
running a Private Cloud with the wiki.
 
running a Private Cloud with the wiki.
Line 8: Line 8:
 
A turnkey system for $100 is a good deal.
 
A turnkey system for $100 is a good deal.
  
You can get a pizero W for $10 plus tax and shipping.
+
You can get a pizero W for $20 plus tax and shipping.
  
 
But then you need an SD card and power supply.
 
But then you need an SD card and power supply.
Line 18: Line 18:
 
Then a lot of time to set it up.
 
Then a lot of time to set it up.
  
If you would like another one then email [mailto:pi@batchelor-s.com Mr Pi]
 
  
*Proof of Concept - remote server
 
  
SSH server running
 
  
Remote server will check the gateway address
 
  
Emails me the results
 
  
I can use the address and connect
 
  
#need timer to run script
 
  
#script
 
  
#will write address to text file #can $date be used?
+
*Proof of Concept - remote server
  
curl ipinfo.io/ip>address_today.txt
+
SSH server running
  
#check this
 
  
sendmail pi@batchelor-s.com address_today.txt
 
 
#/script
 
 
 
# need to test - update procedure
 
 
sudo nano /etc/sysctl.d/routed-ap.conf ?
 
 
sudo nano /etc/sysctl.conf ?
 
 
# Enable IPv4 routing
 
 
net.ipv4.ip_forward=1
 
 
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
 
sudo netfilter-persistent save
 
 
#Filtering rules are saved to the directory /etc/iptables/
 
 
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
 
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
 
 
sudo nano /etc/rc.local
 
 
#Add above “exit 0”:
 
 
iptables-restore < /etc/iptables.ipv4.nat
 
 
#run
 
*sudo systemctl unmask hostapd
 
*sudo systemctl enable hostapd
 
*sudo systemctl start hostapd
 
*sudo service dnsmasq start
 
  
 +
Remote server will check the gateway address
  
 +
Emails me the results
  
 +
--------------------------
 
[[--]]
 
[[--]]

Latest revision as of 16:45, 19 May 2024

I am not sure that you know what was in the rpi

It had lamp installed

running a Private Cloud with the wiki.

A turnkey system for $100 is a good deal.

You can get a pizero W for $20 plus tax and shipping.

But then you need an SD card and power supply.

Then download the software

and burn it to the SD card.

Then a lot of time to set it up.





  • Proof of Concept - remote server

SSH server running


Remote server will check the gateway address

Emails me the results


--