0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MacBook Air M2 に Asahi Linux を導入する

Last updated at Posted at 2025-05-05

はじめに

Linux 環境が欲しいと思っていたのと、使わなくなった Mac を有効活用したいと思い、Asahi Linux を導入しました。

Asahi Linux とは

Asahi Linux は、Apple Silicon チップを搭載した Mac に Linux を移植するプロジェクトです。

手順

1. インストールの実行

インストールを実行し、プロンプトの指示に従って進めます。

curl https://alx.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2293    0  2293    0     0   2657      0 --:--:-- --:--:-- --:--:--  2657
Bootstrapping installer:
  Checking version...
  Version: v0.7.7
  Downloading...
  Extracting...
  Initializing...
The installer needs to run as root.
Please enter your sudo password if prompted.
Password:
Welcome to the Asahi Linux installer!
This installer will guide you through the process of setting up
Asahi Linux on your Mac.
Please make sure you are familiar with our documentation at:
  https://alx.sh/w
Press enter to continue.

新しい OS をインストールするための空き領域を確保するために、既存の macOS パーティションをリサイズします。

Choose what to do:
  r: Resize an existing partition to make space for a new OS
  q: Quit without doing anything
» Action (r): r

新しい OS に割り当てる容量を指定します。

We're going to resize this partition:
  APFS [Macintosh HD] (245.11 GB, 6 volumes)
  Total size: 245.11 GB
  Free space: 106.65 GB
  Available space: 68.65 GB
  Overhead: 0 B
  Minimum new size: 176.46 GB (71.99%)

Enter the new size for your existing partition:
  You can enter a size such as '1GB', a fraction such as '50%',
  or the word 'min' for the smallest allowable size.
  Examples:
  30%  - 30% to macOS, 70% to the new OS
  80GB - 80GB to macOS, the rest to your new OS
  min  - Shrink macOS as much as (safely) possible
» New size (min): 80%

Resizing will free up 49.02 GB of space.
Note: your system may appear to freeze during the resize.
This is normal, just wait until the process completes.
» Continue? (y/N): y
.
.
.
Finished APFS operation

Resize complete. Press enter to continue.

新しい OS をインストールするための空き領域を選択します。

Choose what to do:
  f: Install an OS into free space
  r: Resize an existing partition to make space for a new OS
  q: Quit without doing anything
» Action (f): f

新しい OS を選択します。

Choose an OS to install:
  1: Fedora Asahi Remix 42 with KDE Plasma
  2: Fedora Asahi Remix 42 with GNOME
  3: Fedora Asahi Remix 42 Server
  4: Fedora Asahi Remix 42 Minimal
  5: UEFI environment only (m1n1 + U-Boot + ESP)
» OS: 2

新しい OS に割り当てる容量を指定します。

How much space should be allocated to the new OS?
  You can enter a size such as '1GB', a fraction such as '50%',
  the word 'min' for the smallest allowable size, or
  the word 'max' to use all available space.
» New OS size (max): max

新しい OS の名前を指定します。

Enter a name for your OS
» OS name (Fedora Linux with GNOME):

この後、レポート云々のプロンプトが出ますが、これは無視して大丈夫です。

シャットダウンするためのプロンプトが出るので、実行します。

Press enter to shut down the system.

シャットダウン後、30 秒後に Mac を起動します。
その際、電源ボタンを長押し、「起動オプション」を表示します。起動オプション画面では、以下の 3 つのボタンが表示されるので、インストールした OS を選択します。

  • Macintosh HD
  • Fedora Linux with GNOME(インストール時に設定した OS name)
  • オプション

次に、macOS 復旧画面にて「復旧するボリュームを選択」し、Mac のパスワードを入力すると、インストール(第 2 ステップ)が開始されます。
インストール時に、ユーザー名とパスワードを求められるので、macOS の情報を入力します。

処理が完了すると、以下のメッセージが表示されるので、再起動します。

Installation complete Press enter to reboot.

再起動後、最初に U-Boot 画面が表示され、その後、Fedora Linux が起動すれば、インストールは完了です。

リファレンス

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?