Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: brunok on January 25, 2018, 10:23:37 AM

Title: [HELP] Unsquash TCZ into a core.gz
Post by: brunok on January 25, 2018, 10:23:37 AM
Hi!

I have an environment running a custom TC via PXE! (Work fine!)

However, the extensions that i need, are loaded one by one via NFS, before starting the system and its bit slow.


Unzipped all the extensions, using the unsquashfs command and copied their contents into core.gz.

I thought it would work normally, but the GUI does not load automatically. If I start with the startx command, a wizard appears to configure Xvesa.


I think it lacks a "universal configuration" of Xvesa in core.gz, to up the GUI without going through the wizard.

Any idea?
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: andyj on January 25, 2018, 10:55:31 AM
Some extensions have scripts that run when they are loaded. If you are going to preload the extensions in your core.gz, then whatever the scripts do will also have to be done in your core.gz before you save it.
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: brunok on January 25, 2018, 11:09:12 AM
Do you have an Xvesa example?


How to know which extension runs any script?
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: Rich on January 25, 2018, 11:12:47 AM
Hi brunok
After you  unsquash  the extension, check its  /usr/local/tce.installed/  directory. If it needs a startup script, that's where it is.
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: brunok on January 25, 2018, 12:38:47 PM
I will see now.

Thanks!!
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: brunok on January 29, 2018, 08:21:32 AM
I added the extensions in core.gz and applied the changes some of them had to the tce.installed directory.
However, presents an error when trying to boot:

/usr/local/sbin/rpcbind: error while loading shared libraries: libtirpc.so.1: cannot open shared object file.
/usr/local/sbin/rpc.statd: error while loading shared libraries: libtirpc.so.1: cannot open shared object file.

I checked the /usr/local/lib/ directory and there is a link to this library.  ???

libtirpc.so -> libtirpc.so.1.0.10
libtirpc.so.1 -> libtirpc.so.1.0.10
libtirpc.so.1.0.10


After this, boot freeze in:

Starting nfs client utilities
svc: failed to register lockdv1 RPC service (errno 110).  :'(

Any sugestion?
Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: Rich on January 29, 2018, 09:58:16 AM
Hi brunok
If you are adding  nfs-utils.tcz  to  core.gz  you also need to add its dependencies  rpcbind.tcz  and  libtirpc.tcz.

Title: Re: [HELP] Unsquash TCZ into a core.gz
Post by: brunok on January 29, 2018, 10:36:40 AM
Hi Rich,

The dependencies were already loaded.
If i give an ls in usr/local/lib, find the dependency libraries there.

  [EDIT]: Add pic...
(https://image.ibb.co/gb5V9R/TC.png)


All dependencies i'm unsquashed into core.gz:
Code: [Select]
Xlibs.tcz
Xprogs.tcz
Xvesa.tcz
aterm.tcz
fltk-1.3.tcz
flwm_topside.tcz
freetype.tcz
glib2.tcz
glibc_gconv.tcz
imlib2.tcz
imlib2-bin.tcz
kmaps.tcz
libICE.tcz
libSM.tcz
libX11.tcz
libXau.tcz
libXdmcp.tcz
libXext.tcz
libXfont.tcz
libXi.tcz
libXmu.tcz
libXpm.tcz
libXrandr.tcz
libXrender.tcz
libXt.tcz
libao.tcz
libasound.tcz
libffi.tcz
libfontenc.tcz
libjpeg-turbo.tcz
libpng.tcz
libxcb.tcz
openssl.tcz
pcsc-lite.tcz
rdesktop.tcz
udev-lib.tcz
rpcbind.tcz
libtirpc.tcz
nfs-utils.tcz
cups.tcz
libcups.tcz
libavahi.tcz
dbus.tcz
expat2.tcz
gcc_libs.tcz
cups-filters.tcz
ijs.tcz
poppler.tcz
lcms2.tcz
libtiff.tcz
liblzma.tcz
cairo.tcz
fontconfig.tcz
pixman.tcz
libEGL.tcz
libGL.tcz
libXdamage.tcz
libXfixes.tcz
libXxf86vm.tcz
libdrm.tcz
libpciaccess.tcz
libxshmfence.tcz
qpdf.tcz
pcre.tcz
bzip2-lib.tcz
ghostscript.tcz
avahi.tcz
libdaemon.tcz
nss-mdns.tcz
Xorg-fonts.tcz


I adjusted the changes that contained in the tce.installed directories and some instructions, added in bootlocal.sh:
Code: [Select]
fc-cache -sfv 1>/dev/null
read USER < /etc/sysconfig/tcuser
dbus-uuidgen --ensure=/var/lib/dbus/machine-id

    [EDIT]: Added code tags.  Rich
Title: Re: [HELP] SOLVED - Unsquash TCZ into a core.gz
Post by: brunok on January 30, 2018, 02:15:16 PM
SOLVED!  ;D


I needed to create a manually symlink of libtirpc.so.1 in the directory /usr/lib too.  :(

Code: [Select]
ln -s /usr/lib/libtirpc.so.1 ../local/lib/libtirpc.so.1.0.10

Only in this way, started NFS without errors.

Another tip for remastering CORE.gz is to use the TC itself.
Before i was doing through a CentOS and noticed divergence in users / groups permissions.


Now, i have a 37 MB custom TC image with GUI, rdesktop and CUPS running through PXE.
And load FAST!
  8) 8) 8)