Link to home
Start Free TrialLog in
Avatar of jasonzx
jasonzxFlag for Canada

asked on

How to add minimal X functionality to bare-bones linux.

I've got a bare-bones bootable Linux CD that contains a handfull of console apps I use. Right now the CD is only 25MB.
I'd like to include GParted because it has the ability to resize NTFS partitions and it's easier to use than Parted. I tried to include X buy running jk_cp on startx, then xinit, then copied a bunch of files/folders over from /etc but after adding another 25MB of files/folders I still wasn't able to get X working.
What's the easiest/smallest way to include GParted? Am I correct to assume that I don't need a window manager since I'll only be launching 1 program?
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

You (almost) always need a window manager with X. Applications that directly drive the whole screen are the exception (no login, doesn't apply to you). twm (tiny window manager) is quite small though
Avatar of jasonzx

ASKER

Ok. that's fine. I don't mind using a window manager, just wasn't sure if there was a need for it.
since my original post I attempted to build xorg from scratch(using Ubuntu) but was unsuccessful. I couldn't get past:
checking for GL... configure: error: Package requirements (glproto >= 1.4.9 gl >= 7.1.0) were not met:
No package 'gl' found

Tried installing libdrm-dev x11proto-xf86dri-dev x11proto-gl-dev libgl1-mesa-dev libglu1-mesa-dev libgl1-mesa-swx11-dev but still no-go. Tried disabling almost every feature(especially anything with GL) and still no luck.
Yes, building Xorg from scratch is tricky. I tried to move forward from the revisions my distributor (Slackware) had chosen, and came unstuck. Every little component of xorg is a separate package, so you could pick and choose from it to your heart's content. They don't have x86_64 packages yet (that was what I was trying to build). Their package manager is a flat-file database, really simple - all you need is their little package utils and tar.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jasonzx

ASKER

gheist: you wouldn't happen to know where I can get the kdrive X server source code would you?
I've found this page that has some binaries but would like to build it statically if at all possible.
http://www.pps.jussieu.fr/~jch/software/kdrive.html
KDrive is included as build target in Xorg.
Ubuntu LiveCD contains gparted at least as much as i ever needed it.
Avatar of jasonzx

ASKER

Had some issues building Xorg but I managed to pull the KDrive binaries out of another working linux distro.
Thanks.