
sambaのサービスでエラー(Failed to start smb.service: Unit smb.service not found.)
sambaを利用したファイルサーバを構築で、サービス(smb)起動時に「Failed to start smb.service: Unit smb.service not found.」のエラーが発生した場合の対処方法です。 エラー内容 例 ...

samba構築手順(パスワードなしでアクセスする方法)
samba構成イメージ sambaのインストール sambaのインストールはaptやyumなど利用されているデストリビューションに応じたものでインストールします。 Ubuntuの場合 sudo apt install samba CentO ...

Ubuntuに最新や特定バージョン(20.x)のNode.jsをインストールする手順
Ubuntuのデフォルトのパッケージマネージャーである apt を使用してNode.jsをインストールすると、通常はリポジトリに登録されているバージョンがインストールされます。しかし、最新バージョンまたは特定のバージョン(例: 20.x)を ...

Windows Terminal で背景をぼかし(アクリル)なしで完全に透明にする方法(opacity + useAcrylic)
Windows Terminal とは Windows Terminal は Microsoft から 2020 年にリリースされた新しいターミナルソフトで、Windows11 では規定のターミナルとしても設定できるようになっている Win ...

Windows Terminal でドロップダウンターミナル(Quake モード)を利用する方法
Windows Terminal とは Windows Terminal は Microsoft から 2020 年にリリースされた新しいターミナルソフトで、Windows11 では規定のターミナルとしても設定できるようになっている Win ...

WSL2 に割り当てるメモリサイズを手動で固定値を設定する方法
WSL2 を利用しているとメモリが枯渇することがあります。 ホスト側(Windows 側)に搭載したメモリによって WSL2 に割り当てられるメモリ量が自動的に決まってしまうため、自分が割り当てたい以上のメモリが割当たることもあります。 ま ...

プログラミング開発環境を Windows10 から Windows11 へ変更してみた
Windows11 の正式リリース前のプレビュー版からメイン端末での利用を始めているので2、3ヶ月ほどが経過しました。 今回は、Windows11 で開発環境を整える場合に Windows10 と比較した場合の違いについてまとめてみました。 ...

Windows11 のエクスプローラの右クリックメニューで Windows10 と同じメニューを表示する方法
2021 年 7 月 29 日に Windows11 が「Windows Insider Program」の Beta チャネルでリリースされたので、メイン PC を Windows11 に Upgrade しました。 見た目のアイコンやタ ...

Windows11 の WSL2 + WSLg で GUI アプリ実行時に発生するエラー「Error: Can’t open display: 0」の対処方法
2021 年 7 月 29 日に Windows11 が「Windows Insider Program」の Beta チャネルでリリースされたので、メイン PC を Windows11 に Upgrade しました。 リリース情報のネタ元 ...

WSL2(Ubuntu) で apt update するとエラーになる(InRelease is not valid yet (invalid for another xx 時間 xx 分 xx 秒). Updates for this repository will not be applied.)
WSL2(Ubuntu)で apt update すると「InRelease is not valid yet」エラーが発生したので、原因と対応方法についてまとめました。 エラー内容 WSL2 の Ubuntu にログインし apt upd ...

Windows11 を Lenovo ideapad 120s(Celeron-N3350)にインストールしてみた
Windows10 が最後の Windows と言われていたのですが、2021 年 6 月 24 日に Microsoft から Windows11 の発表がありました。提供時期は 2021 年の後半とのこと。個人的には WSLg が正式に ...

タスクマネージャを管理者権限で実行する方法 ~終了できないタスクを強制終了させる~
タスクマネージャで終了させたいタスクがあった場合は、右下の「タスクの終了」で終了させることができるのですが、権限がなく終了させることができない場合があります。 そんなときは、管理者権限でタスクマネージャを実行することでタスクを終了させること ...

Windows Terminal やコマンドプロンプトのカーソル点滅を止める方法
Windows Terminalやコマンドプロンプト、Powershellなどのターミナル操作をしている際に、カーソル(ポインタ)をカスタマイズする際に、形状については以下のような選択肢があり簡単にカスタマイズすることができます。 アンダー ...

「grub >」が表示されて起動しない時の簡単な修復方法
WindowsとLinuxのデュアルブート環境で突然「grub >」が表示され起動しなくなったUSBメモリにLinuxをインストールすると本体側のLinuxで「grub >」が表示され起動しなくなった デュアルブート環境を構築したり、USB ...

Linux Mint MATE 20.1 の xkeysnal で Windows の AutoHotKey と同じ設定をする
Linux Mint を利用しているときに、Windows で利用している AutoHotKey で行っていたように、カーソルキー移動や Backspace キーをホームポジションを崩さすに操作したくなってきました。 Linux で Aut ...

Linux Mint MATE 20.1 でサーバ構築 #3 Docker/kubernetes(kubeadm)
今回は、Linux Mint MATE 20.1 に Docker と Kubernetes クラスタを構築する手順をまとめました。 最初に構築しようとした際に ...

Linux Mint MATE 20.1 でサーバ構築 #2 ssh/xrdp リモートデスクトップ
今回は、Windows10 から Linux Mint MATE 20.1 への ssh での接続やデスクトップを操作するために xrdp を利用して Windows のリモートデスクトップ機能で接続できるようにします。 Linux Min ...

Linux Mint MATE 20.1 でサーバ構築 #1 インストール/サスペンド防止
手元にある 古いノートパソコン(Lenovo ideapad 120S)があるのですが、 Windows10 で利用するにはスペック的に厳しいので、動作の軽いLinux Mint MATE 20.1 をインストールしてみようと考えたのですが ...

Windows10 のキーボードをAutoHotKeyでカスタマイズ ~ カーソルキーを 無変換キー+HJKL(Vim風) で操作する 他 ~
ホームポジションを崩さずにタイピングしたい 長年、Windows でキーボードのカスタマイズは CapsLock キーを Ctrl キーに置き換えるのみでした。 しかし、カーソルキーを操作するとホームポジションが崩れることがストレスに感じる ...

Windows10 の GitBash で docker/telnet/python/mysql が実行できない場合は winpty で実行 (the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’)
GitBash で実行するとエラーになったり無反応だったりする Windwos で bash を利用している際に、GitBash が便利で利用してるのですが、うまく動作しないことがあります。 例えば、docker、telnet、python ...