-3

i am new at ubuntu i installed COMODO antivirus and then to make it probaly working you have to run an script file, and i tried run a file an post_setup.sh from the teriminal by typing:

            gksu gedit post_setup.sh 

making it executable does nothing as well, and the apps is called COMODO Antivirus, and have a missing cmdavd.sh file can not find it by searcing the entire drev is this a bug, and it is installed probaly but is missing, and it is also installed from the softwarecenter.

Can someone please help.

Michael
  • 2,597

4 Answers4

2

To open the script file with gedit text viewer for example, use the following command:

gedit post.setup.sh

To execute the script, first give execute permissions to it:

chmod +x post.setup.sh

then you can execute it:

./post.setup.sh

If you are not the owner of that file and if you don't have permissions to read/write/execute that script, then run the above commands as root using sudo in front of them.

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407
2

Right click on the file, choose properties, and once the new windows opens, go to the Permissions tab, and make sure that you have a check mark on Allow executing file as a program. See images below.

enter image description here

enter image description here

Or you can use Radu Rădeanu answer to do it from terminal.

Mitch
  • 109,787
1

Open a terminal (ctrl + alt + T) and run

chmod +x /location/of/your/file/post.setup.sh

Next run:

sh /location/of/your/file/post.setup.sh

You're done If this didn't work just comment and I'll look into a solution.

Akisame
  • 3,343
0

You can edit with gedit or vim/vi editor using one of the following commands

  1. gksu gedit post.setup.sh it will open in separate viewer.

  2. sudo vim post.setup.sh

Radu Rădeanu
  • 174,089
  • 51
  • 332
  • 407