Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #240107 > unrolled thread

Colemak layout at boot time

Started bypiorunz <piorunz@gmx.com>
First post2021-09-18 13:10 +0200
Last post2021-09-19 22:20 +0200
Articles 20 on this page of 30 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-18 13:10 +0200
    Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-18 21:10 +0200
      Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-18 23:00 +0200
        Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 06:50 +0200
          Re: Colemak layout at boot time "Gareth Evans" <donotspam@fastmail.fm> - 2021-09-19 07:20 +0200
            Re: Colemak layout at boot time "Gareth Evans" <donotspam@fastmail.fm> - 2021-09-19 12:50 +0200
              Re: Colemak layout at boot time "Gareth Evans" <donotspam@fastmail.fm> - 2021-09-19 14:10 +0200
                Re: Colemak layout at boot time "Gareth Evans" <donotspam@fastmail.fm> - 2021-09-19 14:30 +0200
                  Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 14:50 +0200
                    Re: Colemak layout at boot time "Gareth Evans" <donotspam@fastmail.fm> - 2021-09-19 15:10 +0200
                      Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 15:30 +0200
                        Re: Colemak layout at boot time Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-19 21:40 +0200
                          Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 22:40 +0200
                            Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-20 01:40 +0200
          Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 10:40 +0200
            Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 12:40 +0200
            Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 21:40 +0200
              Re: [SOLVED] Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 22:40 +0200
              [SOLVED] Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 22:40 +0200
                Re: [SOLVED] Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-20 01:40 +0200
                  Re: [SOLVED] Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-20 02:40 +0200
                    Re: [SOLVED] Re: Colemak layout at boot time Andrei POPESCU <andreimpopescu@gmail.com> - 2021-09-20 07:00 +0200
                      Re: [SOLVED] Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-20 16:20 +0200
                        Re: [SOLVED] Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-20 23:10 +0200
    Re: Colemak layout at boot time Curt <curty@free.fr> - 2021-09-19 14:40 +0200
      Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 14:50 +0200
        Re: Colemak layout at boot time Curt <curty@free.fr> - 2021-09-19 15:20 +0200
          Re: Colemak layout at boot time piorunz <piorunz@gmx.com> - 2021-09-19 21:00 +0200
            Re: Colemak layout at boot time David Wright <deblis@lionunicorn.co.uk> - 2021-09-19 22:10 +0200
            Re: Colemak layout at boot time Curt <curty@free.fr> - 2021-09-19 22:20 +0200

Page 1 of 2  [1] 2  Next page →


#240107 — Colemak layout at boot time

Frompiorunz <piorunz@gmx.com>
Date2021-09-18 13:10 +0200
SubjectColemak layout at boot time
Message-ID<CYGoh-10m-11@gated-at.bofh.it>
Hi all,

I use Colemak layout instead of Qwerty, because it's so much better and
efficient.
Today I repositioned keys on my laptop too, so I have two computers with
Colemak.
However, my laptop uses full disk encryption (Debian 11).
At boot time, and in GRUB, I don't have Colemak, but default layout.
How to change to Colemak? I read few very old tutorials, not one solves
this problem in 2021. Not sure how I should proceed.

I already selected Colemak in KDE settings, and via sudo
dpkg-reconfigure keyboard-configuration. But this does not affect boot
time password question and GRUB editor. Also virtual consoles still use
default Qwerty.

My /etc/default/keyboard file:
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT="colemak"
XKBOPTIONS=""

BACKSPACE="guess"


Any tips appreciated!


--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [next] | [standalone]


#240123

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-09-18 21:10 +0200
Message-ID<CYNSO-5HI-15@gated-at.bofh.it>
In reply to#240107
On Sat 18 Sep 2021 at 12:02:49 (+0100), piorunz wrote:

> I use Colemak layout instead of Qwerty, because it's so much better and
> efficient.
> Today I repositioned keys on my laptop too, so I have two computers with
> Colemak.
> However, my laptop uses full disk encryption (Debian 11).
> At boot time, and in GRUB, I don't have Colemak, but default layout.
> How to change to Colemak? I read few very old tutorials, not one solves
> this problem in 2021. Not sure how I should proceed.
> 
> I already selected Colemak in KDE settings, and via sudo
> dpkg-reconfigure keyboard-configuration. But this does not affect boot
> time password question and GRUB editor. Also virtual consoles still use
> default Qwerty.

A lot of hits from googling   grub colemak   including
https://forums.debian.net//viewtopic.php?f=16&t=76833
which uses dvorak as an example.

I don't recall the definition of "boot time password". Does this
denote something that Grub asks, or is it when dmcrypt is running
from the initrd? — Which is a reminder: is your keyboard definition
in /etc/default/keyboard getting incorporated into the initrd or not?

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#240125

