XternA / income-generator

A set & forget, multi-platform, lightweight, self-updating container stack managing passive income applications utilising unused internet bandwidth. With native OS solution for fast deployment in mind with global tool access and multi-proxy support.
Other
73 stars 8 forks source link

I cant open it #14

Closed TriggerMM closed 5 months ago

TriggerMM commented 5 months ago

@echo off setlocal

winget --version >nul 2>&1 if %errorlevel% neq 0 ( echo No winget found on the system. Please install winget before proceeding. exit /b 1 )

wsl --version >nul 2>&1 if %errorlevel% equ 0 ( wsl [ -d ~/.income-generator ] && wsl "${SHELL##*/}" -ilc "igm" || ( echo No Income Generator Tool found. Fetching... echo:

    wsl git clone --depth=1 https://github.com/XternA/income-generator.git ~/.income-generator
    wsl grep -q "igm='(cd ~/.income-generator; sh start.sh)'" ~/."${SHELL##*/}"rc || (
        wsl echo "alias igm='(cd ~/.income-generator; sh start.sh)'" >> ~/."${SHELL##*/}"rc
        wsl source ~/."${SHELL##*/}"rc
    )

    echo:
    echo Launching...
    timeout /t 2 /nobreak >nul 2>&1
    wsl "${SHELL##*/}" -ilc "igm"
)

) else ( echo No Windows Subsystem for Linux found on the system. Ensure WSL is enabled before proceeding. )

this is what the igm.bat shows when opened with notepad. I have winget installed I have wsl enabled i have docker desktop i have everything enabled i dont understand.

XternA commented 5 months ago

Can you kindly paste what you see after you run it please. The script works but I can help debug it for you if I can't see the problem. Thanks.

Additionally, what WSL Linux distro are you running?

TriggerMM commented 5 months ago

This shows when I first install the app: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 939 100 939 0 0 3161 0 --:--:-- --:--:-- --:--:-- 3183

and after i type igm it shows this:

Command 'igm' not found, did you mean: command 'ign' from deb ignition-tools (1.4.1+dfsg-2) command 'igv' from deb igv (2.12.0+dfsg-1) command 'gm' from deb graphicsmagick (1.4+really1.3.38-1ubuntu0.1) Try: apt install No Income Generator Tool found. Fetching...

fatal: destination path '/root/.income-generator' already exists and is not an empty directory. The system cannot find the path specified.

Launching... Command 'igm' not found, did you mean: command 'igv' from deb igv (2.12.0+dfsg-1) command 'ign' from deb ignition-tools (1.4.1+dfsg-2) command 'gm' from deb graphicsmagick (1.4+really1.3.38-1ubuntu0.1) Try: apt install

I tried reinstalling the app and everything needed for it.

NAME STATE VERSION

XternA commented 5 months ago

Thanks for providing the details. I'll look into it but I think I know what the problem is.

TriggerMM commented 5 months ago

thank you!

XternA commented 5 months ago

The issue is fixed now in this PR as reference https://github.com/XternA/income-generator/pull/15.

Please kindly re-run the following command to update the bootstrap script.

curl -o %APPDATA%\IGM\igm.bat --create-dirs --ssl-no-revoke -L https://raw.githubusercontent.com/XternA/income-generator/main/start.bat

This will replace the current version you have downloaded directly. After that, you can run igm again.

Provided as you mentioned you have WSL2 enabled and Ubuntu already installed, this should work now. The problem was with the default bash shell not being able to register the tool previously. I use zsh so it worked. I think there are some internal changes to the WSL version of Ubuntu and how it loads hence wasn't able to register the alias.

Once the tool loads, kindly update the actual tool just to ensure you're on the latest version since you're starting fresh. In the tool, option 9, option 5 will update the tool for you if there are any changes.

Thank you for your patience and pointing this out. All the best.

TriggerMM commented 5 months ago

everything works now, thank you!

XternA commented 5 months ago

Perfect, good to know. I will now close this ticket as done.