NCP enable wifi and connect to network

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.

Log in via ssh and call

raspi-config

or

armbian-config

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?

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 '}'

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

  • prompt > command [options]
  • [output]
  • prompt >

as in

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:~ $

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

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.

This is the most interesting part to answer your question:

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. :wink:

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

I will just do it again, for practice :smiley:

That is ok, the maintainer choose system/version.

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!

1 Like

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.

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.

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