For setting the env variable
I did:
root@DietPi:~# cat /etc/profile.d/set_country_code.sh
#!/bin/bash
COUNTRY=CA
export
root@DietPi:~# chmod +x /etc/profile.d/set_country_code.sh
Reboot failed again so I had to toggle power
On booting I now get:
gordon@gordon-linux ~ $ ssh root@192.168.1.111
root@192.168.1.111's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
declare -x HOME="/root"
declare -x LANG="en_CA.UTF-8"
declare -x LOGNAME="root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CONNECTION="192.168.1.105 39309 192.168.1.111 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="xterm"
declare -x USER="root"
-bash: /DietPi/dietpi/login: No such file or directory
root@DietPi:~# env
TERM=xterm
SHELL=/bin/bash
SSH_TTY=/dev/pts/0
USER=root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
LANG=en_CA.UTF-8
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=192.168.1.105 39309 192.168.1.111 22
_=/usr/bin/env
root@DietPi:~#
I'm going to have to restart with a fresh image and try again as it seems like the hole that we're digging is just getting deeper.
Gordon