LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2004, 04:36 PM   #1
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
how to set keyboard-layout during initialization?



STATUS: Solved
Thanks to macondo for providing the solution. It's in post #3. Thanks to everybody else for input; note that the thread goes a bit OT after the solution.


Hello.

I wish to use the dvorak keyboard layout, and I wish it to be loaded when I log in to tty1. Oh, and X doesn't work for me yet, so a console-only solution will do just fine.

I had this set the way I wanted (thanks to Debian for including Dvorak in the installer!), but somehow screwed with it when I completed base-config. I tried re-running base-config, but it didn't bring up the option screen where I screwed up. Hm. I think I'll run tasksel and dselect, just for fun

Anyways, the reason I ask for help in the distro forum is that I seached for both "keyboard layout" and "dvorak", no results that work for Woody. I googled for a similar selection of terms, also to no avail.

Also, I'm kinda' embarrased to ask such a simple question, but hey... nobody's perfect. Except August Dvorak

- Jonas

Last edited by jonaskoelker; 09-10-2005 at 12:42 PM.
 
Old 07-05-2004, 06:10 PM   #2
Not now, John!
Member
 
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161

Rep: Reputation: 30
This shoul work.
First, look in '/usr/share/kbd/keymaps/i386/dvorak' folder and choose your keyboard layout.
Then make link for default keyboard like this:
Code:
ln -s i386/dvorak/<your-keymap-file> /usr/share/kbd/keymaps/defkeymap.map.gz
Create file /etc/rc.d/init.d/loadkeys with following content:
Code:
#!/bin/sh
# Begin $rc_base/init.d/loadkeys - Loadkeys Script

# Based on loadkeys script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
	start)
		echo -n "Loading keymap..."
		loadkeys -d
		evaluate_retval
		;;
	*)
		echo "Usage: $0 {start}"
		exit 1
		;;
esac

# End $rc_base/init.d/loadkeys
Now, type this:
Code:
ln -s ../init.d/loadkeys /etc/rc.d/rcsysinit.d/S70loadkeys
After that, your keyboard map should be loaded whenever you start your comp.
 
Old 07-05-2004, 07:58 PM   #3
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
jonaskoelker:

as root:

dpkg-reconfigure console-data

Choose keyboard from arch list
Choose Dvorak
if u don't know answers in the next options screens, leave blank press Enter
get outta Dodge
reboot
************************

"Oh, and X doesn't work for me yet,"

The Very Verbose Debian 3.0 Installation Walkthrough
http://osnews.com/story.php?news_id=2016

Sections 9/10
Installing XFree86 - Part I
Installing XFree86 - Part II

Last edited by macondo; 07-05-2004 at 08:12 PM.
 
Old 07-06-2004, 06:30 AM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Original Poster
Rep: Reputation: 46
to Not now, John: thanks for the effort, but I guessed it wouldn't work, since /etc/rc.d/ and /etc/sysconfig/ doesn't exist. However, I already have a loadkeys file; "loadkeys dvorak" does what one would expect. The reason I posted in "Debian" was that I wanted a Debian specific (or at least Debian functional solution). Still, thank you for the effort

to Macondo: yep, it worked; dvorak is back on track (wohoo!); The installation guide seems very good, in the case the installer does what you want it to; when errors occur (my case), you're on your own though - I'll probably make a post on this too. But thanks for the link, and thanks a lot for the solution.

case closed, court dismissed.

-- Jonas
 
Old 07-06-2004, 09:27 AM   #5
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
If you follow the instructions in the article to the letter, there will be no errors. Debian is easy:

dpkg-reconfigure locales or xdm or whatever app you installed.
dpkg-reconfigure xserver-xfree86
dpkg-reconfigure console-data

google for 'debian + dpkg-reconfigure'

Read Debian's documentation, manuals, howtos, at www.debian.org
 
Old 07-06-2004, 12:23 PM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Original Poster
Rep: Reputation: 46
thanks, again

oh. I'll try that some time; not right now, though...

thanks again
 
Old 07-15-2004, 09:26 AM   #7
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Original Poster
Rep: Reputation: 46
wee, X works

yeah, now X works.

It actually have been for a few days (I've lost count since I started to skip sleep);
Dvorak map works, the _right_ windows key (and the menu key) works. NumPad works. Even the internet works.

but one thing's amiss: sound; however, I'm not done testing;
I just wanted do to a heads up and say thanks for the help.

so: thanks.

-- Jonas
 
Old 07-15-2004, 02:47 PM   #8
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,014

Rep: Reputation: 49
as root:

modconf

look for sound modules, press Enter

choose the modules for your sound card, press Enter

follow instructions, if you don't know what to append, leave blank

reboot
 
Old 07-15-2004, 05:00 PM   #9
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
make sure you have yourself added in the audio group (you need to login and log out before changes will take effect). Also make sure your sound isnt muted using something like alsamixergui
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE Keyboard Shortcuts with different Keyboard Layout hellblade Linux - Software 5 04-18-2006 12:40 AM
Which distros use BSD-style layout for initialization files, and which System V's? kornerr Linux - General 5 06-11-2005 08:27 PM
keyboard layout tetanus Yoper 2 04-13-2005 03:40 PM
Keyboard Layout AlessPT Linux - Software 1 12-20-2004 01:07 AM
Keyboard Layout orlenok Linux - Newbie 2 10-05-2003 09:53 PM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration