immense / immense/Remotely

Linux client installation issues.

Open
#909 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
5.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When installing the Linux persistent client i get errors with line 15 - 29 "Unexpected "(" " When commented out, the client installs fine.

**To Reproduce**
1. Download the Linux persistent script "Install-Ubuntu-x64.sh" on your target client that should be connected to your remotely server.
2. Set permissions in order to run the script
3. Run the script to find the error.

**Remotely Version**
Server (can be found on about page): 2024.02.23.1927
Agent (can be found in device card): 2024.02.23.1927

**Expected Behavior**
Install client without these errors and without having to modify the script in any way before running it.

**Screenshots**
Will add next time i add a Linux server to my fleet.

**Desktop (please complete the following information):**

- OS: Linux
- Browser: Not applicable
- Version: Not applicable

**Additional Context**
To be precise this is what's needed to be commented out in order to run the script and get a successful installation on my Ubuntu 22.04 LTS machine:
```
# Args=( "$@" )
# ArgLength=${#Args[@]}

# for (( i=0; i<${ArgLength}; i+=2 ));
# do
# if [ "${Args[$i]}" = "--uninstall" ]; then
# systemctl stop remotely-agent
# rm -r -f $InstallDir
# rm -f /etc/systemd/system/remotely-agent.service
# systemctl daemon-reload
# exit
# elif [ "${Args[$i]}" = "--path" ]; then
# UpdatePackagePath="${Args[$i+1]}"
# fi
#done
```

I also can't remember i have had to comment this out before, could it be something Distro related? (Just a fresh install of Ubuntu Server LTS "ubuntu-22.04.4-live-server-amd64.iso" just like before, same ISO that i have always used no updates installed).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running Install-Ubuntu-x64.sh on a clean Ubuntu 22.04 installation and inspect lines 15–29, especially the argument-handling section shown in the report. Compare the behavior with and without those lines enabled. Done means the persistent client installs without editing the script and retains the reported argument handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, shell, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.