WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Core 14.0 Alpha 1 Testing  (Read 23350 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #60 on: February 06, 2023, 07:33:11 AM »
The busybox build is not static, old glibc CVEs are not affecting anything. It's simply dynamic linking to code that still exists in the current glibc, but is just not allowed to be linked against anymore.
The only barriers that can stop you are the ones you create yourself.

Offline adb014

  • Newbie
  • *
  • Posts: 16
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #61 on: February 06, 2023, 12:34:29 PM »
Reading a bit, it seems that removing CONFIG_FEATURE_MOUNT_NFS won't stop NFS from working with kernels move recent than 2.6.23. See http://lists.busybox.net/pipermail/busybox/2017-September/085848.html where the busybox developer seem to have MOUNT_NFS desactivated by default

Offline CNK

  • Full Member
  • ***
  • Posts: 234
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #62 on: February 06, 2023, 05:15:19 PM »
Quote
Reading a bit, it seems that removing CONFIG_FEATURE_MOUNT_NFS won't stop NFS from working with kernels move recent than 2.6.23. See http://lists.busybox.net/pipermail/busybox/2017-September/085848.html where the busybox developer seem to have MOUNT_NFS desactivated by default

The "If im reading the docs correctly" bit of the post at that link makes one wonder where those docs are. After some searching it turns out the CONFIG_FEATURE_MOUNT_NFS has been depreciated and removed from the BusyBox config docs. You can see the old description in this git commit:

Quote
-     Enable mounting of NFS file systems.
+   Enable mounting of NFS file systems on Linux kernels prior
+     to version 2.6.23. Note that in this case mounting of NFS
+      over IPv6 will not be possible.
+
+       Note that this option links in RPC support from libc,
+          which is rather large (~10 kbytes on uclibc).

But in the same year someone on the Debian mailing list described it here as if it were more of a behaviour changing option, and suggested turning it on (without anyone raising objections):

Quote
- # CONFIG_FEATURE_MOUNT_NFS is not set
+ CONFIG_FEATURE_MOUNT_NFS=y

this enables mounting of nfs filesystems just like
old mount from util-linux did (now it all is moved
to nfs-common with a helper mount.nfs).  This is to
support nfs root.  NFS mount needs rpc library, which
is not very large.  RFC.

The BusyBox mailing list thread also mentions a solution for building with newer glibc versions when  CONFIG_FEATURE_MOUNT_NFS is set:
Quote
The cause of this is that rpc.h is no longer included in glibc-2.26. See
the announcement and release notes here:

https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html

* Sun RPC is deprecated. The rpcgen program, librpcsvc, and Sun RPC
headers will only be built and installed when the GNU C Library is
configured with --enable-obsolete-rpc.  This allows alternative RPC
implementations, such as TIRPC or rpcsvc-proto, to be used.

So there are workarounds that work (enable obsolete-rpc).

That seems like the safest/easiest option if it still works, but my aim is just to clarify the facts for the TC developers.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #63 on: February 06, 2023, 05:44:03 PM »
Hi CNK
I think  --enable-obsolete-rpc  may have been removed:

Quote
Deprecated and removed features, and other changes affecting compatibility:

* Remove configure option --enable-obsolete-rpc.  Sun RPC is removed
  from glibc.  This includes the rpcgen program, librpcsvc, and the Sun
  RPC header files.  Backward compatibility for old programs is kept
  only for architectures and ABIs that have been added in or before
  glibc 2.31.  New programs need to use TI-RPC
  < http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary > and
  rpcsvc-proto < https://github.com/thkukuk/rpcsvc-proto >.

Dated 6 Aug 2020 for GNU C Library version 2.32 found here:
https://lwn.net/Articles/828210/

Similar information plus a little history:
https://stackoverflow.com/a/71976359
« Last Edit: February 06, 2023, 05:51:34 PM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #64 on: February 06, 2023, 11:39:16 PM »
If the option were disabled, NFS mounting would require the nfs-utils mount.nfs and helpers. Having minimal NFS support (nolock and ipv4) without bloat is good.
The only barriers that can stop you are the ones you create yourself.

Offline CNK

  • Full Member
  • ***
  • Posts: 234
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #65 on: February 07, 2023, 05:26:38 PM »
Sounds like the current build tricks are the best for full features with the smallest size then.

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #66 on: February 09, 2023, 08:12:58 AM »
@alphons: You test TC in VMware (not free software), but I use poor-man Qemu (free software).
- what you MEASURABLLY gain (in speed, size) using SMB versus NFS ?
- I think qemu NBD (network block device) allows loops still fast enough. YMMV.

I am sorry but i do not use NFS any more myself, since ... 1996 !!
Stopped when not using Sun sparc stations anymore.
Seen implementations in de wild, preferable version NFS 4.0

I use Qemu also. But, most of my systems all are running esxi (vmware), tesing can be done on the free vmware player, and then you can copie 1 on 1 over to the esxi environment.
For personal usage, esxi is also free.
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #67 on: February 10, 2023, 01:13:29 AM »
@alphons: Lets not confuse "free" to use (close source) software (like VMware) with "open source" software (like qemu). Then, at lest for me, is important:
1. FLEXIBILITY (to change arch 32/64 on the fly, or use libc and musl in-parallel). to have access to various apps.
2. perceived SECURITY, in isolated environment, especially network exposed  (ex: firefox in separateVM). With "security" I can even run Kolibri-OS in a small VM, to have txt / pdf / audio / video etc.

The main goal is to use apps which ask for less RAM in VM. Because it is hard to upgrade my RAM on old machine. And qemu has snapshot storage (layer over layer). to reuse same "hdd" micro-core in simultaneous VM, etc.
PS: I am sorry to deviate from the main topic, which is TC14-alpha.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #68 on: February 14, 2023, 09:13:12 PM »
Hi nick65go
I did some more work on the ANSI color escape sequence patch.
I have not posted it to the repo yet.

The person that created the patch didn't do a good job on the
color handling, so I thought I'd try to fix that. ...
Sorry, I've been kind of busy.

Fltk-1.3 has been updated in TC10 through TC14, both x86 and x86_64 to better
match the colors displayed in a terminal.
 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #69 on: February 15, 2023, 05:06:16 AM »
Hi nick65go
If you or anyone else wants to review the changes, a tarball containing the
source package, patches, AnsiMode.H, and build script can be found here:
http://tinycorelinux.net/14.x/x86/tcz/src/fltk/
and here:
http://tinycorelinux.net/14.x/x86_64/tcz/src/fltk/
Both of tarballs are the same.
« Last Edit: February 15, 2023, 02:23:31 PM by Rich »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #70 on: February 15, 2023, 08:09:42 AM »
http://tinycorelinux.net/14.x/x86_86/tcz/src/fltk/
Both of tarballs are the same.
Hi Rich, Thank you!
PS: should be _64/ not _86 :)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #71 on: February 15, 2023, 12:42:48 PM »
feed-back for TC14 64 bits alpha (and tc13 64):
from aterm I run mntool, it works OK, but I see:
Code: [Select]
tc@box:tc@box:~$ mnttool
XOpenIM() failed
mntools works OK.

