DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th June 2017
GarryR's Avatar
GarryR GarryR is offline
Real Name: Garry Ricketson
Package Pilot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 162
Default X11R7 on NetBsd

I installed NetBsd on a older computer, and it is working basicly.
This is my first time with NetBsd,
However, I am having trouble getting the spanish keyboard to work
after I 'startx'.
From the console, when I first boot, the keyboard is fine, and the keys
work as expected, it is after I start the xsever that it become a problem.
I did read some manuals and info,..generated a
Code:
 # X -config ~/xorg.conf.new
As instructed here:
http://www.netbsd.org/docs/guide/en/chap-x.html

But I can not find any X11 in /etc as mentioned:
Quote:
If the above test was successful, move the file into place (as either /etc/X11/xorg.conf or /etc/X11/XF86Config) and you are ready to go. The following sections may be of interest or use, but are not required reading.
So I am wondering, not only what to put in the .conf file, the example they show is
for a german keyboard, and reveseing some keys,...I do not want to do that.
Just want it to know it is a spanish keyboard, no reversed keys, etc.
So, what to put in the file, and where to place the . conf file.
Thank you
__________________
My best friends are parrots
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2017
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,038
Default

http://www.netbsd.com/docs/guide/en/...-configuration

http://www.netbsd.com/docs/guide/en/...hap-x-keyboard
Reply With Quote
  #3   (View Single Post)  
Old 5th June 2017
GarryR's Avatar
GarryR GarryR is offline
Real Name: Garry Ricketson
Package Pilot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 162
Default

Thank you Shep,
Those are what I have looked at, and I would like to using the example they show, or
one of the ones from here:
Quote:
To find out the keyboard models, layouts and variants supported on your system, see /usr/X11R7/lib/X11/xkb/rules/base.lst.
but , from the configuration part:
Quote:
move the file into place (as either /etc/X11/xorg.conf or /etc/X11/XF86Config) and you are ready to go.
This is what is not clear to me,.. Do I need to make a "X11" directory, in /etc , or where ? There is
no /etc/X11 or /etc/X11/XF86Config directories and files.
So where do I put the "xorg.conf ." file ? Where do I move the "xorg.conf.new" to ?
I do realize I can make the X11 directory ,(maybe that is what I need to do?) and then using the 'mv' command, move the
xorg.conf.new file to /etc/X11/xorg.conf , but I am not sure if the X11 directory should all ready
exist , or I need to create it.
Thanks again,
__________________
My best friends are parrots
Reply With Quote
  #4   (View Single Post)  
Old 5th June 2017
Head_on_a_Stick's Avatar
Head_on_a_Stick Head_on_a_Stick is offline
Real Name: Matthew
Fdisk Soldier
 
Join Date: Dec 2015
Location: London
Posts: 59
Default

Quote:
Originally Posted by GarryR View Post
I do realize I can make the X11 directory ,(maybe that is what I need to do?)
Yes Garry, you need to create it yourself.
Reply With Quote
  #5   (View Single Post)  
Old 5th June 2017
GarryR's Avatar
GarryR GarryR is offline
Real Name: Garry Ricketson
Package Pilot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 162
Default

Ok, thanks ,...that explains why it does not yet exist, so I will try using /etc/X11 first.
thanks

___----- edited --- __
Thanks, I got it working now,...
Actually it turned out the X11 directory was there, but since it starts with X and when
I looked, using 'ls', I did not see it, expecting it to be at the bottom,...
When I did
Code:
mkdir /etc/X11
it told me the directory exists,...
Kind of dumb on my part,... so when I tried :
Code:
 ls | more
Indeed, yes it was right there, the first directory listed.
So then from there it was easy, I move the xorg.conf.new to /etc/X11/xorg.conf .
I did also still need to edit it,
Code:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbLayout" "es"  #Just needed to add this to it. 
        
EndSection
added the xkblayout option, using "es",.... So that was really pretty simple,
thanks every one.
__________________
My best friends are parrots

Last edited by GarryR; 5th June 2017 at 12:04 PM.
Reply With Quote
  #6   (View Single Post)  
Old 6th June 2017
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 756
Default

Just to clarify a bit further, the /etc//X11 directory is created when the base.tgz set is installed. You can see it by doing something like this

$ tar -tzf base.tgz | less

and searching through the long output for /etc/X11 .
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:53 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick