Results 1 to 5 of 5

Thread: Run Terminal command on login

  1. #1
    Join Date
    Aug 2011
    Location
    Pinellas Park, FL
    Beans
    31
    Distro
    Ubuntu 13.04 Raring Ringtail

    Run Terminal command on login

    I was wondering if there was a way to create a terminal command that would run as soon as I log into Ubuntu.

    I have a text file with my "max resolution" settings (xrandr..etc) that I copy n paste into terminal to change the resolution. Ubuntu cannot detect my monitor because I have a DVI output from the computer going into a VGA connector on the monitor (I didn't set it up that way, just the way it came from the person I bought it from).

    I tried to create a startup program that would run Terminal with the xrandr lines to change the res, no luck. It didn't do anything as far as I can tell.

    All I want it to do is take over the copy/paste job that I have to do each time I log in.

    Any suggestions would be greatly appreciated! Thank you

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,353
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Run Terminal command on login

    Hi euphoric_anomaly.

    Try Startup Applications. Read more about it here.

    Regards.

  3. #3
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Run Terminal command on login

    Have you tried to create a xorg configuration file with the appropriate settings?
    If you don't make backups of your important data, your data is obviously not important to you.

  4. #4
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Run Terminal command on login

    Is the script working when you manually execute it in a terminal? I guess it would be best if you post the script to prevent any misunderstanding.

  5. #5
    Join Date
    Aug 2011
    Location
    Pinellas Park, FL
    Beans
    31
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Run Terminal command on login

    this is what i have to copy and paste into terminal each time i want to change the res:

    xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
    xrandr --addmode VGA1 1280x1024_60.00
    xrandr --output VGA1 --mode 1280x1024_60.00

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
  •