Closed Fourdee closed 5 years ago
Pair bluetooth speaker (rpi 3 ):
bluetoothctl
power on
agent on
scan on
pair MAC_ADDRESS
trust MAC_ADDRESS
connect MAC_ADDRESS
https://github.com/Fourdee/DietPi/issues/693
Requires pulse π ? https://www.raspberrypi.org/forums/viewtopic.php?t=68779
Pine case:
H3 audio commits 4.10 https://github.com/torvalds/linux/search?p=1&q=h3+audio&type=Commits&utf8=%E2%9C%93
lirc
mpc
dtoverlay=lirc-rpi
dtparam=gpio_in_pin=25
in config.txt
justboom-ir-mpd.service
) by defaultwget http://dietpi.com/downloads/misc/community/install_justboom_ir_remote.sh
sudo chmod +x install_justboom_ir_remote.sh
sudo ./install_justboom_ir_remote.sh remoteir justboom_ir_remote
Clear all comments in a script, that start with whitespace and are 1st entry on line (excludes ^#):
sed -i '/^\s*[[:space:]]#/d' /DietPi/dietpi/boot
root@DietPi:~# echo -e "#test" | sed '/^\s*[[:space:]]#/d'
#test
root@DietPi:~# echo -e "x#test" | sed '/^\s*[[:space:]]#/d'
x#test
root@DietPi:~# echo -e " x#test" | sed '/^\s*[[:space:]]#/d'
x#test
root@DietPi:~# echo -e " x #test" | sed '/^\s*[[:space:]]#/d'
x #test
root@DietPi:~# echo -e "#test" | sed '/^\s*[[:space:]]#/d'
#test
root@DietPi:~# echo -e " dont delete me #test" | sed '/^\s*[[:space:]]#/d'
dont delete me #test
root@DietPi:~# echo -e " #test" | sed '/^\s*[[:space:]]#/d'
@k-plan @MichaIng
Reference: https://twitter.com/armbian/status/960225496918306817
@Fourdee Just ignore. In the end users decide what kind of value something is. The value of open source is, that using, changing and in case "rebranding" is possible, so you have a rich offer of solutions where users can decide what they need.
@Fourdee Who is armbian on twitter? Igor? Mikhail? Think not, sound for me like mister tk .... :rofl: If so ... ignore. π© π
It's only indicate, you are on on the right path. Grudge will only be generated if somebody do thinks well and meet with success. π
@MichaIng
Just ignore.
Hmm .... this is not as easy as it sound, to take it not personally. Revile like this are for quite some time and be seated deep-rooted.
@k-plan
tk
I'd expect no less π
Just ignore. In the end users decide what kind of value something is.
I'd love to, but ARMbian's method of dealing with "competition", is to use the users inexperience and a method of fear control, to spread negative non-sense: https://forum.armbian.com/search/?&q=dietpi&author=tkaiser
I on the other hand, will only reduce myself to that level, if i'am provoked and feel the need to defend what i'am passionate about and believe in. In most cases, I have the facts to back up any claims I make (unlike ARMbian/tk).
Just winds me up, I have better things to do deal with one man's lack of intelligence, whos only self worth is to generate fear and non-sense using ignorance and disrespect, to benefit his own agenda.
@k-plan @MichaIng Fed up with this non-sense, hopefully we can end this:
https://twitter.com/armbian/status/960579742230630400 https://twitter.com/armbian/status/960560009473069056 https://twitter.com/armbian/status/960469577590362112
https://twitter.com/DietPi_/status/960648445727051776 http://dietpi.com/phpbb/viewtopic.php?f=9&t=2794&p=10691#p10691
@MichaIng @k-plan
We featured in Linux Format magazine (9/10 score) π : http://dietpi.com/phpbb/viewtopic.php?f=9&t=2857#p10989
Linux Format magazine have a review in Issue 233 for DietPi (page 51):
https://www.pressreader.com/australia/linux-format/20180116/281681140273193
DietPi server ........................... In his quest for more Pi, Les Pounder is told to go on a diet. We think he may have misunderstood the request...
Linux Format 16 Jan 2018
DietPi may not look pretty, but under the hood we have a powerful yet easy-touse server thatβs suitable for all levels of user.
Les Pounder loves his pies too much, but didnβt realise this was made to make his Pi lose weight.
When someone says Raspberry Pi, then of course you think Raspbian, the default distribution for the Pi. However, Raspbian is a big distribution that requires at least an 8GB microSD card for all its great software. What if you want to build your own Pi server? Do you really need all that bloat? Sounds like we need to go on a diet!
DietPi is a lightweight distribution that uses the base Raspbian (Debian) distribution, DietPi kernel 4.9.52 from 2 October 2017, and puts it on the cabbage soup diet. Gone is the desktop, Sonic Pi and other popular applications and in their place we find a bare bones server distribution offering stability and low-power consumption.
But DietPi has a neat trick up its sleeve: its ease of use. Typically, setting up a server takes time and skill, but what DietPi provides is an easy-to-use workflow for those wishing to set up a simple server in their home or development environment.
DietPi is best enjoyed on a 4GB or larger microSD card and itβs compatible with every model of Raspberry Pi, even the very first model of Pi back in 2012! Installing DietPi on an SD is identical to Raspbian, requiring the image to be written to a blank card. On boot DietPi doesnβt have a flash boot sequence; rather, it gets to work straight away. Via an interactive installer that updates the distribution to the latest software, very handy as this ensures the system is up to date and ready to be used.
Once installed, DietPi uses a whiptail menu system, which can be called at any time from the command line, enabling anyone to administrate their system. We used the Ethernet configuration tool to copy our interface settings (from DHCP) and set them as a static IP, all by pressing one key!
Simple stuff
Installing software is also ridiculously easy. DietPi has its own software menu that includes software which has been optimised for use with the distribution. To test installing software with DietPi we went to the Software Optimised menu and found ourselves in wonderland!
The list of optimised software isnβt exhaustive, but it covers many popular applications for a Raspberry Pi. NFS, Samba and Cloudprint servers can be easily installed, and we even found an entry to install OctoPrint, a web interface for 3D printers. We chose to install PiHole, an ad-blocking DNS server that sits on your home network and stops ads from being served to devices using the DNS server. The install for PiHole took around ten minutes, largely due to a number of package installs. But once installed all we needed to do was point our devices to the DietPi/ PiHole DNS server and everything worked.
The simplicity is the beauty of DietPi. From the menu we can set up our Ethernet/WiFi to use static IP addresses. We can configure Bluetooth and I2C for devices and sensors. We can stress-test the RAM, CPU and file system to ensure that our platform is fit for purpose. DietPi can also be used in the same manner as a normal Raspbian or Debian server.
Weβre impressed with DietPi. Itβs a lightweight, practical distribution for those that just want to quickly deploy a server. It may not be for hardcore sysadmins, as servers typically require βtweakingβ for the best results (and thereβs nothing stopping a sysadmin from doing that), but for the Pi user wishing to try something new, DietPi is an ideal choice. It may even bring new life to older models of Raspberry Pi.
@Fourdee Btw. great step and words you found in dialog with ARMbian, also from their side it sounds promising. I really hope this brings the unnecessary conflict to an end.
I don't have an ARMbian device here to see, but generally we could pronounce credits for kernel and base image providers more, to counteract the feeling that some people from ARMbian seemed to have? Liking or disliking the final product is everybody's freedom, so nothing about that.
@MichaIng
Btw. great step and words you found in dialog with ARMbian
Yes, agree π― π
also from their side it sounds promising.
Hmm ... no. It's only Mikhail as far as I noticed. He is okay, have help out alot in past. It is a little bit more difficult and problems are more deeper. Igor is the head, the founder of ARMbian. If we loose his goodwill .... Please have a look: http://www.armbian.com/authors/ First row is the importent. Mr. tk is since a long time go to the barricades: Example
The hole thing is similar to the problems with some members of Pihole projekt.
Head/founder: jacobsalmela
, similar to Igor
Project member who will help out: DL6ER
, similar to Mikhail
Spitfire: Mr. tk , similar to Pro-mo-faux
From my point of view, the main coder have no problem with Dietpi so far. Good coders like good coders and respect each other and their effort. But the others don't grant any appreciation to other projects, based on their work.
That's why I have put in to cancel all cheap Chinese boards. No support for Orange-. Banana-, Nano-Pi rubish stuff => no need for armbian any more ... Who cares, if we support thirty or fifteen SBC. Most problems and support goes into this 10 $ garbage.
I don't have an ARMbian device here to see ...
You can get one form me, but you don't want it ... π
Igor, Mikhail and others did a great job. This boards will not work without them. The manufacturer did nothing, beside to take your money and throw every month a new board on the market.
@Fourdee
I'll make a start:
π ... let's see what will come to pass. Nothing more you/we can do. Thanks!
Personally I don't think, spitfire will fall silent for a long time. But anyway, the ball is in their field for now.
@k-plan Okay, let's see how things develop, we/Fourdee can not do much than trying to defuse/calm from our side and do best to pronounce and give credits enough to the work we are based on.
From PiHole there was/is something similar? There I can absolutely not understand, as it is the total other way round: Not we are based on their work, but they do benefit from every Distro/image that offers their work! So they should be thankful for everyone, who provide PiHole, or not? π€ Okay at least of it is not implemented so badly, that claims finally arrive them, instead of Distro maintainer for bad implementation π. At least during my tests PiHole worked fine always. We just need to remove the pihole-FPL
service on uninstall, always forget to add PR about that after recognizing again and again π.
The manufacturer did nothing, beside to take your money and throw every month a new board on the market.
No idea how much they support kernel/hardware developers with samples, API, help etc., but yeah, I am always wondering how often there would be exactly no ready-to-run image for a board, without work of ARMbian and others. One should think, that board and well maintained image belongs strictly together. But yeah, that is also open source: Many people providing much for nothing but interest, joy and believe in doing something helpful π.
@MichaIng
From PiHole there was/is something similar? So they should be thankful for everyone, who provide PiHole
You can make your own experience.
https://www.reddit.com/r/pihole/
https://discourse.pi-hole.net/
https://twitter.com/The_Pi_Hole
To get it clear. I personally be a great fan of PiHole, use and like it very much. This project let me start with DietPi, because I want not only single use Pihole on my devices and not only on RPi`s. (Yes, PiHole supported only RPi installation in these days ...) I want a easy installation, configuration, more installed software and a display for stuff running on my device.
http://dietpi.com/phpbb/viewtopic.php?f=15&t=541
DietPi has his own PiHole fork before. https://github.com/Fourdee/DietPi/issues/233#issuecomment-198621675 <= please read π
But delightful is, you have no old neglected deposits with all this things.
Now you have all mystery and must live with this. π
@MichaIng
At least during my tests PiHole worked fine always. We just need to remove the
pihole-FPL
service on uninstall, ...
Yes, tested to uninstall. It's correct, pihole-FTL
have to be removed manually.
But I don't know how to figure it out with this git stuff.
always forget to add PR about that after recognizing again and again π.
Yes, please do so. π
And if you can, a working fix for pihole -up
will be very nice.
As well as a installation fix and freeze to Pi-hole Version v3.2.1
| Web Interface Version v3.2.1
| FTL Version v2.13.2
for all DietPi v6.x images based on Jessie (Odroid and RPi)
Nice feature will be to have now the updated block page.
π ... just need this to get a always fine working PiHole installation.
instead of Distro maintainer for bad implementation
.. maybe due to new version (of PiHole server) there is something broken? I also broke my VM now by uninstalling PiHole and one "automated installed" dependency too much. Their uninstaller is a pain: Why not just auto-marking instead of purging, including all possibly important core system packages automatically...
I have to say nothing .... π π
DietPi-Software
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mode: Uninstall
[ OK ] Uninstalling Pi-hole: block adverts for any device on your network
[?] Are you sure you would like to remove Pi-hole? [y/N] y
[β] Root user check
[i] All dependencies are safe to remove on Raspbian
[i] The following dependencies may have been added by the Pi-hole install:
apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsmasq dnsutils iputils-ping lsof netcat sudo unzip wget idn2 lighttpd php-common php-cgi php-sqlite3
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
Please NEVER use suggested uninstall defaults. π Uninstall script have until now only RPi and Raspbian on their focus! π
No harm meant, only joking, if it was not that much mournful ... π’
@Fourdee @MichaIng @ project evangelists π
After reading igors statment, all should be clear form now on. What a shame.
Unfortunately, I do not have be wrong.
Sorry.
k-plan locked as too heated and limited conversation to collaborators just now but keep a eye on it, every one can read it
@MichaIng @k-plan
My little personal notes for pihole problems:
Pi-hole v3.3 Released: Itβs βExtraβ Special
Problem: Pi-hole install script always install the last version. In this case eg. Pi-hole Version v3.3 | Web Interface Version v3.3 | FTL Version v3.0
If youβre running Jessie and you updated Pi-hole to v3.3, you likely ran into issues.
This is because the version ofdnsmasq
that ships with it does not support thelog-queries=extra
option, which we use in v3.3. What Should I Know About The New Logging?
- After updating, the old-style log files will not be readable by FTL
Update 2018-02-14 18:43 (version issues and not working after update)
If youβre running Jessie, your version of
dnsmasq
will not work with this release, so youβll need to revert to the previous versions: ( must usesudo
orroot
account)dietpi-software list | grep pi-hole id 93 | =2 | pi-hole: block adverts for any device on your network | +git +webserver | http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&start=20#p174 dietpi-software reinstall 93 cd /etc/.pihole git fetch --tags git checkout v3.2.1 cd /var/www/html/admin git fetch --tags git checkout v3.2.1 cd "$HOME" pihole -r pihole checkout ftl v2.13.2 pihole -v rm /var/log/pihole* reboot
Option two ONLY RPi and BEFORE any Update is started:
dnsmasq
that supports the extra flag (v2.76)Please note, you should only try this on Rasbpian Jessie and do so at your own risk (but in our opinion the risk is low)
First step: Download more recent version of
dnsmasq
compiled for Raspbian Jessie from the official sourceswget https://archive.raspberrypi.org/debian/pool/main/d/dnsmasq/dnsmasq-base_2.76-5+rpi1_armhf.deb wget https://archive.raspberrypi.org/debian/pool/main/d/dnsmasq/dnsmasq_2.76-5+rpi1_all.deb ## Ensure requirements are fulfilled sudo apt-get install libnetfilter-conntrack3 libmnl0 ## Install downloaded packages sudo dpkg -i dnsmasq-base_2.76-5+rpi1_armhf.deb sudo dpkg -i dnsmasq_2.76-5+rpi1_all.deb ## Verify it worked dnsmasq -v Dnsmasq version 2.76 Copyright (c) 2000-2016 Simon Kelley Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify pihole -up
DietPi pihole update problem: (tested with Jessie and Stretch, DietPi v15x and v6.x, Pi-hole v3.1 => v3.2 => v3.3 )
if it is ONLY a FTL version update,
:~# pihole -v
Pi-hole version is v3.2 (Latest: v3.2)
AdminLTE version is v3.2 (Latest: v3.2)
FTL version is vDev-437af07 (Latest: v2.13.1)
you can simple start pihole -up
without doing anything else. (tested - work)
if it is a pi-hole core and/or webinterface update
:~# pihole -v
Pi-hole version is v3.2 (Latest: v3.2.1)
AdminLTE version is v3.2 (Latest: v3.2.1)
FTL version is vDev-437af07 (Latest: v2.13.1)
you have to do (tested - work for me) :
#Exit path for non-root logins.
if (( $UID != 0 )); then
echo -e 'Error: Root privileges required. Please run the command with "sudo"\n'
exit 1
fi
## have a look, what is to update
pihole -v
## if only FTL version have to be updated // can be omitted
# pihole -up
## recheck version (if successful update)
# pihole -v
## finished
## if it is a core/AdminLTE version update or more - Backup lighttpd.conf
mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bak
## https://discourse.pi-hole.net/t/why-does-the-pi-hole-installer-produce-the-error-unable-to-complete-update-contact-pi-hole/4159
cd /etc/.pihole;git reset --hard
cd /var/www/html/admin;git reset --hard
cd "$HOME"
## now update pi-hole
pihole -up
## recheck version (if successful update)
pihole -v
## Restore lighttpd.conf
cp /etc/lighttpd/lighttpd.conf.bak /etc/lighttpd/lighttpd.conf
## Restart all running services
dietpi-services restart
## finished
see:
https://github.com/Fourdee/DietPi/issues/1375
Why does the Pi-hole installer produce the error βUnable to complete update, contact Pi-holeβ?
DietPi will not remove pihole
completely
( running service pihole-FTL
after uninstall )
@ MichaIng
At least during my tests PiHole worked fine always. We just need to remove the pihole-FPL service on uninstall, ...
Yes, tested to uninstall. It's correct, pihole-FTL have to be removed manually.
see:
https://github.com/Fourdee/DietPi/issues/548#issuecomment-366512459
DietPi missing pihole updated block page (since v3.x)
see:
https://github.com/Fourdee/DietPi/issues/1313
pihole uninstaller ONLY optimised for standard Raspbian installation
DietPi-Software
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mode: Uninstall
[ OK ] Uninstalling Pi-hole: block adverts for any device on your network
[?] Are you sure you would like to remove Pi-hole? [y/N] y
[β] Root user check
[i] All dependencies are safe to remove on Raspbian
[i] The following dependencies may have been added by the Pi-hole install:
apt-utils dialog debconf dhcpcd5 git iproute2 whiptail bc cron curl dnsmasq dnsutils iputils-ping lsof netcat sudo unzip wget idn2 lighttpd php-common php-cgi php-sqlite3
[?] Do you wish to go through each dependency for removal? (Choosing No will leave all dependencies installed) [Y/n] n
Please NEVER use suggested uninstall defaults.
see:
https://github.com/Fourdee/DietPi/issues/548#issuecomment-366534242
@MichaIng @k-plan
I've cleaned up what was discussed in the heat of the moment. What was said, was needed to be said and read by the people who needed to read it, at that time.
But I want to thank you both for your support throughout this. I appreciate it more than you know, you are both legends π
β€οΈ
:heart:
:hear_no_evil: :blush:
Done a little bit housekeeping at forum and here.
But now back to our day-to-day routine.
hmm
dietpi-update
https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/server_version-6
Loop detected on cache-lcy19223-LCY: TuFMEtJVICCO9h0Zpde/N9L9b7tugV9xeSSEt9M0!LCY!cache-lcy19223-LCY
@MichaIng @k-plan Webserver stats: https://dietpi.com/report.html
@Fourdee
Wow, nice to see, you have reach the goal within 20 hours: :heart:
https://www.gofundme.com/dietpi#updates
Impressive, the two really big donations by TLLim888 (Pine64) and Simon Fell:
https://twitter.com/TLLim888/status/993340398054473728
https://www.gofundme.com/dietpi
@MichaIng
@Fourdee : can you please delete Update 1
, it was out of competition .... :wink:
@MichaIng
Sent you an email, need your address. To send you the spare dev sample of NanoPi K1+. π
Nextcloud install timed tests: https://twitter.com/DietPi_/status/994654906630983681
@MichaIng
Dreamed about this last night π https://twitter.com/DietPi_/status/997550976532930561
@Fourdee π π Fantastic idea!!
We need to test carefully where we implement, as it should also depend if the bottleneck is actually CPU or instead RAM or disk and in case of RAM and disk multi threading might make things slower.
Max threads of course should be based on CPU count minus amount of additional CPUs that the commands use by themselves. But found indeed most commands/processes just using a single CPU.
@MichaIng
Kids broke my glasses beyond repair π . Can't see anything past 5cm in front of my face π€£
I'am going to be out of commission for at least a few days, until new glasses arrive.
v6.12 rolled forward to next week. Feel free to apply commits as you need them, including PR's. I can check everything (if needed) when I return.
CPU freq control for intel:
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
echo 50 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
@MichaIng
GPU is the way to go π€£
@MichaIng
I've noticed our webserver has a delay during peak hours. Due to Apache2 hitting the worker limit:
I'll increase workers to 80, see how it goes. Might be an issue with hitting swapdisk though. /etc/apache2/mods-available/mpm_*
Just need to restart apache2 service, at some point lol π
@Fourdee Jep, check my one email in between the permissions issue spam (π€£), was thinking if cloudflare allows server restart (also whole machine), while still providing static content (image downloads and all that is related to software installs)? Not sure if just a static web page version is available (see that on other websites, when down, by times) or as well static download content.
This would allow some updates, DietPi to version 6.14 e.g. as well π. I think forum and ssh server (survey) down is no big issue, but would be nice if software installs would not fail due to dietpi.com downloads not available.
@MichaIng
Quick question, did you parcel turn up that I sent a few weeks back, one with the SBC and something to hold? π
@Fourdee Ah jep, sorry totally forgot to reply. Too busy the last days/weeks π . The mugs are great βοΈ π. Do not yet find a task for the SBC. Maybe when study is finished and job is there, so I can afford some media gimmicks π.
Many many thanks, I really appreciate β€οΈ!
@MichaIng
Awesome π Good to hear they arrived.
@MichaIng
Server upgraded to 4GB + 4cores. But performance sucks.
Server was pretty much idle, 35 seconds for CPU test.
Gonna upgrade the CPU power rating + Β£4/month
EDIT: done Now 13 seconds for CPU test!!!! π₯
@MichaIng
Beta released to public: https://twitter.com/DietPi_/status/1051493658971779072
@Fourdee π π₯
To make it more attractive to users, we could add the info, that "beta" can be considered similar stable then prior "master"/release, since we internally test dev before merging. So the system is to further improve stability of "master"/release and avoid hotfix updates, not to publicly test in-development features or replace careful own testing by this.
Btw.:
β¬: https://github.com/Fourdee/DietPi/issues/2140 π and https://dietpi.com/phpbb/viewtopic.php?f=9&p=15060#p15060
@Fourdee I am out of town until Saturday night. Most likely without internet access.
Close in favour of: https://github.com/MichaIng/DietPi/wiki/Release-tasks
dietpi-update mirror
Can be dietpi.com. So:
/var/www/downloads/dietpi-update_mirror/master/
/var/www/downloads/dietpi-update_mirror/master/
Odroid Magazine Mirror:
/var/www/downloads/misc/odroid_magazine/pull.sh