-
Notifications
You must be signed in to change notification settings - Fork 4
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
Win 10 can't connect to remote #9
Comments
Fixed by predownloading the codium server in wsl #! /usr/bin/bash
WINDOWS_CODIUM_PATH="/mnt/c/Program/VSCodium"
WINDOWS_CODIUM_PRODUCT_JSON_PATH=$WINDOWS_CODIUM_PATH/resources/app/product.json
WSL_CODIUM_TAR_PATH=$HOME/vscodium-reh-linux.tar.gz
set_codium_repo_name() {
CODIUM_QUALITY=$(jq ".[0].quality" -rs "$WINDOWS_CODIUM_PRODUCT_JSON_PATH")
if [[ "$CODIUM_QUALITY" == "stable" ]]; then
CODIUM_REPO_NAME=vscodium
elif [[ "$CODIUM_QUALITY" == "insider" ]]; then
CODIUM_REPO_NAME=vscodium-insiders
else
echo Unknowm quality: "$CODIUM_QUALITY"
exit 1
fi
}
set_codium_download_version() {
WINDOWS_CODIUM_RELEASE=$(jq ".[0].release" -rs "$WINDOWS_CODIUM_PRODUCT_JSON_PATH")
WINDOWS_CODIUM_VERSION=$(jq ".[0].version" -rs "$WINDOWS_CODIUM_PRODUCT_JSON_PATH")
if [[ "$CODIUM_QUALITY" == "stable" ]]; then
CODIUM_DOWNLOAD_VERSION="$WINDOWS_CODIUM_VERSION"."$WINDOWS_CODIUM_RELEASE"
elif [[ "$CODIUM_QUALITY" == "insider" ]]; then
CODIUM_DOWNLOAD_VERSION="$WINDOWS_CODIUM_VERSION"."$WINDOWS_CODIUM_RELEASE"-"$CODIUM_QUALITY"
fi
}
determin_wsl_distro_platform() {
WSL_MACHINE=$(uname -m)
if [[ "$WSL_MACHINE" == "x86_64" ]]; then
CODIUM_PLATFORM=x64
elif [[ "$WSL_MACHINE" == "armv7l" ]]; then
CODIUM_PLATFORM=armhf
elif [[ "$WSL_MACHINE" == "armv8l" ]]; then
CODIUM_PLATFORM=armhf
elif [[ "$WSL_MACHINE" == "arm64" ]]; then
CODIUM_PLATFORM=arm64
elif [[ "$WSL_MACHINE" == "aarch64" ]]; then
CODIUM_PLATFORM=arm65
else
echo Unknown machine: "$WSL_MACHINE"
exit 1
fi
}
determin_wsl_kernel() {
WSL_KERNEL=$(uname -s)
WSL_KERNEL_LOWERCASE=${WSL_KERNEL,,}
if [[ "$WSL_KERNEL_LOWERCASE" == "linux" ]]; then
CODIUM_KERNEL=linux
elif [[ "$WSL_KERNEL_LOWERCASE" == "alpine" ]]; then
CODIUM_KERNEL=alpine
elif [[ "$WSL_KERNEL_LOWERCASE" == "darwin" ]]; then
CODIUM_KERNEL=darwin
else
echo Unkown kernal: "$WSL_KERNEL_LOWERCASE"
exit 1
fi
}
download_codium_artifact() {
if [[ "$CODIUM_REPO_NAME" == "" ]]; then
echo CODIUM_REPO_NAME not set
exit 1
fi
if [[ "$CODIUM_DOWNLOAD_VERSION" == "" ]]; then
echo CODIUM_DOWNLOAD_VERSION not set
exit 1
fi
if [[ "$CODIUM_KERNEL" == "" ]]; then
echo CODIUM_KERNEL not set
exit 1
fi
if [[ "$CODIUM_PLATFORM" == "" ]]; then
echo CODIUM_PLATFORM not set
exit 1
fi
wget -O "$WSL_CODIUM_TAR_PATH" https://github.com/VSCodium/"$CODIUM_REPO_NAME"/releases/download/"$CODIUM_DOWNLOAD_VERSION"/vscodium-reh-"$CODIUM_KERNEL"-"$CODIUM_PLATFORM"-"$CODIUM_DOWNLOAD_VERSION".tar.gz
}
install_codium_artificat() {
CODIUM_COMMIT=$(jq ".[0].commit" -rs "$WINDOWS_CODIUM_PRODUCT_JSON_PATH")
if [[ -d "$HOME"/.vscodium-server/bin/"$CODIUM_COMMIT" ]]; then
echo Removing old artifact with same commit folder
rm -fr "$HOME"/.vscodium-server/bin/"$CODIUM_COMMIT"
fi
mkdir -p "$HOME"/.vscodium-server/bin/"$CODIUM_COMMIT"
tar -vxf "$WSL_CODIUM_TAR_PATH" -C "$HOME"/.vscodium-server/bin/"$CODIUM_COMMIT"
rm "$WSL_CODIUM_TAR_PATH"
}
set_codium_repo_name
set_codium_download_version
determin_wsl_distro_platform
determin_wsl_kernel
download_codium_artifact
install_codium_artificat |
So my previous post was more a workaround since the download still does not work when i remove my old server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows verison
VSCodium version
Codium print
Devtools file
vscode-app-1716469417921.log
Powershell info
The text was updated successfully, but these errors were encountered: