1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi 5環境構築備忘録

Last updated at Posted at 2025-10-29

Raspberry Pi 5(以下RasPi5)を購入して以下の記事で紹介した方法でUbuntu 24をインストールし、使える様になったと喜んでいたのは束の間。。。筆者が購入したSSDキットのSSDが初期不良品だったのか、1ヶ月で故障しました。仕方なく、アダプター(純正品)を念の為買い直し、SSDはAcer製のゲーム機用SSDを購入して再度セットアップしました。そんな不運を乗り越え再度OSインストールが完了したので環境構築の備忘録も残しておこうと思います。

Fan制御

意外と熱を持つことが分かったRasPi5。以下の記事を参考にFan制御を行う設定を行いました。

Dockerのインストール

Dockerも初期に比べてとても簡単にセットアップ出来る様になりました。以下の公式ドキュメントに従ってインストールを行えばセットアップが完了します。

Dockerコマンドをsudo無しで実行したい場合は、以下を実行して、再度ログインすればsudo無しでDockerが実行出来ます。

sudo gpasswd -a $USER docker
  • 参考情報

Ollamaのインストール

Ollamaもインストールします。CPU実行のみなのでGPUで実行する様なスループットは望めませんし、モデルサイズも小さい物のみの利用となりますが、インストールします。

$ ollama run llama3.2:3b
pulling manifest 
pulling dde5aa3fc5ff: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 2.0 GB                         
pulling 966de95ca8a6: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 1.4 KB                         
pulling fcc5a6bec9da: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 7.7 KB                         
pulling a70ff7e570d9: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ 6.0 KB                         
pulling 56bb8bd477a5: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏   96 B                         
pulling 34bb5ab01051: 100% ▕██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏  561 B                         
verifying sha256 digest 
writing manifest 
success 
>>> Generate a hello world program example with C language.
Here's an example of a "Hello, World!" program in C:

// hello.c
#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

To compile and run the code:

1. Open your terminal or command prompt.
2. Navigate to the directory where you saved the `hello.c` file.
3. Compile the program using GCC (GNU Compiler Collection):

gcc hello.c -o hello

4. Run the compiled program:

./hello

姫野ベンチマーク用環境構築

OpenMPI版も利用したいので、関連ライブラリもインストールします。

$ sudo apt install -y make jlha-utils build-essential openmpi-bin libopenmpi-dev
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?