Results 1 to 5 of 5

Thread: How to execute a terminal command at boot

  1. #1
    Join Date
    May 2013
    Beans
    14

    How to execute a terminal command at boot

    What i want to do is get this custom screen resolution with xrandr to run at every boot so i don't have to enter it myself or copy and past it this is the code i want to run at every boot


    Code:
    cvt 800 600 60 && xrandr --newmode "800x600_60.00"   38.25  800 832 912 1024  600 603 607 624 -hsync +vsync && xrandr --addmode TV1 800x600_60.00 && xrandr --output TV1 --mode 800x600_60.00
    i don't really want to play around editing configure/files just a nice easy
    script that will execute after or during every boot.
    Last edited by chewy84; May 26th, 2013 at 09:32 PM.

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: How to execute a terminal command at boot

    I think you mean every login, rather than every boot. X isn't running for most of boot-time, so the command will probably fail.

    If that's the case, then we need to know your desktop environment to make any progress. Thanks!

  3. #3
    Join Date
    May 2013
    Beans
    14

    Re: How to execute a terminal command at boot

    Yeah at login would be better cheers for that.

    I'm using ubuntu 12.04LTS

  4. #4
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: How to execute a terminal command at boot

    Quote Originally Posted by chewy84 View Post
    Yeah at login would be better cheers for that.

    I'm using ubuntu 12.04LTS
    I'll assume the Unity environment, then.

    In which case, press Alt-F2 then type:

    Code:
    gnome-session-properties
    You should get a popup dialog with options for configuring startup options.

  5. #5
    Join Date
    May 2013
    Beans
    14

    Thumbs up Re: How to execute a terminal command at boot

    Thanks that sorted it nice one

Tags for this Thread

Bookmarks

Posting Permissions

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