Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch server install fail laptop #310

Open
Grimmrp2 opened this issue Sep 8, 2024 · 2 comments
Open

Arch server install fail laptop #310

Grimmrp2 opened this issue Sep 8, 2024 · 2 comments

Comments

@Grimmrp2
Copy link

Grimmrp2 commented Sep 8, 2024

After running arch server install via the stable branch of linutil it fails at the end on lenovo laptop.
PXL_20240908_101303729

Can anyone advise me how to grab a better log for a diagnosis?

Thanks

@Grimmrp2
Copy link
Author

Grimmrp2 commented Sep 8, 2024

Ran again got same errors and some more pictures
PXL_20240908_152905103
PXL_20240908_152756262
PXL_20240908_152945420

@fam007e
Copy link

fam007e commented Sep 8, 2024

From the portion of the script you provided, the issue seems to arise in the logo() function around line 122-135, where it attempts to print the logo using echo -ne. Here's what could be happening:

Potential Issues:

  1. echo -ne Formatting:
    The command echo -ne is used to print the string without adding a new line and enabling interpretation of backslash escapes (-e). However, if there is any issue with the interpretation or escaping of characters, this could result in the errors you're seeing (i.e., missing or unrecognized commands).

  2. Whitespace or Unexpected Characters:
    Sometimes, invisible or non-printable characters in the script (especially if copied from a different format) can cause errors when interpreted by the shell.

Fixing Issues in script

1. Fix echo -ne Formatting Issue

The echo -ne command might be misinterpreting the special characters in the ASCII art. Instead, use a heredoc to print the ASCII art. Here’s the corrected version of the logo function.

logo () {
  cat << "EOF"
-------------------------------------------------------------------------
 **logo goes here**
-------------------------------------------------------------------------
        Please select preset setup settings for your system
-------------------------------------------------------------------------
EOF
}

2. Verify the Script for Invisible Characters

cat -A your_script.sh

Here's output.txt for the server-setup script.

3. Just remove the logo part from the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants