Article 5HF8S How to install and use sweethome3d on centos 7 using snap

How to install and use sweethome3d on centos 7 using snap

by
Shaggy1
from LinuxQuestions.org on (#5HF8S)
System Info
-------------
Code:$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)Code:$ uname -a
Linux lb-cam-bca-12 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxCode:$ snap --version
snap 2.49-2.el7
snapd 2.49-2.el7
series 16
centos 7
kernel 3.10.0-1062.1.1.el7.x86_64Code:$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)Sweet Home 3D version 6.5
----------------------------------

Hi

I have just installed snapd and then used it to install sweethome3d on a centos 7 system.
(
yum install snapd
snap install sweethome3d-homedesign
)

However it seems snap is a sort of VM on it's own and does not install things in a conventional way.

I was wondering if someone could exlain how I can use my application installed by snap.

I found I can run sweethome3d OK by running:
/var/lib/snapd/snap/bin/sweethome3d-homedesign

However it looks like it has creates a virtual file system and mounted it and the only files and directories I can see are in that file system

Looking at the snap mounted systems I see:
$ mount | grep sweet
/var/lib/snapd/snaps/sweethome3d-homedesign_13.snap on /var/lib/snapd/snap/sweethome3d-homedesign/13 type squashfs (ro,nodev,relatime)
proc on /run/snapd/ns/sweethome3d-homedesign.mnt type proc (rw,nosuid,nodev,noexec,relatime)

$ df | grep loop
/dev/loop0 33152 33152 0 100% /var/lib/snapd/snap/snapd/11588
/dev/loop1 56832 56832 0 100% /var/lib/snapd/snap/core18/1997
/dev/loop2 136064 136064 0 100% /var/lib/snapd/snap/sweethome3d-homedesign/13

And when I run sweethome3d and try to open a file all I can see are the contents of /var/lib/snapd/snap/core18/1997 and below, which is used as the root of the snap fs.
The directories here are:
$ ls /var/lib/snapd/snap/core18/1997
bin boot dev etc home lib lib64 media meta mnt opt proc root run sbin snap srv stdout sys tmp usr var writable

Additionally if I try to save a file (to, for example, writable) I get a read only file system error (since it's mounted as read only I guess)

Does anyone know how I can install sweethome3d using snap such that I can write files and access directories on the main file system ?latest?d=yIl2AUoC8zA latest?i=Jbnk0TmhPno:a4X9soDj5Sw:F7zBnMy latest?i=Jbnk0TmhPno:a4X9soDj5Sw:V_sGLiP latest?d=qj6IDK7rITs latest?i=Jbnk0TmhPno:a4X9soDj5Sw:gIN9vFwJbnk0TmhPno
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments