Giter Site home page Giter Site logo

myscripts's Introduction

myScripts

A collection of my scripts & code

DHCP for pihole

A php script and lighttpd configuration to quickly view your dhcp leases dhcpPihole

bash

Random bash code I've used here and there bash

SQL

Random SQL code I've used here and there sql

Zabbix

Zabbix scripts Zabbix

markdown

a barebones markdown to html converter

myscripts's People

Contributors

tbblake avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rayscars

myscripts's Issues

wrong cp command

2nd cp command in readme.md should read

cp myScripts/dhcpPihole/10-accesslog-dhcpLeases.conf /etc/lighttpd/conf-enabled/10-accesslog-dhcpLeases.conf

Dietpi 404

Sorry, feel like a complete dummy. I'm a tinkerer enthusiast :)
Tried this on my 2nd pi running Bullseye. Worked like a charm. I did need to sudo the CP commands and the systemctl needed password authentication. But it worked and I get /dhcpLeases.php output. Yay.
But it's not the DHCP server that answers fastest so it has very few of my LAN clients. I tried this on my 1st pi running Dietpi. First problem was
[dietpi@pi2
~]$ systemctl restart lighttpd
Failed to connect to bus: No such file or directory
[dietpi@pi2
~]$
hmm.
so i just rebooted :)
BUT http:///dchpLeases.php returns a 404 although can see that php file
[dietpi@pi2
~]$ locate dhcpLeases.php
/home/dietpi/gits/myScripts/dhcpPihole/dhcpLeases.php
/var/www/html/dhcpLeases.php
[dietpi@pi2
~]$
I dont understand.
Also:
[dietpi@pi2
~]$ sudo service lighttpd status
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/lighttpd.service.d
└─dietpi.conf
Active: active (running) since Tue 2023-04-18 16:23:18 BST; 13min ago
Process: 388 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 450 (lighttpd)
Tasks: 1 (limit: 990)
CPU: 9.705s
CGroup: /system.slice/lighttpd.service
└─450 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Apr 18 16:23:01 pi2 systemd[1]: Starting Lighttpd Daemon...
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 lighttpd[388]: 2023-04-18 16:23:01: configfile.c.1142) WARNING: unknown config-key: accesslog.filename (ignored)
Apr 18 16:23:18 pi2 systemd[1]: Started Lighttpd Daemon.
[dietpi@pi2
~]$
Help a ignorant newb out?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.