vscode server: Downloading with wget (stuck)

Lยท2022๋…„ 9์›” 16์ผ
1
post-thumbnail
post-custom-banner

๋…์ž ๋Œ€์ƒ๐Ÿ“ฃ

๐Ÿ‘‰ VSCode Server์˜ Remote SSH๋ฅผ ์‚ฌ์šฉํ•˜์‹œ๋Š” ๋ถ„
๐Ÿ‘‰ ๋„คํŠธ์›Œํฌ ์ƒํƒœ๊ฐ€ ๋ถˆ์•ˆ์ •ํ•˜์‹  ๋ถ„


์ถœ๊ฐ„ ์ด์œ โ“

ํŒจ์Šค์›Œ๋“œ ์ž…๋ ฅ ํ›„, Downloading with wget์—์„œ ๋ฌดํ•œ๋กœ๋”ฉ ์—๋Ÿฌ ๋ฐœ๊ฒฌ


๋ฌธ์ œ ํŒŒ์•…๐Ÿ”

> ...
> Downloading with wget...
Q: ์ž˜ ๋˜๋˜ VSCode Server์˜ Remote SSH๊ฐ€ ๊ฐ‘์ž๊ธฐ ์•ˆ๋ฉ๋‹ˆ๋‹ค...๐Ÿ˜ฅ

๋ฌธ์ œ ํ•ด๊ฒฐ๐ŸŽŠ

A: VSCode server์˜ Remote SSH๋ฅผ ์œ„ํ•ด ์›๊ฒฉ์ง€ ์„œ๋ฒ„์— ๊ด€๋ จ ํŒŒ์ผ์„
   Wget์„ ํ†ตํ•ด ๋‹ค์šด๋กœ๋“œ ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.๐Ÿ˜€
   
   ์ด๋•Œ, ๋„คํŠธ์›Œํฌ ์ƒํƒœ๊ฐ€ ๋ถˆ์•ˆ์ •ํ•˜๊ฑฐ๋‚˜,
   ๋ฌด์–ธ๊ฐ€ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์—ฌ wget์ด ์ค‘๊ฐ„์— ๋ฉˆ์ถฐ๋ฒ„๋ฆฌ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.
   
   ํ•˜๋‹จ์˜ ๋‚ด์šฉ์„ ์ฐธ๊ณ ํ•˜์—ฌ ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์‹ญ์‹œ์˜คโ—โ—
  1. ์ˆ˜๋™์œผ๋กœ vscoder-server.tar.gz ๋‹ค์šด๋กœ๋“œ

    # VSCode Remote SSH ๋กœ๊ทธ์ธ ํ›„, VSCode ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์‚ดํŽด๋ณด๋ฉด 
    # /home/{๊ณ„์ •๋ช…}/.vscode-server/bin/f0aj91hvo1vn1l~
    # ์œ„ ๊ฐ™์ด bin ํ•˜์œ„์— ์ปค๋ฐ‹๋ช…์˜ ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.
    # ํ•ด๋‹น ์ปค๋ฐ‹๋ช…์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•˜๋‹จ ์ฒ˜๋Ÿผ ์ˆ˜๋™ ๋‹ค์šด๋กœ๋“œ
    $ wget -O vscode-server.tar.gz https://update.code.visualstudio.com/commit:์ปค๋ฐ‹๋ช…/server-linux-x64/stable
    
    # ๋งŒ์•ฝ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ๋ฉˆ์ถ”๋ฉด ํ•˜๋‹จ์ฒ˜๋Ÿผ c ์˜ต์…˜์„ ํ†ตํ•ด ์ด์–ด๋ฐ›๊ธฐ
    $ wget -c -O vscode-server.tar.gz https://update.code.visualstudio.com/commit:{์ปค๋ฐ‹๋ช…}/server-linux-x64/stable
  2. VSCode ์žฌ์‹คํ–‰

  3. VS ํ”„๋กœ์„ธ์Šค ๊ฐ•์ œ ์ข…๋ฃŒ

    # ์›๊ฒฉ์ง€ ์„œ๋ฒ„์—์„œ VS ๊ด€๋ จ ํ”„๋กœ์„ธ์Šค๋ฅผ ์ฐพ์•„ ์ข…๋ฃŒ
    $ ps -ax | grep 'vs'
    $ kill -9 {vs๊ด€๋ จํ”„๋กœ์„ธ์Šค๋ฒˆํ˜ธ}
  4. ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ vscode-server.tar.gz ๋ณต์‚ฌ

    $ cp vscode-server.tar.gz ~/.vscode-server/{์ปค๋ฐ‹๋ช…}/
  5. vscode-serer.tar.gz ์••์ถ•ํ•ด์ œ

    $ tar -xvzf ~/.vscode-server/{์ปค๋ฐ‹๋ช…}/vscode-server.tar.gz --strip-components 1
  6. VSCode ์ข…๋ฃŒ ํ›„, ์žฌ์‹คํ–‰

profile
๋ฐ์ดํ„ฐ ์š”๋ฆฌ์‚ฌ
post-custom-banner

2๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2022๋…„ 9์›” 19์ผ

ํ•ด๊ฒฐ๋์Šต๋‹ˆ๋‹ค ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!!!!!

1๊ฐœ์˜ ๋‹ต๊ธ€