uaf-t3 / t3x

The cuddly waffle toolset for T3 Raspberry Pi image creation & maintance.
Other
4 stars 0 forks source link

Installer #32

Closed dayne closed 2 months ago

dayne commented 3 months ago

Starting down the path of making a "installer" for t3x.

This is a major overhaul of the t3x command itself.

Ready for review. We accept the PR once we have the following tested:

Testing while still private: Using the installer/bootstrap script will be easier once we get the repo pivoted public.

For now, you can do something like:

# from your workstation 
git clone repo # or just git fetch if you have it already
git checkout installer
git pull
cd .. # go up a level so you have the t3x folder ready to secure copy
scp t3x user@your_pi:
ssh user@your_pi
./t3x/scripts/bootstrap.sh

Once the repo is public we can use what is documented in the readme I hope:

curl https://raw.github.com/uaf-t3/t3x/main/scripts/bootstrap.sh | bash -e
dayne commented 2 months ago

This is ready for a review (and merge if it works for you).

The goal of this installer branch was to have a script that successfully installed t3x as a command into the pi environment. The bootstrap script works to get T3X installed (but not sane for full t3x use yet as it doesn't run the package installs.

I recommend this test to ensure this is ready for merge:

git switch installer
git pull
./script/bootstrap.sh

Once that is done open up your shell again and you should have the t3x command in your $PATH.

Do a few tests:

t3x
t3x --help
t3x --version
t3x poem
t3x starship 
t3x starship setup
t3x starship launch
t3x sanity                     # done already
t3x bootstrap              # done already earlier

Then you can see the seeds started of the new t3x pi

t3x pi
t3x pi help
t3x pi wallpaper

If all this feels good we've got a solid "installer" plus a pattern to follow for tools and scripts.

At that point you should review the README.

dayne commented 2 months ago

t3x pi lockdown is now available and looking for tests.