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?

Mac Pro (2013)+Debian12+Samba(iOS対応)

Posted at

はじめに

MacPro(2013)にインストールしたDebian12でSambaServerを動かしてみたところはまりポイントがいくつかあったので備忘録として残しておく。

Debinのインストール

  1. Optionキーを押してブートメニューを表示しインストールUSBを選択
  2. Wi-Fiは認識しないので有線でインストールを進める

Wi-Fiを認識させる

lspci | grep -i net

を実行すると

Network controller: Broadcom Inc. and subsidiaries BCM4360 802.11ac Wireless Network Adapter (rev 03)

と表示されたので BCM4360 linux で検索して出てきたこの動画を参考にした。
https://www.youtube.com/watch?v=JW0f3NOjWys

無線関連のパッケージをインストール

sudo apt install \
wireless-tools \
network-manager-gnome \
wpasupplicant

/etc/apt/sources.listを編集して main contrib non-free も対象にする

sudo nano /etc/apt/sources.list
sudo update && apt dist-upgrade && reboot

プロプライエタリなドライバを使用する

sudo apt install broadcom-sta-dkms
sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
sudo modprobe wl
sudo reboot

自動サスペンドを抑制する

下記のようにgsettingsを変更するも自分の環境では効果なし

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0

下記の設定変更で効果ありでした

/etc/systemd/logind.conf
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
IdleAction=ignore
/etc/gdm3/greeter.dconf-defaults
[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-timeout=0
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-timeout=0
sleep-inactive-battery-type='nothing'

Sambaを入れるもiOSから書き込めない

iOSから書き込みができなかったが下記を追加すると書き込めた

smb.conf
[global]
    mangled names = no
    vfs objects = catia fruit streams_xattr
    fruit:metadata = stream
    fruit:model = MacSamba
    fruit:posix_rename = yes
    fruit:veto_appledouble = no
    fruit:nfs_aces = no
    fruit:aapl = yes
    fruit:wipe_intentionally_left_blank_rfork = yes
    fruit:delete_empty_adfiles = yes
    server min protocol = SMB2
    client min protocol = SMB3

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?