Bonjour, je suis nouveau dans la communauté YunoHost. En effet je viens d’acheter la ZimaBlade 7700 avec le kit NAS de chez Zima. L’os préinstallé (Casaos) ne me plaisait pas alors je l’ai désinstallé pour installer YunoHost. Cela fonctionne très bien, j’ai accés à l’interface web ainsi qu’au SSH et j’arrive aussi à installer des applications.
Mes questions sont les suivantes :
J’ai deux disque dur de 1to que j’ai monté en RAID1 via le SSH. Comment être sur que yunohost utilise ces diques dur en RAID1 ?
Il y a encore des traces de l’ancien os (Casaos) dans le system Debian. En effet je peux encore me connecter en temps qu’admin grâce à utilisateur : casaos et password : casaos. Cela n’est vraiment pas sécur pour moi et j’aimerais m’en débarrasser. Comment puis-je procéder pour éffacer toute trace de l’ancien OS et avoir la conscience tranquille ?
J’aimerais utiliser ce NAS pour remplacer Google Drive, Photo, Mail, Agenda, Contact, etc. Une solution qui m’attire est l’utilisation de Nextcloud pour faire tout cela. En revanche je ne comprend pas où et comment Nexcloud enregistre les fichiers que j’y importe ? Y’a t’il moyen de vérifier où sont stockés les données Nextcloud ?
Pour faire des backups, je ne comprend pas les solutions proposées sur les forums et la documenttation YunoHost. J’aimerais pouvoir copier le nas en miroir sur un troisième HD de 1to. Est-ce possible ?
Désolé si mes questions parraissent bête, j’ai l’habitude d’utiliser MACos et le finder est hyper simple d’utilisation et je ne comprend pas bien encore tout cet environnement NAS…
My French is enough to read your post, mostly, but not enough to post an intelligible reply.
The Zimablade looks like a fun platform. Do I understand correctly, that the OS is on eMMC/flash, and two (empty) HDDs are connected? The devices are not automatically added to Debian/Yunohost; you’ll need to add them to /etc/fstab (or a corresponding systemd-file). After creating the RAID1 device, it will probably be available under /dev/md0. You can partition it as if it is a regular device, put a file system on the partitions and then mount the partition(s). If you like to move data/directories from existing flash storage to RAID, I think there are threads on the forum that dive into that.
If the CasaOS user is still on the system, than only the CasoOS program layer was deinstalled, not the OS (in the case of CasaOS as well as in Yunohost, Debian is the actual OS, with some additional programs). To remove all traces of CasaOS, you’d use the Yunohost installation image,or install Debian 12 (Bookworm) ‘from scratch’ and add Yunohost, For sure I’d change the default password of the existing user: sudo passwd casaos
I think Nextcloud is a good start to “do everything”. It may not be “the best” or the fastest for viewing photos, or for reading email, but it does many things and everything reasonably well. Yunohost configures Nextcloud to store files in the /home/yunohost.app/nextcloud/-path, which you may wish to move to the larger storage. There are two main paths to storing data in Nextcloud:
a. Upload via the web interface or a WebDAV client
b. Upload via SSH or disk to disk copy, and use the oc files:scan command. There’s a Yunohost-command to switch to the nextcloud user if I recall correctly, that lets you use the oc-commands more easily.
c. Besides that, there’s an option to put files in your user/media directories, and have them served as external folders in Nextcloud. I found that it put all files that were opened this way, were copied to the database before showing them, causing my database to grow considerably (that was NC 18, it may have changed now)
You might connect your third HDD via USB and convert your RAID to 3-way mirror, and run in degraded RAID setup and connect/resync every so often. There are many other options.
Some remarks:
RAID sounds nice. It gives (marginally) higher performance and resilience against outage. For performance you would not use HDD nowadays. In the last 20+ years I have not yet had a HDD die on me, so I don’t use RAID anymore for resilience if a downtime of a day is permissible (which mostly is the case in a home server situation).
If I have 3 HDDs of 1 TB, I’d use one for the live system, one for onsite backup, and one for offsite backup, or 2 TB for live data and 1 TB for backup of important files.
To follow up, it might be easier to split your various questions into separate threads. Your questions are not unique, you might find helpful hints in older topics.
You are also not limited to this forum only. Yunohost is built on Debian and Linux. Everything that works on Debian, works on Yunohost as well, and most tips for Linux are also valid for Yunohost. For the functional system, it does not matter whether you run on a Zimablade, a converted Kobo ereader, a supercomputer or a VPS rented online.