LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 06-18-2009, 05:25 AM   #1
echoes91
LQ Newbie
 
Registered: Jun 2009
Location: Italy
Distribution: Arch Linux
Posts: 8

Rep: Reputation: 0
Question How to execute commands at xorg startup?


Hello everybody! This is my first post here. I'm running Arch Linux on an old Compaq Armada e500. Everything works very good but xorg, wich auto-configures itself with HAL, starts with an US keyboard layout while i have a IT one. Since I haven't got an xorg.conf file and I don't want to create one because the rest of the configuration is perfect, i have to give the "setxkbmap it" command everytime. Is there a way to execute this command automatically at xorg startup? (I use lxde with GDM) Or maybe is there a way to change permanently the keymap without an xorg.conf? The keymap for the console is IT as it's set in the rc.conf file, but this doesn't have any effect on the xorg configuration.
Thanks
 
Old 06-18-2009, 05:35 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
In theory it should be set in xorg.conf to make sure it's set.

LXDE has a control file for startup in /etc/xdg/lxsession/LXDE/autostart. Dump the command in there and you should be good to go.
 
Old 06-18-2009, 06:41 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Welcome to LQ!

Take a look at the ArchLinux Wiki for the keyboard setup or look at the xorg section.
 
Old 06-18-2009, 02:42 PM   #4
echoes91
LQ Newbie
 
Registered: Jun 2009
Location: Italy
Distribution: Arch Linux
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I dumped the command inside /etc/xdg/lxsession/LXDE/autostart, now it works fine. I've already followed the ArchLinux Wiki's istructions but it did not work and I still don't understand why, since I'm quite sure I did it correctly. I was even planning to install xfce, but with that nice autostart file I'll keep on improving my lxde experience Thank you!
 
  


Reply



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
Execute kerberos commands in C# tritonbash Linux - Server 0 05-07-2008 04:43 PM
why won't my crontab execute the commands? dannemil Linux - Newbie 4 02-12-2008 05:25 PM
Execute different commands at startup lucazorzi Linux - General 7 11-02-2007 07:46 AM
Shell won't execute commands.... frank320 Red Hat 6 03-17-2006 11:12 AM
how to execute commands on login k4zau Linux - Software 3 10-12-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration