WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Removing the GUI  (Read 7138 times)

Offline ScorpKing

  • Newbie
  • *
  • Posts: 4
Removing the GUI
« 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Removing the GUI
« Reply #1 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.
The only barriers that can stop you are the ones you create yourself.

Offline ScorpKing

  • Newbie
  • *
  • Posts: 4
Re: Removing the GUI
« Reply #2 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.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: Removing the GUI
« Reply #3 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.)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Removing the GUI
« Reply #4 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.
The only barriers that can stop you are the ones you create yourself.

Offline libertyernie

  • Newbie
  • *
  • Posts: 11
Re: Removing the GUI
« Reply #5 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.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: Removing the GUI
« Reply #6 on: April 08, 2009, 02:05:20 PM »
the mkisofs instruction on the wiki will create a bootable iso.

thanks, i'll try that.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Removing the GUI
« Reply #7 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

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: Removing the GUI
« Reply #8 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

Offline PingPing

  • Jr. Member
  • **
  • Posts: 99
Re: Removing the GUI
« Reply #9 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
« Last Edit: May 03, 2009, 03:08:55 AM by Shagbag »

Offline buggy

  • Newbie
  • *
  • Posts: 24
Re: Removing the GUI
« Reply #10 on: May 10, 2009, 06:50:04 PM »
Do you have the list available? the pastebin seems to have been inactivated.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Removing the GUI
« Reply #11 on: May 10, 2009, 10:32:52 PM »
I will look and see if I still have it tomorrow.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: Removing the GUI
« Reply #12 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.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Removing the GUI
« Reply #13 on: May 11, 2009, 01:58:22 PM »
What about putting it in the wiki under the remastering section?

Offline scorpz

  • Newbie
  • *
  • Posts: 2
Re: Removing the GUI
« Reply #14 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?