# Installation Guides (MacOS)

# VPN for Mac

For using VPN on Mac you have to install the Sophos *Client Authentication Agent* and the *FortiClient*! For both you need to Device to connect with LAN cable inhouse!

I'm not sure if the FortiClient needs the Sophos Client Authentication Agent! But for security reason we need the Sophos Endpoint Protection Software:

### Sophos Endpoint Protection

1. Download zip-file from `smb://vogelwarte.ch/dfs/` *Teamwork/IT/SophosInstall.zip*
2. Install the Sophos Installer.app
3. Follow this guide to enable all required permissions for Sophos: [https://docs.sophos.com/central/customer/help/en-us/PeopleAndDevices/ProtectDevices/EndpointProtection/MacSecurityPermissions/index.html#grant-permissions-for-scanning-and-web-protection](https://docs.sophos.com/central/customer/help/en-us/PeopleAndDevices/ProtectDevices/EndpointProtection/MacSecurityPermissions/index.html#grant-permissions-for-scanning-and-web-protection)

### FortiClientVPN Installation

1. Download the VPN client software: [FortiClient Onlineinstaller / Updates](https://www.fortinet.com/support/product-downloads#vpn).
2. Install it - Zertifikat should be automatically installed (or not needed)
3. You need to allow in the *System Settings* following entries:
4. Switch off all Inhouse Network LAN and also WLAN "Vogelwarte" or "VoWa\_public"

### FortiClient uninstall
The problem is that the Uninstaller is only working if FortNet is not running. You have to run the MacOS in the Safe Mode

#### Safe Mode procedure
1. Shutdown
2. Press Power Butten for long time till "System ..." appears
3. Press on "HardDrive" symbol
4. Press on Shift and then the "click"-button changes to "...start into Safe Mode..."
5. The system starts into the safe mode
6. Now you can run the "Uninstaller"
7. Reboot the machine

# Install Printers on macOS

_If your Mac is part of the Vogelwarte AD, you can skip the manual installation and just install the printer's drivers! You should directly find the printers in the macOS settings with PRINTSERVER2019-\<YOUR PRINTER\>!_

## Download Required Printer Drivers

Note: These drivers worked at the time of writing. The links might be outdated, thus make sure to download the most recent printer driver.

| Make | Model | Driver |
|------|-------|--------|
| HP   | HP LaserJet M606* | [HP Easy Admin](https://ftp.hp.com/pub/softlib/software12/HP_Quick_Start/osx/Applications/HP_Easy_Admin.app.zip) | 
| Canon | Canon iR-ADV C5840/5850* | [PS Printer Driver & Utilities for Mac](https://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAxMjQ5ODA0&cmp=ABX&lang=DE) | 

_*_ The driver is generic and spans several models

## Manual Installation of Printers

This guide helps you to set up a printer manually, e.g. when your device is not part of the Vogelwarte AD

### Prerequisites

To install the printer, please note down the following information:

* Name of the printer at Vogelwarte (e.g. OG1_PrintEDV)
  * This information can be found on a Vogelwarte Windows computer by connecting to `\\printserver2019` in Windows Explorer.
[![printserver2019.PNG](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/scaled-1680-/printserver2019.PNG)](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/printserver2019.PNG)

* Make and model of the printer

### Step-by-step Guide

1. Download and install the driver for the specific printer model from the manufacturers website. You can find some hints for some models in the Table below.

2. In the macOS Settings app, go to _Printers & Scanners_ and click _Add Printer, Scanner or Fax_
  [![setting_add_printer](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/scaled-1680-/image-1736849385077.png)](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/image-1736849385077.png)

3. In the Add Printer dialogue, right click anywhere in the Toolbar and select Customize Toolbar. Then drag and drop the Advanced icon into the toolbar.
  [![](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/image-1736851643101.gif)](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/image-1736851643101.gif)

4. Next, select _Windows printer via spoolss_ as Type and enter the printers URL as `smb://printserver2019.vogelwarte.ch/<Printer Name>` as shown below. Also, make sure to set an appropriate name (+optionally the location), as well as to select the correct driver in the Use dropdown (you might have to search for it). Then, click add.
  [![Advanced_Add.gif](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/advanced-add.gif)](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-01/advanced-add.gif)

5. If you wish, make a test print e.g. from [https://continuousinksupplysystem.com.au/pdf/print-testing-tools-MIR.pdf](https://continuousinksupplysystem.com.au/pdf/print-testing-tools-MIR.pdf).
   Make sure to select the correct paper size A4, which sometimes get set to US Letter.

# Configure the network for VPN

For various internal services, e.g. QGIS plugins, a standard domain **vogelwarte.ch** must be specified in the network settings.

   
[![Screenshot 2025-08-14 at 09.36.36.png](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-08/scaled-1680-/screenshot-2025-08-14-at-09-36-36.png)](https://wiki.vogelwarte.ch/uploads/images/gallery/2025-08/screenshot-2025-08-14-at-09-36-36.png)

1. Go to the Network details
2. Select DNS on the left side
3. In **Search Domains** add `vogelwarte.ch`. You have to press **+** on the bottom of the listbox.

# MacBook Install Guide for Vogelwarte Devices

*This setup works for macOS Tahoe*

### Manual Setup (until we have a MDM)

#### Prerequisites:

You need to be in Sempach at a staging docking station to have access to the internal network

#### Step 1: Out-Of-The-Box Setup Guide

Follow the setup guide and create a user Scientific IT (UNIX username "scientific.it") with the password from Bitwarden ("Mac Laptop Admin Login"). Disable Location Services, disable Siri, disable analytics, skip Touch ID, skip Apple Account.

#### Step 2: Install Updates or update to macOS Tahoe

Go to system settings and check for updates. So far, M4 devices were still shipped with macOS Sequoia 15. Thus an update to macOS Tahoe is necessary. Proceed with said update.

#### Step 3: Enable FileVault encryption

#### Step 4: Install Sophos and FortiVPN

Conect to [smb://vogelwarte.ch/dfs](smb://vogelwarte.ch/dfs) and navigate to Teamwork &gt; IT and copy the FortiVPN online installer &amp; SophosInstall folder to the machine. Install Sophos. During the installation you will be prompted to enter the password multiple times to enable extensions. Additionally you need Full Disk Access for multiple Sophos services. In Sophos Endpoint Self Help under Prerequisits, you find an icon to drag &amp; drop to the Full Disk Access Setting in macOS which makes this setup easier.

Next, install FortiVPN. The configuration of FortiVPN is done in a later step.

#### Step 5: Install M365 Apps

Download Office Apps from microsoft.com. You can temporary login with your Vogelwarte account. Install pending updates with the Microsoft AutoUpdate app. Do not open the apps yet.

#### Step 6: Connect to AD 

- Find the WissIT AD Admin in Bitwarden
- Open "Directory Utility"
- Unlock and double click on Active Directory in the service list.
- Enter the following 
    - Active Directory Domain: vogelwarte.ch
    - Computer ID: &lt;desired computer ID&gt;
    - In advanced options &gt; User Experience : Check "Create mobile account at login" &amp; "Require confirmation before creating a mobile account"
    - In advanced options &gt; Administrators &gt; Preferred Domain Server: dc01.vogelwarte.ch
- Click Bind, you will first be asked for the local admin password and then for the AD admin account. Enter those details. Wait for activation
- Log out
- Now log in with your (or the owners) Vogelwarte account. You'll be asked to create a mobile account. If the laptop is for you, click yes, if not, do not create one. Mobile accounts are accounts which remain on the device and are useful if you want to keep the account on the machine.
- If you set up a mobile account, you will be asked again for the scientific.it password to unlock the boot drive encryption (FileVault) with the new account.
- Once the account setup is done make sure to enable admin rights for the new account

#### Step 7: Install Printers

Install the **most recent** drivers for macOS

| Make | Model | Driver |
|------|-------|--------|
| HP   | HP LaserJet M606* | [HP Easy Admin](https://ftp.hp.com/pub/softlib/software12/HP_Quick_Start/osx/Applications/HP_Easy_Admin.app.zip) | 
| Canon | Canon iR-ADV C5840/5850* | [PS Printer Driver & Utilities for Mac](https://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDEwMDAxMjQ5ODA0&cmp=ABX&lang=DE) |

For the label printers, the drivers are already preinstalled on macOS

# SMB Client on macOS

### Settings for the macOS smb client

1. Create the file `/etc/nsmb.conf` file with the following content

```toml
[default]
streams=yes
notify_off=yes
soft=yes
port445=no_netbios
protocol_vers_map=6
mc_on=yes
mc_prefer_wired=yes
dir_cache_max_cnt=0
```

2. In a terminal, execute `sudo defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE`. This disables the creation of .DS_Store files on network shares
3. Restart the machine
4. Reconnect all smb shares afterwards.


### Details of the /etc/nsmb.conf settings
| Setting | Value | Description |
|--------|-------|-------------|
| `streams` | `yes` | Enables support for NTFS alternate data streams, allowing macOS to read and write metadata and resource forks on SMB shares that support this feature [^1]. |
| `notify_off` | `yes` | Disables file and directory change notifications from the server, which can reduce network traffic and prevent unnecessary refreshes in Finder [^4]. |
| `soft` | `yes` | Configures soft mounts, meaning that if the server becomes unresponsive, operations will fail quickly instead of hanging indefinitely, improving user experience during network issues [^1]. |
| `port445` | `no_netbios` | Specifies that connections should use direct TCP on port 445 without falling back to NetBIOS over port 139, streamlining the connection process [^2]. |
| `protocol_vers_map` | `6` | Sets the SMB protocol version compatibility bitmap; `6` to force SMB 2 or 3 only [^3]. |
| `mc_on` | `yes` | Enables SMB Multichannel, allowing multiple connections between client and server to increase transfer speeds and provide redundancy [^7]. |
| `mc_prefer_wired` | `yes` | When SMB Multichannel is enabled, this setting prioritizes wired network interfaces over Wi-Fi for better performance and stability [^5]. |
| `dir_cache_max_cnt` | `0` | Disables local caching of directory listings, ensuring that you always see the most current files and folders on an SMB share [^6]. |

After modifying `/etc/nsmb.conf`, disconnect and reconnect any mounted SMB shares for the changes to take effect [^8].

[^1]: [MacOS und SMB nerven | Das deutsche Synology Support Forum](https://www.synology-forum.de/threads/macos-und-smb-nerven.136823/) 

[^2]: [nsmb.conf(5) man page](https://leancrew.com/all-this/man/man5/nsmb.conf.html) 

[^3]: [How to disable SMB 1 or NetBIOS in macOS](https://support.apple.com/en-us/102050) 

[^4]: [DSM 7.2 - Dateien erscheinen nach dem Löschen wieder und lassen...](https://www.synology-forum.de/threads/dateien-erscheinen-nach-dem-loeschen-wieder-und-lassen-sich-dann-nicht-mehr-loeschen.138574/)

[^5]: [Das Verhalten von SMB Multichannel konfigurieren - Apple Support (LI)](https://support.apple.com/de-li/102010) 

[^6]: [Disable local SMB directory enumeration caching](https://support.apple.com/en-mk/101918) 

[^7]: [Configure SMB Multichannel behavior](https://support.apple.com/en-jo/102010) 

[^8]: [Apple macOS smbx and /etc/nsmb.conf information - GitHub](https://github.com/scriptsandthings/macOS_smbx_things)

# Problem after Active Directory (Windows/entra) Password change

When I changed my ActiveDirectory password on the MacOS - everything worked. OK, I had to give the new password on serveral Online Services from Microsoft365 and I've to restart my Teams and so on... But one problem on MacOS keept me a little bit stocked. 

The **passwords** on MacOS are stored in the **Keychain Access** Tool and is encrypted with the AD password and this is not changed automatically - so you have to change it manually:

Type into a Terminal:
```bash
security set-keychain-password
```

And you have to enter the **old** and then the **new** Active Directory Password.