🧠 Bharat Knowledge Base
Raspberry Pi Homelab Documentation
Hostname: bharat
Purpose: Media, CCTV, NAS, Automation & Learning
🏠 Important Facts
Raspberry Pi:
192.168.1.215
Windows PC:
192.168.1.110
Router:
192.168.1.254
Dahua DVR:
192.168.1.230
go2rtc:
http://192.168.1.215:1984
Homepage:
http://bharat.local
CCTV Dashboard:
http://bharat.local/cams
Knowledge Base:
http://bharat.local/knowledge
🌍 Tailscale
tailscale status
tailscale status --self
tailscale ip
tailscale ip -4
tailscale ping bharat
sudo tailscale up
sudo tailscale down
sudo systemctl restart tailscaled
systemctl status tailscaled
Future Hamza:
Run "tailscale status --self" if you forget the MagicDNS name.
MagicDNS:
bharat.YOUR-TAILNET.ts.net
Tailscale IPv4:
100.112.136.112
📷 CCTV System
DVR IP:
192.168.1.230
HTTP:
80
HTTPS:
443
RTSP:
554
TCP:
37777
UDP:
37778
Important Discovery:
Original assumption:
192.168.1.190
Actual DVR:
192.168.1.230
Found by:
ARP scan + browser testing.
🎥 Camera Channels
Channel 1 = Driveway
Channel 2 = Carpark
Channel 3 = Deck
Channel 4 = Entrance
Channel 5 = Side
🎬 RTSP Streams
Driveway
rtsp://admin:PASSWORD@192.168.1.230:554/cam/realmonitor?channel=1&subtype=1
Carpark
rtsp://admin:PASSWORD@192.168.1.230:554/cam/realmonitor?channel=2&subtype=1
Deck
rtsp://admin:PASSWORD@192.168.1.230:554/cam/realmonitor?channel=3&subtype=1
Entrance
rtsp://admin:PASSWORD@192.168.1.230:554/cam/realmonitor?channel=4&subtype=1
Side
rtsp://admin:PASSWORD@192.168.1.230:554/cam/realmonitor?channel=5&subtype=1
📡 go2rtc
sudo systemctl status go2rtc
sudo systemctl restart go2rtc
sudo systemctl stop go2rtc
sudo systemctl start go2rtc
journalctl -u go2rtc -f
journalctl -u go2rtc --since today
systemctl is-enabled go2rtc
go2rtc - http://192.168.1.215:1984/
go2rtc runs as a systemd service.
SSH session does NOT need to stay open.
go2rtc automatically starts after reboot.
🌐 Apache
sudo systemctl status apache2
sudo systemctl restart apache2
sudo systemctl stop apache2
sudo systemctl start apache2
apachectl -t
journalctl -u apache2 -f
🖥 Raspberry Pi
hostname
hostname -I
uptime
free -h
df -h
lsblk
mount
ip addr
ip route
ss -tulpn
sudo reboot
sudo shutdown -h now
🔍 Troubleshooting
arp -a
ping 192.168.1.230
ping 192.168.1.254
curl http://192.168.1.230
journalctl -xe
dmesg -T
tail -f /var/log/syslog
📂 Important Files
Homepage
/var/www/html/index.html
Knowledge Base
/var/www/html/knowledge/index.html
CCTV Dashboard
/var/www/html/cams/index.html
go2rtc Config
/home/hamza/go2rtc/go2rtc.yaml
go2rtc Service
/etc/systemd/system/go2rtc.service
🧩 Things Future Hamza Will Forget
The cameras are NOT directly on the home network.
The cameras sit behind the Dahua DVR.
Camera IPs seen by DVR:
10.1.1.65
10.1.1.66
10.1.1.67
10.1.1.68
10.1.1.69
RTSP streams are accessed through DVR:
192.168.1.230
Substream:
704x480
Main stream:
2592x1944
go2rtc serves all cameras to:
bharat.local/cams
No Windows PC required.
Everything runs from Raspberry Pi.
🔧 Why is my Home Lab not working?
# Quick Health Check
systemctl status apache2
systemctl status go2rtc
systemctl status tailscaled
systemctl is-active apache2
systemctl is-active go2rtc
systemctl is-active tailscaled
tailscale status
hostname -I
🚀 Future Projects
[ ] Jellyfin
[ ] Home Assistant
[ ] Immich
[ ] Paperless-ngx
[ ] Vaultwarden
[ ] Pi-hole
[ ] Uptime Kuma
[ ] Docker
[ ] Automated Backups