Closed Arszilla closed 1 year ago
I think the issue is your use of $(...)
. Escape it so that it's \$(...)
.
That should not be the issue, as seen in stage1/01-sys-tweaks/00-run.sh.
Additionally, I am using { }
, not ( )
.
Take an extra moment to think about this.
Correct me if I am wrong, but in your statement above, you've said:
I think the issue is your use of $(...). Escape it so that it's \$(...).
This statement means that my usage of $(...)
(which doesn't exist in my script, as I used ${...}
) is the cause, and I should use \
to escape it, which is inapplicable.
I did try using:
${FIRST_USER_NAME}
"${FIRST_USER_NAME}"
\${FIRST_USER_NAME}
All failed with the same error:
[15:41:42] Begin /home/arszilla/custom_raspbian/stage2/04-custom-tweaks/01-run.sh
/bin/bash: line 11: fetch: command not found
sudo: unable to resolve host kali-dell: Name or service not known
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] file ...
/bin/bash: line 11: -v: command not found
/bin/bash: line 11: -n: command not found
sudo: unable to resolve host kali-dell: Name or service not known
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] file ...
sudo: unable to resolve host kali-dell: Name or service not known
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T
timeout] [-u user] file ...
/bin/bash: line 11: ...: command not found
/bin/bash: line 11: ...: command not found
/bin/bash: line 11: 033[2m%s033[22m: command not found
/bin/bash: line 11: fg: no job control
sudo: unable to resolve host kali-dell: Name or service not known
/bin/bash: line 242: $'\E[38;2;255;0;0m': command not found
You have round brackets here: $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)
I am utterly stupid for not realizing the curl command. I sincerely apologize if I came off rude as I totally missed that line. I was too focused on ${FIRST_USER_NAME}
for some reason, thinking the issue was there.
Thanks for the pair of eyes @XECDesign, and apologies once again.
No, no problem at all. Hope it all works now.
I am attempting to install some custom packages and tweaks for my custom Raspberry Pi OS for my Raspberry Pi Zero and Raspberry Pi 4, while generating a lite image, as I do not need a DE etc. The images are customized using a config like the one below:
Inside of
stage2
, I have a folder named04-custom-tweaks. The layout of the
stage2` is as follows:As seen above,
04-custom-tweaks
containspackages
and01-run.sh
, similar to how the other folders are structured. The custom packages I am installing are as follows:Since I am installing
docker.io
andzsh
, I am attempting to add myFIRST_USER_NAME
to thedocker
group, and installoh-my-zsh
to bothFIRST_USER_NAME
androot
, with the following01-run.sh
script:I can't seem to install
oh-my-zsh
for both my user androot
, as I am getting the following error:Can I request your assistance on how can I fix this so I can have my images built the way I need them?
Thanks!