Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

Stripped down Linux/XFree86

I have set up a 486 system running Linux and Xfree86.  I would like to know how to determine and remove unneeded files so that I can cram both into the minimum possible disk space - the objective being to ultimately put the system into Flash Disk.
The system's purpose is to connect via ethernet to a remote host, to run a single graphical application on that host.  Do not need Internet, Email or modem connectivity.
0
cc9804
Asked:
cc9804
  • 3
  • 2
  • 2
  • +3
1 Solution
 
mcdoncCommented:
Though I don't know the magic answer to this one (I would unfortunately not know which files to remove and which to keep under the X11 tree), one way to find out is this:

copy your entire system to another directory, eg.:
--start--
[make sure you have enough disk space on your root filesystem]
cd /
mkdir newsystem
cp -Rpd * newsystem ; (maybe some other cp options necessary here, try it out)
chroot /newsystem /bin/sh
--stop--

at this point you're presented with a bash prompt.  your root filesystem now points to /newsystem.  You can remove files at will without worrying about hosing the system.  Try removing everything possible under /usr/bin, /bin, /usr/sbin, /lib, /usr/lib, etc.  If you get to a point where you can't use the system anymore (because of a missing library or something), just press ctrl-D to exit the chroot and you'll be back to the point where your root filesystem is your real root filesystem and you can copy the missing files back and re-chroot. This works pretty well to quickly determine which directories you need (I did this on a smaller scale while trying to fit a bunch of stuff on a root floppy disk).

Good luck!


0
 
swwelshCommented:
If you have X running on the remote system, you can run xdm on the remote host and not have much more than the x server on the local machine. I once did this trying to set up an X terminal on an 8 meg 386. I found that you need to leave the directory structure of X intact, but really there are few files that are absolutely necessary on the local machine. Is this the kind of setup you had in mind? What is the application you need to run?
0
 
MAVERICKCommented:
I'd also like to know the answer to that one... for a embeded PC application....For mine I need a TCP/IP network (simple Peer to peer..similar to Packet radio...not Internet) posiblly a simple GUI ... to hopefully fit on a PCMCIA flash card...

NB if it looks like I can get some good answers .. I'll resubmit as a question...


0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
ahoffmannCommented:
AFAIK Debian Linux supports something like "minimized linux", I think it's called
loop-root installation. Check at http://www.linuxhq.com 
0
 
mcdoncCommented:
Check out also www.linuxrouter.org
0
 
cc9804Author Commented:
Thanks mcdonc.

This is a huge help. Now to figure out how to pare down the Xfree86 !
0
 
mcdoncCommented:
No problem.  You want to get rid of this thread or what?
0
 
MAVERICKCommented:
cc9804.....

I posted a later ... similar question.... Can you ICQ/ email me ...

ICQ#6631387 tomcat203@geocities.com

0
 
kathotiaCommented:
Why re-invent the wheel. the solution to your problems is readly availabe as muLinux. This is a mini distribution of Linux running of a single floppy. X is available as a seperate addon in a seperate floppy. Thus the complete Linux+X will be on two floppies. All parameter for connectin to a network and running applications are user configurable and saved for future use.

the url for getting muLinux is http://www4.pisoft.it/~andreoli/mulinux.html

kindly give it a try.
0
 
cc9804Author Commented:
Thanks Kathotia:

This has saved me a lot of time and effort, even though it took me about a week to figure out how to download the files in "binary" !
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 3
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now