Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Set up an installation in a virtual machine and run your script in it. Best way to see if it works all the way through.
Another way would be to use a copy of the script and have it write changes to test files and in place of actual installs just send an echo to terminal or to a file so you can see the steps occuring without actually downloading or installing. If that worked well you could do the VM idea I mentioned first for a full dress rehearsal run, as it were.
Set up an installation in a virtual machine and run your script in it. Best way to see if it works all the way through.
There's no easier way?
I remember adding a command to the bash script that would simulate the script, but i can't seem to remember it. Something like set -vx
I have this in my script. It does, however, not install all the apps?
EDIT: i found it. I skipped installing programs because tlp and skype are not in the repository. Is there any way to install the other program when a program is not in the repository?
Last edited by mainstream; 09-20-2014 at 09:47 AM.
I have this in my script. It does, however, not install all the apps?
EDIT: i found it. I skipped installing programs because tlp and skype are not in the repository. Is there any way to install the other program when a program is not in the repository?
you can install each program with its own apt-get command.
you could also tell your script to add the repositories to install skype.
but by now you should begin to realise that all this is not so simple and running it in a vm is maybe not such a bad idea.
you can install each program with its own apt-get command.
you could also tell your script to add the repositories to install skype.
but by now you should begin to realise that all this is not so simple and running it in a vm is maybe not such a bad idea.
Indeed thanks but it's more a fallback when a app is not available, it continues with the rest.
I only need something to report it when it's not installed - any tips?
Output is E: Unable to locate package $app
You mean running in a loop?
Code:
INSTALL="skype tlp vlc xbmc openvpn etc"
for app in $INSTALL
do
echo "Processing $app"
sudo apt-get -y install $app
done
Last edited by mainstream; 09-21-2014 at 02:55 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.