Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: ScorpKing on April 08, 2009, 12:56:18 PM

Title: Removing the GUI
Post by: ScorpKing on April 08, 2009, 12:56:18 PM
Hi everyone. I want to remove all the graphics from the .iso. I found the docs for editing it but what do I need to remove? Also, how do I add an extension?
Title: Re: Removing the GUI
Post by: curaga on April 08, 2009, 01:17:26 PM
You won't gain more than 2-3mb by removing the gui, but if you still wish to do so, the biggest parts are Xvesa, jwm, X libs, and libfltk. Then there are the fltk guis, but they are only a couple of kb each.

How to add an extension to the iso:
just create a new directory "tce" right beside the directory "boot", so it's at the top level of the to-be-iso, and put extensions into that tce directory.
Title: Re: Removing the GUI
Post by: ScorpKing on April 08, 2009, 01:22:55 PM
thanks curaga. size does not matter. i'm going to add 3.5GB to it when the GUI is removed.
Title: Re: Removing the GUI
Post by: tobiaus on April 08, 2009, 01:27:14 PM
How to add an extension to the iso:
just create a new directory "tce" right beside the directory "boot", so it's at the top level of the to-be-iso, and put extensions into that tce directory.

i used to edit bootable iso's with isomaster (not available for tc, but as i'm about to mention not as useful tc users either) but sadly, tc's iso is not compatible with isomaster. it won't let you save the new .iso file.

there are some very sophisticated, powerful (and complicated) remaster scripts for remastering tc, and there are some "easy" (well, close enough) wiki instructions for taking tc apart, and i'm comfortable using mkisofs (included with cdrtools.tce)

...but what i'd really like to know is just where to get a boot image for tc (not the kernel bzImage) so i could just mkisofs + whatever options i normally use + the option for bootimage: this-is-the-part-i'm-asking-about.

i could look up the letter for the option in mkisofs, that's no problem. it's where to get the boot image (isolinux i imagine) that i don't know. then remastering the iso (nevermind editing tinycore.gz...) would be relatively easy- only since isomaster (the friendliest way possible to add files to a bootable iso) is not an option, and multisession is not always the ideal way to add files to a cd (let alone a cd image.)
Title: Re: Removing the GUI
Post by: curaga on April 08, 2009, 02:02:34 PM
A boot image? Most linux distros don't use that old floppy emulation mode. If you copy all the files from a TC iso, the isolinux files will be there, and the mkisofs instruction on the wiki will create a bootable iso.
Title: Re: Removing the GUI
Post by: libertyernie on April 08, 2009, 02:03:42 PM
I just do my remater manually:
Code: [Select]
mkdir tmp;cd tmp
gzip -cd ../tinycore.gz | sudo cpio -id
-edit files-
find . | cpio --create --format='newc' | gzip -c ../newinitrd.gz
cd ..
Then newinitd.gz replaces tinycore.gz in the new ISO.
Title: Re: Removing the GUI
Post by: tobiaus on April 08, 2009, 02:05:20 PM
the mkisofs instruction on the wiki will create a bootable iso.

thanks, i'll try that.
Title: Re: Removing the GUI
Post by: Jason W on April 08, 2009, 02:57:02 PM
This list is what I removed to bring down tinycore.gz from 8.3MB to 3.9MB.  But only do this if you know what you are doing and what has to be put back in the base for certain extensions to function.  In other words, if you strip your tinycore.gz don't ask why certain extensions or base items no longer function.  More could be pruned or left in but this was my starting point, just that a starting point and not a guaranteed working system.

http://pastebin.com/m1a7bda9
Title: Re: Removing the GUI
Post by: mikshaw on April 09, 2009, 01:31:26 AM
If size doesn't matter, might I just suggest that you disable the starting of the X system.  I think you could accomplish this simply by using the "text" boot option, or by editing /home/tc/.profile
Title: Re: Removing the GUI
Post by: PingPing on May 03, 2009, 03:07:15 AM
I just got referred to this thread as it was exactly what I was looking for.
I copied Jason W's pastebin list into a file I called 'gui_files' and then ran this script I created:

for FILE in `cat gui_files`
do
        echo Removing $FILE
        rm -f $FILE
done

NB.  the script and 'gui_files' need to be run in the extract directory and please, please make sure the list in 'gui_files' has no leading forward slashes, eg. make sure you use 'etc/font/...' and NOT '/etc/font/...'.
The script comes with absolutely no warranty so make sure you understand what it will do before you run it.

The TCL community in action.  ;D
Title: Re: Removing the GUI
Post by: buggy on May 10, 2009, 06:50:04 PM
Do you have the list available? the pastebin seems to have been inactivated.
Title: Re: Removing the GUI
Post by: Jason W on May 10, 2009, 10:32:52 PM
I will look and see if I still have it tomorrow.
Title: Re: Removing the GUI
Post by: tobiaus on May 10, 2009, 10:58:09 PM
i know that for pasting things like massive dmesg lists, pastebin might be better and more polite, but for something that's likely to be used in the future, like this list, perhaps it would be better to actually post it on the forum? if not as text then perhaps as a tar.gz.

not as a tce. as a tce people will try it, and wonder what they just did.
Title: Re: Removing the GUI
Post by: danielibarnes on May 11, 2009, 01:58:22 PM
What about putting it in the wiki under the remastering section?
Title: Re: Removing the GUI
Post by: scorpz on May 26, 2009, 01:02:27 PM
Xvesa, jwm, X libs, and libfltk

Hello,

i would like to remove whole GUI to strip away size below 10mb. Now i have checked remaster wiki section and forum and all i found was post above to remove Xvesa, xlibs and fltk files. I did this and repacked back. Now when i boot it i get few errors during boot. Those are;

Code: [Select]
SQUASHFS error: ... => couldnt write it down as it is during boot

xauth: error while loading shared libraries: lixXau.so.6: cannot open shared object file: No such file or directory

/home/tc/.xsession: line 1: Xvesa: not found

Can somebody write how to remove those errors/warnings?
Title: Re: Removing the GUI
Post by: roberts on May 26, 2009, 01:22:05 PM
Maybe you missed the announcment. Just boot tinycore 2.0rc3 with the microcore boot option.
Result no X no GUI only CLI.
Title: Re: Removing the GUI
Post by: scorpz on May 26, 2009, 03:13:26 PM
Well i dont want to boot into console and still have files from GUI on the filesystem, because i am limited to the disk space i removed them and thats why i ask how to remove those warnings/errors.
Title: Re: Removing the GUI
Post by: curaga on May 26, 2009, 03:14:58 PM
They are more easily removable in rc3; but with your remaster, try adding the "text" bootcode so TC doesn't try to start the removed X.