dCore Import Debian Packages to Mountable SCE extensions > dCore X86
remastering dCore ?
bernhard:
my current problem is: I have a bootable usb stick (with legacy grub, its menu.lst, and memdisk) where I can put yet another ISO, but I have to modify the boot command line with iso=... and kmap=... to get my german keyboard usable with the usb stick. The kmap=... requires kmaps.tcz to be installed, so I would like to have some "embedded" extension similar to what CorePlus.iso uses (I think it uses cde as default for the extension directory).
Just aside: iso=... was added due to one of my first discussions about two years ago ... see http://forum.tinycorelinux.net/index.php/topic,12724.0.html
--
Bernhard
Jason W:
I have looked into it, CDE is already supported and I just need to copy into dCore the /usr/bin/fromISOfile script. That and put up some iso's.
The name of the source and Debian/Ubuntu package for kmaps is console-data. And the directory to create on the iso and place an imported console-data.sce is /cde/sce/. I will start working this in.
bernhard:
--- Quote from: Jason W on September 03, 2014, 10:17:39 AM ---...
I will start working this in.
--- End quote ---
phantastic, very welcome ...
bernhard:
--- Quote from: Jason W on September 03, 2014, 10:17:39 AM ---The name of the source and Debian/Ubuntu package for kmaps is console-data. And the directory to create on the iso and place an imported console-data.sce is /cde/sce/. I will start working this in.
--- End quote ---
hmm, as time goes by ... yes I needed quite some time to try it out ...
In the meantime I have a bare dCore running and succeeded in importing console-data and loadsce'ing it. But as far as I can see console-data installs only gz-compressed ascii kmap files but not the binary versions required by loadkmap.
So, a little bit of googling later I fetched yet another package: kbd which requires other packages also and installs the required command loadkeys.
The required steps for getting a keyboard-layout different from english (with german and no dead keys as an example are):
importsce console-data
loadsce console-data
importsce kbd
loadsce kbd
gunzip -c /usr/share/keymaps/i386/qwertz/de-latin1-nodeadkeys.kmap.gz > de-latin1-ndk.kmap
gunzip -c /usr/share/keymaps/i386/qwertz/de-latin1.kmap.gz > de-latin1.kmap
loadkeys -b de-latin1-ndk.kmap > de.kmap.bin
sudo loadkmap < de.kmap.bin
importsce kbd ask you to choose between kbd and kbdd. I have chosen kbd and apparently found the correct package. de-latin1-ndk.kmap includes de-latin1.kmap, but loadkeys tells you that it is missing something.
The result is as good as CorePlus remastered for german Keyboard (see Wiki http://wiki.tinycorelinux.net/wiki:remastering_kmap_iso).
Now I could de.kmap.bin to /usr/share/kmap/de.kmap but that will not be persistent and most probably overwritten on the next reboot.
Now, I don't have any clue what whould be the correct boot code to have that layout permanently. As far as I understand it, boot code kmap=layout tells the kernel to use /usr/share/kmaps/layout.kmap as binary dump of the kernel keymap.
I have put the binary keymap to a directory in the root of my USB stick, so I can do a loadkmap < de.kmap after reboot, but I don't like it too much ...
But how do I make that permanent?
What should I do now?
--
Bernhard
Jason W:
It looks to me like placing the names of those SCE extensions in sceboot.lst, backing up the resulting files from the gunzip commands, and then placing the loadkeys and loadkmap commands in /opt/bootlocal.sh should do it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version