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.
On my laptop I have some nifty buttons that don't really do anything (Play, Pause, FastForward, etc.). I found their keycodes using xev, and now I would like to have it so that when I press play, xmms pops up. How do I associate the press of a button with launching an application in GNOME 2.4?
and a window will pop up. Put your cursor in the window that pops up and you will notice a whole lot text flying by in the terminal. It's just telling you what "X things" are going on (mouse is going here, mouse click there, etc.) Keep the mouse still while inside the window and you can press things on the keyboard and see something like the following.
KeyPress event, serial 27, synthetic NO, window 0x3600001,
root 0x8b, subw 0x0, time 4057122271, (29,148), root:(41,182),
state 0x0, keycode 38 (keysym 0x61, a), same_screen YES,
XLookupString gives 1 characters: "a"
So it tells you that when I press the "a" on my keyboard, it sends keycode 38, which is mapped to keysym 0x61 which represents the letter "a."
I still want to know if you can an arbitrary keycode bring up an application.
[Edited to disable smilies, which I think should automatically be disabled between [CODE]-tags.]
The buttons may not be recognized by X. If you're sure that your cursor is inside the new xev window (if you have focus follows mouse), then X probably doesn't recognize Toshiba's buttons. If you press the "a" on your keyboard and you get something, then you know that Toshiba's funky buttons aren't recognized. The buttons may go directly to the BIOS or may do something that is Windows-specific (such as the volume buttons on my laptop probably are).
I hate to dampen your hopes, but Toshiba laptops are often not Linux friendly. My friend cannot access the BIOS settings of his Toshiba laptop unless he runs an executable. I advised him to try to get that running in wine, and he hasn't been heard from since!
I forget to mention that I was able to associate C-F1, C-F2, etc. with Mandrake 8.2 box at work. My work computer uses GNOME 1.4 (I know it's ancient), which uses Sawfish. From GNOME Control Center->Sawfish Options->Shortcuts you can associate certain actions with key presses. To get it to launch an application, pick "Run shell command" and it will open a text entry for you to put your application call. [Hint: Don't put an ampersand (&) there.]
[Edited to disable smilies. Is there a way to do this permanantly?]
I don't have that menu structure on my Fedora Core 1 laptop. Do you know what config file this menu affects? Despite my newbie status (which changes to Member with this post, I believe), I'm much more comfortable hacking text files with emacs.