Dietpi Nordvpn

Dietpi has made it possible for me to be running Nextcloud, Pi-hole, NZBGet and more on a Pi4 with minimal effort. Sure Docker could do the same but there is something about running things natively that I like. Automation features like Dietpi Backup and Drive Manager are just the icing on the cake to a great eco-system. Thank you for Dietpi.' DietPi VPN DietPi-VPN is a combination of OpenVPN installation and DietPi front end GUI. Allowing all VPN users to quickly and easily connect to any NordVPN, ProtonVPN, or any other server that uses OpenVPN in TCP or UDP, using only open source software. I managed VPN - Howchoo How Wi-Fi hotspot or access Pi NordVPN Support cybercrime, taking steps to Raspberry Pi into a VPN - DietPi.com Docs + Nordvpn + ufw using NordVPN (with best Kodi OpenVPN plugin on Step 1: Turn your up NordVPN on Raspberry GUI for NordVPN users; to use your Raspberry age of online surveillance your Raspberry: Transfer.

Hello friends,
I use NordVPN and Transmission from Dietpi and it's not useful to use this in combination, because NordVPN does not allow Port forwarding.
Does port forwarding work with a VPN?Port forwarding and triggering could work with a VPN protocol in general, but not with NordVPN. Our apps block almost all port communication from within your device except for the ones most commonly used by popular applications. This was a tough decision that may inconvenience some users, but we’d like to explain why we did this.Browsing the internet with open ports opens you up to a number of security risks. Blocking access to all ports except those that are essential for our VPN to operate and for you to enjoy the internet is part of how NordVPN keeps you secure. We wouldn’t be able to maintain our excellent security track record otherwise. wrote:
https://nordvpn.com/blog/port-forwarding/
port forwarding is essentialliy for seeding. It's possible to leech, but not to seed. So for many funny things, you cannot combine this.
I have not found a solution to configure transmission for SOCKS5, which NordVPN supports;
Also on my installation with dietpi i've added Plexmediaserver. This is a really funny thing, but if you use NordVPN you cannot access your plexserver externally anymore. Here we have the same problem: NordVPN does not allow Port Forwarding, so your Plexserver will not bee accessable anymore. Plex uses as standard Port 32400.
So I cannot follow the recommentation of DietPi to use the combination with NordVPN.
bye
Luzi

DietPi launcher¶

It provides an easy access to all DietPi OS tools, and it could be accessed by running next command:

DietPi software¶

dietpi-software will be automatically displayed on the first login after the installation. It can be accessed at any time running next command:

It is one of the core tools, enabling you to install or uninstall one or more DietPi optimised software titles.

Software overview¶

  • Begin by selecting Browse Software in the main menu list and hit Enter.

  • Scroll through the list of available software - for more details check the DietPi software list.

The list of optimised software is long. You either browse the list or use the option Search.

  • To install software on your DietPi, select it in the list and press Space to add it to the installation list. If you change your mind, hit Space again to remove it.

  • Once you’ve selected the software you wish to install, press Tab to switch to the confirmation options at the bottom. Select OK, then hit Enter to confirm.

  • To begin installing your software, select Install from the main menu list, then hit Enter. DietPi will ask you to confirm your choice(s). Select OK, then hit Enter to begin the installation.

The software you selected will begin to install at this point. Once the process is completed, you may be asked to restart your device. Press OK to confirm.

DietPi supports a large number of software titles. Instead of scrolling through the Browse Software list to find a specific software title, you may use the Search Software option. Type in the software ID or any keyword from its title or description and you’ll get a list filtered by matching results.

Quick selections¶

This lets you select your preferred SSH server. Also you can uninstall any SSH server to save memory and to exclude any external ssh based access.

DietPi-Software allows you to easily choose a method of accessing the files on your DietPi system. Installing one of DietPi’s file server choices will allow you to access and share files on your DietPi system.

DietPi will then automatically install and setup the file server for you. DietPi will also clean and remove any previous file server from your system.

The default destination directory for file servers is /mnt/dietpi_userdata.

The reasons for choosing ProFTPD over Samba may be:

  • ProFTPD outperforms Samba in all aspects of performance.
  • ProFTPD can max out the RPi 100 Mbit connection with minimal CPU usage.
  • Samba server on a RPi v1 will hit 100% CPU usage at 40 Mbit transfer rate.

See file servers overview for further information.

