[pkg-fso-maint] openmoko install.sh feedback

Timo Juhani Lindfors timo.lindfors at iki.fi
Wed Aug 20 14:40:39 UTC 2008


Hi,

Joachim Breitner <nomeata at debian.org> writes:
> Makes sense. What would be a good wget command line for that? The
> timeout should be not too high...

How about the following test:

(network broken with iptables rule that blocks all packets)

debian-gta02:~# time wget -O /dev/null --timeout=10 http://www.debian.org/; echo "ret = $?"
--2008-08-20 14:07:10--  http://www.debian.org/404
Resolving www.debian.org... failed: Connection timed out.
wget: unable to resolve host address `www.debian.org'

real    0m10.066s
user    0m0.015s
sys     0m0.050s
ret = 1

(working network)

debian-gta02:~# time wget -O /dev/null --timeout=10 http://www.debian.org/; echo "ret = $?"
--2008-08-20 14:08:09--  http://www.debian.org/
Resolving www.debian.org... 194.109.137.218
Connecting to www.debian.org|194.109.137.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14177 (14K) [text/html]
Saving to: `/dev/null'

100%[===============================================================================================================================>] 14,177      --.-K/s   in 0.07s   

2008-08-20 14:08:09 (205 KB/s) - `/dev/null' saved [14177/14177]


real    0m0.253s
user    0m0.020s
sys     0m0.045s
ret = 0

>> 2) After installation I saw ssh-agent running, maybe this could be
>>    disabled by default to save memory by removing "use-ssh-agent"
>>    from /etc/X11/Xsession.options?
>
> Good point, patch welcome.

--- install.sh.orig     2008-08-20 17:15:48.000000000 +0300
+++ install.sh  2008-08-20 17:17:15.000000000 +0300
@@ -531,6 +531,9 @@
        cat >$INST_DIR$WPA_SUPPLICANT_CONF <$WPA_SUPPLICANT_CONF
 fi

+echo " * Disabling startup of ssh-agent"
+sed -i 's/^use-ssh-agent/#disabled by install.sh# use-ssh-agent/' $INST_DIR/etc/X11/Xsession.options
+
 echo "I: System configured"
 ;;


is my first guess. I verified that sed of busybox supports -i but I
did not test this on non-debian systems yet.

> We need openssh-client only for scp, but unfortunately dropbear does not
> seem to provide an scp binary.

Very unfortunate. Do I read the manual page correctly in that it
doesn't support remote command execution at all so that I can't do

ssh foo 'cat > bar' < bar

either? Also, openssh-client support compression which is very nice
with GPRS (ppp compression obviously does not help with encrypted
traffic).

> I copied the /etc/fstab from FSO here, but you are right, a proper
> Debian system should not have this line. I commited the change to git.

Thanks.

>> 4) With debian unstable "apt-get update -o Acquire::PDiffs=false" is
>
> I think that should rather go to the wiki, as it diverges a bit too far
> from a default Debian system, and often for mobile users the bandwidth
> used is more critical. But thanks for the hint.

Added to wiki.

>> 5) The installer uses the default value of ext2 reserved blocks
>>    parameter. This means that when people use "df -h" to estimate
>>    available disk space they will think they have much less space than
>>    they really do. How about setting "tune2fs -m 0 /dev/mmcblk0p2"?
>
> Why zero? The reserved blocks are useful, at least once we have other
> users than root on the device. But we can probably discuss a better
> value.

Ah yes, when we have non-root users this of course becomes useful.

> PS: Timo, are you subscribed? In that case I’ll spare you the CC.

Yes I'm subscribed. Too late to remove the CC though :-)

best regards,
Timo Lindfors



More information about the pkg-fso-maint mailing list