Frompiorunz <piorunz@gmx.com>
Date2021-09-18 23:00 +0200
Message-ID<CYPBg-6v6-5@gated-at.bofh.it>
In reply to#240123
On 18/09/2021 20:00, David Wright wrote:

> A lot of hits from googling   grub colemak   including
> https://forums.debian.net//viewtopic.php?f=16&t=76833
> which uses dvorak as an example.

Thanks for your reply.
Yes I seen this page.

ckbcomp dvorak command outputs the layout details and everything.

However:
$ ckbcomp colemak
/usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory

>
> I don't recall the definition of "boot time password". Does this
> denote something that Grub asks, or is it when dmcrypt is running
> from the initrd?

By that I meant GRUB editor and Debian's standard whole disk encryption
in Debian. I don't have Colemak there. I need to enter password in
Colemak. Yes, I think that's called dmcrypt.

>Which is a reminder: is your keyboard definition
> in /etc/default/keyboard getting incorporated into the initrd or not?

I don't know that. I only have Colemak in KDE. Everything else,
including virtual terminals (Ctrl+Alt+F keys) are Qwerty.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240133

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-09-19 06:50 +0200
Message-ID<CYWW5-2GO-3@gated-at.bofh.it>
In reply to#240125
On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> On 18/09/2021 20:00, David Wright wrote:
> 
> > A lot of hits from googling   grub colemak   including
> > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > which uses dvorak as an example.
> 
> Thanks for your reply.
> Yes I seen this page.
> 
> ckbcomp dvorak command outputs the layout details and everything.
> 
> However:
> $ ckbcomp colemak
> /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> 
> > 
> > I don't recall the definition of "boot time password". Does this
> > denote something that Grub asks, or is it when dmcrypt is running
> > from the initrd?
> 
> By that I meant GRUB editor and Debian's standard whole disk encryption
> in Debian. I don't have Colemak there. I need to enter password in
> Colemak. Yes, I think that's called dmcrypt.
> 
> > Which is a reminder: is your keyboard definition
> > in /etc/default/keyboard getting incorporated into the initrd or not?
> 
> I don't know that. I only have Colemak in KDE. Everything else,
> including virtual terminals (Ctrl+Alt+F keys) are Qwerty.

How do you normally login, at a VC or in a Display Manager?

Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?

Have you seen this line:
  update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
since you changed /etc/default/keyboard and ran
  sudo dpkg-reconfigure keyboard-configuration?

Checking your current initrd is a little tedious: you run
unmkinitramfs to unpack the initrd, and you zcat your
/etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
Then run, eg:

$ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap /tmp/cached_UTF-8_del.kmap
$ 

where they are the unpacked and decompressed files respectively.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#240138

From"Gareth Evans" <donotspam@fastmail.fm>
Date2021-09-19 07:20 +0200
Message-ID<CYXp7-36Q-1@gated-at.bofh.it>
In reply to#240133
On Sun 19 Sep 2021, at 05:49, David Wright <deblis@lionunicorn.co.uk> wrote:
> On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> > On 18/09/2021 20:00, David Wright wrote:
> > 
> > > A lot of hits from googling   grub colemak   including
> > > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > > which uses dvorak as an example.
> > 
> > Thanks for your reply.
> > Yes I seen this page.
> > 
> > ckbcomp dvorak command outputs the layout details and everything.
> > 
> > However:
> > $ ckbcomp colemak
> > /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> > 
> > > 
> > > I don't recall the definition of "boot time password". Does this
> > > denote something that Grub asks, or is it when dmcrypt is running
> > > from the initrd?
> > 
> > By that I meant GRUB editor and Debian's standard whole disk encryption
> > in Debian. I don't have Colemak there. I need to enter password in
> > Colemak. Yes, I think that's called dmcrypt.
> > 
> > > Which is a reminder: is your keyboard definition
> > > in /etc/default/keyboard getting incorporated into the initrd or not?
> > 
> > I don't know that. I only have Colemak in KDE. Everything else,
> > including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
> 
> How do you normally login, at a VC or in a Display Manager?
> 
> Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?
> 

> Have you seen this line:
>   update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> since you changed /etc/default/keyboard and ran
>   sudo dpkg-reconfigure keyboard-configuration?

I replied just now before seeing this.  I think I may have taken the "GRUB uses the US keyboard layout by default" in my link a bit too far!  

> 
> Checking your current initrd is a little tedious: you run
> unmkinitramfs to unpack the initrd, and you zcat your
> /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
> Then run, eg:
> 
> $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap 
> /tmp/cached_UTF-8_del.kmap
> $ 
> 
> where they are the unpacked and decompressed files respectively.
> 
> Cheers,
> David.
> 
> 

[toc] | [prev] | [next] | [standalone]


#240143

From"Gareth Evans" <donotspam@fastmail.fm>
Date2021-09-19 12:50 +0200
Message-ID<CZ2yu-68p-7@gated-at.bofh.it>
In reply to#240138
On Sun 19 Sep 2021, at 06:14, Gareth Evans <donotspam@fastmail.fm> wrote:
> On Sun 19 Sep 2021, at 05:49, David Wright <deblis@lionunicorn.co.uk> wrote:
> > On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> > > On 18/09/2021 20:00, David Wright wrote:
> > > 
> > > > A lot of hits from googling   grub colemak   including
> > > > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > > > which uses dvorak as an example.
> > > 
> > > Thanks for your reply.
> > > Yes I seen this page.
> > > 
> > > ckbcomp dvorak command outputs the layout details and everything.
> > > 
> > > However:
> > > $ ckbcomp colemak
> > > /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> > > 
> > > > 
> > > > I don't recall the definition of "boot time password". Does this
> > > > denote something that Grub asks, or is it when dmcrypt is running
> > > > from the initrd?
> > > 
> > > By that I meant GRUB editor and Debian's standard whole disk encryption
> > > in Debian. I don't have Colemak there. I need to enter password in
> > > Colemak. Yes, I think that's called dmcrypt.
> > > 
> > > > Which is a reminder: is your keyboard definition
> > > > in /etc/default/keyboard getting incorporated into the initrd or not?
> > > 
> > > I don't know that. I only have Colemak in KDE. Everything else,
> > > including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
> > 
> > How do you normally login, at a VC or in a Display Manager?
> > 
> > Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?
> > 
> 
> > Have you seen this line:
> >   update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> > since you changed /etc/default/keyboard and ran
> >   sudo dpkg-reconfigure keyboard-configuration?
> 
> I replied just now before seeing this.  I think I may have taken the 
> "GRUB uses the US keyboard layout by default" in my link a bit too far! 
>  
> 
> > 
> > Checking your current initrd is a little tedious: you run
> > unmkinitramfs to unpack the initrd, and you zcat your
> > /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
> > Then run, eg:
> > 
> > $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap 
> > /tmp/cached_UTF-8_del.kmap
> > $ 
> > 
> > where they are the unpacked and decompressed files respectively.
> > 
> > Cheers,
> > David.
> > 
> > 
> 
> 

I have set up a VM with up-to-date Bullseye KDE (LUKS/LVM guided partitioning) to try to replicate this problem.

Adding the UK Colemak keyboard layout and promoting it to the top of the list in system settings > keyboard does not make it take effect in either the LUKS boot-time password or the graphical login - only after login to KDE.

Switching to UK layout for usage and then running in konsole

# dpkg-reconfigure keyboard-configuration

[choosing UK then Colemak then default for AltGr/special keys etc]

does not change the active keyboard layout, nor for the LUKS boot password or graphical login.

Out of interest, I thought I would try the  instructions (section 5):

https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html

- but they fail at the third command:

# tar -C "$memdisk" -cf /boot/grub/memdisk.tar
tar: Cowardly refusing to create an empty archive
Try 'tar --help' or 'tar --usage' for more information

I lack much experience with ramdisks and all but the simplest of grub configuration, but I can't see either an obvious problem with the syntax suggested, or anything in 'tar --help' that helps.

Any suggestions?

Thanks
Gareth

[toc] | [prev] | [next] | [standalone]


#240146

From"Gareth Evans" <donotspam@fastmail.fm>
Date2021-09-19 14:10 +0200
Message-ID<CZ3NX-74f-65@gated-at.bofh.it>
In reply to#240143
On Sun 19 Sep 2021, at 11:48, Gareth Evans <donotspam@fastmail.fm> wrote:
> On Sun 19 Sep 2021, at 06:14, Gareth Evans <donotspam@fastmail.fm> wrote:
> > On Sun 19 Sep 2021, at 05:49, David Wright <deblis@lionunicorn.co.uk> wrote:
> > > On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> > > > On 18/09/2021 20:00, David Wright wrote:
> > > > 
> > > > > A lot of hits from googling   grub colemak   including
> > > > > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > > > > which uses dvorak as an example.
> > > > 
> > > > Thanks for your reply.
> > > > Yes I seen this page.
> > > > 
> > > > ckbcomp dvorak command outputs the layout details and everything.
> > > > 
> > > > However:
> > > > $ ckbcomp colemak
> > > > /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> > > > 
> > > > > 
> > > > > I don't recall the definition of "boot time password". Does this
> > > > > denote something that Grub asks, or is it when dmcrypt is running
> > > > > from the initrd?
> > > > 
> > > > By that I meant GRUB editor and Debian's standard whole disk encryption
> > > > in Debian. I don't have Colemak there. I need to enter password in
> > > > Colemak. Yes, I think that's called dmcrypt.
> > > > 
> > > > > Which is a reminder: is your keyboard definition
> > > > > in /etc/default/keyboard getting incorporated into the initrd or not?
> > > > 
> > > > I don't know that. I only have Colemak in KDE. Everything else,
> > > > including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
> > > 
> > > How do you normally login, at a VC or in a Display Manager?
> > > 
> > > Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?
> > > 
> > 
> > > Have you seen this line:
> > >   update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> > > since you changed /etc/default/keyboard and ran
> > >   sudo dpkg-reconfigure keyboard-configuration?
> > 
> > I replied just now before seeing this.  I think I may have taken the 
> > "GRUB uses the US keyboard layout by default" in my link a bit too far! 
> >  
> > 
> > > 
> > > Checking your current initrd is a little tedious: you run
> > > unmkinitramfs to unpack the initrd, and you zcat your
> > > /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
> > > Then run, eg:
> > > 
> > > $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap 
> > > /tmp/cached_UTF-8_del.kmap
> > > $ 
> > > 
> > > where they are the unpacked and decompressed files respectively.
> > > 
> > > Cheers,
> > > David.
> > > 
> > > 
> > 
> > 
> 
> I have set up a VM with up-to-date Bullseye KDE (LUKS/LVM guided 
> partitioning) to try to replicate this problem.
> 
> Adding the UK Colemak keyboard layout and promoting it to the top of 
> the list in system settings > keyboard does not make it take effect in 
> either the LUKS boot-time password or the graphical login - only after 
> login to KDE.
> 
> Switching to UK layout for usage and then running in konsole
> 
> # dpkg-reconfigure keyboard-configuration
> 
> [choosing UK then Colemak then default for AltGr/special keys etc]
> 
> does not change the active keyboard layout, nor for the LUKS boot 
> password or graphical login.
> 
> Out of interest, I thought I would try the  instructions (section 5):
> 
> https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html
> 
> - but they fail at the third command:
> 
> # tar -C "$memdisk" -cf /boot/grub/memdisk.tar
> tar: Cowardly refusing to create an empty archive
> Try 'tar --help' or 'tar --usage' for more information
> 
> I lack much experience with ramdisks and all but the simplest of grub 
> configuration, but I can't see either an obvious problem with the 
> syntax suggested, or anything in 'tar --help' that helps.
> 
> Any suggestions?
> 
> Thanks
> Gareth
> 
> 

Scrap that, I missed the . at the end of the command

[toc] | [prev] | [next] | [standalone]


#240148

From"Gareth Evans" <donotspam@fastmail.fm>
Date2021-09-19 14:30 +0200
Message-ID<CZ47g-7aI-17@gated-at.bofh.it>
In reply to#240146
On Sun 19 Sep 2021, at 13:00, Gareth Evans <donotspam@fastmail.fm> wrote:
> On Sun 19 Sep 2021, at 11:48, Gareth Evans <donotspam@fastmail.fm> wrote:
> > On Sun 19 Sep 2021, at 06:14, Gareth Evans <donotspam@fastmail.fm> wrote:
> > > On Sun 19 Sep 2021, at 05:49, David Wright <deblis@lionunicorn.co.uk> wrote:
> > > > On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> > > > > On 18/09/2021 20:00, David Wright wrote:
> > > > > 
> > > > > > A lot of hits from googling   grub colemak   including
> > > > > > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > > > > > which uses dvorak as an example.
> > > > > 
> > > > > Thanks for your reply.
> > > > > Yes I seen this page.
> > > > > 
> > > > > ckbcomp dvorak command outputs the layout details and everything.
> > > > > 
> > > > > However:
> > > > > $ ckbcomp colemak
> > > > > /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> > > > > 
> > > > > > 
> > > > > > I don't recall the definition of "boot time password". Does this
> > > > > > denote something that Grub asks, or is it when dmcrypt is running
> > > > > > from the initrd?
> > > > > 
> > > > > By that I meant GRUB editor and Debian's standard whole disk encryption
> > > > > in Debian. I don't have Colemak there. I need to enter password in
> > > > > Colemak. Yes, I think that's called dmcrypt.
> > > > > 
> > > > > > Which is a reminder: is your keyboard definition
> > > > > > in /etc/default/keyboard getting incorporated into the initrd or not?
> > > > > 
> > > > > I don't know that. I only have Colemak in KDE. Everything else,
> > > > > including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
> > > > 
> > > > How do you normally login, at a VC or in a Display Manager?
> > > > 
> > > > Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?
> > > > 
> > > 
> > > > Have you seen this line:
> > > >   update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> > > > since you changed /etc/default/keyboard and ran
> > > >   sudo dpkg-reconfigure keyboard-configuration?
> > > 
> > > I replied just now before seeing this.  I think I may have taken the 
> > > "GRUB uses the US keyboard layout by default" in my link a bit too far! 
> > >  
> > > 
> > > > 
> > > > Checking your current initrd is a little tedious: you run
> > > > unmkinitramfs to unpack the initrd, and you zcat your
> > > > /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
> > > > Then run, eg:
> > > > 
> > > > $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap 
> > > > /tmp/cached_UTF-8_del.kmap
> > > > $ 
> > > > 
> > > > where they are the unpacked and decompressed files respectively.
> > > > 
> > > > Cheers,
> > > > David.
> > > > 
> > > > 
> > > 
> > > 
> > 
> > I have set up a VM with up-to-date Bullseye KDE (LUKS/LVM guided 
> > partitioning) to try to replicate this problem.
> > 
> > Adding the UK Colemak keyboard layout and promoting it to the top of 
> > the list in system settings > keyboard does not make it take effect in 
> > either the LUKS boot-time password or the graphical login - only after 
> > login to KDE.
> > 
> > Switching to UK layout for usage and then running in konsole
> > 
> > # dpkg-reconfigure keyboard-configuration
> > 
> > [choosing UK then Colemak then default for AltGr/special keys etc]
> > 
> > does not change the active keyboard layout, nor for the LUKS boot 
> > password or graphical login.
> > 
> > Out of interest, I thought I would try the  instructions (section 5):
> > 
> > https://cryptsetup-team.pages.debian.net/cryptsetup/encrypted-boot.html
> > 
> > - but they fail at the third command:
> > 
> > # tar -C "$memdisk" -cf /boot/grub/memdisk.tar
> > tar: Cowardly refusing to create an empty archive
> > Try 'tar --help' or 'tar --usage' for more information
> > 
> > I lack much experience with ramdisks and all but the simplest of grub 
> > configuration, but I can't see either an obvious problem with the 
> > syntax suggested, or anything in 'tar --help' that helps.
> > 
> > Any suggestions?
> > 
> > Thanks
> > Gareth
> > 
> > 
> 
> Scrap that, I missed the . at the end of the command
> 
> 

