LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-05-2021, 08:24 AM   #1
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Rep: Reputation: 3
How to install and use sweethome3d on centos 7 using snap


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/Linux
Code:
$ 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_64
Code:
$ 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 ?
 
Old 05-05-2021, 08:40 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Sweet Home 3D is a GUI application. After you installed the snap, it should be directly available in your desktop environment. See Commands and aliases in snap docs.
 
Old 05-06-2021, 04:49 AM   #3
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Original Poster
Rep: Reputation: 3
> it should be directly available in your desktop environment
Mmm. If you mean by that it should appear as an icon under 'Activities'. or exist as an entry in /usr/share/applications then it has not been added to that.

I can run it from the command line like this:
/var/lib/snapd/snap/bin/sweethome3d-homedesign

But as mentioned I cannot use it.

Maybe something went wrong with the install. I'll try uninstalling and re-unstalling.
 
Old 05-06-2021, 04:59 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by Shaggy1 View Post
If you mean by that it should appear as an icon under 'Activities'
Yes.

Is there /snap/bin/sweethome3d-homedesign?

Another thought. You may try the flatpak instead of snap. Flatpaks often have a better chance to work on Fedora-based distros than snaps as Flatpak technology was developed at Red Hat. Or just install the upstream .tgz package.

Last edited by shruggy; 05-06-2021 at 05:14 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install and Use Snap Package Manager on Ubuntu 20.04 LXer Syndicated Linux News 0 02-23-2021 07:30 AM
LXer: How To Enable Snap And Install Snap Packages On Linux Mint 20? LXer Syndicated Linux News 1 06-13-2020 05:09 PM
SweetHome3D Nille_kungen Slackware 0 09-15-2019 10:44 PM
[SOLVED] Java for SweetHome3D skrotnisse Linux - Software 2 04-28-2015 11:26 AM
SweetHome3D drakeone Linux - Newbie 7 10-22-2010 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration