خرید بک لینک

Steps:

  1. Open an editor - any editor you like
  2. Put those commands into it. Something like:

    Code:

    #!/bin/bash
    xgamma -ggamma 0.9 -bgamma -0.75
    
    The first line tells it which interpreter to use.
  3. Save the file somewhere you can write. I would put it into ~/bin/ <-- the bin directory under my $HOME. Might have to create this directory if it doesn't exist. This is an unwritten "standard way" of doing stuff like this.
  4. Change the permissions so the file is "executable" - I'd do that with chmod +x /full/path/to/file, but most file managers have a "permissions" capability.
  5. Next is the hardest part - for the GUI you run, lookup where the "autostart" folder is and move that file into it (or create either a symbolic link or hardlink from the file into that directory).
  6. Logout to test this
  7. Login to see it work.

bam, should have worked. https://askubuntu.com/questions/4832...cally-on-login has more details for the primary Ubuntu GUI (which I do not use).

There are many other ways to run programs at "startup", but you don't really want that - it is important to wait until login to run this, since X/Windows may not be ruing previously and well there are 50 other reasons NOT to do it elsewhere. Linux is a multi-user OS and logins don't just happen on the machine directly. Remote coections are also used by many people, plus a ruing system may not have any end-users logged in for days, weeks, months ....

BTW, we call "bat files" "shell scripts" in the Unix world. There are 20+ different scripting languages commonly used for this stuff, but bash is fine for something this tiny and for most things like this. "How to make a script that runs a command after X11 login" is what I would have asked. Not really THAT different, but technically, extremely different.

Anyway, hope this helps. If the script doesn't seem to work, change the first line to #/bin/bash -x to see what isn't working.

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 28 بهمن 1394 ساعت: 6:07

صفحه بندی