now I define a file-manager variable, FILEMGR , and mntool can unmount many disks. OK.
I try to mount any disk, it will do it, BUT it will crash /close instant! Lucky it works correctly and mount that disk/partition.
in aterm I see
Code: [Select]
tc@box:~$ export FILEMGR=fluff
tc@box:~$ mnttool
XOpenIM() failed
sh: fluff: not found
tc@box:~$
so the bug is that mntool will "uselessly" search for this variable FILEMGR, and allow just one partition/disk to be mounted before it exit.
« Last Edit: February 15, 2023, 12:47:12 PM by nick65go »

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #72 on: February 15, 2023, 01:20:07 PM »
I forgot to mention that even if I load the fluff.tcz is the same behavior for mntool, with (or not) fluff opened, as long as FILEMGR is not an empty string. Which of course I can empty in the $user./profile.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #73 on: February 15, 2023, 02:15:19 PM »
Hm, I think I got it:
IF a variable FILEMGR is defined in environment, then mnttool  will mount the slected partition AND open that file-manager (fluff, xfe, whatever) with that partition already selected AND it close itself. Nice.

However, if no FILEMGR is defined (is empty string) then mnttool will mount the partition AND stay alive for next command (mount another partition). Very clever, but nowhere explained in the wiki neither in forum, book etc.

PS: "strings which (mnttool)" found another variable, MNTTOOL. I wonder what it will do undocumented.
      From source code it seams that it defines position (x y) to show on desktop, maybe from top-left (found by try and error).
PS2: in aterm, the message "XOpenIM() failed" remains.
« Last Edit: February 15, 2023, 02:46:40 PM by nick65go »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Tiny Core 14.0 Alpha 1 Testing
« Reply #74 on: February 15, 2023, 02:29:40 PM »
Hi nick65go
... PS: should be _64/ not _86 :)
Thanks, fixed.  :)