Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: xtxb on September 07, 2017, 08:23:27 PM
-
Hello:
Just start touching tinycore,at present, I am working on a project that needs to run tinycore with the PXE service for some hosts, and when tinycore is booted, the hardware information of the system is sent to a separate server through the ‘curl' command. Therefore, I need to automatically load : curl.tcz , dmidecode.tcz and expect.tcz... after tinycore is booted.
To do that,I refer to these two articles: http://wiki.tinycorelinux.net/wiki:remastering (http://wiki.tinycorelinux.net/wiki:remastering) and http://forum.tinycorelinux.net/index.php/topic,20888.msg130500.html#msg130500 (http://forum.tinycorelinux.net/index.php/topic,20888.msg130500.html#msg130500),
I did it:
1.copy curl.tcz and and dmidecode.tcz expect.tcz ... into /opt/
2.vi bootlocal.sh :
cd /opt
tce-load -i openssl.tcz openssh.tcz tcl.tcz curl.tcz dmidecode.tcz expect.tcz
3.Packing tinycore.gz
4.pxe load
then, consle display:
Don't run this as root.
/opt/bootlocal.sh: line 6: expect : not found
why?,please help me,thx
-
http://wiki.tinycorelinux.net/wiki:netbooting#putting_it_all_together_another_way
Inserting extensions is best done via /tmp/builtin.
-
Hi curaga, thx for you guide! I have a try.