Re: More questions about debian on Zaurus
On Mon, Jul 28, 2003 at 12:05:14PM +0100, Simon Pickering wrote:
> > > # /usr/local/bin/zvncserver: line 24: cannot redirect
> > standard input
> > > from /dev/null: Permission denied
What's happening is that OZ mounts the SD disk with the 'nodev'
mount option, so none of the device files in the chroot will work :-(
You'll need to edit the /etc/fstab used by OZ, or alternatively run
the following command to change the setting at run time:
mount /mnt/card -o remount,dev,suid,exec
> Moving onwards slightly, I assume it wouldn't be too difficult to edit
> the files in rc2.d to stop Opie from starting - giving a 5,4,3,2,1 sort
> of option like the Sharp ROM has? Is this worth doing, would it help?,
> as it still doesn't seem to be working.
Is there a Debian standard way of deciding what GUI environment gets
launched at boot?
Otherwise a simple boot menu like you describe (with a timeout) would be
nice.
The following script fragment is what I use in the native Debian boot
loader shell script, you could adapt it for a GUI menu easily.
The read_timeout shell function is rather hackish, but I couldn't think
of a cleaner way of doing it without depending on any external programs.
-Klaus
#!/bin/sh
read_timeout () {
sh -c '( sleep "'$1'" && kill $$ ) >/dev/null & read i; kill $!; echo "$
i"' 2>/dev/null
}
echo
echo "*** Pocket Workstation boot loader ***"
echo
echo -n "Boot (d)ebian, (s)hell or (q)topia environment? [d] "
r=`read_timeout 10`
if [ ."$r" = ."q" ]; then
# run qtopia via native init
exec /sbin/init
fi
if [ ."$r" = ."s" ]; then
# run a shell only
exec /bin/bash
exec /bin/sh
fi
# ok, let's continue with the Debian system
...
Reply to: