Results 1 to 3 of 3

Thread: Script to be run at startup

  1. #1

    Script to be run at startup

    By following different instructions here and there, and by installing imwheel, I've managed to get the wheel and side buttons of my MS IntelliMouse Explorer working as I want them. This requires the following command to be run each time I log in;

    xmodmap -e "pointer = 1 2 3 6 7 4 5"

    Not a particularly hard task I'm sure you'll agree but I would like to have this done for me. Can someone suggest the best place to put this. I think it needs to be run on a user-by-user basis.

    Answers on a postcard please (or here if you prefer ;D)

    Thanks ..... Pete

  2. #2

    Re:Script to be run at startup

    theres a few ways to do this.
    to do it as the computer boots up, put the line in
    to do it as one user logs in (ie you) put it in ~/.bashrc (thats the file called .bashrc in your home folder)
    theres a line that says something along the lines of
    #User specific aliases and functions
    <put it here>
    the final way is to put it in the file that is parsed when all users log in. its somewhere in /etc, i can't recall its name

    Hope this helps anyway


  3. #3

    Re:Script to be run at startup

    Create the file .Xmodmap in your /home directory and place the command in it.

    pointer = 1 2 3 6 7 4 5

    Jim H

Similar Threads

  1. Sendmail startup script
    By lasanthaindika in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 05-10-2007, 07:18 PM
  2. IPSec(KAME) on Linux Kernel 2.6 startup script.
    By kieler in forum Programming
    Replies: 0
    Last Post: 05-17-2004, 12:56 PM
  3. Probs in a script called from another script
    By Outlaw in forum Programming
    Replies: 1
    Last Post: 03-12-2004, 02:54 PM
  4. RH8 startup help
    By mcdougrs in forum Linux - General Topics
    Replies: 7
    Last Post: 11-06-2002, 09:11 AM
  5. startup
    By elovkoff in forum Linux - General Topics
    Replies: 2
    Last Post: 10-17-2002, 11:25 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts