WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [HELP] Unsquash TCZ into a core.gz  (Read 374 times)

Offline brunok

  • WikiUser
  • *
  • Posts: 25
[HELP] Unsquash TCZ into a core.gz
« on: January 25, 2018, 07: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?
« Last Edit: January 25, 2018, 07:31:40 AM by brunok »

Offline andyj

  • Hero Member
  • *****
  • Posts: 571
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #1 on: January 25, 2018, 07: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.

Offline brunok

  • WikiUser
  • *
  • Posts: 25
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #2 on: January 25, 2018, 08:09:12 AM »
Do you have an Xvesa example?


How to know which extension runs any script?

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5710
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #3 on: January 25, 2018, 08: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.

Offline brunok

  • WikiUser
  • *
  • Posts: 25
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #4 on: January 25, 2018, 09:38:47 AM »
I will see now.

Thanks!!

Offline brunok

  • WikiUser
  • *
  • Posts: 25
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #5 on: January 29, 2018, 05: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?

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5710
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #6 on: January 29, 2018, 06: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.


Offline brunok

  • WikiUser
  • *
  • Posts: 25
Re: [HELP] Unsquash TCZ into a core.gz
« Reply #7 on: January 29, 2018, 07: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...



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
« Last Edit: January 29, 2018, 08:10:55 AM by brunok »

Offline brunok

  • WikiUser
  • *
  • Posts: 25
Re: [HELP] SOLVED - Unsquash TCZ into a core.gz
« Reply #8 on: January 30, 2018, 11:15:16 AM »
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)
« Last Edit: January 30, 2018, 11:34:24 AM by brunok »