Various logging methods can be selected from lightweight to full. If you don’t require log files, get a performance boost. If you need full system logging features, DietPi can do that too.

The Log System can be changed at any time by selecting a different “Log System” from the menu.

See also https://dietpi.com/docs/software/log_system/.

The DietPi Webserver Preference system allows you to choose your favourite webserver for use in DietPi installations. If not decided, read more on Which WEBSERVER to CHOOSE ?

Automatic selection

When you select any software for installation that requires a webserver (e.g. Pi-hole, Nextcloud, Webmin, installed via Browse Software), DietPi will automatically install, configure and optimize your chosen Webserver Preference.

As a result you will not need to manually select/install a webserver stack. DietPi will do it all for you.

In DietPi, we class user data as:

  • Data storage for applications. Some examples are ownCloud/Nextcloud data store, BitTorrent downloads and SQL data store.
  • The location where your File Server choice will point to, if you install one, like Samba Server or ProFTPD.
  • The location where you can upload and store your media content, for other applications to use, like Kodi, Emby or Plex.

For all software you install in dietpi-software, you can access your user data with /mnt/dietpi_userdata. Regardless of where the data is physically stored, a symlink will automatically be created for you if needed.
To check where the physical location is, you can run the following command:

You can move your user data to another location (e.g. USB drive). Simply run dietpi-software and enter the User data location menu option:

  • If you need to setup a new external drive, select Drive Manager to launch DietPi-Drive Manager.
  • Use the List option to select from a list of mounted drives, or, select Manual for a custom location.

DietPi will automatically move your existing user data to your new location.

Install or remove software¶

Install software item(s) which have been selected via Browse Software list, via Search Software, or via the SSH Server, File Server or Log System choices.

Select one or more software items which you would like to be removed from your DietPi system.

Beside the interactive software installation via dietpi-software with checking wanted software packages and installing them, there is the option of installing the software packages via the shell command line.
The usage of dietpi-software is:

The <software_id> which has to be given is the one which is present in the software list within the dietpi-software dialogues:

E.g. to install Chromium, LXQt and GIMP you have to run next command in the terminal:

DietPi LetsEncrypt¶

Access the frontend for the Let's Encrypt integration.
Run dietpi-letsencrypt.

In case of a non installed Certbot package it is installed at first:

In the installation dialog some entries have to be made which are needed for the certificate (domain, Email), the other entries are configuration options. It is recommended to leave the key size at 4096 bits.

Dietpi Nordvpn App

When you execute the certificate installation it also installs it for your selected web server, i.e. you do not have to edit your web server configuration files, the installation routine does all for you.

Port forwarding on your router

To be accessible from the internet, typically your router needs a port forwarding configuration to route incoming HTTP and HTTPS accesses to your DietPi system.
Although you only need a HTTPS protocol forwarding (typically port 433), you also need to forward the HTTP protocol (typically port 80) to your DietPi system, otherwise the certification renewal procedure will fail (due to the fact that the certification renewal procedure takes place several months later you may have forgotten this issue).

DietPi VPN¶

DietPi-VPN is a combination of OpenVPN installation and DietPi front end GUI. Allowing all VPN users to quickly and easily connect to any NordVPN, ProtonVPN, or any other server that uses OpenVPN in TCP or UDP, using only open source software.

Although we enable forced encryption on all our BitTorrent clients, if you wish to ensure complete privacy and piece of mind for all your downloaded content, using a VPN is critical.
You can use any VPN provider you want, but DietPi-VPN specifically supports ProtonVPN and NordVPN.

Simply run dietpi-vpn to use the GUI, allowing you to setup your connection and provider.
DietPi will also automatically start and connect the VPN during system boot if you select autostart.

DietPi-VPN comes with an optional killswitch that will shut off your internet in the case of you losing your connection to the VPN sever. This will still allow access from your LAN and allow you to fix any problems using SSH, if needed.

DietPi DDNS¶

DietPi-DDNS is a generic Dynamic DNS (DDNS) client. It can be used to setup a cron job which updates your dynamically changing public IP address every defined amount of minutes against a DDNS provider, so that your public domain stays valid. It supports No-IP and replaces the No-IP client, which was available as install option on previous DietPi versions.

  • DuckDNS: https://www.duckdns.org/
  • No-IP: https://www.noip.com/
  • Dynu: https://www.dynu.com/
  • Alternatively you may use any other provider which has an API URL for updating your dynamic IP address.

