# Debian GNOME on Mac Mini M1

> An installation memo for running Debian GNOME on a Mac Mini M1 via Asahi Linux, covering the setup process and key configuration steps for getting a working Linux desktop on Apple Silicon.

Date: 2024-05-12
Tags: Debian, MacOS
URL: https://blog.bdim.moe/posts/debian-gnome-on-mac-mini-m1/

---

# Installation Memo for Debian GNOME on Mac Mini M1

I've long heard about Asahi Linux, and today I gave it a try, and it's indeed impressive. Previously, I followed the official documentation to install Fedora, only to find out there are mature scripts available for direct Debian installation. Today, I finally mustered the courage to try my hand at installing on Mac, start the challenge like a newbie!

You can:

- Follow the [official installation guide](https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian), which is quite detailed, just follow the steps.

- Refer to a YouTube blogger's [installation video](https://www.youtube.com/watch?v=tnmW5qc3h4Y), which is also comprehensive.

## My Environment:

```shell
       _,met$$$$$gg.          bdim@debian 
    ,g$$$$$$$$$$$$$$$P.       ----------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) aarch64 
 ,$$P'              `$$$.     Host: Apple Mac mini (M1, 2020) 
',$$P       ,ggs.     `$$b:   Kernel: 6.5.0-asahi-00780-g62806c2c6f29 
`d$$'     ,$P"'   .    $$$    Uptime: 1 hour, 8 mins 
 $$P      d$'     ,    $$P    Packages: 1680 (dpkg), 11 (flatpak), 6 (snap) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15 
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080 
 Y$$.    `.`"Y$$$$P"'         DE: GNOME 43.9 
 `$$b      "-.__              WM: Mutter 
  `Y$$                        WM Theme: Adwaita 
   `Y$$.                      Theme: Adwaita [GTK2/3] 
     `$$b.                    Icons: Adwaita [GTK2/3] 
       `Y$$b.                 Terminal: gnome-terminal 
          `"Y$b._             CPU: (8) @ 2.064GHz 
              `"""            Memory: 6684MiB / 15677MiB                         
```



## Installation

First, run the following installation script:

```shell
curl -sL https://tg.st/d | sh
```

The script will guide you through what needs to be done. Just follow the steps.

After installation, shut down your Mac Mini. Then, long-press the power button to enter the boot page, and choose the Asahi Linux you just installed. Follow the prompts to enter the password and confirm some information.

After rebooting, you'll enter the command-line interface.

## Set Root Password

The first thing to do after logging in is to set the root password:

```shell
passwd
pwconv
```

## Connect to WIFI

Manually connect to WIFI:

```shell
nano /etc/wpa_supplicant/wpa_supplicant.conf
```

> [!CAUTION]
>
> If you're more comfortable with vi, you can use vi. If using nano, you can save with CTRL + O and exit with CTRL + X.

Enter the WIFI name into `ssid` and the password into `psk`, for example:

```shell
$ cat /etc/wpa_supplicant/wpa_supplicant.conf
network={
        ssid="ZR-1312"
        scan_ssid=1
        key_mgmt=WPA-PSK
        psk="abc4001001111"
}
```

Then start WIFI connection:

```shell
ifup wlan0
```

After seeing the internal network address successfully assigned, try pinging any address to test the network connection, which is crucial. Then activate the newly connected network interface:

```shell
nano /etc/network/interfaces
```

Remove the # in front of `allow-hotplug`, for example:

```shell
$ cat  /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:

source /etc/network/interfaces.d/*

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0 # Remove the # here
#iface wlan0 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
```

## Create User

Next, create a user (we shouldn't always use root to log in):

```shell
useradd -m -c 'your name'  -s /bin/bash username
```

Replace `your name` and `username` with yours.

Then set the password:

```shell
passwd username
```

## Change Source (Optional)

Now, let's manually install the desktop system. But before that, if you don't have a router or any other device to quickly connect to the Debian official source, you need to modify apt's source. Here I use my pastebin, it's public, you can use it too, https://pb.bdim.moe. If you're storing sensitive information, I recommend setting a short lifespan and using a password for verification, or generating a long link.

Copy the content into it, then you can get its content. However, note that when using sources like Tsinghua, you need to check "Force secure updates using mirrors".

```shell
curl https://pb.bdim.moe/1234 >> source.txt

cp source.txt /etc/apt/source.list
```

This changes the source. Try updating to see if there's any problem:

```shell
apt update && apt upgrade
```

## Install GNOME

If your network is fine, we can start installing the graphical desktop. You can choose KDE like the official or the YouTube blogger mentioned above, or choose GNOME like me. If you choose GNOME, let's begin!

It's very simple:

```shell
sudo apt install task-gnome-desktop
```

After successful installation, shut down or restart directly, and you'll see the normal graphical desktop!

## WIFI Issue

Many might encounter a situation like mine, where after entering the system, the WIFI panel is blank, but surprisingly, there's a network. No matter how you toggle the WIFI button, it doesn't work. Here's a [post](https://www.reddit.com/r/AsahiLinux/comments/u5tuzj/asahi_debian_wifi_connected_but_no_networks_in/) that might help you. Simply put:

```shell
vim /etc/network/interfaces # Install vim if you don't have it
```

Comment out these two:

```shell
# interfaces(5) file used by ifup(8) and ifdown(8)

# Include files from /etc/network/interfaces.d:

source /etc/network/interfaces.d/*

allow-hotplug eth0
iface eth0 inet dhcp

#allow-hotplug wlan0 # Here
#iface wlan0 inet dhcp # And here
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
```

Also, here:

```shell
vim /etc/NetworkManager/NetworkManager.conf
```

Change it to:

```shell
[ifupdown]
managed=true
```

After the operation, you need to restart for the changes to take effect.

## Time Synchronization Issue

This is also very simple:

```shell
apt install systemd-timesyncd
```

Now you should see the time synchronized accurately. However, you may need to go to the settings to modify your time zone. If you want to use location, you need to open location permissions in Privacy first, and then enable automatic location acquisition in the time settings. But it's recommended to set it manually.

## Install Telegram

As of now, only snapcraft has specifically supported the Asahi version of [Telegram](https://snapcraft.io/telegram-asahi).

There's nothing else particularly noteworthy. For further details, you can refer to my article:

[Debian GNOME Installation Configuration Memo](https://blog.bdim.moe/zh/posts/2024-4-10/)

## Show

![](https://blog.bdim.moe/images/在 Mac Mini M1 上安装 Debian gnome-01.webp)

Reference Links:

- [Official Installation Information](https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian)
- [Installation Video](https://www.youtube.com/watch?v=tnmW5qc3h4Y)
- [Asahi Debian WIFI Issue Post](https://www.reddit.com/r/AsahiLinux/comments/u5tuzj/asahi_debian_wifi_connected_but_no_networks_in/)

---

Source: Bdim — https://blog.bdim.moe/posts/debian-gnome-on-mac-mini-m1/
