installer: explain the options a bit more
This commit is contained in:
parent
750a7ee0b5
commit
9a56026612
@ -34,9 +34,12 @@ install_graphical_backend()
|
|||||||
{
|
{
|
||||||
while true; do
|
while true; do
|
||||||
if [ -z "$BACKEND" ]; then
|
if [ -z "$BACKEND" ]; then
|
||||||
|
echo_text ""
|
||||||
|
echo_text "Choose graphical backend"
|
||||||
echo_ok "Default is Xserver"
|
echo_ok "Default is Xserver"
|
||||||
echo_text "Wayland is EXPERIMENTAL needs kms/drm drivers doesn't support DPMS and may need autologin"
|
echo_text "Wayland is EXPERIMENTAL needs kms/drm drivers doesn't support DPMS and may need autologin"
|
||||||
read -r -e -p "Backend Xserver or Wayland (cage)? [X/w]" BACKEND
|
echo_text ""
|
||||||
|
read -r -e -p "Backend Xserver or Wayland (cage), Press enter for default (Xserver)? [X/w]" BACKEND
|
||||||
if [[ "$BACKEND" =~ ^[wW]$ ]]; then
|
if [[ "$BACKEND" =~ ^[wW]$ ]]; then
|
||||||
echo_text "Installing Wayland Cage Kiosk"
|
echo_text "Installing Wayland Cage Kiosk"
|
||||||
if sudo apt install -y $CAGE; then
|
if sudo apt install -y $CAGE; then
|
||||||
@ -111,11 +114,12 @@ check_requirements()
|
|||||||
create_virtualenv()
|
create_virtualenv()
|
||||||
{
|
{
|
||||||
echo_text "Creating virtual environment"
|
echo_text "Creating virtual environment"
|
||||||
if [ ! -d ${KSENV} ]; then
|
python3 -m venv ${KSENV}
|
||||||
python3 -m venv ${KSENV}
|
|
||||||
fi
|
|
||||||
|
|
||||||
source ${KSENV}/bin/activate
|
if ! source ${KSENV}/bin/activate; then
|
||||||
|
echo_error "Could not activate the enviroment, try deleting ${KSENV} and retry"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [[ "$(uname -m)" =~ armv[67]l ]]; then
|
if [[ "$(uname -m)" =~ armv[67]l ]]; then
|
||||||
echo_text "Using armv[67]l! Adding piwheels.org as extra index..."
|
echo_text "Using armv[67]l! Adding piwheels.org as extra index..."
|
||||||
pip --disable-pip-version-check install --extra-index-url https://www.piwheels.org/simple -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
|
pip --disable-pip-version-check install --extra-index-url https://www.piwheels.org/simple -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
|
||||||
@ -281,7 +285,11 @@ fi
|
|||||||
check_requirements
|
check_requirements
|
||||||
|
|
||||||
if [ -z "$SERVICE" ]; then
|
if [ -z "$SERVICE" ]; then
|
||||||
read -r -e -p "Install as a service? (This will enable boot to console) [Y/n]" SERVICE
|
echo_text "Install standalone?"
|
||||||
|
echo_text "it will create a service, enable boot to console and install the graphical dependencies."
|
||||||
|
echo_text "Say no to install as a regular desktop app that will not start automatically"
|
||||||
|
echo_text ""
|
||||||
|
read -r -e -p "Install standalone? Press enter for default (standalone) [Y/n]" SERVICE
|
||||||
if [[ $SERVICE =~ ^[nN]$ ]]; then
|
if [[ $SERVICE =~ ^[nN]$ ]]; then
|
||||||
echo_text "Not installing the service"
|
echo_text "Not installing the service"
|
||||||
echo_text "The graphical backend will NOT be installed"
|
echo_text "The graphical backend will NOT be installed"
|
||||||
|
@ -31,5 +31,4 @@ TTYVHangup=yes
|
|||||||
TTYVTDisallocate=yes
|
TTYVTDisallocate=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
DefaultInstance=tty7
|
|
Loading…
x
Reference in New Issue
Block a user