Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:additional-software:imagebuilder [2021/12/20 01:06] – [Troubleshooting] clarify log > logged output someothertime | docs:guide-user:additional-software:imagebuilder [2024/04/01 16:18] – [Arch / Manjaro / EndeavourOS] sixx | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| Example dependencies in the most common distros: | Example dependencies in the most common distros: | ||
| - | ==== Arch / Manjaro | + | ==== Arch ==== |
| <code bash> | <code bash> | ||
| sudo pacman -S --needed base-devel ncurses zlib gawk git gettext \ | sudo pacman -S --needed base-devel ncurses zlib gawk git gettext \ | ||
| Line 33: | Line 33: | ||
| </ | </ | ||
| - | ==== CentOS / Fedora ==== | + | ==== Fedora ==== |
| <code bash> | <code bash> | ||
| sudo dnf install git gawk gettext ncurses-devel zlib-devel \ | sudo dnf install git gawk gettext ncurses-devel zlib-devel \ | ||
| openssl-devel libxslt wget which @c-development @development-tools \ | openssl-devel libxslt wget which @c-development @development-tools \ | ||
| - | @development-libs zlib-static which python3 | + | @development-libs zlib-static which python3 |
| </ | </ | ||
| - | ==== Debian / Ubuntu ==== | + | ==== Debian |
| <code bash> | <code bash> | ||
| - | sudo apt install build-essential | + | sudo apt install build-essential |
| - | zlib1g-dev gawk git gettext libssl-dev xsltproc rsync wget unzip python | + | gettext libssl-dev xsltproc rsync wget unzip python3 python3-distutils |
| </ | </ | ||
| + | ==== WSL ==== | ||
| + | This method is NOT OFFICIALLY supported. | ||
| + | But it works. | ||
| + | |||
| + | [[docs: | ||
| ===== Obtaining the Image Builder ===== | ===== Obtaining the Image Builder ===== | ||
| You can download an archive that contains the **Image Builder**, it is usually located in the same download page where you find the firmware image for your device. | You can download an archive that contains the **Image Builder**, it is usually located in the same download page where you find the firmware image for your device. | ||
| Line 75: | Line 80: | ||
| | '' | | '' | ||
| | '' | | '' | ||
| - | | '' | + | | '' |
| Run '' | Run '' | ||
| Line 140: | Line 145: | ||
| <code bash> | <code bash> | ||
| - | make image PROFILE=" | + | make image \ |
| + | PROFILE=" | ||
| + | PACKAGES=" | ||
| + | FILES=" | ||
| + | DISABLED_SERVICES=" | ||
| </ | </ | ||
| Line 161: | Line 170: | ||
| scp root@192.168.1.1:/ | scp root@192.168.1.1:/ | ||
| scp root@192.168.1.1:/ | scp root@192.168.1.1:/ | ||
| - | make image PROFILE=" | + | make image \ |
| + | PROFILE=" | ||
| + | PACKAGES=" | ||
| + | FILES=" | ||
| + | DISABLED_SERVICES=" | ||
| </ | </ | ||
| Line 275: | Line 288: | ||
| The '' | The '' | ||
| - | If you want to add a custom local repository, copy the '' | + | If you want to add a custom local repository, copy the '' |
| If you have problems with using you local repository because the " | If you have problems with using you local repository because the " | ||
| Line 291: | Line 304: | ||
| cat << " | cat << " | ||
| USER_NAME=" | USER_NAME=" | ||
| - | USER_GROUP=" | ||
| USER_SSHPUB=" | USER_SSHPUB=" | ||
| USER_SHELL="/ | USER_SHELL="/ | ||
| SUDO_USER=" | SUDO_USER=" | ||
| SUDO_GROUP=" | SUDO_GROUP=" | ||
| - | SUDO_GID="27" | + | groupadd -r "${SUDO_GROUP}" |
| - | uci set dropbear.@dropbear[0].PasswordAuth="0" | + | useradd -m -G "${SUDO_GROUP}" |
| - | uci set dropbear.@dropbear[0].RootPasswordAuth="0" | + | |
| - | uci commit dropbear | + | |
| - | / | + | |
| passwd -l " | passwd -l " | ||
| - | groupadd -r -g " | ||
| - | touch / | ||
| cat << EOI > / | cat << EOI > / | ||
| %${SUDO_GROUP} ALL=(ALL) ALL | %${SUDO_GROUP} ALL=(ALL) ALL | ||
| EOI | EOI | ||
| - | groupadd " | ||
| - | useradd -m -g " | ||
| - | -s " | ||
| - | passwd -d " | ||
| USER_HOME=" | USER_HOME=" | ||
| mkdir -p " | mkdir -p " | ||
| Line 316: | Line 319: | ||
| ${USER_SSHPUB} | ${USER_SSHPUB} | ||
| EOI | EOI | ||
| - | chown -R "${USER_NAME}: | + | uci set dropbear.@dropbear[0].PasswordAuth="0" |
| - | chmod -R go= "${USER_HOME}" | + | uci set dropbear.@dropbear[0].RootPasswordAuth="0" |
| + | uci commit dropbear | ||
| + | / | ||
| EOF | EOF | ||
| - | make image FILES=" | + | make image \ |
| + | FILES=" | ||
| + | PACKAGES=" | ||
| </ | </ | ||