いろいろやってみるにっき

てきとーに生きている奴の日記

古いエントリのサムネイル画像がリンク切れになってたりするけど、チマチマ修正中


【小ネタ】Windows Server 2022にscoopでVS Codeをインストールする

前回、Windows Server 2022にscoopを導入した。

 

shigeo-t.hatenablog.com

 

さてVisual Studio Codeを入れようと思ったら見つからない。

PS C:\Users\Administrator> scoop search vscode
'main' bucket:
    winpython (3.10.4.0) --> includes 'winvscode.bat'

 

調べてみた。

bioscryptome.t-ohashi.info

VS CodeはMainバケットではなく、Extrasバケットに登録されています。 なので、Extrasバケットを追加しないと、検索しても出てきません。

 

なるほど。Extrasバケットを追加する。なぜかエラーが出るのでコマンドプロンプトを起動して実行。同じエラーは出たが完了したっぽい。

PS C:\Users\Administrator> scoop bucket add extras
Convert-RepositoryUri : 引数が空の文字列であるため、パラメーター 'Uri' にバインドできません。
発生場所 C:\Users\Administrator\scoop\apps\scoop\current\lib\buckets.ps1:165 文字:41
+         if ((Convert-RepositoryUri -Uri $remote) -eq $uni_repo) {
+                                         ~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Convert-RepositoryUri]、ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Convert-RepositoryUri

PS C:\Users\Administrator> cmd
Microsoft Windows [Version 10.0.20348.707]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Administrator> scoop bucket add extras
Convert-RepositoryUri : 引数が空の文字列であるため、パラメーター 'Uri' にバインドできません。
発生場所 C:\Users\Administrator\scoop\apps\scoop\current\lib\buckets.ps1:165 文字:41
+         if ((Convert-RepositoryUri -Uri $remote) -eq $uni_repo) {
+                                         ~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Convert-RepositoryUri]、ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Convert-RepositoryUri

Checking repo... OK
The extras bucket was added successfully.

 

今度は見つかった。

C:\Users\Administrator>scoop search vscode
'extras' bucket:
    vscode (1.68.0)

'main' bucket:
    winpython (3.10.4.0) --> includes 'winvscode.bat'

 

インストールしてみる。

C:\Users\Administrator>scoop install vscode
Updating Scoop...
Updating 'extras' bucket...
Updating 'main' bucket...
 Converting 'main' bucket to git...
0
<span style="color: #ff0000">Convert-RepositoryUri : 引数が空の文字列であるため、パラメーター 'Uri' にバインドできません。
発生場所 C:\Users\Administrator\scoop\apps\scoop\current\lib\buckets.ps1:159 文字:44
+     $uni_repo = Convert-RepositoryUri -Uri $repo
+                                            ~~~~~
    + CategoryInfo          : InvalidData: (:) [Convert-RepositoryUri]、ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Convert-RepositoryUri</span>

1
Scoop was updated successfully!
Installing 'vscode' (1.68.0) [64bit]
dl.7z (108.1 MB) [============================================================================================] 100%
Checking hash of dl.7z ... ok.
Extracting dl.7z ... done.
Linking ~\scoop\apps\vscode\current => ~\scoop\apps\vscode\1.68.0
Creating shortcut for Visual Studio Code (code.exe)
Persisting data
Running post-install script...
'vscode' (1.68.0) was installed successfully!
Notes
-----
Add Visual Studio Code as a context menu option by running:
'C:\Users\Administrator\scoop\apps\vscode\current\install-context.reg'
For file associations, run 'C:\Users\Administrator\scoop\apps\vscode\current\install-associations.reg'

また謎のエラーは出たがインストールできたっぽい。

 

起動してみる。

起動できた。

 

このごろのVS Codeは便利だな。

 

PowerShellも新たに起動すればパスが通っているのでコマンド起動もできる。

 

今回はこんなところで。

 

 

本を整理していこうと思う

今週のお題「本棚の中身」

 

この家に越してきてからめっきり本を読んでない。もともと社会人になってからは本は移動中に読むものだったので、移動が無くなれば本を読む時間も自動的に消滅する。それに今はKindleもあるし。

 

引越しした時に「まあ読まないよな」と思いながら本棚に平積みしたり、前後2列で押し込んだりしてほぼそのままである。本棚は上階に一つ、下階に一つ。上階はこんな感じ。本を落とさないようにブックシェルフでガード。隣の棚も前の家では本棚にしてた。

別にビジネス関係だけでもない。

 

箱に入ったままのものもある。出していないんだから超読まないという判断だろう。

 

下の階も超てきとーに詰め込んでいる。それでもちょっとは開いた本もある。

ストーリーとしての競争戦略は、面白いのでKindleでも買った。

 

 

と、ここまでが現況。おもしろいのを見つけた。

shigeo-t.hatenablog.com

 

引越し直後である。まだ本の開梱が完了していないので隙間が多い。再掲する。

 

引越し直後の隠れ場所は下階の本棚の後ろ。今は入れないように隙間を無くした。

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040147.jpg

本の上を出入りする。

www.youtube.com

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040431.jpg

猫は液体。

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040530.jpg

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040552.jpg

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040624.jpg

 

今度は入る。

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040804.jpg

匍匐前進。

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040844.jpg

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806040932.jpg

 入った。

https://cdn-ak.f.st-hatena.com/images/fotolife/s/shigeo-t/20170806/20170806041015.jpg

 

5年前と置き場所があまり変わっていないということは本当に読んでない。そろそろ本を整理すべきなんだろう。この手の本って売れるんだろうか?それとも捨てるのにお金が掛かるんだろうか?

お時間あったら、他のエントリもクリックして頂ければ幸いです。