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?

古い(intel)MacBookPro A1706をubuntu26.04LTSへ

0
Posted at

以前はなんとかそのまま使おうとおもっていたんだけど、ついに、MacBookPro A1706をubuntuに変更しました。

戻し用のOSインストーラの作成

ターミナルからインストーラーをダウンロード

softwareupdate --fetch-full-installer --full-installer-version 13.7.8
Scanning for 13.7.8 installer
Install finished successfully

ダウンロードの確認

ls -d /Applications/Install*

USBメモリにインストーラ作成(16GB以上)

  • USBメモリ(ボリューム名: MyVolume)
  • 公式の作成コマンドの中に /Volumes/MyVolume というパスが含まれているため

ディスクユーティリティ

  • 上部メニューの「消去」をクリック
  • 名前: MyVolume(大文字・小文字をそのまま入力)
  • フォーマット: Mac OS 拡張(ジャーナリング)

コピー

sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

ubuntu 26.04LTS インストール

USBさして、Option押し続ける

あとは、通常通りのインストール

設定

ファンの対応

これをやっておかないとうまくファンが回らないらしい

sudo apt update && sudo apt install -y mbpfan
sudo systemctl enable --now mbpfan

蓋閉めてもサスペンドしないなどの設定

sudo vi /etc/systemd/logind.conf

以下をコメント外して修正

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

反映

sudo systemctl restart systemd-logind

画面の自動消灯(無操作60秒でバックライトOFF)

sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=60"

反映

sudo update-grub

sshのインストールなど

sudo apt install openssh-server
sudo systemctl status ssh

sudo ufw allow from 192.168.x.x/24 to any port 22 proto tcp
sudo ufw enable
sudo ufw reload
sudo ufw status verbose

ssh切れない設置

sudo vi /etc/ssh/sshd_config

ClientAliveInterval 60
ClientAliveCountMax 3

反映

sudo systemctl restart ssh

結果確認など

$ free -m
               total        used        free      shared  buff/cache   available
Mem:           15341        1729       12617         462        1744       13611
Swap:           4095           0        4095
$ df -BG
Filesystem     1G-blocks  Used Available Use% Mounted on
tmpfs                 3G    1G        3G   1% /run
/dev/nvme0n1p2      457G   12G      422G   3% /
tmpfs                 8G    0G        8G   0% /dev/shm
none                  1G    0G        1G   0% /run/credentials/systemd-journald.service
none                  1G    0G        1G   0% /run/credentials/systemd-resolved.service
/dev/nvme0n1p1        2G    1G        2G   1% /boot/efi
tmpfs                 8G    1G        8G   1% /tmp
tmpfs                 2G    1G        2G   1% /run/user/1000
tmpfs                 2G    1G        2G   1% /run/user/60579
$ lscpu
アーキテクチャ:                        x86_64
  CPU 操作モード:                      32-bit, 64-bit
  アドレスサイズ:                      39 bits physical, 48 bits virtual
  バイト順序:                          Little Endian
CPU:                                   4
  オンラインになっている CPU のリスト: 0-3
ベンダー ID:                           GenuineIntel
  モデル名:                            Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz

  <<以下略>>
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?