Nextcloud: move/import Notes

How to move all Notes from an instance or backup to a new Nextcloud instance:

Move/copy the Notes folder, typically /www/var/nextcloud/<user>/files/Notes to the new instance, Notes app must be already installed.

Then, on the destination instance, trigger the file scan to rebuild the file cache:

cd /var/www/nextcloud
sudo -u www-data php occ files:scan -p <user>/Notes --all -v

 

Virtualbox: using physical harddisk

Raw hard disk access, both for entire disks and individual partitions, is implemented as part of the VMDK image format support. As a result, you will need to create a special VMDK image file which defines where the data will be stored. After creating such a special VMDK image, you can use it like a regular virtual disk image. Official instructions here.

Create the vmdk image:

VBoxManage internalcommands createrawvmdk -filename </path/to/file.vmdk> -rawdisk </dev/sda>

In order to gain the direct access to the disk, on Debian based distro, we need to be part of the disk group:

usermod -a -G disk <our-user-name>

Then logout and login

Now we are ready to create a new virtual machine where </path/to/file.vmdk> will be out disk image.

 

Android: how to uninstall stock app

Example for Android 9.0 .

Get the app name from Settings->Apps & Notifications-><app you want to remove>->Advanced

In my case it was com.google.android.Pixel2Mod

Connect your phone, be sure ADB is enabled and fire up the ADB shell.

adb shell
su
pm uninstall -k --user 0 <app you want to remove>

In my example:

pm uninstall -k --user 0 com.google.android.Pixel2Mod

 

Install GApps with ADB Sideload

Your phone has to be rooted and have TWRP installed.

Reboot to recovery

Start Sideload mode (Advanced => ADB Sideload and swipe)
will appear:

Starting ADB sideload feature...

On your computer, install GApps with ADB:

adb sideload <gapps-version.zip>

If you get this error:

adb: sideload connection failed: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

You have to restart the ADB server using sudo (and gain the access to the plugdev grouip)
Stop the running adb server:

adb kill-server

Next step is to start the server again but this time with root privileges:

sudo adb start-server

Then proceed to install GApps, something like this:

adb sideload open_gapps-arm64-9.0-pico-20200205.zip

WordPress Themes