Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
1) How do I get Linux to run a particular command each time it boots up? Specifically, I want it to run 'xmodmap -e "pointer = 1 2 3 6 7 4 5"' because, for some reason, whenever I start a new X session, it acts as if that command has not been run (and I don't have use of my mouse wheel).
2) How do I exit an X session and go completely to the command line? I know that if I'm on the command line, I can type "startx" to begin a session, but I can't find the opposite command. And all logging out does is put me back to the X login screen.
1) that's not suitable to run on boot, you need to run that when X loads, which a significant difference. create a faile called /home/you/.xsession and add the line to it there.
2) assuming you're in an X startup, i.e. you choose your name grpahically then you'll probaly just want to press ctrl+alt+F1toF6 to get a fulll terminal. to actually quit X itself though form level 5, run "init 3" and tehn exit as normal, you'll then be left on a console login.
1) Try putting it at the end of rc.local or .xsession
2) switch back to the CLI where you started it from - eg "Ctrl + F1" Then kill it "Ctrl + C" You can also switch to runlevel 5 - this should start the gui "init 5" Then to shut down the GUI "init 3".
i think instead of changing the properties everytime you boot up..it would be better if you used the control center to modify your mouse settings to recognise your wheel mouse..my wheel mouse settings are for eg: PS/2 wheel mouse..
as for your second question: oyu want to boot into the command mode...you can change the init level to 3 (it must be 5 right now ) in your /etc/inittab file....
(do a man inittab to understand what different init levels mean)
Originally posted by shishir i think instead of changing the properties everytime you boot up..it would be better if you used the control center to modify your mouse settings to recognise your wheel mouse..my wheel mouse settings are for eg: PS/2 wheel mouse..
When you say "control center," what are you referring to?
I've already edited my /etc/X11/XF86Config file to make use of the 7 buttons my mouse has (4 buttons, plus the wheel button, plus the 2 wheel directions), and running xmodmap is the only way to let X know which two "buttons" refer to the Z-axis. I just put the command into a .xsession file. Let's see if it works....
Originally posted by david_ross 1) Try putting it at the end of rc.local or .xsession
I've tried editing both my .xsession and rc.local files, and neither do the trick. I still need to manually run "xmodmap." And I haven't been able to, btw, discover some sort of mouse config option through X. The only thing I can find resembling that in RH9 is the ability to switch actual brands of mice, and whether or not I want to emulate a 3-button mouse. Gah.