The commands appeared to succeed (with suitable alteration of variables) but my VM now boots into a grub prompt immediately - doesn't ask for LUKS password.  I think this may be because I didn't change the "ahci" module to something else in step 3.  

man grub-mkimage doesn't list possibilities.  Can anyone suggest a suitable alternative for a VM created with virt-manager/qemu-kvm?  

Many thanks
Gareth

[toc] | [prev] | [next] | [standalone]


#240152

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 14:50 +0200
Message-ID<CZ4qB-7hH-9@gated-at.bofh.it>
In reply to#240148
On 19/09/2021 13:26, Gareth Evans wrote:

> The commands appeared to succeed (with suitable alteration of variables) but my VM now boots into a grub prompt immediately - doesn't ask for LUKS password.  I think this may be because I didn't change the "ahci" module to something else in step 3.
>
> man grub-mkimage doesn't list possibilities.  Can anyone suggest a suitable alternative for a VM created with virt-manager/qemu-kvm?

Are you saying I could try this Section 5 method to have Colemak at GRUB
and LUKS password prompt? Not VM, but my laptop, real HW.


--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240154

From"Gareth Evans" <donotspam@fastmail.fm>
Date2021-09-19 15:10 +0200
Message-ID<CZ4JY-7DI-3@gated-at.bofh.it>
In reply to#240152
On Sun 19 Sep 2021, at 13:43, piorunz <piorunz@gmx.com> wrote:
> On 19/09/2021 13:26, Gareth Evans wrote:
> 
> > The commands appeared to succeed (with suitable alteration of variables) but my VM now boots into a grub prompt immediately - doesn't ask for LUKS password.  I think this may be because I didn't change the "ahci" module to something else in step 3.
> >
> > man grub-mkimage doesn't list possibilities.  Can anyone suggest a suitable alternative for a VM created with virt-manager/qemu-kvm?
> 

> Are you saying I could try this Section 5 method to have Colemak at GRUB
> and LUKS password prompt? Not VM, but my laptop, real HW.

Not yet.  As things stand, those commands have only succeeded in breaking the VM I set up for the purpose, but I'm hoping someone can suggest the appropriate tweak, if the reason is what I think it is.

G

> 
> 
> --
> With kindest regards, Piotr.
> 
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄⠀⠀⠀⠀
> 
> 

[toc] | [prev] | [next] | [standalone]


#240156

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 15:30 +0200
Message-ID<CZ53l-7K9-27@gated-at.bofh.it>
In reply to#240154
On 19/09/2021 14:07, Gareth Evans wrote:

>> Are you saying I could try this Section 5 method to have Colemak at GRUB
>> and LUKS password prompt? Not VM, but my laptop, real HW.
>
> Not yet.  As things stand, those commands have only succeeded in breaking the VM I set up for the purpose, but I'm hoping someone can suggest the appropriate tweak, if the reason is what I think it is.

