execute a program

Asked by e.vinod kumar

who to execute a program after typing progam in vi editor
and how to run the vedios presently i dont have any softwares
please send the commands

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update; sudo apt-get install -y gnome-mplayer vlc ubuntu-restricted-extras

Will give you all the media playback you can want.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

If you have written a script using vi (which is what it sounds like you have done). You will need to use:

chmod +x filename

replace filename with the filename you saved your script as. You can then run it with:

./filename

If you haven't coded in bash then let us know what you have used and we can advise.

Revision history for this message
e.vinod kumar (evinodkumar62) said :
#3

Thanks actionparsnip, that solved my question.