カテゴリー
【Puppeteer実用講座】Wine/Conoha VPS(Linux)にKabuステーションが入らなくなったのでPuppeteerで操作を代替する
※ 当ページには【広告/PR】を含む場合があります。
2025/05/06

「Puppeteer」
新しいKabuステーションをWineで動かすときの問題点
「ClickOne形式(.appref-ms)」
Microsoft Edge WebView2 Runtime
setup.exe
[kabuステーション起動]

setup.exe

.ssh/config
$ scp ファイル <SSHの送り先>:~/
my-conoha
$ cd ダウンロード
$ ls
setup.exe
$ scp setup.exe my-conoha:~/
setup.exe 100% 860KB 1.8MB/s 00:00

$ wine setup.exe
00c0:fixme:wineusb:query_id Unhandled ID query type 0x5.
00c0:fixme:wineusb:query_id Unhandled ID query type 0x5.
00c0:fixme:wineusb:query_id Unhandled ID query type 0x5.
0024:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0024:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
0024:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0024:err:richedit:ReadStyleSheet skipping optional destination
winediag:SECUR32_initNTLMSP
$ sudo apt remove winbind && sudo apt install winbind -y
richedit:ReadStyleSheet
$ wine setup.exe
webview2
PuppeteerでSBI証券サイト(バックアップサイト)のオペレーションを自作


Debianインスタンスで最新のNodejsをインストール
$ sudo apt install -y nodejs npm
$ node --version
v18.19.2
「n」
$ sudo npm install n -g
$ sudo n stable
$ sudo apt purge -y nodejs npm
$ node --version
v22.15.0
$ node --version
-bash: /usr/bin/node: No such file or directory
n
#ターミナルエミュレータがbash/zsh/ash/dash/kshの場合
$ hash -r
#ターミナルエミュレータがcsh/tcshの場合
$ rehash
Chrome for Testをインストール
$ sudo apt install chromium
$ which chromium
/usr/bin/chromium
#puppeteerに対応したchromeをキャッシュする
$ sudo npx puppeteer browsers install chrome
/<ユーザー名>/.cache/puppeteer/
ログイン機能とCLI機能の導入
まとめ
記事を書いた人
ナンデモ系エンジニア
主にAngularでフロントエンド開発することが多いです。 開発環境はLinuxメインで進めているので、シェルコマンドも多用しております。 コツコツとプログラミングするのが好きな人間です。
カテゴリー