How to permanently add a keyboard language/layout in ZENworks for Desktops imaging (linux)
Novell Cool Solutions: Tip
By Fred Blaise
Digg This -
Posted: 16 Aug 2005
It is assumed that you are using a Linux machine to carry on these instructions (as root). The servers are NetWare 6.5, and the ZENworks version is 6.5 sp1. Paths are relative if no leading slash (I am not taking you for an idiot, I am just making sure ;))
The keymap we will be installing (Swiss French) in this example, is not present in the default installation. (fr_CH-latin1.kmap.gz). You need to get the keymap from a linux distribution, or from the web.
- Locate the lang.tgz on your NetWare server in PUBLIC/zenworks/imaging.
- Copy it to your local machine's home directory and uncompress it
- tar zxvf lang.tgz
- Move to the lang/usr/lib/kbd/keymaps/include
- Rename two files:
- mv linux-with-alt-and-altgr.inc.gz lx-with-alt-and-altgr.inc.gz
- mv linux-with-modshift-altgr.inc.gz lx-with-modshift-altgr.inc.gz
- Move the fr_CH-latin1.kmap.gz to the above folder
- Uncompress and edit the fr_CH-lating1.kmap.gz. Since you have renamed the above files, you need to make sure that your master keyboard keymap is using the new include filenames.
- gzip -d fr_CH-lating1.kmap.gz
- include "lx-with-alt-and-altgr"
- Recompress the file
- gzip fr_CH-lating1.kmap
- If you haven't done it yet, get the linux.2 file, and loop-mount it
- mv linux.2 linux.gz
- gzip -d linux.gz
- mkdir /mnt/zenimage && mount -o loop linux /mnt/zenimage
- cd /mnt/zenimage
- Copy the loadkeys of the lang.tgz bin/ directory, and the consolechars. The gunzip can be symlinked to the existing gzip binary
- cp ~/lang/bin/loadkeys bin/
- cp ~/lang/bin/consolechars bin/
- ln -s bin/gzip bin/gunzip
- Create a keymaps directory and copy all your include directories in there.
- mkdir usr/share/keymaps
- cp ~/lang/usr/lib/kbd/keymaps/include/* usr/share/keymaps
- Modify the lang.s file (should be empty) and type the first line below, and make sure to make it executable (second line)
- /bin/loadkeys /usr/share/keymaps/fr_CH-latin1.kmap.gz
- chmod +x bin/lang.s
- Modify the runme.s file. Open it and scroll to the bottom. Right before the RUNLEVEL selection, type:
- You're basically done. Get back to your home directory, so that you can unmount the loop device:
- umount /mnt/loop
- Recompress your kernel, and rename the file.
- gzip -9 linux
- mv linux.gz linux.2
Copy back the linux.2 file to your tftp directory, and test it out!
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com