NextCloud: remove “Get your own free account” share URL

Add this in /path/to/nextcloud/config/config.php:

 'simpleSignUpLink.shown' => false,

On Ubuntu we need to edit with www-data user rights:

sudo -u www-data nano config.php

Nextcloud notes

LOG file location

By default, a log file named nextcloud.log will be created in the directory which has been configured by the datadirectory parameter in config/config.php.

LOG file clear
truncate /nextcloud.log --size 0
Maintenance mode
sudo -u www-data php occ maintenance:mode --on
sudo -u www-data php occ maintenance:mode --off
Empty the trashbin

Maintenance mode mode be off.

sudo -u www-data php occ trashbin:cleanup <user1> <user2> ... <userN>
sudo -u www-data php occ trashbin:cleanup --all-users
Launch the updater manually
cd /var/www/<nextcloud_dir>
sudo -u www-data php updater/updater.phar
Apps disabled after “sudo -u www-data php occ upgrade” command

in case we get a list of disabled app:

Disabled incompatible app: calendar
Disabled incompatible app: contacts
Disabled incompatible app: notes
Disabled incompatible app: ocsms

simply reinstall them one by one manually:

sudo -u www-data php occ app:install calendar

Disable IPv6 on Raspberry Pi3+

To disable IPv6 and avoid the module loaded in memory just edit /etc/modprobe.d/ipv6.conf:

alias net-pf-10 off
alias ipv6 off
options ipv6 disable_ipv6=1
blacklist ipv6

ChibiOS “undefined reference to `_sbrk'” linker error

If we get this linker error with ChibiOS:

/usr/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2: error: ld returned 1 exit status

we simply need to add syscalls.c to be compiled, add the following to CSRC in the Makefile:


We should underline that _sbrk will work correctly if and only if CH_CFG_USE_MEMCORE == TRUE (editable in chconf.h). Else, malloc() will always return 0 and result in an errno of ENOMEM.

WordPress Themes