Fantastic. I updated my previous installations. I am looking forward to trying out the automation for my next install.fourdee4d wrote:
v104 Released!
http://DietPi.com
New Features:
- DietPi-Automation:
DietPi automation allows users to fully automate the whole installation process with no user input, and, automatically install optimized software from the DietPi-Software catalogue.
See the link below for details and automation templates/examples. Essentially 1 file to setup the system how you want it, couldn't be simplier, and, you can share your automation file with other users.
http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=273#p1140
Various bugfixes and improvements:
https://github.com/Fourdee/DietPi/blob/ ... txt#L1-L21
Follow us on Twitter:
Get the latest news, updates and releases.
http://twitter.com/dietpi_
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
How do I install this . after writing image on SD card raspberry pi won't do anything . I have left it on for an hour but still... It isn't being detected what should I do
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Writing the SD card with the DietPi image is all you need to do.dkdhanda8 wrote:How do I install this . after writing image on SD card raspberry pi won't do anything . I have left it on for an hour but still... It isn't being detected what should I do
Are you seeing anything on the screen?
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
well i was having problem with my sd card readerfourdee4d wrote:Writing the SD card with the DietPi image is all you need to do.dkdhanda8 wrote:How do I install this . after writing image on SD card raspberry pi won't do anything . I have left it on for an hour but still... It isn't being detected what should I do
Are you seeing anything on the screen?

Re: DietPi | Minimal Raspbian. Optional "ready to run" softw

v105 Released!
http://DietPi.com
Added optimized installation option for WiFi Hotspot:
Turn your device into a wireless hotspot/access point with ease.
DietPi-Software will automatically install and configure your system for the WiFi Hotspot. It really couldnt be any easier.
You can also configure the SSID/Key/Channel from the DietPi-Config menu system on the fly.
http://fuzon.co.uk/phpbb/viewtopic.php? ... 1207#p1207
Various bugfixes and improvements:
https://github.com/Fourdee/DietPi/blob/ ... NGELOG.txt
Follow us on Twitter:
Get the latest news, updates and releases.
http://twitter.com/dietpi_
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
-
- Posts: 26
- Joined: Mon Nov 10, 2014 2:10 pm
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Great updates Dan, keep them coming.
minor detail -> my RPi0 gets detected as an RPi1 in the main screen after login, could you have a look?
minor detail -> my RPi0 gets detected as an RPi1 in the main screen after login, could you have a look?
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Hi AfouToPatisa,AfouToPatisa wrote:Great updates Dan, keep them coming.
minor detail -> my RPi0 gets detected as an RPi1 in the main screen after login, could you have a look?
As the RPi zero and RPi 1 have the same BCM2835 cpu ID, there is no other means to determine if the device is a RPi zero or RPi 1 that I know of.
DietPi will pick up the device as a RPi1 (512mb), which it technically is. The optimizations DietPi applies will still be correct for the device.
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
- DougieLawson
- Posts: 42312
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Use grep -e 'Hardware' -e'Revision' /proc/cpuinfofourdee4d wrote: As the RPi zero and RPi 1 have the same BCM2835 cpu ID, there is no other means to determine if the device is a RPi zero or RPi 1 that I know of.
Code: Select all
root@falcon /home/pi/python # grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware : BCM2708
Revision : 900092
root@falcon /home/pi/python #
Code: Select all
root@saturn ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware : BCM2708
Revision : 000e
root@saturn ~ #
Code: Select all
root@apollo ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware : BCM2708
Revision : 0010
root@apollo ~ #
Code: Select all
root@eagle ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware : BCM2709
Revision : a01041
root@eagle ~ #
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Thanks Dougie, appreciate it.DougieLawson wrote:Use grep -e 'Hardware' -e'Revision' /proc/cpuinfofourdee4d wrote: As the RPi zero and RPi 1 have the same BCM2835 cpu ID, there is no other means to determine if the device is a RPi zero or RPi 1 that I know of.Code: Select all
root@falcon /home/pi/python # grep -e 'Hardware' -e'Revision' /proc/cpuinfo Hardware : BCM2708 Revision : 900092 root@falcon /home/pi/python #
Code: Select all
root@saturn ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo Hardware : BCM2708 Revision : 000e root@saturn ~ #
Code: Select all
root@apollo ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo Hardware : BCM2708 Revision : 0010 root@apollo ~ #
Falcon is a zero, Saturn is a B, Apollo is a B+ and Eagle is a 2B. You can get similar stuff from the atags passed in cmdline (/proc/cmdline).Code: Select all
root@eagle ~ # grep -e 'Hardware' -e'Revision' /proc/cpuinfo Hardware : BCM2709 Revision : a01041 root@eagle ~ #
Do we know for certain if the revision will stay the same, throughout the life of manufacturing process for each device?
eg: RPi Zero = 900092 now, tomorrow all new RPi Zero's could be 900093 if using an updated SOC.
If not, I'll need to code a fallback just incase the above occurs.
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
- DougieLawson
- Posts: 42312
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
The magic number depends on model, memory, manufacturing plant. It's unlikely to change while the zero is only made at Pencoed, Wales.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Interesting, thanks Dougie.DougieLawson wrote:The magic number depends on model, memory, manufacturing plant. It's unlikely to change while the zero is only made at Pencoed, Wales.
I've got a few ideas for obtaining device name from BCM ID 1st, then revision number. If revision number not found, use a fallback based on memory size (as current), lets see what happens.
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
For reference. I have one of the RPi B 256mb boards (ye olde one) when RPi started manufacturing in the UK.
I've updated the script, if anyone is able to check it reports the correct model I would be greatful.
SImply run this command:
Code: Select all
root@DietPi:~# grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware : BCM2708
Revision : 1000004
SImply run this command:
Code: Select all
wget http://dietpi.com/downloads/tests/dietpi-obtain_hw_model -O hw_model_test.sh
chmod +x hw_model_test.sh
./hw_model_test.sh
#Print hw model file
cat hw_model
#Clean up
rm hw_model_test.sh
rm hw_model
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
- davidcoton
- Posts: 6897
- Joined: Mon Sep 01, 2014 2:37 pm
- Location: Cambridge, UK
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Almost up to date list here
See also An Raspberry Pi revision list class
I remember some discussion about how the bits are used, there are two different schemes and encoding for Warranty Void and some other bits. I think this is captured in the linked class, but it would be good if anyone knows where the discussion was.
See also An Raspberry Pi revision list class
I remember some discussion about how the bits are used, there are two different schemes and encoding for Warranty Void and some other bits. I think this is captured in the linked class, but it would be good if anyone knows where the discussion was.
Last edited by davidcoton on Thu Jan 07, 2016 5:21 pm, edited 2 times in total.
Location: 345th cell on the right of the 210th row of L2 cache
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Epic find. Thanks for sharing.davidcoton wrote:Almost up to date list here
"You learn something new everyday"
If you see a "1000" at the front of the Revision, e.g. 10000002 then it indicates[1] that your Raspberry Pi has been over-volted, and your board revision is simply the last 4 digits
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Got bored, so decided to create a script that gets your board (no pun
) info based on the elinux page.
Download/Run:

Code: Select all
wget https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/misc/rpi_boardinfo
chmod +x rpi_boardinfo
./rpi_boardinfo
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
got bored aswell. so i post the result.
- RPi Board Info -
Revision | a21041
Released | Q1 2015
Model | 2 Model B
Memory | 1024 MB
Manufacturer | Embest, China

- RPi Board Info -
Revision | a21041
Released | Q1 2015
Model | 2 Model B
Memory | 1024 MB
Manufacturer | Embest, China
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw

v106 Released! - Audiophiles rejoice!
http://DietPi.com

Shairport Sync - DietPi-Software optimized installation option now available.
Shairport Sync is an AirPlay audio player which plays audio streamed from iTunes, iOS devices and third-party AirPlay sources such as ForkedDaapd and Airfoil.
http://fuzon.co.uk/phpbb/viewtopic.php? ... 1221#p1221
Various bugfixes and improvements:
https://github.com/Fourdee/DietPi/blob/ ... NGELOG.txt
Follow us on Twitter:
Get the latest news, updates and releases.
http://twitter.com/dietpi_
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Dan,
Just did a fesh install of v106 on a Pi2.
When I tried to install gpiozero, it failed!
The following response resulted
I have the latest RPi.GPIO installed (during initial set-up) and the latest python 3.
I managed to install gpiozero by using pip3, but would like to be able to update it via apt-get.
Also, I noticed some of the packages are from the wheezy repository. Any reason for this, instead of the latest jessie?
eg. python3-smbus which does not install smbus.so, therefore needing a work-around.
Regards,
John
Just did a fesh install of v106 on a Pi2.
When I tried to install gpiozero, it failed!
Code: Select all
apt-get install python3-gpiozero
Code: Select all
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-gpiozero : Depends: python3-rpi.gpio but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I managed to install gpiozero by using pip3, but would like to be able to update it via apt-get.
Also, I noticed some of the packages are from the wheezy repository. Any reason for this, instead of the latest jessie?
eg. python3-smbus which does not install smbus.so, therefore needing a work-around.
Regards,
John
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Hi John,Sl8rBug wrote:When I tried to install gpiozero, it failed!I have the latest RPi.GPIO installed (during initial set-up) and the latest python 3.Code: Select all
The following packages have unmet dependencies: python3-gpiozero : Depends: python3-rpi.gpio but it is not going to be installed E: Unable to correct problems, you have held broken packages.
I managed to install gpiozero by using pip3, but would like to be able to update it via apt-get.
Also, I noticed some of the packages are from the wheezy repository. Any reason for this, instead of the latest jessie?
eg. python3-smbus which does not install smbus.so, therefore needing a work-around.
Regards,
John
DietPi uses the official Raspbian repos for your distro. As we do not modify /etc/apt/sources.list, this will in effect offer the same apt-get packages as the Official Raspbian image.
As for why Wheezy packages are being pulled in, this is being set by the maintainers of the Jessie Raspbian repo.
If you install a package with pip, you must remove it before installing the same package with apt-get. You should not use both.
Did you try to install the missing dependency?python3-gpiozero : Depends: python3-rpi.gpio but it is not going to be installed
Code: Select all
apt-get install python3-rpi.gpio
Code: Select all
if (( $RPIGPIO == 1 )); then
INSTALL_DESCRIPTION='RPi.GPIO'
Banner_Installing
#Wheezy
if (( $DISTRO == 1 )); then
AGI python-rpi.gpio python3-rpi.gpio
#Jessie - Use pip, as offical repo = python3-rpi.gpio: Depends: python3 (< 3.3) but 3.4.2-2 is to be installed
elif (( $DISTRO == 3 )); then
AGI python3-pip
pip3 install RPi.GPIO
fi
fi
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Dan,
Thanks for the explaination.
That clears up a couple of other queries that I had been pondering.
Regards,
John
Thanks for the explaination.
That clears up a couple of other queries that I had been pondering.
Regards,
John
-
- Posts: 26
- Joined: Mon Nov 10, 2014 2:10 pm
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
fourdee4d wrote:Hi Bill,AfouToPatisa wrote:Hi Dan/all.
I want to execute a command on RPi startup (disable USB with echo 0 > /sys/devices/platform/bcm2708_usb/buspower;) however I want it to execute at the very start of the boot process. Once the RPi is booted, then it can execute echo 1 > /sys/devices/platform/bcm2708_usb/buspower; and turn the USB back on. How can I achieve this? I am on B+ .
Thank you in advance,
Bill
The only method I can think of is to create a service that execs during boot. Its untested (I was unable to find the usb power controls on RPiv2), but you could try something like this for SystemD:Theres probably a better method to disable USB power at kernel level, to prevent brief power up before command is executed.Code: Select all
cat << _EOF_ > /etc/systemd/system/power_off_usb_during_boot.service [Unit] Description=Power off USB during boot DefaultDependencies=no Before=sysinit.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/bash echo 0 > /sys/devices/platform/bcm2708_usb/buspower #ExecStop= [Install] WantedBy=sysinit.target _EOF_ systemctl enable power_off_usb_during_boot systemctl daemon-reload
Hi Dan I'm resurrecting this post because I am trying to get this to work, however I'm getting:
root@DietPi:~# systemctl daemon-reload
Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory
Any idea why? Could it be because I am root? I don't have a user account. Is there any other way for me to achieve what I want?
Cheers,
Bill
EDIT: Running cat /proc/1/comm returns init which makes me realise I'm on SYSVInit and not systemd?
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
If you are running Wheezy, the script will need to be written/converted to LSB (sysvinit): https://wiki.debian.org/LSBInitScripts. The script i gave you is for Jessie (systemd).AfouToPatisa wrote: EDIT: Running cat /proc/1/comm returns init which makes me realise I'm on SYSVInit and not systemd?
If you need any assistance with the above, give me a shout.
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com
-
- Posts: 26
- Joined: Mon Nov 10, 2014 2:10 pm
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Thanks Dan, yes I am on Wheezy indeed but unfortunately I do not have physical access so I cannot update to Jessie.fourdee4d wrote:If you are running Wheezy, the script will need to be written/converted to LSB (sysvinit): https://wiki.debian.org/LSBInitScripts. The script i gave you is for Jessie (systemd).AfouToPatisa wrote: EDIT: Running cat /proc/1/comm returns init which makes me realise I'm on SYSVInit and not systemd?
If you need any assistance with the above, give me a shout.
I am looking at init at the moment, I will post back if I have anything successful so that other people can use it.
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Hi guys
Is there a good way to install DietPi on headless system via LAN ?
As I understand DietPi auto configures itself to some extent. Can txt file be modified in a way that system becomes accessible via SSH after initial install procedure ? I found possibility yo enable LAN and define ip. But what else can be needed ?
Is there a good way to install DietPi on headless system via LAN ?
As I understand DietPi auto configures itself to some extent. Can txt file be modified in a way that system becomes accessible via SSH after initial install procedure ? I found possibility yo enable LAN and define ip. But what else can be needed ?
Re: DietPi | Minimal Raspbian. Optional "ready to run" softw
Hi Muda,muda wrote:Hi guys
Is there a good way to install DietPi on headless system via LAN ?
As I understand DietPi auto configures itself to some extent. Can txt file be modified in a way that system becomes accessible via SSH after initial install procedure ? I found possibility yo enable LAN and define ip. But what else can be needed ?
DietPi comes with dropbear pre-installed to allow SSH connections once powered up.
DietPi-Automation allows you to completely automate the whole DietPi installation process:
http://fuzon.co.uk/phpbb/viewtopic.php?f=8&t=273#p1140.
All the available options are in the /boot/dietpi.txt file after you write the image under the following header:
Code: Select all
#------------------------------------------------------------------------------------------------------
# D I E T - P I
# 1st run settings
# All settings below will be applied on 1st boot/run.
#------------------------------------------------------------------------------------------------------
http://dietpi.com/downloads/dietpi-auto ... mated).txt
DietPi.com - Lightweight justice for your Raspberry Pi. Optimized, simplified linux for everyone
DietPi's web hosting is powered by MyVirtualServer.com
DietPi's web hosting is powered by MyVirtualServer.com