Page 6 of 13

PostPosted: Wed Dec 09, 2015 4:12 pm
by Fourdee
Wiring Pi Details:
Alternative GPIO interface library based on c. Bring out the engineer in you!

Installed Examples/Documentation:
Code: Select all
cd /root/wiringPi*

Test/view GPIO:
Code: Select all
gpio -v
gpio readall

More Info:

>> Return to DietPi-Software List

PostPosted: Tue Jan 05, 2016 2:55 pm
by Fourdee
WiFi HotSpot Details:
Turn your device into a wireless hotspot/access point. This allows other wireless devices to connect and share the internet connection.

  • 1x Ethernet connection
  • 1x Supported USB WiFi adapter | May vary depending on device and available WiFi drivers/modules, however, common adapters (eg: Realtek) should be fine.

WiFi HotSpot Connection Details:
Use the following credentials to connect devices to your hotspot.
  • SSID = DietPi-HotSpot
  • Access Key = dietpihotspot

Change WiFi HotSpot Settings:
Once installed, you can change the WiFi HotSpot settings (SSID/Key/Channel) at any time.
  • Run dietpi-config
  • Navigate to Networking Options: Adapters, then select WiFi.
  • Whilst in this menu, it is highly recommended you set the Country Code to your country. Depending on your country regulations, this could allow for channels 12/13 and increased power output (range) for the hotspot.

>> Return to DietPi-Software List

PostPosted: Mon Jan 11, 2016 2:26 pm
by Fourdee
Shairport Sync Details:
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.
Audio played by a Shairport Sync-powered device stays synchronised with the source and hence with similar devices playing the same source. This allows for synchronised multi-room audio on multiple devices.

AirPlay device name:
When searching for an Airplay device, select Shairport-Sync on DietPi

Stream from Android:

Stream from iPad/iPhone

Stream from a Windows/Mac PC:
Airfoil is an application that will let you stream audio playback directly to any Shairport Sync device. Press play on your favourite music player (eg: winamp/spotify) and click the speaker next to the DietPi device.

Audiophiles - Master music in realtime
By using a PC + Airfoil, you can master the music in realtime using the PC's CPU. This will allow all your shairport sync devices to sound even better without any performance hit on the device.
FuzonMp3 is a lightweight music player coded in c++ that sounds "as it should" and supports VST plugins. iZotope Ozone 5 is highly recommended for audiophiles.

Multiple Shairport devices / Change Shairport-sync Name:
If you are planning to use multiple Shairport devices on the same network, please make sure the hostname of each device is unique. The hostname will also effect the shairport-sync name.
This can be completed in dietpi-config > Security Options > Change Hostname.

Soxr interpolation:
Soxr interpolation will improve the output audio quality on Shairport. However, it is extremely CPU intensive.

Enable Soxr:
Code: Select all
sed -i '/interpolation = /c\interpolation = "soxr";' /usr/local/etc/shairport-sync.conf
dietpi-services restart

Disable Soxr:
Code: Select all
sed -i '/interpolation = /c\\/\/interpolation = "soxr";' /usr/local/etc/shairport-sync.conf
dietpi-services restart

If you have choppy playback using Soxr:
Increasing the shairplay-sync process priority (nice) may resolve the issue.
- Run dietpi-nice from the terminal
- Scroll down to and select 'Shairport Sync' then press enter
- Scroll up and select 'Nice : -20 (Highest priority)' then press enter.
DietPi will then automatically apply and set the nice level.

If the choppy playback continues, the CPU is most likely is insufficient for the processing required for soxr, and, should be disabled.

>> Return to DietPi-Software List

PostPosted: Tue Feb 09, 2016 4:45 pm
by Fourdee
Lighttpd Webserver Stacks:
Host your own websites with:
  • LLMP Webserver = Linux, Lighttpd, MySql, PHP
  • LLAP Webserver = Linux, Lighttpd, MariaDB, PHP
  • LLSP Webserver = Linux, Lighttpd, SQlite, PHP
