DBordello
Posts: 38
Joined: Tue Nov 03, 2015 6:20 pm

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

Tue Dec 29, 2015 6:27 pm

fourdee4d wrote:Image

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_
Fantastic. I updated my previous installations. I am looking forward to trying out the automation for my next install.

dkdhanda8
Posts: 19
Joined: Fri Jan 01, 2016 3:01 pm

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

Fri Jan 01, 2016 3:04 pm

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

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Fri Jan 01, 2016 4:02 pm

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
Writing the SD card with the DietPi image is all you need to 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

dkdhanda8
Posts: 19
Joined: Fri Jan 01, 2016 3:01 pm

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

Tue Jan 05, 2016 7:35 am

fourdee4d wrote:
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
Writing the SD card with the DietPi image is all you need to do.

Are you seeing anything on the screen?
well i was having problem with my sd card reader :o , flashed using phone . Its working great thnx ! well having some trouble with dns right now will check it if having any prob ill ask here ;D

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Wed Jan 06, 2016 8:26 pm

Image

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

AfouToPatisa
Posts: 26
Joined: Mon Nov 10, 2014 2:10 pm

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

Thu Jan 07, 2016 10:40 am

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?

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 1:32 pm

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?
Hi AfouToPatisa,

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

User avatar
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

Thu Jan 07, 2016 1:43 pm

fourdee4d 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.
Use grep -e 'Hardware' -e'Revision' /proc/cpuinfo

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 ~ #
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).
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.

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 2:36 pm

DougieLawson wrote:
fourdee4d 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.
Use grep -e 'Hardware' -e'Revision' /proc/cpuinfo

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 ~ #
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).
Thanks Dougie, appreciate it.

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

User avatar
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

Thu Jan 07, 2016 2:45 pm

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.

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 3:24 pm

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.
Interesting, thanks Dougie.

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

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 4:13 pm

For reference. I have one of the RPi B 256mb boards (ye olde one) when RPi started manufacturing in the UK.

Code: Select all

root@DietPi:~# grep -e 'Hardware' -e'Revision' /proc/cpuinfo
Hardware        : BCM2708
Revision        : 1000004
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

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

User avatar
davidcoton
Posts: 6897
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

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

Thu Jan 07, 2016 4:48 pm

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.
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

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 5:10 pm

davidcoton wrote:Almost up to date list here
Epic find. Thanks for sharing.

"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

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 07, 2016 6:10 pm

Got bored, so decided to create a script that gets your board (no pun :) ) info based on the elinux page.
rpi_boardinfo.png
rpi_boardinfo.png (14.89 KiB) Viewed 9605 times
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

pikaede
Posts: 20
Joined: Tue Sep 08, 2015 2:36 pm

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

Mon Jan 11, 2016 2:44 am

got bored aswell. so i post the result.
:lol:
- RPi Board Info -
Revision | a21041
Released | Q1 2015
Model | 2 Model B
Memory | 1024 MB
Manufacturer | Embest, China

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Thu Jan 14, 2016 5:40 pm

Image

v106 Released! - Audiophiles rejoice!

http://DietPi.com



Image
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

Sl8rBug
Posts: 12
Joined: Fri Oct 02, 2015 10:18 am
Location: Lara, Victoria, Australia

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

Sun Jan 17, 2016 8:53 am

Dan,
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
The following response resulted

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 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

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Sun Jan 17, 2016 3:02 pm

Sl8rBug wrote:When I tried to install gpiozero, it failed!

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 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
Hi 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.
python3-gpiozero : Depends: python3-rpi.gpio but it is not going to be installed
Did you try to install the missing dependency?

Code: Select all

apt-get install python3-rpi.gpio
I've just looked at the DietPi sourcecode for GPIO installation on Jessie, turns out we also had issues with repo dependencies. We use pip to install it:

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

Sl8rBug
Posts: 12
Joined: Fri Oct 02, 2015 10:18 am
Location: Lara, Victoria, Australia

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

Mon Jan 18, 2016 8:30 am

Dan,
Thanks for the explaination.
That clears up a couple of other queries that I had been pondering.

Regards,
John

AfouToPatisa
Posts: 26
Joined: Mon Nov 10, 2014 2:10 pm

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

Mon Jan 18, 2016 9:40 am

fourdee4d wrote:
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
Hi 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:

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
Theres probably a better method to disable USB power at kernel level, to prevent brief power up before command is executed.

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?

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Mon Jan 18, 2016 1:49 pm

AfouToPatisa wrote: EDIT: Running cat /proc/1/comm returns init which makes me realise I'm on SYSVInit and not systemd?
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).

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

AfouToPatisa
Posts: 26
Joined: Mon Nov 10, 2014 2:10 pm

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

Mon Jan 18, 2016 4:26 pm

fourdee4d wrote:
AfouToPatisa wrote: EDIT: Running cat /proc/1/comm returns init which makes me realise I'm on SYSVInit and not systemd?
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).

If you need any assistance with the above, give me a shout.
Thanks Dan, yes I am on Wheezy indeed but unfortunately I do not have physical access so I cannot update to Jessie.
I am looking at init at the moment, I will post back if I have anything successful so that other people can use it.

muda
Posts: 29
Joined: Sat Aug 15, 2015 5:54 pm

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

Tue Jan 19, 2016 5:23 pm

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 ?

fourdee4d
Posts: 362
Joined: Mon Sep 17, 2012 10:31 pm
Location: East Midlands, UK

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

Tue Jan 19, 2016 6:01 pm

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 ?
Hi Muda,

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.
#------------------------------------------------------------------------------------------------------
Here is an example dietpi.txt file with automation enabled. This will install Kodi, Transmission and Samba server with no user input required:
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

Return to “General discussion”