VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
An Overview of Snap Packages DistroTube

An Overview of Snap Packages DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
An Overview of Snap Packages DistroTube Snap packages have become increasingly popular since they provide an easy way to install software on any Linux distribution. This a brief overview of the Snap package format. NOTE TO ARCH USERS: When I installed snapd I meant to mention this. If If AppArmor isn't enabled in your system then all snaps will run in devel mode which mean they will have same, unrestricted access to your system as apps installed from Arch Linux repositories. $ systemctl enable now apparmor.service $ systemctl enable now snapd.apparmor.service - https://snapcraft.io/
Date: 2022-03-30

Comments and reviews: 10


Derek and all,
I just rewatched your Debian Unstable video from 1-1/2 years ago. I have been living on hardware with Debian Buster as my only OS for the past 12 hours using their newly advertised installer ( RC ).
First of all, it looks like Buster has ditched Aptitude and Synaptic. Buster has a graphical tool called -Apper,- which looks like an old version of SparkyLinux -Aptus.- Apper is going to have a learning curve, and maybe -yast- from OpenSUSE is the closest thing to compare it to.
The new installer is similar to Anaconda - I think. It did not install some of my firmware, so I am going to have to go back and take a look at installing those items it listed.
I have never been in Debian before, except for time spent in SparkyLinux, Siduction, MX Linux, AntiX, ExTix, etc. It seems they encourage users to only use what is in the chosen repository for each
branch of their distro. That is great as long as I find everything I need there. I downloaded 2 drivers from the Brother's website - one for my scanner and the other for my printer. And the message I got in Konsole ( using KDE Plasma ), was that Debian insisted I use their own in-house versions of these drivers. They seem to work. Anyways, I have a lot to learn about all that.
Here are some more components Buster installed: systemd 241-3, mesa 18.3.4, xOrg 1.20.3, kernel 4.19.0-4 ( which I assume is really 4.19.28 with Debian tweaks ). It did not install ffmpeg. I installed ffmpeg, not having a clue if it were necessary.
I haven't yet figured out if I have the repository set up right for all the free, non-free, etc. stuff.
I am not yet a Linux advanced user, and probably just barely an intermediate user, but I am living in Buster and that gives me a warm-fuzzy feeling.
I just used -Apper,- to install DXVK 0.96. I think that installed libvulkan 1.1.97
I tested Apper and installed a few things. I don't see anyway to select repository, but under filters, there are some options for free, non-free, etc.

reply

Thank you, DT. That really cleared up some of the background info I needed to understand the use of snapd better. Firstly how to 'enable' the service and secondly how to create the 'symlink' to make sure it all works properly. I do have a couple of questions though, if you have time to consider them. Firstly, if I download the snap version of VLC will that automatically include libdvdcss2 as part of the sandbox? I don't 'think' it does but I'm really not sure. And the same with say a snap version of Opera - does that automatically include ALL the media codecs that you need to make Opera work? I guess I ask this because I used to use snap Opera on Mint and it used to always work then one update seemed to 'kill' it for me. I also tried snap Opera on the Ubuntu 19.04 beta recently and I think I had the same problem. Over in Australia, a very popular website is the AFL website and some distros/browsers seem to have issues playing clips on that website. I assume (but don't know for sure) that it is codecs related. Thanks for your work, DT, this was a really informative video.
reply

TL;DR
2:52 sudo apt install snapd
3:10 yay -S snapd
3:41 sudo systemctl enable --now snapd.socket
4:08 sudo ln -s /var/lib/snapd/snap /snap
5:03 sudo snap install -pkg-
5:35 sudo snap remove -pkg-
5:52 snap version
6:04 sudo snap refresh
6:37 sudo snap refresh -pkg-
8:15 cd /var/lib/snapd/snap
9:48 du -hs -pkg-
10:17 mount - grep -pkg-
10:48 cd /var/lib/snapd/snaps
14:05 snap info --verbose -pkg-
14:31 sudo snap logs -pkg-
15:05 sudo snap logs -pkg-.-dependency-
15:22 sudo snap get -pkg-
16:18 sudo snap disable -pkg-
16:46 sudo snap enable -pkg-

reply

Man, if many more of the apps I use go over to snap, I'm gonna need a bigger hard drive. They need to find a way for snaps to see if another snap has compatible dependencies and just use those. Probably not possible with their confinement model, but damnit there has to be a smarter, better way than just blindly installing multiple copies of the same things. Also, soooo many mounted filesystems cluttering up my quick mountpoint access doodad. Ugly, is what it is.
reply

Agree. Ubuntu is making history, great and brave moves toward futures that what we expected from Ubuntu devs and community. The Snap is very important for developers, pro-video-editors and programmers because all what we need is one click to installed Eclipse, Android studio, Kdenlive, Blender, and with one commands (sudo snap refresh) and all yours Snap-SW will be updated with latest stable version sw. Big thanks to Ubuntu.
reply

Thanks this is something I hadn't yet gotten around to. AppImage is also something I've been meaning to check out. I still use .deb and .rpm for packaging. I have a buddy who published his Amass application to Snap since there was more of a barrier to entry to get in to the Ubuntu repositories. That project is now an OWASP project which is pretty cool but Snap worked well for them.
reply

Canonical marketing department really f--cked up on this one. The Snap project should be called Unity, as its goal is to run software in a plateform independent way. Unity was never about unification; it was about building a modern graphical environement for the Ubuntu plateform. It sould have been called Snap; since everyone wants a snappy graphical environement.
reply

DT could you make a follow up on how to setup AppArmor with Snaps? I believe if you don't set it up in a non-Ubuntu system like Arch, there is no strict sandboxing with Snaps by default and the system is in -Classic Mode-. This might explain why you have noticed snaps on Ubuntu are slower. At 8:07 it says that classic mode is enabled with the symbolic link.
reply

Snaps are extremely easy to install, which I like. But I usually remove them shortly after installing because they are nearly useless without access to your files.
I open a snapped program then try and open a file but my home directory is off limits.

reply

LOL, i had to maintain our companys win10 machines and had to install printer drivers.... Hello HP. And Hello SNAP, it was 1+ GB, for only fu-king printer driver! Wellcome snap/flat/app fuc-ing. I'm leaving this planet. This is insane....
reply
Add a review, comment






Other channel videos