You are not logged in.
Is there anyway to run that without needing sudo or root access? Just so I can automate it.
Sure.
Edit your sudoers file:
$ sudo EDITOR=nano visudo
Defaults editor=/usr/bin/nano
root ALL=(ALL) ALL
dspider ALL=(ALL) ALL
dspider ALL=NOPASSWD: /bin/mount, /bin/umount
dspider arch=NOPASSWD: /sbin/reboot, /sbin/poweroff, /usr/bin/kbd_mode -u
The first line makes nano the default editor for this file. Then you can just run:
$ sudo visudo
Then add something like this to your ~/.xinitrc (or ~/.config/openbox/autostart, etc):
sudo kbd_mode -u &
exec ck-launch-session dbus-launch openbox-session
And don't forget to mark it as solved.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
And by the way, the man page for kbd_mode says that the "-u" argument puts the keyboard in UTF-8 mode...
Post your rc.conf. I'm curious what LOCALE is in there. You probably skipped it when reading the Beginner's Guide (here and here).
https://wiki.archlinux.org/index.php/Lo … -8_example
Last edited by DSpider (2012-07-13 10:22:45)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Well I have:
# LOCALIZATION
# ------------
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Berlin"
KEYMAP="de-latin1-nodeadkeys"
CONSOLEFONT="default8x16"
CONSOLEMAP=
LOCALE="de_DE.UTF-8"
DAEMON_LOCALE="yes"
USECOLOR="yes"
...so UTF-8 I think, but sudo kbd_mode -u does it for me too!
edit: Thank you very much, DSpider!
Last edited by Kopfweh (2012-07-13 11:14:48)
Offline
Thanks DSpider, works like a charm; I tend to overlook the simple things
my rc.conf:
HARDWARECLOCK="localtime"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT="ter-114n"
CONSOLEMAP="8859-1"
LOCALE="en_GB.UTF-8"
DAEMON_LOCALE="yes"
USECOLOR="yes"
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="longbow"
interface=eth0
address=192.168.1.127
netmask=255.255.255.0
broadcast=192.168.1.127
gateway=192.168.1.1
NETWORK_PERSIST="no"
DAEMONS=(syslog-ng network dbus crond alsa sshd)
As I say, any other keyboard worked as expected. Just to say as well, the lock button would previously turn on but not turn off, this also got fixed
Marked as solved though; and again, thanks for all the help!
Last edited by edgley (2012-07-13 18:32:45)
Offline
Just to be clear, was it the LOCALE from rc.conf or kbd_mode that fixed it?
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Hi DSpider,
It was the kbd_mode command (my initial sentence in reply to you was regarding visudo ).
Offline
after kbd_mode -u, when you are in WM (kde or gnome of xfce, or what have you), and when you press Alt+F2 - does it bring you "Run" dialog, or does it switch you to the console instead?
Offline
asg1448, this thread was last posted in 2 years ago. Please do not necrobump threads as Archlinux changes quite frequently due to its rolling release nature.
After 2 years, I don't believe the OP is still looking for answers.
Closing...
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline