Tips and tricks

Here's a collections of tips and tricks for setting up the images.


Change root password

You should change root password.

# passwd
Changing password for root.
Current password: 
New password: 
Retype new password:
...
#

Extend root filesystem

If your SD card is larger than 4 GB, you can extend the root filesystem after writing it to the SD card.

# parted -a opt /dev/sdXXX "resizepart 2 100%"
...
# partprobe
...
# resize2fs /dev/sdXXX2
...
#

Set time zone

Set correct time zone to get correct system time.

# timedatectl set-timezone Europe/Stockholm
...
#

perl: warning: Setting locale failed

If you you get the following (or similar) warnings, fix it by installing and configuring locale.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "sv_SE.UTF-8",
	LC_MONETARY = "sv_SE.UTF-8",
	LC_ADDRESS = "sv_SE.UTF-8",
	LC_TELEPHONE = "sv_SE.UTF-8",
	LC_NAME = "sv_SE.UTF-8",
	LC_MEASUREMENT = "sv_SE.UTF-8",
	LC_IDENTIFICATION = "sv_SE.UTF-8",
	LC_NUMERIC = "sv_SE.UTF-8",
	LC_PAPER = "sv_SE.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
# apt-get install locales
...
# dpkg-reconfigure locales
...
#

debconf: unable to initialize frontend: Dialog

If you you get the following (or similar) warnings, fix it by installing dialog.

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/aarch64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/aarch64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
# apt-get install dialog
...
#