Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Stripped down Linux/XFree86

Posted on 1998-12-24
10
Medium Priority
?
251 Views
Last Modified: 2010-03-18
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
Comment
Question by:cc9804
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 4

Expert Comment

by:mcdonc
ID: 1587988
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
 
LVL 4

Expert Comment

by:swwelsh
ID: 1587989
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
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1587990
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1587991
AFAIK Debian Linux supports something like "minimized linux", I think it's called
loop-root installation. Check at http://www.linuxhq.com 
0
 
LVL 4

Expert Comment

by:mcdonc
ID: 1587992
Check out also www.linuxrouter.org
0
 

Author Comment

by:cc9804
ID: 1587993
Thanks mcdonc.

This is a huge help. Now to figure out how to pare down the Xfree86 !
0
 
LVL 4

Expert Comment

by:mcdonc
ID: 1587994
No problem.  You want to get rid of this thread or what?
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1587995
cc9804.....

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

ICQ#6631387 tomcat203@geocities.com

0
 
LVL 1

Accepted Solution

by:
kathotia earned 400 total points
ID: 1587996
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
 

Author Comment

by:cc9804
ID: 1587997
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question