Type dietpi-ddns -h to get an overview of supported CLI commands and options:

  • If no argument is given, the interactive menu is started.
  • Use dietpi-ddns <options> apply <provider> to apply a cron job for the given provider and use the following options set details:
    • <provider> is either the name of a supported provider, or any custom update URL.
    • Use -d <domains> to add one or a comma-separated list of multiple domains, which should point to the public IP address of this system.
    • Use -u <username> to set a username or identifier. This is not required for all providers, in case of a custom provider, it is used as username for HTTP authentication.
    • Use -p <password> to set a password or token. This is not required for all providers, in case of a custom provider, it is used as username for HTTP authentication.
    • Use -t <timespan> to set an update interval in minutes, which is purely optional and defaults to 10 minutes.
    • If you did already setup DietPi-DDNS before, the apply command can also be used to change one of the above settings. All other options are optional then.
  • Use dietpi-ddns remove to remove any cron job that was setup before.

System configuration¶

DietPi configuration¶

Configure various system settings, from display / audio / network to auto start options.
Run dietpi-config.

The display options are used to

  • Set your screen resolution, or go headless to save additional resources.
  • Control your GPU memory splits.
  • Enable/disable the RPi camera.

The audio options are used to

  • Change sound cards with ease (e.g.: HiFiBerry / Odroid HiFi shield).

The performance options are used to

  • Overclock your system with a vast selection of overclocking profiles for your device.
  • Change the CPU governor and tweak your ARM temperature limits.

The advanced options are used to

  • Configure swap file size
  • Configure time synchronization and real time clock source
  • Update device firmware
  • Toggle serial console
  • Toggle Bluetooth

The security options are used to

  • Change password and hostname

The language/regional options are used to

  • Set timezone, locale and keyboard options. Everything you will need to make it feel like home
Nordvpn

The network options are used to

  • Scan and connect to your WiFi router with ease
  • Change to a static IP address on your network
  • Configure your proxy settings
  • Test internet connection
  • Toggle IPv6 support

The miscellaneous network options options are used to

  • Select an APT mirror to connect to the Debian (or Raspbian) APT repository.
  • Select an NTP mirror to synchronise your system time.
  • Choose timeouts for network and URL connection tests.
  • Network Drives redirects you to the DietPi-Drive_Manager which allows you to mount Samba and NFS shares on your DietPi system.
  • No-IP is a dynamic DNS provider which allows you to access your home network/server with a static domain name. The client is required to inform No-IP of your current dynamic external IP on a regular basis.

The autostart options are used to

  • Quickly and easily change what software runs after boot. Kodi, Desktop, console and many more

The tools options are used to

Dietpi Nordvpn
  • Perform CPU, RAM, file system and network benchmarks, optionally upload your results and review statistics at: https://dietpi.com/survey/#benchmark
  • Perform CPU/IO/RAM/DISK stress tests to test the stability of your system, e.g. after applying some overclocking.

DietPi drive manager¶

Feature-rich drive management utility. It is a lightweight program that allows you to:

  • Manage drives: Mount, format external drives
  • Maintenance drives: Check and repair drives, resize (expand) file system, change reserved blocks count
  • Set drive attributes: Set read only file systems, set idle spindown time
  • Move DietPi User data
  • Transfer RootFS to external drive (Raspberry Pi and some ODROID boards only)
  • Disable swap file, change swap file size
  • Run benchmarks on drives

Run dietpi-drive_manager.

To use an additional drive (example USB drive) the following steps have to be done:

  1. Run dietpi-drive_manager to bring up the main menu.
  2. Plug in the drive you wish to use.
  3. Select Refresh from the menu (if it doesn’t show up straight away, give it a few seconds for system to update, then try again).
  4. Select the drive you wish to use from the list, then press Enter.

    If needed, format the drive before usage selecting the Format option (file system type description see below).
    Remark: Formatting drives can only be done unmounted.

    If needed, mount the drive via the Mount selection. If mounted, commands Unmount, Benchmark, User data, Swapfile and Read only are present.

