LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-13-2010, 10:50 PM   #1
throughthegreens
Member
 
Registered: Feb 2010
Location: Asekhshinuv Sacramento,Ca
Distribution: Slackware 13.0
Posts: 35

Rep: Reputation: 16
mapping keys to commands in console


Hi I've recently set up my AccessIBM button to start X windows from the console, using loadkeys and a custom keymap. I notice that since all that's happening is a string and a newline are being sent to the current tty, launching the command, I must be logged in and running a shell for this to work, otherwise login catches the string and thinks my username is su - user -c "startx". I would like it to work without a running shell. Any ideas?
 
Old 02-14-2010, 09:23 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Could you configure your desktop environment for auto login for your regular user and instead of starting X directly, init the run level on pressing the key?
 
Old 02-14-2010, 12:43 PM   #3
throughthegreens
Member
 
Registered: Feb 2010
Location: Asekhshinuv Sacramento,Ca
Distribution: Slackware 13.0
Posts: 35

Original Poster
Rep: Reputation: 16
I use fvwm with startx and only a BIOS password. I have defined the key ( which is 148) to KeyboardSignal in my keymap, and I'm editing inittab right now.
...using this line in inittab

Code:
run4::kbrequest:/etc/rc.d/rc.4

Last edited by throughthegreens; 02-14-2010 at 11:51 PM. Reason: i realized why script was better
 
  


Reply

Tags
command, console


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mapping keyboard custom keys Hewson Linux - General 4 04-13-2008 08:48 PM
Having trouble mapping Functions Keys for an XTerm julie.zunk Red Hat 0 12-27-2005 04:37 PM
mapping non standard keyboard keys gravesb Linux - Hardware 13 08-31-2005 07:16 PM
mapping custom keys TomalakBORG Linux - General 8 04-24-2005 03:27 PM
mapping keyboard keys fedetxf Linux - Newbie 1 03-23-2004 08:49 PM


All times are GMT -5. The time now is 05:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration