Date: Thu, 15 Nov 2001 20:26:51 -0500 From: Matthew Graybosch <matthew@starbreaker.net> To: "Yuichiro Abe" <y_abe@sprynet.com> Cc: freebsd-questions@freebsd.org Subject: Re: About BSD Message-ID: <200111152016.05746@starbreaker.net> In-Reply-To: <000f01c16e39$0bbfe080$689efea9@oemcomputer> References: <000f01c16e39$0bbfe080$689efea9@oemcomputer>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 15 November 2001 19:53, you wrote: > To Freebsd.org > > I have some questions. Let me ask you something stupid. > > 1. Generally, where is the file .emacs which is for the resource? .emacs usually lives in your home directory. In my case, I have an .emacs file in "/home/matthew/.emacs". Yours would live in "/home/yuichiro/.emacs" if "yuichiro" is your username. > 2. How can I activate the sound stuff? I tried many ways. But the > machine didn't read the port, pcm0. pcm0 isn't a port, but a device. You have to add "device pcm" to your kernel config and rebuild the kernel. The FreeBSD Handbook's "Sound" section has instructions at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound.html This page is in English; you might want to look around for a Japanese translation. > 3. I would like to use an intellimouse on BSD. I changed the files > which are /etc/rc.conf, /etc/XF86config, and the resource file for > Netscape. But it doesn't work yet. I assume that you want to use the wheel. You didn't have to alter /etc/rc.conf or the Netscape resource file. Here's what you need in /etc/X11/XF86Config if you're using an Intellimouse Explorer, which is a seven-button optical mouse: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/mouse" Option "Buttons" "7" Option "ZAxisMapping" "6 7" EndSection Afterwards, you need to install the "imwheel" utility. It's in "/usr/ports/x11/imwheel". Install it, put the .imwheelrc file that I'll attach into your /home directory, and then run imwheel from a prompt. Also, if you're using the seven-button optical Intellimouse, then you need to type the following in an XTerm: xmodmap -e "pointer = 1 2 3 6 7 4 5" Once you've done all that you should be able to use your IntelliMouse in X. However, if you're using a regular intellmouse, you need the following in /etc/X11/XF86Config: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/mouse" Option "Buttons" "5" Option "ZAxisMapping" "4 5" EndSection You'll probably also need to issue the following command if the wheel doesn't scroll properly: xmodmap -e "pointer = 1 2 4 5 3" Email the list if you have further questions. - -- Matthew Graybosch http://www.starbreaker.net GnuPG Key ID: 0x7D488659 "This message has been satirized for your protection." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE79GtbcCiK1X1IhlkRAn0kAKCMouEoduNRXWdeSBPwtZq+Bo2SrwCdFXw+ 65IS7+whbZKCpU/nzT79oG8= =ViQ1 -----END PGP SIGNATURE----- [-- Attachment #2 --] # IMWheel Configuration file ($HOME/.imwheelrc or /etc/imwheelrc) # (GPL)Jon Atkins <jcatki@home.com> # Please read the README and/or imwheel(1) manpage for info # and this is best operated on using vim (as I said: It's crunchy) # # This is only for demonstration of the priority command... # See the other global Exclude command below for the one you want to use! # If this is activated it will only apps that have a lower priority # priority is based first on the priority command, then the position in this # file - the higher the line is in a file the higher in a priority class it is # thus for a default priority you can see that the position in the file is # important, but the priority command CAN appear anywahere in a window's list # of translations, and the priority will be assigned to all translations below # it until either a new window is defined or the priority is set again. # #".*" #@Priority=-1000 #the default priority is zero, higher numbers take precedence #@Exclude #@Repeat "^kvt" None, Up, Shift_L|Page_Up None, Down, Shift_L|Page_Down "^Konsole" None, Up, Shift_L|Page_Up None, Down, Shift_L|Page_Down "^XMcd" None, Up, C None, Down, Shift_L|C "^XMMS_Player" None, Up, Right None, Down, Left "^XMMS_Playlist" Control_L, Up, Up Control_L, Down, Down "^xmms" Alt_L, Up, Z Alt_L, Down, B "^XATITV-GATOS" None, Down, KP_Subtract None, Up, KP_Add "^Xman" None, Down, F Shift_L, Down, 3 None, Up, B "^Gvim" Shift_L, Up, Control_L|Y Shift_L, Down, Control_L|E None, Up, Page_Up None, Down, Page_Down "^VIM" Shift_L, Up, Control_L|Y Shift_L, Down, Control_L|E None, Up, Page_Up None, Down, Page_Down "^Eterm" None, Up, Shift_L|Page_Up None, Down, Shift_L|Page_Down "^NXTerm" None, Up, Shift_L|Page_Up None, Down, Shift_L|Page_Down "^rxvt" Alt_L, Up, Alt_L|Page_Up Alt_L, Down, Alt_L|Page_Down "^XTerm" Alt_L, Up, Shift_R|Page_Up Alt_L, Down, Shift_R|Page_Down Alt_L, Left, Control_L|A Alt_L, Right, Control_L|E #Shift_L, Down, Shift_L|1 "^Netscape" # # If you want to scroll by a few lines then uncomment these 4 lines # and comment out the paging 4 lines below these! # #Shift_L, Down, Page_Down, 1, 1000, 1000 #Shift_L, Up, Page_Up, 1, 1000, 1000 #None, Down, Down, 7, 1000, 1000 #None, Up, Up, 7, 1000, 1000 # # If you don't like page scrolling then comment these out and uncomment above! # Shift_L, Down, Shift_L|Down, 7, 1000, 1000 Shift_L, Up, Shift_L|Up, 7, 1000, 1000 None, Down, Page_Down, 1, 1000, 1000 None, Up, Page_Up, 1, 1000, 1000 # Left/Right & Thumb stuff None, Left, Left, 7, 1000, 1000 None, Right, Right, 7, 1000, 1000 None, Thumb, Down, 7, 1000, 1000 Shift_L, Thumb, Up, 7, 1000, 1000 "^Navigator" #Alt_L, Down, Alt_L|Right #Alt_L, Up, Alt_L|Left Alt_L, Down, Right, 10, 1000, 1000 Alt_L, Up, Left, 10, 1000, 1000 # Thanks to Paul J Collins <sneakums@usa.net> "^emacs" Shift_L, Up, Page_Up Shift_L, Down, Page_Down # you may need Alt instead of Meta.... None, Down, Control_L|Meta_L|Shift_L|parenright None, Up, Control_L|Meta_L|Shift_L|parenleft # Thanks to etienne grossmann <etienne@isr.ist.utl.pt> "^Xftp" , Down, j , Up, k # Thanks to etienne grossmann <etienne@isr.ist.utl.pt> "^gv" None, Up, Shift_L|space None, Down, space "^Event Tester" @Repeat @Exclude "^xv grab" @Priority=1 @Exclude "^XV.*" None, Down, Tab None, Up, Delete "(null)" , Up, Page_Up , Down, Page_Down # # Uncommment the following to exclude by default. # Then you will have to add new apps all the time, but will retain any built-in # wheel functionality contained in some KDE and other newer programs. # This kinda defeats the original purpose of the program! ;) # #".*" #@Priority=-1000 #@Exclude #@Repeat # # These are the defaults, but note that the defaults for the right side of the # keyboard are still handled within the program, unless you add the # combinations desired here. (except for the None modifier of course!) # If this section is deleted then the hardcoded defaults will be used, which # are the same thing. # Modifying these has global effects, but doesn't override what is above. # ".*" @Priority=-1001 None, Left, Left None, Right, Right None, Up, Page_Up None, Down, Page_Down Shift_L, Left, Left Shift_L, Right, Right Shift_L, Up, Up Shift_L, Down, Down Control_L, Left, Left, 2 Control_L, Right, Right, 2 Control_L, Up, Page_Up, 2 Control_L, Down, Page_Down, 2 Shift_L|Control_L, Left, Left, 5 Shift_L|Control_L, Right, Right, 5 Shift_L|Control_L, Up, Page_Up, 5 Shift_L|Control_L, Down, Page_Down, 5 Alt_L, Left, Left, 10 Alt_L, Right, Right, 10 Alt_L, Up, Left, 10 Alt_L, Down, Right, 10 Shift_L| Alt_L, Left, Left Shift_L| Alt_L, Right, Right Shift_L| Alt_L, Up, Left Shift_L| Alt_L, Down, Right Control_L|Alt_L, Left, Left. 20 Control_L|Alt_L, Right, Right. 20 Control_L|Alt_L, Up, Left. 20 Control_L|Alt_L, Down, Right. 20 Shift_L|Control_L|Alt_L, Left, Left, 50 Shift_L|Control_L|Alt_L, Right, Right, 50 Shift_L|Control_L|Alt_L, Up, Left, 50 Shift_L|Control_L|Alt_L, Down, Right, 50 # vim:ts=4:shiftwidth=4:syntax=sh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111152016.05746>
