[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-knoppix] UK localisation of Knoppix and misc changes



Hi,

I was hired a few weeks ago to produce a modified Knoppix disk as a
promotional tool for a UK company.  Apart from adding the company's name,
"netproject", in a few locations, I also fixed up the lang=uk setting
to work better; my patch is attached.

I made my changes to Knoppix 3.1-2002-12-10.  I'm afraid I've been very
busy with other matters over the holidays, so I haven't been able to
send my changes back to you as promptly as I'd have liked.

The main issue is the "uk" code itself.  "uk" is not a country code;
the UK's country code is "gb".  "uk" does, however, appear to be the
language code for Ukranian, which seems to cause some problems, such as
Gnome starting up in (what I assume is) Ukranian if I boot Knoppix with
"lang=uk desktop=gnome".  (The country code for the Ukraine is "ua" not
"uk", BTW.)

Most of the other changes I made were cosmetic: I removed the
German-language "Talks" directory, removed the reference to it in
index.html, changed the default "KNOPPIX INFO" link to point to
KNOPPIX/index_en.html instead of KNOPPIX/index.html, and removed
KNOPPIX/boot-{en,de}.img

I removed the first line (which reads '@echo Lade "index.html"...') from
autoexec.bat, so that (at least on Windows ME, which is the only
version I've been able to test it against) the DOS window which pops up
disappears without manual intervention.  It looks to me as if Windows
notices when a DOS program terminates without output, and closes its
window automatically in that case.

Within KNOPPIX/boot.img, I made these changes:

  s/lang=us/lang=gb/  in syslinux.cfg, because the disk with my
  modifications is intended for the UK market.

  Modified boot.msg and f2 - new versions of these are attached.  I think
  I have been able to clarify f2 a bit; I removed the lines referring
  to the German keymap at the bottom because they appear not to apply
  any more, and replaced them with example boot lines.  I've also tried
  to be more explanatory in the few lines above the list of options,
  so that naive users will be more likely to understand what to do.
  In boot.msg, I added references to netproject's web site which you will
  not want to keep, but also added a line indicating in which situations
  a user will most likely want to read the F2 help screen.

  I also altered miniroot.gz, but only to add the following line to
  linuxrc:

  echo "This UK release built by ${CYAN}netproject${NORMAL}  ${RED}http://www.netproject.com/${NORMAL}";

Within the KNOPPIX/KNOPPIX cloop/iso9660 filesystem:

  I modified the language-selection part of /etc/init.d/knoppix-autoconfig to
  handle UK keyboard layout better; the patch is attached.

  I replaced the German bookmarks in the default web browser bookmarks
  files with English ones; patch attached. (You will want to delete the
  "netproject" bookmarks, BTW.)

  I removed the following packages to free up some space: task-c-dev
  ingerman manpages-de tipptrainer-data-de user-de task-devel-common
  glibc-doc

  I removed /var/cache/apt/{src,}pkgcache.bin to free up space - I notice
  the original knoppix I started from contained these.

  (For reasons I don't understand, when I built a new iso9660 filesystem
  from the files contained in KNOPPIX/KNOPPIX and compressed it with
  create_compressed_fs from cloop-0.66, the result was larger than the
  original.  Perhaps I'm using an older version of cloop, or perhaps I
  missed some other factor, like file ordering or hardlinks.)

I hope (at least some of) this is of help.

Cheers,

-- 
Charles Briscoe-Smith             Hacking Free Software for fun and profit
Mead error: Connection reset by beer.  -- seen on IRC
================================================================================
diff -ur /cdrom1/etc/init.d/knoppix-autoconfig KNOPPIX-live-fs/etc/init.d/knoppix-autoconfig
--- /cdrom1/etc/init.d/knoppix-autoconfig	Fri Dec  6 16:02:05 2002
+++ KNOPPIX-live-fs/etc/init.d/knoppix-autoconfig	Thu Dec 19 01:54:12 2002
@@ -82,7 +82,7 @@
 # Allow language specification via commandline. The default language
 # will be overridden via "lang=de" boot commandline
 LANGUAGE="$(getbootparam lang 2>/dev/null)"
-[ -n "$LANGUAGE" ] || LANGUAGE="de"
+[ -n "$LANGUAGE" ] || LANGUAGE="gb"
 
 # The default language/keyboard to use. This CANNOT be autoprobed.
 # Most of these variables will be used to generate the KDE defaults
@@ -264,16 +264,18 @@
 KDEKEYBOARDS="us"
 XMODIFIERS="@im=xcin"
 ;;
-uk)
+gb|uk)
 # british version
-COUNTRY="uk"
+# (fixed by cpbs for netproject)
+LANGUAGE="gb"
+COUNTRY="gb"
 LANG="en_GB"
 KEYTABLE="uk"
 XKEYBOARD="uk"
-KDEKEYBOARD="uk"
+KDEKEYBOARD="gb"
 CHARSET="iso8859-1"
 # Additional KDE Keyboards
-KDEKEYBOARDS="us"
+KDEKEYBOARDS="us,fr,de"
 ;;
 *)
 # US version
@@ -285,7 +287,7 @@
 KDEKEYBOARD="us"
 CHARSET="iso8859-1"
 # Additional KDE Keyboards
-KDEKEYBOARDS="de,fr"
+KDEKEYBOARDS="gb,de,fr"
 ;;
 esac
 
================================================================================
================================================================================
diff -ur /cdrom1/etc/skel/.kde/share/apps/konqueror/bookmarks.xml KNOPPIX-live-fs/etc/skel/.kde/share/apps/konqueror/bookmarks.xml
--- /cdrom1/etc/skel/.kde/share/apps/konqueror/bookmarks.xml	Sun Jun 30 09:02:38 2002
+++ KNOPPIX-live-fs/etc/skel/.kde/share/apps/konqueror/bookmarks.xml	Wed Dec 18 20:15:37 2002
@@ -2,13 +2,16 @@
  <folder folded="no" toolbar="yes" >
   <title>Toolbar</title>
   <bookmark icon="cdimage" href="file:/cdrom/index.html" >
-   <title>CD-Inhaltsverzeichnis</title>
+   <title>CD table of contents</title>
+  </bookmark>
+  <bookmark icon="www" href="http://www.netproject.com/"; >
+   <title>netproject</title>
   </bookmark>
   <bookmark icon="favicons/www.knopper.net" href="http://www.knopper.net/knoppix/"; >
-   <title>KNOPPIX - Webseite</title>
+   <title>KNOPPIX - Website</title>
   </bookmark>
   <bookmark icon="favicons/www.linuxtag.org" href="http://www.linuxtag.org/"; >
-   <title>LinuxTag - Webseite</title>
+   <title>LinuxTag - Website</title>
   </bookmark>
  </folder>
 </xbel>
================================================================================
diff -ur /cdrom1/etc/skel/.links/bookmarks KNOPPIX-live-fs/etc/skel/.links/bookmarks
--- /cdrom1/etc/skel/.links/bookmarks	Sun Jun 30 09:04:27 2002
+++ KNOPPIX-live-fs/etc/skel/.links/bookmarks	Wed Dec 18 20:15:56 2002
@@ -1,3 +1,4 @@
-CD-Inhaltsverzeichnis	file:/cdrom/index.html
-KNOPPIX - Webseite	http://www.knopper.net/knoppix/
-LinuxTag - Webseite	http://www.linuxtag.org/
+CD table of contents	file:/cdrom/index.html
+netproject	http://www.netproject.com/
+KNOPPIX - Website	http://www.knopper.net/knoppix/
+LinuxTag - Website	http://www.linuxtag.org/
================================================================================
diff -ur /cdrom1/etc/skel/.mozilla/knoppix/ujixazk6.slt/bookmarks.html KNOPPIX-live-fs/etc/skel/.mozilla/knoppix/ujixazk6.slt/bookmarks.html
--- /cdrom1/etc/skel/.mozilla/knoppix/ujixazk6.slt/bookmarks.html	Sun Jun 30 09:05:04 2002
+++ KNOPPIX-live-fs/etc/skel/.mozilla/knoppix/ujixazk6.slt/bookmarks.html	Wed Dec 18 20:16:19 2002
@@ -9,9 +9,10 @@
 <DL><p>
     <DT><H3 ADD_DATE="961112773" LAST_MODIFIED="1021403267" PERSONAL_TOOLBAR_FOLDER="true" ID="NC:PersonalToolbarFolder">Personal Toolbar Folder</H3>
     <DL><p>
-        <DT><A HREF="file:/cdrom/index.html">CD-Inhaltsverzeichnis</A>
-        <DT><A HREF="http://www.knopper.net/knoppix/";>KNOPPIX - Webseite</A>
-        <DT><A HREF="http://www.linuxtag.org/";>LinuxTag - Webseite</A>
+        <DT><A HREF="file:/cdrom/index.html">CD table of contents</A>
+        <DT><A HREF="http://www.netproject.com/";>netproject</A>
+        <DT><A HREF="http://www.knopper.net/knoppix/";>KNOPPIX - Website</A>
+        <DT><A HREF="http://www.linuxtag.org/";>LinuxTag - Website</A>
     </DL><p>
     <HR>
     <DT><H3 ADD_DATE="961099767" ID="NC:BookmarksRoot#$f063a73e">Mozilla Project</H3>
================================================================================
diff -ur /cdrom1/etc/skel/.netscape/bookmarks.html KNOPPIX-live-fs/etc/skel/.netscape/bookmarks.html
--- /cdrom1/etc/skel/.netscape/bookmarks.html	Sun Jun 30 09:05:40 2002
+++ KNOPPIX-live-fs/etc/skel/.netscape/bookmarks.html	Wed Dec 18 20:16:36 2002
@@ -6,8 +6,9 @@
 <DL><p>
 <DT><H3 >Toolbar</H3>
 <DL><P>
-<DT><A HREF="file:/cdrom/index.html">CD-Inhaltsverzeichnis</A>
-<DT><A HREF="http://www.knopper.net/knoppix/";>KNOPPIX - Webseite</A>
-<DT><A HREF="http://www.linuxtag.org/";>LinuxTag - Webseite</A>
+<DT><A HREF="file:/cdrom/index.html">CD table of contents</A>
+<DT><A HREF="http://www.netproject.com/";>netproject</A>
+<DT><A HREF="http://www.knopper.net/knoppix/";>KNOPPIX - Website</A>
+<DT><A HREF="http://www.linuxtag.org/";>LinuxTag - Website</A>
 </DL><P>
 </DL><P>
================================================================================
17logo.16

1fKNOPPIX V3.117       http://www.knoppix.de/         RELEASE: 2002-12-10-BETA-NP-3
This UK release by 15netproject17                        http://www.netproject.com/
Laptop display?  Wheelmouse?  Trouble detecting hardware?  15Press F2 for help.1f
1712ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³ 1a>>> 1eCHEATCODES FOR KNOPPIX V3.1  (hit F1 to get back to the main screen) 1a<<<12 ³ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ1bTry 1e<Enter>1b first.  If that doesn't work, refer to the table of options below17
1bwhich can be entered at the boot: prompt (and which can be combined):17
70ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³knoppix lang=gb (us cs da de es fr nl it pl ru sk)                            ³³                                         Choose language and keyboard layout  ³³knoppix desktop=kde (gnome icewm fluxbox xfce wmaker twm)                     ³³                                         Window/session manager to run        ³³knoppix screen=1280x1024                 Use specified screen resolution for X³³knoppix xserver=XFree86 xmodule=fbdev    Use specified X-Server (and module)  ³³fb1280x1024 | fb1024x768 | fb800x600     Framebuffer-only mode (notebooks)    ³³knoppix wheelmouse                       Use IMPS/2-compatible wheelmouse     ³³knoppix xvrefresh=60                     Use 60 Hz vertical refresh for X     ³³knoppix 2                                Runlevel 2, Textmode only            ³³knoppix floppyconfig                     Run "knoppix.sh" from a floppy       ³³knoppix no{scsi|pcmcia|usb|agp|swap|apm|dma|apic} Disable HW-detection part.  ³³knoppix blind brltty=type,port,tbl       Use Braille-Terminal(type), no X     ³³expert                                   Interactive startup/setup            ³ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ1bExamples: For a typical PC with wheelmouse,            1fboot: 1eknoppix wheelmouse
1b          Laptop with problem display and US keyboard, 1fboot: 1efb1024x768 lang=us1f

Reply to: