From a678efb55be1308811de58e1b485604225464934 Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:04:21 -0400 Subject: [PATCH 01/11] Create packages --- ui/maui/packages | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ui/maui/packages diff --git a/ui/maui/packages b/ui/maui/packages new file mode 100644 index 0000000..89640c2 --- /dev/null +++ b/ui/maui/packages @@ -0,0 +1,16 @@ +maui-agenda +maui-clip +maui-nota +maui-pix +maui-shelf +maui-station +mauikit +mauikit-accounts +mauikit-archiver +mauikit-calendar +mauikit-documents +mauikit-filebrowsing +maukit-imagetools +mauikit-terminal +mauikit-texteditor +mauiman From 9e6c36d1b51b1fb25f5763d27539c85444cef96d Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:11:48 -0400 Subject: [PATCH 02/11] Update packages --- ui/maui/packages | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/maui/packages b/ui/maui/packages index 89640c2..b9eb27b 100644 --- a/ui/maui/packages +++ b/ui/maui/packages @@ -14,3 +14,5 @@ maukit-imagetools mauikit-terminal mauikit-texteditor mauiman +maui-shell +cask-server From 640b54fa3599ad9c151e1c548c0ff35c8470e19e Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 16 Sep 2024 12:16:50 -0400 Subject: [PATCH 03/11] `add:` maui-core --- ui/maui/packages | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/maui/packages b/ui/maui/packages index b9eb27b..f4fdc53 100644 --- a/ui/maui/packages +++ b/ui/maui/packages @@ -16,3 +16,4 @@ mauikit-texteditor mauiman maui-shell cask-server +maui-core From 4e2857d8d9e1a2954f76b06f854a9dedece3d6b0 Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:09:56 -0400 Subject: [PATCH 04/11] Delete ui/maui directory --- ui/maui/packages | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 ui/maui/packages diff --git a/ui/maui/packages b/ui/maui/packages deleted file mode 100644 index f4fdc53..0000000 --- a/ui/maui/packages +++ /dev/null @@ -1,19 +0,0 @@ -maui-agenda -maui-clip -maui-nota -maui-pix -maui-shelf -maui-station -mauikit -mauikit-accounts -mauikit-archiver -mauikit-calendar -mauikit-documents -mauikit-filebrowsing -maukit-imagetools -mauikit-terminal -mauikit-texteditor -mauiman -maui-shell -cask-server -maui-core From 1dc1a333f5f99529475275648b47b5505b527f2e Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:20:12 -0400 Subject: [PATCH 05/11] Create README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1943664 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# Prerequisites +### Archlinux +```sh +sudo pacman -Syu --noconfirm +sudo pacman -S --neeeded devtools \ + base-devel \ + lsof \ + libarchive \ + dosfstools \ + util-linux \ + wget \ + arch-install-scripts \ + qemu-user-static \ + qemu-user-static-binfmt \ + e2fsprogs +``` +### Debian +```sh +sudo apt-get update +sudo apt-get install -y lsof \ + wget \ + util-linux \ + libarchive-tools \ + e2fsprogs \ + dosfstools \ + arch-install-scripts \ + fdisk \ + qemu-user-static +``` +Usage From 0969a026edab7fdf8b495b362196cab891435fb5 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 23 Sep 2024 11:39:42 -0400 Subject: [PATCH 06/11] Adding Guide --- README.md | 55 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 1943664..3b6701a 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,39 @@ -# Prerequisites -### Archlinux +# Arch Pine64 Build Guide + +This guide provides instructions for building an Arch Linux image for Pine64 devices. Follow the steps below to set up your environment and build the image. + +## Prerequisites +### Arch Linux + ```sh sudo pacman -Syu --noconfirm -sudo pacman -S --neeeded devtools \ - base-devel \ - lsof \ - libarchive \ - dosfstools \ - util-linux \ - wget \ - arch-install-scripts \ - qemu-user-static \ - qemu-user-static-binfmt \ - e2fsprogs +sudo pacman -S --needed devtools base-devel lsof libarchive dosfstools util-linux wget arch-install-scripts qemu-user-static qemu-user-static-binfmt e2fsprogs ``` + ### Debian + ```sh sudo apt-get update -sudo apt-get install -y lsof \ - wget \ - util-linux \ - libarchive-tools \ - e2fsprogs \ - dosfstools \ - arch-install-scripts \ - fdisk \ - qemu-user-static +sudo apt-get install -y lsof wget util-linux libarchive-tools e2fsprogs dosfstools arch-install-scripts fdisk qemu-user-static ``` -Usage + +## Building An Image +### Usage + +To build the project, use the following command: + +```sh +./build.sh [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir] +``` + +### Options + +- `-a ARCHITECTURE`: Specify the architecture for the build (e.g., arm, arm64). +- `-d device`: Define the target device for the build. +- `-u ui`: Choose the user interface to be installed. +- `-h hostname`: Set the hostname for the device. +- `--osk-sdl`: Enable the on-screen keyboard using SDL. +- `--noconfirm`: Proceed with the build without prompting for confirmation. +- `--cachedir directory`: Specify a directory to use for caching. +- `--no-cachedir`: Disable the use of a cache directory. + From a63a078726402921a7ae160c8b5d1a856114d416 Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:41:51 -0400 Subject: [PATCH 07/11] Delete README.md --- README.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 3b6701a..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Arch Pine64 Build Guide - -This guide provides instructions for building an Arch Linux image for Pine64 devices. Follow the steps below to set up your environment and build the image. - -## Prerequisites -### Arch Linux - -```sh -sudo pacman -Syu --noconfirm -sudo pacman -S --needed devtools base-devel lsof libarchive dosfstools util-linux wget arch-install-scripts qemu-user-static qemu-user-static-binfmt e2fsprogs -``` - -### Debian - -```sh -sudo apt-get update -sudo apt-get install -y lsof wget util-linux libarchive-tools e2fsprogs dosfstools arch-install-scripts fdisk qemu-user-static -``` - -## Building An Image -### Usage - -To build the project, use the following command: - -```sh -./build.sh [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir] -``` - -### Options - -- `-a ARCHITECTURE`: Specify the architecture for the build (e.g., arm, arm64). -- `-d device`: Define the target device for the build. -- `-u ui`: Choose the user interface to be installed. -- `-h hostname`: Set the hostname for the device. -- `--osk-sdl`: Enable the on-screen keyboard using SDL. -- `--noconfirm`: Proceed with the build without prompting for confirmation. -- `--cachedir directory`: Specify a directory to use for caching. -- `--no-cachedir`: Disable the use of a cache directory. - From 168646c7369a50e4c95a36b16eea1369e18fcccd Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:14:34 -0400 Subject: [PATCH 08/11] Create test.yml --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..67e7c59 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Build and Install + +on: + workflow_dispatch: + +jobs: + build_universal-barebone: + runs-on: ubuntu-latest #${{ matrix.platform }#} + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + #- name: Install tools + # if#: matrix.platform == #'self-hosted' + # run: | + # sudo pacman -Syu --noconfirm + # sudo pacman -S --noconfirm devtools \ + # lsof \ + # wget \ + # fdisk \ + # bsdtar + - name: Install tools + run: | + sudo apt-get update + sudo apt-get install -y lsof wget util-linux libarchive-tools e2fsprogs dosfstools arch-install-scripts fdisk qemu-user-static + - name: Run build script + run: | + chmod +x ./build.sh + sudo ./build.sh -u barebone -d pinetab2 -a aarch64 -n alarm -p 123456 From 74dde9433b80c213c99008dc48ab8a0e8dd5cf6d Mon Sep 17 00:00:00 2001 From: James Rose <92864596+RoseBlume@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:19:43 -0400 Subject: [PATCH 09/11] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67e7c59..e24ab01 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,4 @@ jobs: - name: Run build script run: | chmod +x ./build.sh - sudo ./build.sh -u barebone -d pinetab2 -a aarch64 -n alarm -p 123456 + sudo ./build.sh -u plasma_desktop -d pinetab2 -a aarch64 -n alarm -p 123456 From 6013cab4b7a9db682c5c99922b27368ec022064a Mon Sep 17 00:00:00 2001 From: James Date: Mon, 23 Sep 2024 12:21:29 -0400 Subject: [PATCH 10/11] Adding New Options --- build.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 2ee0fa5..05ab167 100755 --- a/build.sh +++ b/build.sh @@ -18,7 +18,7 @@ date=$(date +%Y%m%d) error() { echo -e "\e[41m\e[5mERROR:\e[49m\e[25m $1" && exit 1; } check_dependency() { [ $(which $1) ] || error "$1 not found. Please make sure it is installed and on your PATH."; } -usage() { error "$0 [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir]"; } +usage() { error "$0 [-a ARCHITECTURE] [-d device] [-u ui] [-h hostname] [-n username] [-p password] [--osk-sdl] [--noconfirm] [--cachedir directory] [--no-cachedir]"; } cleanup() { trap '' EXIT trap '' INT @@ -51,6 +51,8 @@ parse_args() { -d|--device) device=$2; shift ;; -u|--ui) ui=$2; shift ;; -h|--hostname) hostname=$2; shift ;; + -n| --username) username=$2; shift ;; + -p| --password) password=$2; shift ;; --noconfirm) NOCONFIRM=1;; --osk-sdl) OSK_SDL=1;; --cachedir) cachedir=$2; shift ;; @@ -209,20 +211,20 @@ systemctl disable systemd-resolved systemctl enable zramswap systemctl enable NetworkManager -usermod -a -G network,video,audio,rfkill,wheel alarm +usermod -a -G network,video,audio,rfkill,wheel $username $(echo -e "${postinstall[@]}") -cp -rv /etc/skel/. /home/alarm -chown -R alarm:alarm /home/alarm +cp -rv /etc/skel/. /home/$username +chown -R $username:$username /home/$username if [ -e /etc/sudoers ]; then sed -i 's/# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers fi -cat << FOE | passwd alarm -123456 -123456 +cat << FOE | passwd $username +$password +$password FOE From 055c970cf1db473bec9d20e0f76ca9373aca48ca Mon Sep 17 00:00:00 2001 From: James Date: Mon, 23 Sep 2024 12:25:09 -0400 Subject: [PATCH 11/11] Modifying UI --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e24ab01..67e7c59 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,4 @@ jobs: - name: Run build script run: | chmod +x ./build.sh - sudo ./build.sh -u plasma_desktop -d pinetab2 -a aarch64 -n alarm -p 123456 + sudo ./build.sh -u barebone -d pinetab2 -a aarch64 -n alarm -p 123456