Re: [debian-knoppix] Would it be possible ?
>From stan on Saturday, 2003-02-22 at 22:55:57 -0500:
> On Sun, Feb 23, 2003 at 03:03:32AM +0100, Klaus Knopper wrote:
> > On Sat, Feb 22, 2003 at 08:25:21PM -0500, stan wrote:
> > > Would it be possible to have the default session language be English for
> > > the English language version of Knoppix?
> >
> > The default session language is in english for the english version.
> > Could you be more specific with your question, please?
> >
>
> When I install using knx-hdinstall. 2 users are created root (with an
> English session), and knoppix (with a German session). Then if I add, say a
> "stan" account, it alos defaults to German. This is in the KDE login
> sessions.
>
> Maybe I'm doing something wrong?
What he is talking about is changing /etc/skel/.kde so it defaults to
English. An example is given in the appended patch to 45xsession,
that I included in the latest version of Nordic/Baltic Knoppix.
http://files.akl.lt/veidrodis/baltix-knoppix
Stan, the quick solution to your problem is to download
http://files.akl.lt/veidrodis/baltix-knoppix/NordisKnoppix-2003-02-17.iso
The only real difference between this CD and Knoppix-2003-01-20
is that the kde-i18n-* files have been replaced to support
Nordic and Baltic languages. US English is the default.
Conrad
--- 45xsession.orig 2003-01-16 20:20:53.000000000 +0100
+++ 45xsession.new 2003-02-13 01:48:39.000000000 +0100
@@ -97,9 +97,29 @@
fi
}
+global_language_setup(){
+# Setup language/keyboard first so your choices
+# can go straight to disk during knx-hdinstall
+rm -f /etc/skel/.kde/share/config/kdeglobals.tmp
+sed -e 's/^Charset=.*$/Charset='"$CHARSET"'/' \
+ -e 's/^Country=.*$/Country='"$COUNTRY"'/' \
+ -e 's/^Language=.*$/Language='"$LANGUAGE"'/' \
+ /etc/skel/.kde/share/config/kdeglobals > /etc/skel/.kde/share/config/kdeglobals.tmp
+\mv -f /etc/skel/.kde/share/config/kdeglobals.tmp /etc/skel/.kde/share/config/kdeglobals
+rm -f /etc/skel/.kde/share/config/kxkbrc.tmp
+sed -e 's/^Layout=.*$/Layout='"$KDEKEYBOARD"'/' \
+ -e 's/^Additional=.*$/Additional='"$KDEKEYBOARDS"'/' \
+ -e 's/^Encoding=.*$/Encoding='"$CHARSET"'/' \
+ -e 's/iso8859/ISO8859/' \
+ /etc/skel/.kde/share/config/kxkbrc > /etc/skel/.kde/share/config/kxkbrc.tmp
+\mv -f /etc/skel/.kde/share/config/kxkbrc.tmp /etc/skel/.kde/share/config/kxkbrc
+# Now copy everything
+}
+
startkde(){
if [ -z "$DONTCHANGE" ]; then
# No persistent homedir, copy everything
+global_language_setup
\cp -ua /etc/skel/{.kde*,Desktop} $HOME/
else
# Only regenerate the config and Desktop files if missing
@@ -165,6 +185,8 @@
rm -f $HOME/.kde/share/config/kxkbrc.tmp
sed -e 's/^Layout=.*$/Layout='"$KDEKEYBOARD"'/' \
-e 's/^Additional=.*$/Additional='"$KDEKEYBOARDS"'/' \
+ -e 's/^Encoding=.*$/Encoding='"$CHARSET"'/' \
+ -e 's/iso8859/ISO8859/' \
$HOME/.kde/share/config/kxkbrc > $HOME/.kde/share/config/kxkbrc.tmp
\mv -f $HOME/.kde/share/config/kxkbrc.tmp $HOME/.kde/share/config/kxkbrc
touch -r /etc/skel/.kde/share/config/kxkbrc $HOME/.kde/share/config/kxkbrc
Reply to: