![]() |
How to do scripts in Linux
Hey,long time no see.
My question is this:how do I do scripts in Linux? I'm trying to automate my Arch linux installation, so that i don't have to type all the lines needed to install packages (for example, vlc and gnome). Also, from googling, I realized that the language is PHP, but I'm actually not sure, I hope that you can clarify me on that as well. Sorry for the bad english Cheers |
Quote:
If you simply want to automate a bunch of commands and run them consecutively just do something like: Code:
#!/bin/bash If you need to do anything a bit trickier then I suggest taking a look at "The Advanced BASH Scripting Guide". Too lazy to find a link just now but have a google. If you know Perl or Python I think they will be installed by default. |
Arch has a very good package manager called pacman. Check out the Arch Wiki for a complete description..
http://wiki.archlinux.org/index.php/Main_Page Hope this helps Bob |
Quote:
|
Quote:
|
Quote:
Do I need to specify it in the script, so that he doesn't ask me that,just installs it? |
Quote:
|
Ok, i'll give it a try later. Thanks for the help!! :)
|
All times are GMT -5. The time now is 06:30 AM. |