Newbie questions

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Gumbootboy
Posts: 2
Joined: Sun Apr 01, 2018 3:04 pm

Newbie questions

Post by Gumbootboy »

Hi,

I have been using DietPi for a while now, but have only just registered.

I have a Raspberry Pi 3, and my aim is to have a nice set up, with a few custom scripts/configurations set up. But also to be able to rebuild from scratch automatically.

To do that I use dietpi.txt and an auto script on installation, and after a bit of testing I have a few questions.

1. I was using "AUTO_SETUP_LOCALE=n_US" in dietpi.txt, not sure why I used that value (something to do with Plex), but I think it was wrong and caused some Locale issues. I have updated the Locale manually and update the script to use "AUTO_SETUP_LOCALE=en_GB.UTF-8" which I will try next time I install. My first question however is, it takes so long to run the initial install, like 30-45mins. This only includes installing (Minidnla, transmission, openvpn). Is there a way to speed this up? Is it a network issue, could I do an offline install somehow?

For now, I've decided to do a basic install with almost no config, then take an image, and just back up from it, rather than a fresh install, while I am testing.

2.

I'm not sure if it is related to the locale issue, but in this latest version I've noticed two things. When I SSH, i am not using bash as default. Is that new? Or had I maybe customised that previously?

Also the dietpi-* scripts are not working unless i am in the /Dietpi/dietpi folder. and run them with "sudo ./dietpi-software" as an example'

Not sure if related by on first install my auto script creates a new user:
useradd -m -p abcd1234 gumbootboy
usermod -a -G sudo gumbootboy

Any help or points in the right direction would be great.
I'll keep testing.
Gumbootboy
Posts: 2
Joined: Sun Apr 01, 2018 3:04 pm

Re: Newbie questions

Post by Gumbootboy »

Just providing an update.

Re #1 - I updated the locale, which fixed the locale issues. I would still be interested to know if there is a way to do an offline/quick install.

Re #2 - I've updated my new user creation to include setting the default shell as bash. The Dietpi-* scripts (and I also realised the Dietpi summary information, eg, time, date, version, creator, twitter, donate link, top 5 command) all show/work after 'sudo su -' into root. I'm not sure if this is because my new user I'm creating doesn't have high enough privileges, or if it will only work/show for root.

I've looked at automatically perfomring sudo su - by default on login, but I don't think that's the best idea. Is there a reason the dietpi commands only run for root?

New question:
#3 - I forgot to mention this before but Fail2Ban does not install when I configure it to using the dietpi.txt
AUTO_SETUP_INSTALL_SOFTWARE_ID=73 #will install fail2ban

Has anyone else experienced this? Not sure if it's user error, or if I should create a bug report.
Post Reply