You can move the location of the DietPi user data (default /mnt/dietpi_userdata) or the swap file to a different location on a target drive. This may be useful if your file system containing the DietPi user data resp. swap file has only little space left. Therefore execute the following steps (example user data, swap file is quite similar):

  1. Run dietpi-drive_manager to bring up the main menu.
  2. Have the target drive connected and mounted (see description above).
  3. Select the target drive and press Enter.
  4. In the drives menu select User data resp. Swapfile and follow the instructions.

    • Move user data:
    • Change swap file size:

Formatting file systems lead you to these dialogues:

In the latter dialog you have to choose the file system type. The following selections may be chosen:

  • EXT4 (Default)
    Recommended for users who plan to use this drive solely on the DietPi system (e.g. dedicated drive).
    + The standard for Linux file systems
    - Not compatible on a Windows system

  • NTFS
    Recommended for users who plan to use this drive on a Windows system.
    + Compatible on a Windows system
    - High CPU usage during transfers (spawns a process)

  • FAT32
    Recommended for users who want high compatibility across multiples operating systems.
    + Highly compatible with all OS
    - 4GB file size limit
    - 2TB drive size limit
    - Does not support file/folder permissions
    - Does not support symbolic links

  • HFS+
    Recommended for Mac owners.
    + Mac OS file system

  • BTRFS
    A modern Linux file system.
    +https://github.com/Fourdee/DietPi/issues/271#issuecomment-247173250

  • F2FS
    Linux file system designed for flash/NAND based drives.
    + Flash-Friendly File System: https://en.wikipedia.org/wiki/F2FS

  • exFAT
    Windows file system, intended for external drives, e.g. USB flash drives or SD cards
    + Flash-Friendly File System: https://en.m.wikipedia.org/wiki/ExFAT

If you want to extend your DietPi SD card space by moving the system to a larger memory card, this can be achieved by the following steps:

  1. Shutdown your system and put the SD card into a card reader of a different systems.
  2. Copy the SD card contents to the new (larger) SD card. This can e.g. be done using
    • the dd command (command line option)
    • balenaEtcher or Rufus (graphical user interface option)
    • gnome-disks (graphical user interface option)
  3. Boot the system with the copied memory card.
  4. Run dietpi-drive_manager to bring up the main menu.
  5. Select the disk containing the root (/) partition and press Enter.
  6. Select Resize and press Enter.

  7. Reboot your system to expand the root file system to use the whole space of the new memory card.

A similar procedure may be used when moving the SD card contents to a smaller SD card. During this procedure you typically need to shrink the partition size (e.g. with parted or gparted) before copying the partition image to a different memory card. Also, do the resize to use the full space on the new card.

DietPi autostart¶

Defines software packages to start when the DietPi OS boots up. Example, boot into the desktop with Kodi running.
Run dietpi-autostart.

Autostart option in dietpi.txt (first initial boot)

When booting the DietPi system the first time, the autostart option can also be set via the file dietpi.txt. See option
AUTO_SETUP_AUTOSTART_TARGET_INDEX=
for further information.
The numbers shown on the left in the dietpi-autostart command correspond to the values in dietpi.txt.

DietPi services¶

Provides service control, priority level tweaks and status print.
Run dietpi-services.

The dialog to tweak a service is entered by highlighting the service (keys Up and Down) and pressing Enter. The configuration dialog (example: cron service) looks like this:

DietPi LED control¶

Change triggers for the status LEDs on your SBC/motherboard.
Run dietpi-led_control.

Depending on your used hardware, the number of entries in the dialog will change.

DietPi cron¶

Modify the start times of specific cron job groups.
Run dietpi-cron.

DietPi JustBoom¶

Change the audio settings.
Run dietpi-justboom.

If the sound output is configured, the following dialog appears:

If no sound output is configured, the following dialog appears:

In this case you have to e.g. install a sound program package via dietpi-software or configure the sound output e.g. via dietpi-config.

DietPi survey¶

DietPi Survey allows the DietPi project to obtain general information regarding your system and installed software.

Privacy and goals

The following privacy rules and goals are considered:

  • No private data is sent. No one can identify you. No IP address is obtained.
  • DietPi Survey is an Opt-in system, which means that it won’t send any data without your explicit interactive permission.
  • On your first interactive login on a fresh DietPi system, you will be asked once for the Opt-in/Opt-out mode.
  • The transmitted data allows the DietPi project team to achieve the best future possible experience for everyone to
    • focus and improve especially popular areas,
    • ensure the most common devices and software titles will receive support and improvements,
    • keep up support for software and hardware that you use.

In short words: By selecting Opt IN, you are supporting the DietPi project with no impact to your system or private data.

The DietPi Survey data file is sent when you install software with dietpi-software and update DietPi with dietpi-update.

The uploaded data is tiny (about 1 KB) and will not affect your internet bandwidth or system performance.

Within the command line program dietpi-survey the exact copy of the transmitted data can be viewed. The transmitted file is written in bash code to allow us faster report page creation (e.g. done for https://dietpi.com/survey).

Following is an example how this file may look like:

The tail of the file lists installed software packages by their IDs. The example above shows a very basic system, so only two software packages (#103: DietPi-RAMlog, #104: Dropbear) are installed. To find out the names of the installed software package IDs installed via dietpi-software you can execute

This gives the IDs, names and info of software. The above example would show

You can select Opt-in or Opt-out of DietPi Survey by running the following command and follow the instructions:

This may also be achieved by setting SURVEY_OPTED_IN=0 (Opt-out) or SURVEY_OPTED_IN=1 (Opt-in) in /boot/dietpi.txt before the first system boot.

To check the actual status, dietpi-survey may be called. The current mode will be pre-selected and highlighted.
Alternatively you can use

which displays the status like

System maintenance¶

DietPi update¶

Update DietPi OS version to the latest version available and informs when updates for apt upgrade are available.
Run dietpi-update.

DietPi cleaner¶

Clean up not necessary files from the operating system and free up valuable disk space.
Think of it as lightweight CCleaner for DietPi and Linux.
Run dietpi-cleaner.

By simulating the cleaner process (via menu entry Test) you get a preview of the deletions the cleaner does before you start the cleaning process (via menu entry Run).

Cleaner Types¶

DietPi-Cleaner uses modules which you can be switched on or off before running the cleaning process. Select them via the main menu entry Cleaners.

Files cleaner¶

The files cleaner allows you to customize a list of filenames to search and remove, during the cleaning process. Select them via the main menu entry Files.

DietPi log clear¶

Clear log files in /var/log/.
Run dietpi-logclear.

DietPi backup (backup/restore)¶

Fully backups DietPi setup. It also includes the restore capability from an already made DietPi backup.
DietPi-Backup allows you to Backup and Restore your DietPi system. Same effect as Windows system restore. A snapshot of the system that you can restore at any time.
You can also customize which files/folders are included and excluded through the GUI.

If you have broken your system, or want to reset your system to an earlier date, this can all be done with DietPi-Backup. Just make sure you create a backup first.
Run dietpi-backup.

Remark: In the case that rsync is not installed, it is installed.

DietPi-Backup is purely based on Rsync

DietPi file explorer¶

Lightweight file manager and explorer.
Run dietpi-explorer.

DietPi sync¶

DietPi-Sync allows you to duplicate a directory from one location (Source Location) to another (Target Location).
Run dietpi-sync.

Dietpi Nordvpn Review

Example: If you want to duplicate (sync) the data on your external USB HDD to another location, you simply select the USB HDD as the source, then, select a target location. The target location can be anything from a networked samba file server, or even an FTP server.
Each sync includes a leading dry run, after which you can check the expected result before deciding if you want to continue with the actual sync.

Misc tools¶

Useful DietPi shell functions¶

There are a couple of general commands which have a shortcut in DietPi:

  • G_OBTAIN_CPU_TEMP - Prints integer format CPU temp in degree Celsius, for monitoring probably better than full cpu output
  • G_OBTAIN_CPU_USAGE - Prints CPU usage in percent in [x]x.x format
  • G_TREESIZE - Shows current directory/file sizes, recursively

The following commands are non-interactive, but error-handled wrappers for apt-get commands, useful for scripts which shall run non-interactive but allow interactive repeat and solution attempts:

  • G_AGI - apt-get install
  • G_AGP - apt-get purge
  • G_AGA - apt-get autoremove --purge
  • G_AGUP - apt-get update
  • G_AGUG - apt-get upgrade
  • G_AGDUG - apt-get dist-upgrade

Dietpi Nordvpn Apk

DietPi CPU info¶

Displays CPU temperature, processor frequency, throttle level etc.
Run cpu.

DietPi morse code¶

Dietpi Nordvpn Download

It converts a text file into morse code.
Run dietpi-morsecode.

DietPi bug report¶

Run dietpi-bugreport.