Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Complete Newbie with ridiculous question

Status
Not open for further replies.

Abdi

Technical User
Oct 22, 2002
4
GB
I got a Linux RedHat 7.1 running, and with some experimenting I screwed up my mouseconfiguration.
If I try too reconfigure my mouse with
Kontrolpanel->mousecfg, I get a errorline saying:
unexpected line 5 in /etc/sysconfig/mouse

I got a Trust amiscroll mouse, that I configured as a 2button generic mouse, with 3-button emulation enabled

Can somebody tell what to do, write, delete or install, plzz
 
Hi,



You can just run the command '/usr/sbin/mouseconfig' as root from a command window and reselect the right details.



Regards
 
Thx Infinham, but that's the problem, I don't know how, I'm a complete zero when it comes to linux
If u could run it by me step by step, incl. the necessary details, I'd be greatfull
 
1. Login to the linux machine as the root user with
the root password. if you do not know what this means or
do not know the root password then you really should
pick up a good book on linux or look into a distribution like SuSE which is easy to install and comes with an exce-
llent set of manuals.

2. type /usr/sbin/mouseconfig ; a program should
initialize which allows you to reinstall your mouse for all intents and purposes.

 
Hi,







If you type 'startx' to bring up the graphical window system, then you would just do the following :







[user@localhost]$ su (enter root password when prompted)



[root@localhost]# /usr/sbin/mouseconfig (its a gui - just select the mousetype, save and exit)



[root@localhost]# exit



[user@localhost]$







If you are set to automatically start the X-windows mode then you need to get a X-term (xterm, gnome-terminal, kterm, etc). These are on the programs, system menu I think (not certain because mine is highly customised from standard!). You will bring up something equivalent to a dos command window in the MS/Windows world. Then do the same commands as above.







If you really have problems - e.g. booting to Xwindows with no mouse you can do the following :







Reboot and when the lilo prompt appears at the bottom of the screen type 'linux 3' instead of just pressing enter. It would look like :







boot: linux 3







Then press enter and it should stop in console mode allowing you to do the configuration shown above.







If you don't see your particular mouse on the menu of mouseconfig then I'd suggest just choosing 'generic' (as before) or maybe 'microsoft'. If you still get the same problem then maybe you should rename the old config file and let it create a new one (you can always restore if its just a rename) :







mv /etc/sysconfig/mouse /etc/sysconfig/mouse.old







Then try again. If the original problem was X-windows related (vs console), you should also re-run 'Xconfigurator' but make sure that you don't change other settings if you're not too sure what you're doing. The mouse scroll in X is configured in the /etc/X11/XF86Config file (output by Xconfigurator) in a block like this :







Section "Pointer"



Protocol "IMPS/2"



Device "/dev/mouse"



ZAxisMapping 4 5







(Its the ZaxisMapping 4 5 that actually does the mouse scroll.)







If the above doesn't sort your problem can you be a bit more specific about what's not working, etc.







Regards







 
Thx Infincham
that did the trick, I even got scroll now
Can I marry u, if u r a girl ofcourse
:)
 
Well, I don't want to MARRY you or anything but thanks for the tip. I too have scroll.

Pyg
(Linux newbie)
 
hi, i am having a similar problem to abdi. i am also running redhat 7.1. however when i try to go into the mouse setup program, it doesnt allow me to select the mouse type. all it allows me to select is the port? is there a way of fixing this without totally reinstalling linux?
 
Hi,

That sounds very odd - are you using a usb mouse or something ?

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top