'How can I install vs-code-server manually and tell vs-code-remote?

When I try use remote-ssh connect to my server to install install vs-code-server, it hangs with these message: Install and start server if needed

bash: no job control in this shell Installing... Downloading with wget

It seems my server cannot use wget to download vs-code-server. Can I install vs-code-server manually?



Solution 1:[1]

Download your current used version via

wget https://update.code.visualstudio.com/commit:c3f126316369cd610563c75b1b1725e0679adfb3/server-linux-x64/stable

You can check the commit id in vscode Help -> About

Copy it to your machine through ssh.

Unpack to ~/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3

And you're done

Solution 2:[2]

This problem is caused by your terminal shell path isn't configured rightly.

Follow this issue https://github.com/microsoft/vscode-remote-release/issues/220#issuecomment-490374437

Check which shell you are using: which $SHELL

Solution 3:[3]

I used this bash script on my linux container and it works fine. You can try this too.

read -p 'What commit of vscode server do you wish to install? ' commit

echo ""

if [ ! -d "$HOME/.vscode-server/bin/$commit" ] ; then
    mkdir -p install-vscode-server
    cd install-vscode-server
    wget -q https://update.code.visualstudio.com/commit:$commit/server-linux-x64/stable
    tar -xf stable
    mkdir -p ~/.vscode-server/bin
    mv vscode-server-linux-x64 ~/.vscode-server/bin/$commit
    cd ..
    rm -rf install-vscode-server
    echo "vscode server commit:$commit installed"
else
    echo "Commit already installed"
fi

echo ""

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 FelixWee
Solution 2 milkice
Solution 3 Akintomiwa Opemipo