WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problems with VLC  (Read 6906 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Problems with VLC
« Reply #15 on: June 18, 2014, 08:42:00 AM »
We call that scatter mode, and it is specifically not supported.
Core is designed to install everything fresh at each boot.
You should read the core book and the core concepts page.
http://tinycorelinux.net/book.html
http://tinycorelinux.net/concepts.html
If you want a traditional install, you would be better off with a traditional Linux, not Core.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Problems with VLC
« Reply #16 on: June 18, 2014, 09:34:52 AM »
Is there an advantage to the current way of using packages over a more traditional installation method?

Flexibility. Changing onboot.list or tce directory you can have a different "installation", a different system very quickly just after reboot.

Safety. Installation is read-only, you can't destroy it easily.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #17 on: June 18, 2014, 10:27:46 AM »
We call that scatter mode, and it is specifically not supported.
Core is designed to install everything fresh at each boot.
You should read the core book and the core concepts page.
http://tinycorelinux.net/book.html
http://tinycorelinux.net/concepts.html
If you want a traditional install, you would be better off with a traditional Linux, not Core.

I do recall seeing scatter mode mentioned in the online book, but it doesn't really address the pro's and con's of any "installation" method or go into details of why the squashfs loopback mounts are used (which is what I'm asking).

Also, be careful steering users towards full distros - I'm investigating TC for specific reasons which are not being addressed in others. :)

Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #18 on: June 18, 2014, 10:40:34 AM »
Flexibility. Changing onboot.list or tce directory you can have a different "installation", a different system very quickly just after reboot.

Safety. Installation is read-only, you can't destroy it easily.

Ok, so here's what I have so far for pro's:
- flexibility in the form of having access to various software via the onboot.lst file and tce bootcode
- read-only files (safety and OS is fresh after every reboot)

Technically, if the extensions were installed in scatter mode, pro #1 could be achieved by only using an alternative tce bootcode (without having to additionally edit onboot.lst).  And pro #2 can be achieved as well in scatter mode by booting off of an SD card with the lock enabled (which would be much more secure and achieve the same goals than mounted loopbacks).

Please understand, I'm not trying to argue but instead gain understanding.  At this point (based on these two replies) I can't see why scatter mode wouldn't be supported other than the package manager doesn't support it.

Thanks,
Dave

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Problems with VLC
« Reply #19 on: June 18, 2014, 10:52:37 AM »

And pro #2 can be achieved as well in scatter mode by booting off of an SD card with the lock enabled (which would be much more secure and achieve the same goals than mounted loopbacks).


Much more secure? Why?

With a r/o SD card you must provide a writable storage to save you backup; of course if you have any. there can be a case when no need for backup.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11703
Re: Problems with VLC
« Reply #20 on: June 18, 2014, 10:59:48 AM »
Hi wysiwyg
Quote
an SD card with the lock enabled (which would be much more secure and achieve the same goals than mounted loopbacks).
Unless you happened to forget to enable the lock. To write to a squashfs file you must unpack it, make your changes, and repack it.
Quote
At this point (based on these two replies) I can't see why scatter mode wouldn't be supported other than the package manager doesn't support it.
Because it completely contradicts the design philosophy Roberts had when he created this distro.
You are free to modify this distro as you wish, but as Gerald mentioned, you might be better off with a more conventional distro.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #21 on: June 18, 2014, 11:11:16 AM »

And pro #2 can be achieved as well in scatter mode by booting off of an SD card with the lock enabled (which would be much more secure and achieve the same goals than mounted loopbacks).


Much more secure? Why?

With a r/o SD card you must provide a writable storage to save you backup; of course if you have any. there can be a case when no need for backup.

Thanks for the reply bmarkus. I would say that it's much more secure because there's no way to compromise a system with a physical switch (unless you have someone on the 'inside').  If a system is compromised with squashfs mounted loopbacks, the cracker can just modify those files and upon rebooting the system, you still end up with compromised software giving the user a false sense of security.

I will concede the point that you would need more than one storage device for writing your backup data (given my scenario), but this can be accomplished via another SD card, flash drive, hd, or even network storage. :)

Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #22 on: June 18, 2014, 11:23:04 AM »
Hi wysiwyg
Quote
an SD card with the lock enabled (which would be much more secure and achieve the same goals than mounted loopbacks).
Unless you happened to forget to enable the lock. To write to a squashfs file you must unpack it, make your changes, and repack it.
Quote
At this point (based on these two replies) I can't see why scatter mode wouldn't be supported other than the package manager doesn't support it.
Because it completely contradicts the design philosophy Roberts had when he created this distro.
You are free to modify this distro as you wish, but as Gerald mentioned, you might be better off with a more conventional distro.

