Skip to contentSkip to conversation

Running several virtual consoles and customizing the keymap

Buildroot Shérab 2 participants 3 messages Mar 2, 2018 – Mar 3, 2018

lore
Share & tools
lore

Shérab

author
#0 lore raw

Dear all,

I am new to build root. First of all thanks a lot for having designed such a tool, and for having done so in such an elegant way.

I use a system in pure text-mode, booted by systemd.

There are two things I don't know how to achieve right now.

1. Define a (french) keymap. Is there a way to do that in the .config file while not running an X server?

2. I am able to run one virtual console but would love to have several of them, typically 6 as on my PC. Can tht be achieved?

Many thanks in advance for any hint,

Sh?rab.

#1 lore raw

Hello,

Quoted 2 lines · Sh?rab

I am new to build root. First of all thanks a lot for having designed such a tool, and for having done so in such an elegant way.

Thanks!

Quoted 6 lines

I use a system in pure text-mode, booted by systemd.

There are two things I don't know how to achieve right now.

1. Define a (french) keymap. Is there a way to do that in the .config file while not running an X server?

Use "loadkeys fr"

Quoted 2 lines

2. I am able to run one virtual console but would love to have several of them, typically 6 as on my PC. Can tht be achieved?

Add more symlinks from /etc/systemd/system/getty.target.wants/ to lib/systemd/system/getty at service. See SYSTEMD_INSTALL_SERVICE_TTY in package/systemd/systemd.mk.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
author
#2 lore raw

Hi Thomas!

Many thanks for your so prompt and helpful response!

Thomas Petazzoni (2018/03/02 21:30 +0100):

Quoted 9 lines

Hello,

Quoted 2 lines · Sh?rab

I am new to build root. First of all thanks a lot for having designed such a tool, and for having done so in such an elegant way.

Thanks!

w> > I use a system in pure text-mode, booted by systemd.

Quoted 7 lines
Quoted 5 lines

There are two things I don't know how to achieve right now.

1. Define a (french) keymap. Is there a way to do that in the .config file while not running an X server?

Use "loadkeys f"

Ah! So should I add this to some startup script,e.g.on the overlay file system that will be copied on the target?

Where would it be appropriate to add such a command ona system started with systemd?

Quoted 6 lines
Quoted 2 lines

2. I am able to run one virtual console but would love to have several of them, typically 6 as on my PC. Can tht be achieved?

Add more symlinks from /etc/systemd/system/getty.target.wants/ to lib/systemd/system/getty at service. See SYSTEMD_INSTALL_SERVICE_TTY in package/systemd/systemd.mk.

Thanks for that, too! Again should these links be added to the overlay filesystem?

Cheers and thanks again for such a nice thing!

Sh?rab.