All stacks come with PHP-FPM and PHP caches (APCU and OPcache). The sizes of which are optimized based on a share of total memory.

DietPi-Software | Webserver Preference System:
DietPi will install webserver stacks automatically, when required, based on your preference. Click here to find out more.

lighttpd-web-server.jpg (9.88 KiB) Viewed 30205 times

Access website:
url =
local directory = /var/www

Access phpinfo:
url =

Access memcache info:
APC/u =
Opcache =

MySql / MariaDB Details:
username = root
password = dietpi

>> Return to DietPi-Software List


PostPosted: Sun Mar 20, 2016 5:59 pm
by Fourdee
Lightweight CalDAV + CardDAV server.


1st Run Setup:
Access the setup page:
url =
Enter a new admin password for your account, then click the next/save button.

Enter MySql Details:
Use MySQL = Yes
MySQL host =
MySQL database name = baikal
MySQL username = baikal (Previous to DietPi v6.0 = root)
MySQL password = dietpi

Once completed, you will recieve the following information:
Baïkal was not able to establish a connexion to the configured MySQL database (as configured in Specific/config.system.php).

The MySql service must be restarted before BaiKal can start using the SQL db.
Code: Select all
service mysql restart

Access web interface:
url =
Login username = admin
Login password = What you set during 1st run setup above.

>> Return to DietPi-Software List


PostPosted: Sun Mar 20, 2016 6:02 pm
by Fourdee
RPi Monitor:
A slick, lightweight system stats monitor with web interface.

Access web interface:
url =

>> Return to DietPi-Software List


PostPosted: Sun Mar 20, 2016 6:08 pm
by Fourdee
Redis Server:
A non-SQL based (alternative) data store.

>> Return to DietPi-Software List


PostPosted: Fri Mar 25, 2016 2:10 pm
by Fourdee
Turn your Raspberry Pi into a energy usage monitor with web interface.

The DietPi optimized installation for EmonPi is aimed at users who want the following:
  • Ultra lightweight alternative installation to the official EmonPi image, with all the optimizations and features of DietPi. Allowing additional uses for your RPi device (eg: Owncloud server): Htop image of RPi Zero @ 700mhz, running our EmonPi installation.
  • Realtime and historical energy usage statistics uploaded to the cloud, viewable from a web browser and the Android App, from anywhere in the world.
  • Use an existing RPi, or, do not wish to purchase the full EmonPi package (eg: case).
  • Comfortable attaching the EmonPi to your Raspberry Pi GPIO. No soldering or wiring is required.

The DietPi installation does not support:
  • RF transmission. RF receiver (sensor nodes) is supported (eg: EmonTX/EmonTH)
  • EmonPi LCD screen.
  • Local emonCMS webserver on RPi. All emonPi data is sent to cloud.

  • 1x EmonPi PCB - Order one here: Select Assembled PCB Only - No Enclosure, all other items to none (£59). Image of what you will receive. This installation also supports the optional temperature sensor, but its not required.
  • 1x Raspberry Pi (any model)
  • 1x Good quality Raspberry Pi PSU - (5v 2amp). The EmonPi does not need its own power supply. It will draw power directly through the GPIO's on the RPi.

During Installation:
You will be asked to create a account and input your unique API Key. DietPi will automatically apply your API KEY during installation.
If you did not complete this, or wish to change the API Key on your system, please follow the steps located here, otherwise continue below.

Attach EmonPi to RPi

Connect power usage reader attachment
  • Plug the 3.5mm power usage reader into the EmonPi: Image
  • Clip the power user reader onto a positive (red) cable (cables are live, use caution): Image

Setup Inputs and feeds for Power usage:
Assign a name to your Power usage input.
Inputs are the realtime value of the data received from the EmonPi. We will assign a name to the power watt usage so we can use it later.
  • Login to your account
  • Click Setup at the top right of screen, then click inputs
  • Node 5 and Key 1 is your Power Wattage readings. Click the pencil on right hand side and change the name to Power WATT. Click the tick to save.

Setup feed:
Feeds allow your EmonPi data (inputs) to be saved to a database. You will need feeds setup if you want to view historical (and pretty) stats.
  • Login to your account
  • Click Setup at the top right of screen, then click inputs
  • Select the spanner on the far right of Power WATT
  • Check the screen matches this image, then click add
  • To verify the feed is active, click Setup at the top right of screen, then click inputs. You should see log under Process list of Power WATT: Image

Setup My Electric App:
My electric is an application that will allow you to view historical usage of your electricity. Also renders a pretty graph and can calculate costs.
  • Login to your account
  • Click Apps at the top of screen, then click My Electric
  • Under the Logout button at the top right, click the spanner
  • Under Power feed (Watts): select Power WATT
  • Under Bar graph feed: select Power WATT
  • Under Wh or kWh feed?: select Watt hours elapsed
  • Enter your unit costs for your electric (optional). then click Save
  • Press F5 to refresh the page and view your energy usage

>> Return to DietPi-Software List


PostPosted: Sun Mar 27, 2016 4:40 pm
by Fourdee
Tor HotSpot:
Turn your device into a WiFi HotSpot/Access Point with Tor routing. All WiFi HotSpot traffic will be routed through the Tor network, for all connected WiFi devices.
Perfect for users requiring anonymity and privacy.

Also Installs:
- WiFi HotSpot


WiFi HotSpot Connection Details:
Please see the following link:

Verify traffic is being routed through Tor:
On the connected WiFi device, go to the following URL:

>> Return to DietPi-Software List


PostPosted: Sun Apr 03, 2016 2:52 pm
by Fourdee
Webserver Preference System:

What is "Webserver Preference System"?
The DietPi webserver preference system allows you to choose your favourite webserver for use in DietPi installations.
When you select any software for installation that requires a webserver, DietPi will automatically install, configure and optimize your chosen webserver preference. DietPi will also install Mysql/Sqlite as required, depending on your software selections. Basically, you will never need to manually select/install a webserver stack again. DietPi will do it all for you.


Which Webserver is right for me?
- Memory use = High | Multithreaded = Yes
Feature-rich and popular. Recommended for beginners and users who are looking to follow Apache2 based guides.

- Memory use = Medium | Multithreaded = Yes
Lightweight alternative to Apache2. Nginx claims faster webserver performance compared to Apache2. Ideal for medium-high traffic situations where Lighttpd will suffer.

- Memory use = Low | Multithreaded = Optional - Some drawbacks
Extremely lightweight and is generally considered to offer the "best" webserver performance on Linux for SBC's (single board computers). Recommended for users who expect low webserver traffic and/or personal use.
Although the DietPi installation of Lighttpd is set to single threaded, do not be put off by this, in low usage scenarios (<10 users) it will still outperform Nginx and Apache2.

Multitheading is supported by Lighttpd and can be enabled in the configuration file:
  • Edit the file /etc/lighttpd/lighttpd.conf
  • Add the entry (change 4 to your total core count)
    Code: Select all
    server.max-worker = 4
  • Restart services
    Code: Select all
    dietpi-services restart

Further reading & benchmarks:

What software will trigger a webserver installation?
If you select any software in dietpi-software for installation, that requires a webserver to function.
  • PiHole
  • Ampache
  • Owncloud
  • DietPiCam

I only want to install a LAMP stack, what should I do?
Unless you specifically need a webserver stack, it is recommended that you allow DietPi to install webserver stacks automatically. This will ensure compatibility and stability on your system, for the webserver choice you have made.

Where can I change the preference setting?
Run dietpi-software and select Webserver Preference from the menu. This setting can NOT be changed, if an existing webserver is installed on the system.

>> Return to DietPi-Software List