You are not logged in.

#1 2019-04-11 15:31:46

ellamenope
Member
Registered: 2019-04-10
Posts: 5

I tried to change my keyboard map, but returned error

What I did was the following, and it returned some very vague error message.

sudo loadkeys --console=/dev/console us
syntax error, unexpected ERROR

How can I load keyboard map correctly?

Offline

#2 2019-04-11 16:10:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,523

Re: I tried to change my keyboard map, but returned error

pacman -Qikk kbd

Offline

#3 2019-04-11 17:14:27

ellamenope
Member
Registered: 2019-04-10
Posts: 5

Re: I tried to change my keyboard map, but returned error

Should I do this and then  do the loadkeys again? I tried but it didn't work

Offline

#4 2019-04-11 17:33:23

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: I tried to change my keyboard map, but returned error

I was a diagnostic command you were intended to post the output it produced.

Offline

#5 2019-04-11 20:13:56

ellamenope
Member
Registered: 2019-04-10
Posts: 5

Re: I tried to change my keyboard map, but returned error

lol I see. here is the output:

Name            : kbd
Version         : 2.0.4-2
Description     : Keytable files and keyboard utilities
Architecture    : x86_64
URL             : [url]http://www.kbd-project.org[/url]
Licenses        : GPL
Groups          : None
Provides        : vlock
Depends On      : glibc  pam
Optional Deps   : None
Required By     : systemd
Optional For    : None
Conflicts With  : vlock
Replaces        : vlock
Installed Size  : 3.18 MiB
Packager        : Allan McRae <allan@archlinux.org>
Build Date      : Tue 06 Nov 2018 07:08:57 PM EST
Install Date    : Fri 16 Nov 2018 12:38:21 PM EST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

kbd: 746 total files, 0 altered files

Last edited by ellamenope (2019-04-11 20:15:44)

Offline

#6 2019-04-11 20:21:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,523

Re: I tried to change my keyboard map, but returned error

The package is ok, the message probably from your shell?
Is the provided I/O literal?

Output of

echo $SHELL
sudo echo $SHELL

?

Offline

#7 2019-04-11 20:25:34

ellamenope
Member
Registered: 2019-04-10
Posts: 5

Re: I tried to change my keyboard map, but returned error

output:

/bin/bash

Offline

#8 2019-04-11 20:30:43

loqs
Member
Registered: 2014-03-06
Posts: 19,101

Re: I tried to change my keyboard map, but returned error

What does the following produce:

su -
type loadkeys
loadkeys --console=/dev/console us

Offline

#9 2019-04-15 14:09:11

ellamenope
Member
Registered: 2019-04-10
Posts: 5

Re: I tried to change my keyboard map, but returned error

loqs wrote:

What does the following produce:

su -
type loadkeys
loadkeys --console=/dev/console us

Awwww it is working now! btw,

su -i

didn't really work, I found an alternative way to log in as root user:

sudo -i

the output is the following:

# type loadkeys
loadkeys is /usr/bin/loadkeys

There was no output to

loadkeys --console=/dev/console us

Last edited by ellamenope (2019-04-15 14:09:47)

Offline

#10 2019-04-15 14:14:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,523

Re: I tried to change my keyboard map, but returned error

# type loadkeys
loadkeys is /usr/bin/loadkeys

The idea was to run that as the regular user whor which the call failed, not root.

Offline

Board footer

Powered by FluxBB