Thank you.
To you think, that virtual consoles ignoring my layout setting are a bug?
Basically, doing:
sudo dpkg-reconfigure keyboard-configuration
sudo dpkg-reconfigure console-setup
and reboot

should force Colemak in virtual consoles (the ones in Ctrl+Alt+F keys),
but this is not happening. I have to do "sudo setupcon" (after logging
in with wrong layout) in the console to apply my settings, which are
correctly defined in /etc/default/keyboard file.

If this is correct, everyone else who uses any other layout than US
QWERTY is affected, and I think this could be reported as a bug.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240173

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-09-19 21:40 +0200
Message-ID<CZaPp-2Lk-27@gated-at.bofh.it>
In reply to#240156

[Multipart message — attachments visible in raw view] — view raw

On Du, 19 sep 21, 14:26:34, piorunz wrote:
> 
> Thank you.
> To you think, that virtual consoles ignoring my layout setting are a bug?
> Basically, doing:
> sudo dpkg-reconfigure keyboard-configuration
> sudo dpkg-reconfigure console-setup
> and reboot

This works for me, just switched from 'ro' to 'de' and back 
(`dpkg-reconfigure console-setup` was not necessary).

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#240180

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 22:40 +0200
Message-ID<CZbLs-3oG-13@gated-at.bofh.it>
In reply to#240173
On 19/09/2021 20:32, Andrei POPESCU wrote:
> On Du, 19 sep 21, 14:26:34, piorunz wrote:
>>
>> Thank you.
>> To you think, that virtual consoles ignoring my layout setting are a bug?
>> Basically, doing:
>> sudo dpkg-reconfigure keyboard-configuration
>> sudo dpkg-reconfigure console-setup
>> and reboot
>
> This works for me, just switched from 'ro' to 'de' and back
> (`dpkg-reconfigure console-setup` was not necessary).
>
> Kind regards,
> Andrei
>

Did sudo dpkg-reconfigure keyboard-configuration triggerred initramfs
update for you, when you did that command?

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240186

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-09-20 01:40 +0200
Message-ID<CZezD-54K-5@gated-at.bofh.it>
In reply to#240180
On Sun 19 Sep 2021 at 21:35:52 (+0100), piorunz wrote:
> On 19/09/2021 20:32, Andrei POPESCU wrote:
> > On Du, 19 sep 21, 14:26:34, piorunz wrote:
> > > 
> > > Thank you.
> > > To you think, that virtual consoles ignoring my layout setting are a bug?
> > > Basically, doing:
> > > sudo dpkg-reconfigure keyboard-configuration
> > > sudo dpkg-reconfigure console-setup
> > > and reboot
> > 
> > This works for me, just switched from 'ro' to 'de' and back
> > (`dpkg-reconfigure console-setup` was not necessary).
> 
> Did sudo dpkg-reconfigure keyboard-configuration triggerred initramfs
> update for you, when you did that command?

I didn't mean to imply that it *should*. Rather, that you have to
do it yourself if you want that reconfiguration to be immediately
available in the early stages of booting.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#240140

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 10:40 +0200
Message-ID<CZ0wG-4WE-13@gated-at.bofh.it>
In reply to#240133
On 19/09/2021 05:49, David Wright wrote:
> On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
>> On 18/09/2021 20:00, David Wright wrote:
>>
>>> A lot of hits from googling   grub colemak   including
>>> https://forums.debian.net//viewtopic.php?f=16&t=76833
>>> which uses dvorak as an example.
>>
>> Thanks for your reply.
>> Yes I seen this page.
>>
>> ckbcomp dvorak command outputs the layout details and everything.
>>
>> However:
>> $ ckbcomp colemak
>> /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
>>
>>>
>>> I don't recall the definition of "boot time password". Does this
>>> denote something that Grub asks, or is it when dmcrypt is running
>>> from the initrd?
>>
>> By that I meant GRUB editor and Debian's standard whole disk encryption
>> in Debian. I don't have Colemak there. I need to enter password in
>> Colemak. Yes, I think that's called dmcrypt.
>>
>>> Which is a reminder: is your keyboard definition
>>> in /etc/default/keyboard getting incorporated into the initrd or not?
>>
>> I don't know that. I only have Colemak in KDE. Everything else,
>> including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
>
> How do you normally login, at a VC or in a Display Manager?

I login to KDE login screen. Actually I have clean Debian 11 with KDE.
No modifications to system.

>
> Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?

I run it from Konsole.

>
> Have you seen this line:
>    update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> since you changed /etc/default/keyboard and ran
>    sudo dpkg-reconfigure keyboard-configuration?

No. sudo dpkg-reconfigure keyboard-configuration asked questions, and
didn't generated any output in terminal. I actually run this command
several times now, with reboots, and no change. in
keyboard-configuration menu itself, Colemak is selected,
/etc/default/keyboard file also is all correct, but I don't have Colemak
at dm-crypt password time, nor in virtual consoles (Ctrl+Alt+F keys).

> Checking your current initrd is a little tedious: you run
> unmkinitramfs to unpack the initrd, and you zcat your
> /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.

Unpacked:
unmkinitramfs /boot/initrd.img-$(uname -r) initramfs/

> Then run, eg:
>
> $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap /tmp/cached_UTF-8_del.kmap

~/initramfs/main/etc$ ls
default  fonts  fstab  ld.so.cache  ld.so.conf  ld.so.conf.d  lvm  mdadm
  modprobe.d  mtab  nsswitch.conf  os-release  passwd  plymouth  udev

There is no console-setup folder in unpacked initramfs folder.

$ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap
/tmp/cached_UTF-8_del.kmap
diff: …/main/etc/console-setup/cached_UTF-8_del.kmap: No such file or
directory
diff: /tmp/cached_UTF-8_del.kmap: No such file or directory

$ apt-file search cached_UTF-8_del.kmap
(no results here)

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240142

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 12:40 +0200
Message-ID<CZ2oO-651-17@gated-at.bofh.it>
In reply to#240140
Got a step further.

when I do "sudo setupcon" in virtual console (Ctrl+Alt+F key), I have
Colemak there. But only after I log in there already (using Qwerty) and
issue the command, not before.

Tasks:
Made virtual consoles Colemak by default, without need for sudo
setupcon. Why aren't they preconfigured with my choice when console is
being opened?
Achieve Colemak in dm-crypt password question.

I use Debian Bullseye, KDE, clean install.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240171

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-09-19 21:40 +0200
Message-ID<CZaPn-2Lk-5@gated-at.bofh.it>
In reply to#240140
On Sun 19 Sep 2021 at 09:38:26 (+0100), piorunz wrote:
> On 19/09/2021 05:49, David Wright wrote:
> > On Sat 18 Sep 2021 at 21:56:34 (+0100), piorunz wrote:
> > > On 18/09/2021 20:00, David Wright wrote:
> > > 
> > > > A lot of hits from googling   grub colemak   including
> > > > https://forums.debian.net//viewtopic.php?f=16&t=76833
> > > > which uses dvorak as an example.
> > > 
> > > Thanks for your reply.
> > > Yes I seen this page.
> > > 
> > > ckbcomp dvorak command outputs the layout details and everything.
> > > 
> > > However:
> > > $ ckbcomp colemak
> > > /usr/bin/ckbcomp: Can not find file "symbols/colemak" in any known directory
> > > 
> > > > 
> > > > I don't recall the definition of "boot time password". Does this
> > > > denote something that Grub asks, or is it when dmcrypt is running
> > > > from the initrd?
> > > 
> > > By that I meant GRUB editor and Debian's standard whole disk encryption
> > > in Debian. I don't have Colemak there. I need to enter password in
> > > Colemak. Yes, I think that's called dmcrypt.
> > > 
> > > > Which is a reminder: is your keyboard definition
> > > > in /etc/default/keyboard getting incorporated into the initrd or not?
> > > 
> > > I don't know that. I only have Colemak in KDE. Everything else,
> > > including virtual terminals (Ctrl+Alt+F keys) are Qwerty.
> > 
> > How do you normally login, at a VC or in a Display Manager?
> 
> I login to KDE login screen. Actually I have clean Debian 11 with KDE.
> No modifications to system.

I forgot to ask one more question: is your /boot encrypted, or just
everything else? Very relevant to the comment you added to this post.

> > Where did you run "sudo dpkg-reconfigure keyboard-configuration" from?
> 
> I run it from Konsole.

My understanding is that when you switch to a console from a DE,
spme (mumbling) is done, and this is reversed when you switch
back again. This might be why your changes aren't persisting.

When I configure the keyboard and console-setup, I always do it
before I start X, so I can use my 1988 British IBM clicky keyboard
to login.

However, I've made no attempt to configure Grub, as I know about
the odd punctuation keys that are swapped about with US/GB.

> > Have you seen this line:
> >    update-initramfs: Generating /boot/initrd.img-4.19.0-17-amd64
> > since you changed /etc/default/keyboard and ran
> >    sudo dpkg-reconfigure keyboard-configuration?
> 
> No. sudo dpkg-reconfigure keyboard-configuration asked questions, and
> didn't generated any output in terminal. I actually run this command
> several times now, with reboots, and no change. in
> keyboard-configuration menu itself, Colemak is selected,
> /etc/default/keyboard file also is all correct, but I don't have Colemak
> at dm-crypt password time, nor in virtual consoles (Ctrl+Alt+F keys).

Then I would rebuild my initramfs with update-initramfs.

> > Checking your current initrd is a little tedious: you run
> > unmkinitramfs to unpack the initrd, and you zcat your
> > /etc/console-setup/cached_UTF-8_del.kmap.gz to, say, /tmp.
> 
> Unpacked:
> unmkinitramfs /boot/initrd.img-$(uname -r) initramfs/
> 
> > Then run, eg:
> > 
> > $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap /tmp/cached_UTF-8_del.kmap
> 
> ~/initramfs/main/etc$ ls
> default  fonts  fstab  ld.so.cache  ld.so.conf  ld.so.conf.d  lvm  mdadm
>  modprobe.d  mtab  nsswitch.conf  os-release  passwd  plymouth  udev
> 
> There is no console-setup folder in unpacked initramfs folder.
> 
> $ diff -u …/main/etc/console-setup/cached_UTF-8_del.kmap
> /tmp/cached_UTF-8_del.kmap
> diff: …/main/etc/console-setup/cached_UTF-8_del.kmap: No such file or
> directory
> diff: /tmp/cached_UTF-8_del.kmap: No such file or directory
> 
> $ apt-file search cached_UTF-8_del.kmap
> (no results here)

After update-initramfs, you should get console-setup in your initramfs.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#240179 — Re: [SOLVED] Re: Colemak layout at boot time

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 22:40 +0200
SubjectRe: [SOLVED] Re: Colemak layout at boot time
Message-ID<CZbLr-3oG-7@gated-at.bofh.it>
In reply to#240171
On 19/09/2021 21:34, piorunz wrote:
> For disclosure, I have full disk encryption on / but /boot and /boot/efi
> are not encrypted, no separate partitions.

I meant *on* separate partitions. Not encrypted. Only / is encrypted.

-- 
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240181 — [SOLVED] Re: Colemak layout at boot time

Frompiorunz <piorunz@gmx.com>
Date2021-09-19 22:40 +0200
Subject[SOLVED] Re: Colemak layout at boot time
Message-ID<CZbLr-3oG-9@gated-at.bofh.it>
In reply to#240171
Yes that's right! Thank you. :)

sudo update-initramfs -u -k all
did the trick. I have now Colemak at dm-crypt! Also in virtual consoles.
GRUB editor still uses qwerty, but that's not a concern, dm-crypt
password prompt was most important.
For disclosure, I have full disk encryption on / but /boot and /boot/efi
are not encrypted, no separate partitions.

So, full instruction to achieve your keyboard layout of choice is:

sudo dpkg-reconfigure keyboard-configuration
sudo update-initramfs -u -k all
sudo reboot

probably not needed: sudo dpkg-reconfigure console-setup, but keeping it
in my notepad in case it's required after all in fresh install.

Problem with keyboard-configuration: should this be reported as a bug?
sudo dpkg-reconfigure keyboard-configuration should trigger
update-initramfs on it's own, automatically, otherwise effects of this
command are being ignored until new kernel arrives, computer is rebooted
with new kernel with new initramfs. Correct?

On 19/09/2021 20:36, David Wright wrote:

> Then I would rebuild my initramfs with update-initramfs.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

[toc] | [prev] | [next] | [standalone]


#240185 — Re: [SOLVED] Re: Colemak layout at boot time

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2021-09-20 01:40 +0200
SubjectRe: [SOLVED] Re: Colemak layout at boot time
Message-ID<CZezD-54K-3@gated-at.bofh.it>
In reply to#240181
On Sun 19 Sep 2021 at 21:34:49 (+0100), piorunz wrote:
> On 19/09/2021 20:36, David Wright wrote:
> 
> > Then I would rebuild my initramfs with update-initramfs.
> 
> sudo update-initramfs -u -k all
> did the trick. I have now Colemak at dm-crypt! Also in virtual consoles.
> GRUB editor still uses qwerty, but that's not a concern, dm-crypt
> password prompt was most important.
> For disclosure, I have full disk encryption on / but /boot and /boot/efi
> are not encrypted, [on] separate partitions.
> 
> So, full instruction to achieve your keyboard layout of choice is:
> 
> sudo dpkg-reconfigure keyboard-configuration
> sudo update-initramfs -u -k all
> sudo reboot
> 
> probably not needed: sudo dpkg-reconfigure console-setup, but keeping it
> in my notepad in case it's required after all in fresh install.

I usually run both, on the basis of "might as well while we're here".
Certainly the naming and placement of files for the two commands is
rather confusing.

> Problem with keyboard-configuration: should this be reported as a bug?
> sudo dpkg-reconfigure keyboard-configuration should trigger
> update-initramfs on it's own, automatically, otherwise effects of this
> command are being ignored until new kernel arrives, computer is rebooted
> with new kernel with new initramfs. Correct?

It would be rather tedious to automate this for someone who's running
it several times while trying to find/optimise the best layout/whatever.
Perhaps a warning would suffice.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | linux.debian.user


csiph-web