# NCP enable wifi and connect to network

**URL:** <https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** network, ncp\
**Created:** [September 15, 2024, 12:45pm UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030 "2024-09-15T12:45:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![seb-1204](https://help.nextcloud.com/user_avatar/help.nextcloud.com/seb-1204/32/64854_2.png) [@seb-1204](https://help.nextcloud.com/u/seb-1204)\
**Post date:** [September 15, 2024, 12:45pm UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/1 "2024-09-15T12:45:54Z")

</div>

Hello NCP friends,

I have recently installed the NCP image for my RPI 3b and it is up and running.

Currently it is connected to my router by cable.  
I want to change this to use my WIFI so that I can move the PI to another location.

I was not able to find any options in the ncp settings.

---

<div class="post-metadata">

**Author:** ![geoW](https://help.nextcloud.com/user_avatar/help.nextcloud.com/geow/32/67506_2.png) [@geoW](https://help.nextcloud.com/u/geoW)\
**Post date:** [September 15, 2024, 3:37pm UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/2 "2024-09-15T15:37:14Z")

</div>

Log in via ssh and call

> raspi-config

or

> armbian-config

---

<div class="post-metadata">

**Author:** ![seb-1204](https://help.nextcloud.com/user_avatar/help.nextcloud.com/seb-1204/32/64854_2.png) [@seb-1204](https://help.nextcloud.com/u/seb-1204)\
**Post date:** [September 21, 2024, 4:48am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/3 "2024-09-21T04:48:22Z")

</div>

Thanks geoW, I have tried  
`ncp-config`  
which was not correct.

Unfortunately when I use `raspi-config` I run into other issues, did I damage my installation or is this something else?

```auto
Traceback (most recent call last):
  File "/usr/sbin/netplan", line 23, in <module>
    netplan.main()
  File "/usr/share/netplan/netplan/cli/core.py", line 50, in main
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 241, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/set.py", line 50, in run
    self.run_command()
  File "/usr/share/netplan/netplan/cli/utils.py", line 241, in run_command
    self.func()
  File "/usr/share/netplan/netplan/cli/commands/set.py", line 72, in command_set
    libnetplan.create_yaml_patch(yaml_path, value, tmp)
  File "/usr/share/netplan/netplan/libnetplan.py", line 501, in create_yaml_patch
    _checked_lib_call(lib.netplan_util_create_yaml_patch,
  File "/usr/share/netplan/netplan/libnetplan.py", line 79, in _checked_lib_call
    raise LibNetplanException(err.contents.message.decode('utf-8'))
netplan.libnetplan.LibNetplanException: Error parsing YAML: did not find expected ',' or '}'

```

---

<div class="post-metadata">

**Author:** ![geoW](https://help.nextcloud.com/user_avatar/help.nextcloud.com/geow/32/67506_2.png) [@geoW](https://help.nextcloud.com/u/geoW)\
**Post date:** [September 21, 2024, 6:58am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/4 "2024-09-21T06:58:10Z")

</div>

Please give more info about your setup.  
ncp-reprt may be your friend.  
Get used to showing:

- prompt \> command [options]
- [output]
- prompt \>

as in

```auto
pi@nextcloudpi:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 223,6G 0 disk
├─sda1 8:1 0 256M 0 part /boot
└─sda2 8:2 0 223,3G 0 part /
sdb 8:16 1 119,1G 0 disk
└─sdb1 8:17 1 119,1G 0 part /media/ncp-backup
pi@nextcloudpi:~ $

```

---

<div class="post-metadata">

**Author:** ![seb-1204](https://help.nextcloud.com/user_avatar/help.nextcloud.com/seb-1204/32/64854_2.png) [@seb-1204](https://help.nextcloud.com/u/seb-1204)\
**Post date:** [September 23, 2024, 10:26am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/5 "2024-09-23T10:26:28Z")

</div>

Hey, thanks for the response, sorry about the missing copy/past.

See below for the output of the ncp-report, it is a lot.

Since I only installed ncp on my pi 3 b and did barely anything I don’t want to waste your time. I can just start over from scratch without trial and error to get the wifi connected. This is straight forward now that you have pointed me to the right location/command.

EDIT: formatting

```auto
kiss@nextcloudpi:~$ sudo ncp-report
[sudo] password for kiss:
<--! Paste this in GitHub report -->

<details>
<summary>NextcloudPi diagnostics</summary>

``

NextcloudPi version v1.55.1
NextcloudPi image
OS Armbian-unofficial 24.8.2 Bookworm \l . 6.6.45-current-bcm2711 (aarch64)
automount no
USB devices none
datadir /opt/ncdata/data
data in SD yes
data filesystem ext2/ext3
data disk usage 4.7G/116G
rootfs usage 4.7G/116G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 29.0.4.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
Public IPv4 ***REMOVED SENSITIVE VALUE***
Public IPv6 ***REMOVED SENSITIVE VALUE***
Port 80 closed
Port 443 closed
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface enxb827eb9f78bc
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 13min

``
</details>

<details>
<summary>Nextcloud configuration</summary>

``

{
    "system": {
        "passwordsalt": " ***REMOVED SENSITIVE VALUE***",
        "secret": " ***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "7": "nextcloudpi",
            "5": "nextcloudpi.local",
            "8": "nextcloudpi.lan",
            "3": "nextcloudpi",
            "11": "2403:4800:24d0:3136:190:bb0f:d41a:67dd",
            "1": "192.168.1.19",
            "14": "nextcloudpi"
        },
        "datadirectory": " ***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.4.1",
        "overwrite.cli.url": "https:\/\/nextcloudpi\/",
        "dbname": " ***REMOVED SENSITIVE VALUE***",
        "dbhost": " ***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": " ***REMOVED SENSITIVE VALUE***",
        "dbpassword": " ***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": " ***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": " ***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": " ***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/opt\/ncdata\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": " ***REMOVED SENSITIVE VALUE***",
        "mail_domain": " ***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "logfile": "\/opt\/ncdata\/data\/nextcloud.log",
        "trusted_proxies": " ***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file"
    }
}

``
</details>

<details>
<summary>HTTPd logs</summary>

``

``
</details>

<details>
<summary>Database logs</summary>

``

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory

</details>

<details>
<summary>Nextcloud logs</summary>

</details>

there is a lot more text but I hit the character limit of the forum response

```

Since I only installed ncp on my pi 3 b and did barely anything I don’t want to waste your time. I can just start over from scratch without trial and error to get the wifi connected. This is straight forward now that you have pointed me to the right location/command.

---

<div class="post-metadata">

**Author:** ![geoW](https://help.nextcloud.com/user_avatar/help.nextcloud.com/geow/32/67506_2.png) [@geoW](https://help.nextcloud.com/u/geoW)\
**Post date:** [September 23, 2024, 10:58am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/6 "2024-09-23T10:58:49Z")

</div>

This is the most interesting part to answer your question:

> [@seb-1204](#):
>
> ```auto
> NextcloudPi version v1.55.1
> NextcloudPi image
> OS Armbian-unofficial 24.8.2 Bookworm \l . 6.6.45-current-bcm2711 (aarch64)
> 
> ```

So, armbian-config should be at your hand.

It is one of the greatest miracles that I’m failing bad as most of us, if I’m in the position to ask for help. 😉

---

<div class="post-metadata">

**Author:** ![seb-1204](https://help.nextcloud.com/user_avatar/help.nextcloud.com/seb-1204/32/64854_2.png) [@seb-1204](https://help.nextcloud.com/u/seb-1204)\
**Post date:** [September 23, 2024, 11:02am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/7 "2024-09-23T11:02:45Z")

</div>

> [@seb-1204](#):
>
> ` Armbian-unofficial 24.8.2`

Are you saying I have installed some beta? Not that I am aware of or intentionally. I used the image from [https://github.com/nextcloud/nextcloudpi/releases](https://github.com/nextcloud/nextcloudpi/releases)

I will just do it again, for practice 😃

---

<div class="post-metadata">

**Author:** ![geoW](https://help.nextcloud.com/user_avatar/help.nextcloud.com/geow/32/67506_2.png) [@geoW](https://help.nextcloud.com/u/geoW)\
**Post date:** [September 23, 2024, 11:18am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/8 "2024-09-23T11:18:23Z")

</div>

> [@seb-1204](#):
>
> I used the image from [https://github.com/nextcloud/nextcloudpi/releases](https://github.com/nextcloud/nextcloudpi/releases)

That is ok, the maintainer choose system/version.

> [@seb-1204](#):
>
> I will just do it again, for practice

If you want do do practice, take another sd-card, start with an older image -ncp 1.52.0- or similar.  
Than you can exercise updating the components as intended by using ncp. Or get used to backup and restore - but here in near future the maintainer promised a new backup system. Or put the system on an extern usb-ssd, and so on…  
Little pi is so much fun!

---

<div class="post-metadata">

**Author:** ![Ninja0](https://help.nextcloud.com/letter_avatar/ninja0/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ninja0](https://help.nextcloud.com/u/Ninja0)\
**Post date:** [September 25, 2024, 7:45pm UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/9 "2024-09-25T19:45:06Z")

</div>

Not to hijack the thread but I am in a similar boat with a Pi5 and 1.55.1 image. I had to install armbian-config to finally connect to WiFi, went through and setup everything, reboot and now there’s no wifi in armbian-config. Currently trying to install the armbian firmware.

---

<div class="post-metadata">

**Author:** ![Ninja0](https://help.nextcloud.com/letter_avatar/ninja0/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ninja0](https://help.nextcloud.com/u/Ninja0)\
**Post date:** [September 27, 2024, 3:36pm UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/10 "2024-09-27T15:36:23Z")

</div>

It seems installing network-manager and armbian-config, not setting static IP in ncp but rather armbian-config did the job for me. I also set the timeout on the lan check to 10s to speed up boot time.

---

<div class="post-metadata">

**Author:** ![Ninja0](https://help.nextcloud.com/letter_avatar/ninja0/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ninja0](https://help.nextcloud.com/u/Ninja0)\
**Post date:** [December 29, 2024, 12:06am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/11 "2024-12-29T00:06:25Z")

</div>

WiFi randomly broke. Downgrading to linux-firmware-raspi=10-0ununtu1 seems to have fixed the issue for now.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [May 22, 2025, 6:01am UTC](https://help.nextcloud.com/t/ncp-enable-wifi-and-connect-to-network/204030/12 "2025-05-22T06:01:21Z")

</div>


