Re: X on Compact Flash

2006-04-28 Thread joerch
On Fri, Apr 28, 2006 at 11:51:44PM +1000, Steve wrote:
> >You can't easily buy 16M CF devices anymore.  512M will probably do 
> >the job.
> >If starting a new project, start with 3.9, as things got a lot bigger due
> >to the addition of debugging symbols in libraries.  Might have to 
> >leave out
> >the compXX file set, not much desire to compile from source on flash 
> >anyway.
> >Nick.

I never tried release (8), maybe i will install my soekris box again
and do some testing. I have an installation on a laptop with source,
i patched everything and builded everything on it. And i have the soekris
box, where i mount src and obj with nfs. Then i did only a make install,
worked without problems. Next time i will try everything without 
installing compXX.tgz on the cf card, with mounting the dir with the 
stuff i need for compiling ... make ...

If someone thinks that is a good idea or that it is total waste of
time, please let me know. I am a little paranoid about this things,
i always think i missed some special or really important points.

> No didnt miss it. Just wanted to keep the costs as low as possible. I 
> was guessing however that I was going to require at least a couple
> of gigs of flash.

Hmm 512 mb or 1 gb are not this expensive, in Germany, between 30 and
60 euro, sorry i do not know much this is in dollars. Maybe you can
get them much cheaper on ebay.

By the way i think getting an adapter from ide to cf is a very good
thing, if you want to do installs on cf cards more then once or twice
a year. ;) I tried it with usb cardreaders and it took about 2 minutes
to know that they are crap. I had some hours in trying, screaming and
trying it again to get it on my cf card, pc hardware is very ... lets
say ... special in some cases. With the adapter it is like installing
on a harddisk, very clean, fast and stable.

Just some thoughts.

-- 
gruesse 
joerg "joerch" buechner
--
"Kaum macht mans richtig, 
schon funktionierts!"
(busack thomas)
--



Re: X on Compact Flash

2006-04-28 Thread Steve

Nick Holland wrote:

Steve wrote:

Hi all,

I am currently using 3.8 release with a basic X install and rdesktop 
as a thin term

for a windows terminal server.

I would like to migrate this to compact flash or similar.

Flashdist and flashboot dont seem to be able to accomodate this.


as they were designed for tiny, non-X setups, I'd be surprised if they 
did.



Am I missing something or are there alternatives.


You seem to be missing the obvious: Install OpenBSD normally on a
sufficient sized flash media.  What is wrong with this solution?

You can't easily buy 16M CF devices anymore.  512M will probably do 
the job.

If starting a new project, start with 3.9, as things got a lot bigger due
to the addition of debugging symbols in libraries.  Might have to 
leave out
the compXX file set, not much desire to compile from source on flash 
anyway.


Nick.



Thanks all,

No didnt miss it. Just wanted to keep the costs as low as possible. I 
was guessing however that I was going to require at least a couple

of gigs of flash.

Thanks heaps for the feedback.

Steve



Re: X on Compact Flash

2006-04-28 Thread Mike Wolman

Hi,

I have found the following works well, i have not run X from CF but 
suspect it will work - provided the flash disk has enough space to fit X

on it.

--

For a 256Mb flash card

a - /   - 60m
d - /var- 11m
e - /usr- rest

---

Once installed reboot, install any required pkgs (rsync being one) and 
edit fstab:


Change from:
/dev/wd0e /usr ffs rw,nodev 1 2

To:
/dev/wd0e /usr ffs ro,nodev 1 2


---

Setting up /mfs/var

Unless apache is required remove /var/www


Create:
/mfs/var

Rsync accross log files:

/usr/local/bin/rsync -vorpug /var/ /mfs/var

---

Setting up /mfs/dev

mkdir /mfs/dev
cp /dev/MAKEDEV /mfs/dev
cd /mfs/dev
./MAKEDEV all


---

Create ram disk for /var (47mb), /tmp (15 mb) and /dev (500K) by adding 
mfs mounts to fstab:

(note mb sizes are approx):

swap /var mfs rw,-s=102400,nodev,noatime,noexec,nosuid 0 0
swap /dev mfs rw,-s=2048,-i=128,nosuid 0 0
swap /tmp mfs rw,-s=32768,nodev,noatime,noexec,nosuid 0 0

Note for dev the inode number is increased to handle the number of device nodes.

So complete fstab:

/dev/wd0a / ffs ro 1 1
/dev/wd0e /usr ffs ro,nodev 1 2
#/dev/wd0d /var ffs rw,nodev,nosuid 1 2
swap /var mfs rw,-s=102400,nodev,noatime,noexec,nosuid 0 0
swap /dev mfs rw,-s=2048,-i=128,nosuid 0 0
swap /tmp mfs rw,-s=32768,nodev,noatime,noexec,nosuid 0 0

---

Now need to setup automatic population of mfs mounts on reboot in /etc/rc

comment out line number 202:
mount -uw /

under rm -f /fastboot (about line 203 on 3.9) add:

# Copy dev files before anything else
cp -Rp /mfs/dev/* /dev

comment out line 261 - this is required as /var is mounted twice 
otherwise:

mount /var >/dev/null 2>&1

and add below it:

printf "copying files to mfs ..."
/usr/local/bin/rsync -orpug /mfs/var/ /var
echo " done."






On Fri, 28 Apr 2006, Steve wrote:


Hi all,

I am currently using 3.8 release with a basic X install and rdesktop as a 
thin term

for a windows terminal server.

I would like to migrate this to compact flash or similar.

Flashdist and flashboot dont seem to be able to accomodate this.

Am I missing something or are there alternatives.

Thanks,

Steve




Re: X on Compact Flash

2006-04-28 Thread Björn Andersson
> Hi all,
>
> I am currently using 3.8 release with a basic X install and rdesktop as
> a thin term
> for a windows terminal server.
>
> I would like to migrate this to compact flash or similar.
>
> Flashdist and flashboot dont seem to be able to accomodate this.
>
> Am I missing something or are there alternatives.
>
> Thanks,
>
> Steve
>
Make a standard installation on the flash, then look at how the flashdist
handles /var and /tmp and implement that in your installation.

Mount / ro.

And it will live 'forever'.

// Bjvrn



Re: X on Compact Flash

2006-04-28 Thread Nick Holland

Steve wrote:

Hi all,

I am currently using 3.8 release with a basic X install and rdesktop as 
a thin term

for a windows terminal server.

I would like to migrate this to compact flash or similar.

Flashdist and flashboot dont seem to be able to accomodate this.


as they were designed for tiny, non-X setups, I'd be surprised if they did.


Am I missing something or are there alternatives.


You seem to be missing the obvious: Install OpenBSD normally on a
sufficient sized flash media.  What is wrong with this solution?

You can't easily buy 16M CF devices anymore.  512M will probably do the job.
If starting a new project, start with 3.9, as things got a lot bigger due
to the addition of debugging symbols in libraries.  Might have to leave out
the compXX file set, not much desire to compile from source on flash anyway.

Nick.



Re: X on Compact Flash

2006-04-28 Thread Stuart Henderson
On 2006/04/28 19:02, Steve wrote:
> I am currently using 3.8 release with a basic X install and rdesktop as a 
> thin term
> for a windows terminal server.
> 
> I would like to migrate this to compact flash or similar.
> 
> Flashdist and flashboot dont seem to be able to accomodate this.
> 
> Am I missing something or are there alternatives.

How about just using a standard install? (just don't create
a swap partition, maybe mount noatime, but you don't need to
change much)... flash large enough to accommodate this is
pretty cheap now.



X on Compact Flash

2006-04-28 Thread Steve

Hi all,

I am currently using 3.8 release with a basic X install and rdesktop as 
a thin term

for a windows terminal server.

I would like to migrate this to compact flash or similar.

Flashdist and flashboot dont seem to be able to accomodate this.

Am I missing something or are there alternatives.

Thanks,

Steve