Nextcloud Appliance, editor?

Hi,

I have installed the Nextcloud Ubuntu Appliance on my RPi3 Nextcloud Box.
Its Ubuntu Core with Nextcloud Snap, at least at my very basic level of understanding :slight_smile:

I usually use nano to edit files, but sudo snap install nano on my system returns:
error: snap "nano" requires classic confinement which is only available on classic systems

Vi is installed already, but I just cant get on with it - at all. I am sure that if you are clever enough and use an editor enough it is great, but not for me thanks.

Vim looks a bit more user friendly in insert mode but sudo snap install vim-editor returns:
error: snap "vim-editor" is not available on this architecture (arm64) but exists on other architectures (amd64).

How can I install nano, or something similar, please?

Thanks

Leigh

beyond the pre-installed vi on ubuntu core, there is the nano-strict snap, but you will need to copy files back and forth since strict snaps can not see all of the filesystem…

Thanks @ogra
I successfully installed nano-strict but I cant edit or create new files in my home directory with it (/home/user or /home) due to permissions
I tried sudo nano-strict & sudo su
Where can I use nano-strict?
Sorry, as you can see, I am not a whizz at these things

On Ubuntu Core, the home interface is not auto-connected, you will need to connect it with:

sudo snap connect nano-strict:home
1 Like

Thanks! that worked a treat

1 Like

Which parts of the file system can a strict snap see, please?

usually only the ~/snap/<snapname>/current and ~/snap/<snapname>/common dirs (and their root owned equivalent in /var/snap/).

if the home interface is connected all non-hidden files in $HOME (i.e. nothing that starts with a dot)

if the removable-media interface is connected also files under /media and /mnt

Thanks again @ogra !