Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2126  / 2 Years ago, tue, april 12, 2022, 1:05:07

I am new to Ubuntu.I want to run this script every time my system reboots.Is there a way to do that?Thanks in advance for help.



# !/bin/bash
#fix resolution problem
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 - hsync +vsync
xrandr --addmode VGA1 1440x900_60.00

More From » bash

 Answers
7

First of all make your file executable by using this command :



chmod +x file_name


after you go to the file location



then add this line to



/etc/rc.local


here is the line:



/path/to/file/file_name


next time you restart your PC i think it will work well.


[#25746] Wednesday, April 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tocklftime

Total Points: 110
Total Questions: 109
Total Answers: 100

Location: Mayotte
Member since Mon, Sep 12, 2022
2 Years ago
tocklftime questions
Wed, Feb 1, 23, 21:50, 1 Year ago
Tue, Oct 4, 22, 21:42, 2 Years ago
Sun, Jul 25, 21, 10:43, 3 Years ago
;