Tiny Core Base > TCB Talk
How to remove functionality from TinyCore
ajax:
Can anyone shed some light on how to remove features from TinyCore? I'm running TinyCore 3.2. If I press the "tab" key twice at the terminal command prompt, I get a list of over 200 commands that are available to me. I want to remove about 90% of these commands: things like "which", "telnet", "uniq", etc. I realize these are all included in the BusyBox collection of utilities, but I do not want them in the OS at all. Also, MiniCore is not option because I do require X Windows to be running. So, I guess what I am asking is "how do I remove every executable that is not in the dependency chain for X Windows". It's not that I'm concerned about the size of the tinycore.gz file. I just want the least amount of functionality in a functioning X windows system.
danielibarnes:
While there may be good reasons to remove unused functionality, the difficulty is in identifying which files are used by the system and which are not. That may require a lot of analysis and testing. Telnet is not used by Tiny Core scripts, but which and uniq definitely are.
Are you interested in retaining TC-specific functionality or is your objective an unmodifiable X-windows environment?
gerald_clark:
Since busybox is a single executable, removing the symlink for a specific function does not change the size or functionality of the system.
The function is still in busybox and can still be invoked as an argument. Ex: 'busybox telnet'.
danielibarnes:
Yes, recompiling busybox is the only way to permanently remove the ability to invoke functionality.
tc@box:~$ busybox|tail +15|sed 's/,/\n/g'|sort -u|wc -l
232
There are 231 applets included in the current busybox, so that will take some effort to analyze.
tinypoodle:
You might start to configure busybox with 'make oldconfig', using the busybox config file from the repo and then disable features with 'make menuconfig', or start with 'make allnoconfig' and respectively enable features.
BTW, AFAIK the busybox in MC is the same as in TC.
Navigation
[0] Message Index
[#] Next page
Go to full version