Thanks for your reply on this as well Rich.  Regarding the SD locking, yes this could be forgotten, however you're talking about a trivial amount of code that tests and prompts the user to lock/unlock the SD card depending on what's going on (e.g. the manufacturer supplied update that needs to be installed).  See the reply to bmarkus for additional info on this.

Again, I'm not trying to argue, I'm just not sure why the scatter mode "installation" option isn't supported which is why I'm asking the question. :)  To me this would create even more flexibility for the distro.  To quote the website "Tiny Core is not a turn-key operating system" which, to me, means that TC is more or less a distro that a user can tailor to meet their specific needs before it becomes useful.  Providing the most flexibility is what accomplishes this goal, right? 

Another quote from the website "Easy, fast, and simple renew-ability and stability is a principle goal of Tiny Core."  I would certainly say that TC is already accomplishing these stated goals.  However, to get the most speed during bootup, wouldn't scatter mode create the least amount of overhead?

Great conversation so far! :)

Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Problems with VLC
« Reply #23 on: June 18, 2014, 11:55:42 AM »
The design goal of Core is to NOT have packages scatter their files all over the disk.
You might want to look a dDore which uses debian packages.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #24 on: June 18, 2014, 12:55:44 PM »
Ok so it doesn't sound like there's a particular reason other than for "cleanliness".  If that's the only reason then I will continue my efforts on creating a 'scatter' installation mode. :)

Thanks for everyone's input!  If there are any points that can be made in favor of using squashfs mounted loopbacks over a typical installation, please let me know!

Thanks,
Dave

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Problems with VLC
« Reply #25 on: June 18, 2014, 04:36:16 PM »
Everyone has said not just no to scatter mode but Heck No !!!

Many benefits of security in a tc frugal install seem to have been deliberately pushed aside in favor of a totally insecure scatter mode install.   Please tell me how it's possible to compromise an extension without the tools, and how a compromised extension if that's even possible could possibly survive an update check?

You'll perhaps find enlightenment in reading the core concepts before you venture further

Frugal, a fresh install on every boot..

Sent from my iPhone using Tapatalk
« Last Edit: June 18, 2014, 04:39:09 PM by coreplayer2 »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Problems with VLC
« Reply #26 on: June 18, 2014, 05:03:06 PM »
Loopbacks also protect against silent corruption (bad sectors, failing flash, etc). In a scatter install you won't notice until it's too far, unless you checksum everything.

The cleanliness was already said, but I'll add that even Linux systems accumulate files over the years just taking up space.
The only barriers that can stop you are the ones you create yourself.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #27 on: June 19, 2014, 08:23:22 AM »
Everyone has said not just no to scatter mode but Heck No !!!

Many benefits of security in a tc frugal install seem to have been deliberately pushed aside in favor of a totally insecure scatter mode install.   Please tell me how it's possible to compromise an extension without the tools, and how a compromised extension if that's even possible could possibly survive an update check?

You'll perhaps find enlightenment in reading the core concepts before you venture further

Frugal, a fresh install on every boot..

Sent from my iPhone using Tapatalk


Good morning coreplayer2, thanks for the reply as well!  I see that people keep saying no to scatter mode, but I haven't had anyone tell me why other than 'cleanliness'.  Can you list several security features that are ignored in a scatter mode install?

If a system is compromised, all kinds of bad things can happen.  How could the tools necessary to manipulate packages not be uploaded to the hacked device?  Update checks can be hacked too.  No matter what, the most secure solution is a physical switch to enable/disable writing (regardless of scatter mode or any other mode).  This also accomplishes the 'fresh install' on every reboot (as already mentioned).

Thanks,
Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #28 on: June 19, 2014, 08:29:36 AM »
Loopbacks also protect against silent corruption (bad sectors, failing flash, etc). In a scatter install you won't notice until it's too far, unless you checksum everything.

The cleanliness was already said, but I'll add that even Linux systems accumulate files over the years just taking up space.

Thanks for your reply as well curaga!  I'll give you the first valid point for loopbacks over scatter mode regarding the corruption issue.  For the accumulation of files, this wouldn't be any different than a typical TC install vs a locked SD.  Both solutions would prevent those files from being written (in the wrong place) in the first place.

Thanks,
Dave