From 1f7d12fc2bfdd060b55f3e7bc7ce0757aae60e16 Mon Sep 17 00:00:00 2001 From: elmiller Date: Wed, 22 Oct 2025 21:03:40 -0400 Subject: [PATCH 1/3] added yes pip to some commands, added comments of what to do --- scripts/ubuntu-test-install.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/scripts/ubuntu-test-install.sh b/scripts/ubuntu-test-install.sh index 7bc8be9..7757674 100644 --- a/scripts/ubuntu-test-install.sh +++ b/scripts/ubuntu-test-install.sh @@ -3,12 +3,27 @@ # This is not meant directly executed # just the set of commands to install in a fresh ubuntu vm for testing +# if a sudo password is needed, how can this process be automated? +# can it only be automated with the entire process to be automated? sudo apt install curl -sudo apt install npm +yes | sudo apt install npm -sudo apt install pkg-config +yes | sudo apt install pkg-config +# TODO: use here-strings or here-documents to provide input to this command curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl -sL https://raw.githubusercontent.com/oseda-dev/oseda-cli/refs/heads/main/scripts/curl-install.sh | $SHELL + +# initialize a project +# basically do everything except deploy a final project + +# open default presentation in browser + +oseda init + +oseda run + +# open local host in browser, look up command to do that + From 735b96c21f486ff52d0e814c81bde51c45bb01b4 Mon Sep 17 00:00:00 2001 From: 22lavonne <22lavonne@gmail.com> Date: Fri, 7 Nov 2025 15:11:05 -0500 Subject: [PATCH 2/3] fixed rust install command to automatically install default settings --- scripts/ubuntu-test-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/ubuntu-test-install.sh b/scripts/ubuntu-test-install.sh index 7757674..9992cd1 100644 --- a/scripts/ubuntu-test-install.sh +++ b/scripts/ubuntu-test-install.sh @@ -11,16 +11,20 @@ yes | sudo apt install npm yes | sudo apt install pkg-config -# TODO: use here-strings or here-documents to provide input to this command -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +# restart the terminal after installing rust +reset curl -sL https://raw.githubusercontent.com/oseda-dev/oseda-cli/refs/heads/main/scripts/curl-install.sh | $SHELL +# TODO: # initialize a project # basically do everything except deploy a final project # open default presentation in browser - +# not sure how to automate this part, +# also need to write code to login to github account in order to initialize an oseda project oseda init oseda run From 4ebad848287a70da11f0d6f735c5983e9c0081b9 Mon Sep 17 00:00:00 2001 From: 22lavonne <22lavonne@gmail.com> Date: Mon, 10 Nov 2025 18:20:53 -0500 Subject: [PATCH 3/3] added more descriptive comments, added todo comments --- scripts/ubuntu-test-install.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/scripts/ubuntu-test-install.sh b/scripts/ubuntu-test-install.sh index 9992cd1..78a1e00 100644 --- a/scripts/ubuntu-test-install.sh +++ b/scripts/ubuntu-test-install.sh @@ -3,31 +3,25 @@ # This is not meant directly executed # just the set of commands to install in a fresh ubuntu vm for testing -# if a sudo password is needed, how can this process be automated? -# can it only be automated with the entire process to be automated? +#TODO: make a MOCK_DATA.sh file to hold sudo password, as well as GitHub credentials sudo apt install curl +# Pipe yes into these installation commands yes | sudo apt install npm yes | sudo apt install pkg-config curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -# restart the terminal after installing rust +# Restart the terminal after installing rust so it gets added to the path. reset curl -sL https://raw.githubusercontent.com/oseda-dev/oseda-cli/refs/heads/main/scripts/curl-install.sh | $SHELL # TODO: -# initialize a project -# basically do everything except deploy a final project +# Automate logging into a dummy GitHub account so a new oseda project can be initialized +# Initialize and run a new oseda project in the user's browser -# open default presentation in browser -# not sure how to automate this part, -# also need to write code to login to github account in order to initialize an oseda project oseda init -oseda run - -# open local host in browser, look up command to do that - +oseda run \ No newline at end of file